v4-core icon indicating copy to clipboard operation
v4-core copied to clipboard

Rename liquidityDelta in IPoolManager.ModifyPositionParams

Open snreynolds opened this issue 1 year ago • 5 comments
trafficstars

Component

General design optimization (improving efficiency, cleanliness, or developer experience)

Describe the suggested feature and problem it solves.

I think the term "delta" should be conventionally used to describe credits or debits in token0 or token1 owed to or from the pool manager.

not sure of a better name tho... just liquidity?

Describe the desired implementation.

No response

Describe alternatives.

No response

Additional context.

No response

snreynolds avatar Jun 18 '24 20:06 snreynolds

liquidityDelta is a fine name for the liquidity delta. Delta is a good term for any signed integer exclusively used for addition.

wjmelements avatar Jun 27 '24 01:06 wjmelements

I like Delta given it refers to the change in liquidity for the position being modified.

tom2o17 avatar Jun 27 '24 15:06 tom2o17

I think that I had wanted to change callerDelta -> liquidityDelta in the return variables to match swap's swapDelta which means I dont want it to be overloaded with the params

snreynolds avatar Aug 26 '24 19:08 snreynolds

related to this https://github.com/Uniswap/v4-core/issues/742

snreynolds avatar Aug 26 '24 19:08 snreynolds