Type | Name | Description |
---|---|---|
Argument | asset | Serialized Asset |
Return Value | 1st | Serialized MsgAddressInt for the Vault of the given asset |
Return Value | 2nd | Hash part of the address returned before |
Type | Name | Description |
---|---|---|
Argument | asset1 | Serialized Asset |
Argument | asset2 | Serialized Asset |
Argument | amm | Serialized AMM |
Argument | amm_settings | Serialized AMM Settings |
Return Value | 1st | Serialized MsgAddressInt for the Pool of the given asset pair and amm type |
Return Value | 2nd | Hash part of the address returned before |
Type | Name | Description |
---|---|---|
Argument | owner | Serialized MsgAddressInt of the PoolCreator’s owner |
Argument | asset1 | Serialized Asset |
Argument | asset2 | Serialized Asset |
Argument | amm | Serialized AMM |
Argument | amm_settings | Serialized AMM Settings |
Return Value | 1st | Serialized MsgAddressInt for the PoolCreator of the given asset pair and amm type which is owned by the specified user |
Return Value | 2nd | Hash part of the address returned before |
Type | Name | Description |
---|---|---|
Argument | owner | Serialized MsgAddressInt of the LiquidityDepository’s owner |
Argument | asset1 | Serialized Asset |
Argument | asset2 | Serialized Asset |
Argument | amm | Serialized AMM |
Argument | amm_settings | Serialized AMM Settings |
Return Value | 1st | Serialized MsgAddressInt for the LiquidityDepository of the given asset pair and amm type which is owned by the specified user |
Return Value | 2nd | Hash part of the address returned before |
Type | Name | Description |
---|---|---|
Return Value | 1st | Serialized MsgAddressInt for the DEX administrative account |
Type | Name | Description |
---|---|---|
Return Value | 1st | Serialized Asset to which this vault corresponds |
Type | Name | Description |
---|---|---|
Return Value | 1st | 0 if this vault is not active, -1 otherwise |
Type | Name | Description |
---|---|---|
Return Value | 1st | Version of the pool code, starts at 1 |
Return Value | 2nd | Serialized first Asset of this pool |
Return Value | 3rd | Serialized second Asset of this pool |
Return Value | 4th | Serialized AMM of this pool |
Return Value | 5th | Serialized AMM Settings of this pool |
Return Value | 6th | 0 if this pool is not active, -1 otherwise |
Return Value | 7th | Reserves of the first asset of this pool |
Return Value | 8th | Reserves of the second asset of this pool |
Return Value | 9th | Total supply of LP tokens |
Return Value | 10th | Protocol fee nominator* |
Return Value | 11th | LP fee nominator* |
max_nominator = 10000
.
Denominator for fees is a constant equal to 1000000
.
Type | Name | Description |
---|---|---|
Argument | asset | Serialized input Asset for the (potential) swap |
Argument | amount | Amount of the input asset to be (potentially) swapped |
Return Value | 1st | Actual amount of the input asset that would be used for the swap |
Return Value | 2nd | Amount of output asset to be received as a result of swap |
Type | Name | Description |
---|---|---|
Argument | lp_amount | Amount of LP tokens to be burned |
Return Value | 1st | Amount of pool’s first asset to be withdrawn |
Return Value | 2nd | Amount of pool’s second asset to be withdrawn |
Type | Name | Description |
---|---|---|
Argument | amount1 | Amount of pool’s first asset to be deposited |
Argument | amount2 | Amount of pool’s second asset to be deposited |
Return Value | 1st | Actual amount of pool’s first asset that would be deposited |
Return Value | 2nd | Actual amount of pool’s second asset that would be deposited |
Return Value | 3rd | Amount of LP tokens to be received |
Return Value | 4th | How much of permanently locked initial LP tokens will be generated as a result of such deposition |