For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 changes the tick range of a position.

Halt check: reverts while the Position halt scope is active.

Parameters

Name
Type
Description

cur

realm

current realm context; callers use cross(cur) when crossing into this realm

positionId

uint64

position NFT token ID to reposition

tickLower

int32

new lower tick boundary of the position's price range

tickUpper

int32

new upper tick boundary of the position's price range

amount0DesiredStr

string

desired token0 amount for the new range, represented as a decimal string

amount1DesiredStr

string

desired token1 amount for the new range, represented as a decimal string

amount0MinStr

string

minimum acceptable token0 amount for slippage protection

amount1MinStr

string

minimum acceptable token1 amount for slippage protection

deadline

int64

transaction expiration timestamp

Return Values

Name
Type
Description

positionId

uint64

position NFT token ID that was repositioned

liquidity

string

new liquidity amount, represented as a decimal string

tickLower

int32

new lower tick boundary

tickUpper

int32

new upper tick boundary

amount0

string

actual token0 amount added to the new range, represented as a decimal string

amount1

string

actual token1 amount added to the new range, represented as a decimal string

source

Last updated