Factory
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 |
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).
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 |
Calculates the expected address of a Vault contract based on the provided input.
| Name | Type | Description |
|---|
asset | slice (Asset) | The asset associated with the vault. |
| Name | Type | Description |
|---|
vault_addr | slice (MsgAddressInt) | The calculated address of the vault contract. |
Calculates the expected address of a Pool contract based on the provided input.
| 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. |
| Name | Type | Description |
|---|
pool_addr | slice (MsgAddressInt) | The calculated address of the pool contract. |
Calculates the expected address of the Liquidity Deposit contract based on the provided input.
| 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. |
| Name | Type | Description |
|---|
liquidity_deposit_addr | slice (MsgAddressInt) | The calculated address of the liquidity deposit contract. |