Factory
Deployments
Network | Address |
---|---|
TON (mainnet) | EQBfBWT7X2BHg9tXAxzhz2aKiNTU1tpt5NsiK0uSDW_YAJ67 |
Operations
Operation create_vault
TL-B
create_vault#21cfe02b query_id:uint64 asset:Asset = InMsgBody;
Name | Type | Description |
---|---|---|
query_id | uint64 | Query ID |
asset | Asset | The 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;
Name | Type | Description |
---|---|---|
query_id | uint64 | Query ID |
asset0 | Asset | The asset for which a Pool will be created |
asset1 | Asset | The 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
Name | Type | Description |
---|---|---|
asset | slice (Asset ) | The asset associated with the vault. |
Returns
Name | Type | Description |
---|---|---|
vault_addr | slice (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
Name | Type | Description |
---|---|---|
pool_type | int (PoolType ) | The type of the pool (e.g., stable or volatile). |
asset0 | slice (Asset ) | The first asset in the pool. |
asset1 | slice (Asset ) | The second asset in the pool. |
Returns
Name | Type | Description |
---|---|---|
pool_addr | slice (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
Name | Type | Description |
---|---|---|
owner_addr | slice (MsgAddressInt ) | The address of the owner initiating the deposit. |
pool_type | int (PoolType ) | The type of the pool (e.g., stable or volatile). |
asset0 | slice (Asset ) | The first asset in the pool. |
asset1 | slice (Asset ) | The second asset in the pool. |
Returns
Name | Type | Description |
---|---|---|
liquidity_deposit_addr | slice (MsgAddressInt ) | The calculated address of the liquidity deposit contract. |