manager.gno
CreatePool
func CreatePool(
cur realm,
token0Path string,
token1Path string,
fee uint32,
sqrtPriceX96 string
)CreatePool creates a new liquidity pool for a token pair.
Halt check: reverts while the Pool halt scope is active.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
token0Path
string
Token contract path supplied for token0; the pool orders the pair canonically rather than preserving the supplied order.
token1Path
string
Token contract path supplied for token1; must form a distinct registered pair with token0Path.
fee
uint32
Fee tier for the pool; determines its tick spacing and swap fee.
sqrtPriceX96
string
Initial square-root price in Q64.96 fixed-point form; it is inverted when the supplied token order is reversed and must be in bounds.
SetFeeProtocol
SetFeeProtocol sets the protocol fee rates for a pool.
Halt check: reverts while the Pool halt scope is active.
Parameters
cur
realm
Current realm context; callers use cross(cur) when crossing into this realm.
feeProtocol0
uint8
Token0 protocol-fee denominator; zero disables it, while non-zero supported values route the corresponding fraction to protocol.
feeProtocol1
uint8
Token1 protocol-fee denominator; zero disables it, while non-zero supported values route the corresponding fraction to protocol.
Last updated