Pool factory contract is responsible for new both regular and limit pools deployments in needed shard.
Interfaces
DeployPoolMsg
Interface for deploying clmm pool.
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0xfda6ca3c |
| query_id | uint64 | query id |
| seed | cell | Random data cell. Used for creating pool contract in required shard. |
| token_x | address | address of pool's first token's jetton wallet. |
| token_y | address | address of pool's second token's jetton wallet. |
| bin_step | uint32 | pool bin step basis point. Number between 0 and 10000. |
| lp_fee | uint16 | lp fee rate. Number between 0 and 10000, where 10000 is 100% lp fee. |
| init_bin | int32 | initial bin number of the pool |
| init_sqrt_p | uint256 | initial sqrt price of the pool |
DeployLimPoolMsg
Interface for deploying limpool.
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0x0273228f |
| query_id | uint64 | query id |
| seed | cell | Random data cell. Used for creating pool contract in required shard. |
| token_x | address | address of pool's first token's jetton wallet. |
| token_y | address | address of pool's second token's jetton wallet. |
Get-methods
get_pool_address
Get pool address from seed cell.
Path | Mnemonic | Type | Description |
---|
| deployer | address | |
| seed | cell | Random data cell. Used for creating pool contract in required shard. |
Return
Path | Mnemonic | Type | Description |
---|
| pool_address | address | |
fees
Return
Path | Mnemonic | Type | Description |
---|
| protocol_fee | number | default protocol fee rate. |
| ref_fee | number | default referral fee rate. |
owner
Return
Path | Mnemonic | Type | Description |
---|
| owner | address | |