reposition.gno
Reposition
func Reposition(
cur realm,
positionId uint64,
tickLower int32,
tickUpper int32,
amount0DesiredStr string,
amount1DesiredStr string,
amount0MinStr string,
amount1MinStr string,
deadline int64
) (uint64, string, int32, int32, string, string)
Reposition modifies the price range of a closed position while maintaining the positionId.
Parameters
cur
realm
Pass cross as argument.
positionId
uint64
The ID of the position.
tickLower
int32
The lower tick of the price range of the position.
tickUpper
int32
The upper tick of the price range of the position.
amount0DesiredStr
string
The maximum amount of token0 to add.
amount1DesiredStr
string
The maximum amount of token1 to add.
amount0MinStr
string
The minimum amount of token0 to add.
amount1MinStr
string
The minimum amount of token1 to add.
deadline
int64
The deadline at which the transaction will expire.
Return Values
positionId
uint64
The ID of the position.
liquidity
string
The new liquidity amount.
tickLower
int32
The modified lower tick.
tickUpper
int32
The modified upper tick.
amount0
string
The amount of token0 added to the position.
amount1
string
The amount of token1 added to the position.
Last updated