Pool Manager
The pool manager serves as a proxy between pools and vaults. Users do not interact directly with it.
Interface
get_pool_manager_data
get_pool_manager_data
Returns pool manager data.
Arguments
None
Returns
int
Is initialized
int
Lowest pool shard index
int
Highest pool shard index
int
Tick size
int
Token0 vault address
int
Token1 vault address
slice
Protocol fee address
int
LP fee
int
Protocol fee
int
Referral fee
get_account_address
get_account_address
Returns LP account address for user.
Arguments
slice
User wallet
Returns
slice
User LP account address
get_pool_address
get_pool_address
Returns pool address for given index.
Arguments
int
Min tick (pool index)
Returns
slice
Pool address
Messages
Add Liquidity
Body Format
Uint32
Opcode
Uint64
Query ID
Int32
Low tick
Int32
High tick
Coins
Amount0
Coins
Amount1
Address
User address
Uint128
Liquidity
^Cell
Farm cell
Uint1
Should stake
Maybe Uint32
Farm index
Int32
Pool index
Refund User
Body Format
Uint32
Opcode
Uint64
Query ID
Coins
Amount0
Coins
Amount1
Address
Address
Stage LP
Body Format
Uint32
Opcode
Uint64
Query ID
Address
User address
Coins
Amount0
Coins
Amount1
Coins
Provide amount0
Coins
Provide amount1
Int32
Low tick
Int32
High tick
Int32
Pool index
^Cell
Liquidity data
Uint128
Liquidity
^Cell
Farm data
Uint1
Should stake
Maybe Uint32
Farm index
Stake LP
Body Format
Uint32
Opcode
Uint64
Query ID
Int32
Pool index
Int32
Low tick
Int32
High tick
Uint128
Liquidity
Uint256
Tx count
^Cell
Farm data cell
Address
User address
Uint64
Position index
Uint32
Farm index
Stake Liquidity
Body Format
Uint32
Opcode
Uint64
Query ID
Int32
Pool index
Int32
Low tick
Int32
High tick
Uint128
Liquidity
Uint256
Tx count
Uint32
Farm index
Cell
Farm data cell
Uint64
Start timestamp
Uint64
End timestamp
Address
User address
Uint64
Position index
Unstake LP
Body Format
Uint32
Opcode
Uint64
Query ID
Int32
Pool index
Uint256
Seconds inside X128
Uint64
Seconds
Address
User address
Uint32
Farm index
Uint1
Should restake
Stake Notification Manager
Body Format
Uint32
Opcode
Uint64
Query ID
Int32
Pool index
Uint32
Farm index
Address
Response address