swap.gno
Swap
func Swap(
cur realm,
token0Path string,
token1Path string,
fee uint32,
recipient address,
zeroForOne bool,
amountSpecified string,
sqrtPriceLimitX96 string,
payer address,
swapCallback func(realm, int64, int64, *CallbackMarker) error
) (string, string)Parameters
Name
Type
Description
Return Values
Name
Type
Description
DrySwap
Parameters
Name
Type
Description
Return Values
Name
Type
Description
SetSwapEndHook
Parameters
Name
Type
Description
SetSwapStartHook
Parameters
Name
Type
Description
SetTickCrossHook
Parameters
Name
Type
Description
Last updated