DyDxMath
Handles modifications to the current liquidity available at a given Tick
.
Functions¶
addDelta¶
Add a signed liquidity delta to liquidity. The function will revert if it overflows or underflows.
Parameters:¶
Name | Type | Description |
---|---|---|
x |
uint128 | The liquidity before change |
y |
int128 | The delta by which liquidity should be changed |
Return Values:¶
Name | Type | Description |
---|---|---|
z |
uint128 | The modified liquidity amount |