Skip to main content

Factory

Deployments

NetworkAddress
TON (mainnet)EQBfBWT7X2BHg9tXAxzhz2aKiNTU1tpt5NsiK0uSDW_YAJ67

Operations

Operation create_vault

TL-B
create_vault#21cfe02b query_id:uint64 asset:Asset = InMsgBody;
NameTypeDescription
query_iduint64Query ID
assetAssetThe asset for which a Vault will be created

Operation create_volatile_pool

Assets can be reordered.

Assets can be switched (asset0 becomes asset1 and vice versa). This ensures a consistent address for a Pool regardless of asset order (e.g. A / B or B / A).

TL-B
create_volatile_pool#97d51f2f query_id:uint64 asset0:Asset asset1:Asset = InMsgBody;
NameTypeDescription
query_iduint64Query ID
asset0AssetThe asset for which a Pool will be created
asset1AssetThe asset for which a Pool will be created

Get-Methods

Method get_vault_address

Calculates the expected address of a Vault contract based on the provided input.

Inputs

NameTypeDescription
assetslice (Asset)The asset associated with the vault.

Returns

NameTypeDescription
vault_addrslice (MsgAddressInt)The calculated address of the vault contract.

Method get_pool_address

Calculates the expected address of a Pool contract based on the provided input.

Inputs

NameTypeDescription
pool_typeint (PoolType)The type of the pool (e.g., stable or volatile).
asset0slice (Asset)The first asset in the pool.
asset1slice (Asset)The second asset in the pool.

Returns

NameTypeDescription
pool_addrslice (MsgAddressInt)The calculated address of the pool contract.

Method get_liquidity_deposit_address

Calculates the expected address of the Liquidity Deposit contract based on the provided input.

Parameters

NameTypeDescription
owner_addrslice (MsgAddressInt)The address of the owner initiating the deposit.
pool_typeint (PoolType)The type of the pool (e.g., stable or volatile).
asset0slice (Asset)The first asset in the pool.
asset1slice (Asset)The second asset in the pool.

Returns

NameTypeDescription
liquidity_deposit_addrslice (MsgAddressInt)The calculated address of the liquidity deposit contract.