Skip to main content

Pool_factory

Pool factory contract is responsible for new both regular and limit pools deployments in needed shard.

Interfaces

DeployPoolMsg

Interface for deploying clmm pool.

PathMnemonicTypeDescription
opuint320xfda6ca3c
query_iduint64query id
seedcellRandom data cell. Used for creating pool contract in required shard.
token_xaddressaddress of pool's first token's jetton wallet.
token_yaddressaddress of pool's second token's jetton wallet.
bin_stepuint32pool bin step basis point. Number between 0 and 10000.
lp_feeuint16lp fee rate. Number between 0 and 10000, where 10000 is 100% lp fee.
init_binint32initial bin number of the pool
init_sqrt_puint256initial sqrt price of the pool

DeployLimPoolMsg

Interface for deploying limpool.

PathMnemonicTypeDescription
opuint320x0273228f
query_iduint64query id
seedcellRandom data cell. Used for creating pool contract in required shard.
token_xaddressaddress of pool's first token's jetton wallet.
token_yaddressaddress of pool's second token's jetton wallet.

Get-methods

get_pool_address

Get pool address from seed cell.

Input

PathMnemonicTypeDescription
deployeraddress
seedcellRandom data cell. Used for creating pool contract in required shard.

Return

PathMnemonicTypeDescription
pool_addressaddress

fees

Return

PathMnemonicTypeDescription
protocol_feenumberdefault protocol fee rate.
ref_feenumberdefault referral fee rate.

owner

Return

PathMnemonicTypeDescription
owneraddress