Name | Lookup | Parameters | |
---|---|---|---|
create_base_pool | 6600 | 7 | |
create_meta_pool | 6601 | 7 | |
add_liquidity | 6602 | 5 | |
swap | 6603 | 7 | |
remove_liquidity | 6604 | 5 | |
remove_liquidity_one_currency | 6605 | 6 | |
remove_liquidity_imbalance | 6606 | 5 | |
add_pool_and_base_pool_liquidity | 6607 | 7 | |
remove_pool_and_base_pool_liquidity | 6608 | 7 | |
remove_pool_and_base_pool_liquidity_one_currency | 6609 | 7 | |
swap_pool_from_base | 660a | 8 | |
swap_pool_to_base | 660b | 8 | |
swap_meta_pool_underlying | 660c | 7 | |
update_fee_receiver | 660d | 2 | |
set_swap_fee | 660e | 2 | |
set_admin_fee | 660f | 2 | |
ramp_a | 6610 | 3 | |
stop_ramp_a | 6611 | 1 | |
withdraw_admin_fee | 6612 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
CreatePool | 6600 | ["PoolId","Vec<CurrencyId>","CurrencyId","Number","AccountId","Number","Number","AccountId"] | |
UpdateAdminFeeReceiver | 6601 | ["PoolId","AccountId"] | |
AddLiquidity | 6602 | ["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance","Balance"] | |
CurrencyExchange | 6603 | ["PoolId","AccountId","AccountId","u32","Balance","u32","Balance"] | |
RemoveLiquidity | 6604 | ["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance"] | |
RemoveLiquidityOneCurrency | 6605 | ["PoolId","AccountId","AccountId","u32","Balance","Balance"] | |
RemoveLiquidityImbalance | 6606 | ["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance","Balance"] | |
NewSwapFee | 6607 | ["PoolId","Number"] | |
NewAdminFee | 6608 | ["PoolId","Number"] | |
RampA | 6609 | ["PoolId","Number","Number","Number","Number"] | |
StopRampA | 660a | ["PoolId","Number","Number"] | |
CollectProtocolFee | 660b | ["PoolId","CurrencyId","Balance"] | |
CurrencyExchangeUnderlying | 660c | ["PoolId","AccountId","Balance","Balance","u32","u32","AccountId"] |
Name | Type | |
---|---|---|
NextPoolId | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"dex_stable:primitives:Pool","keys_id":4,"value_id":617}} | |
LpCurrencies | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U32","keys_id":51,"value_id":4}} |
Name | Type | Value | |
---|---|---|---|
PoolCurrencyLimit | U32 | 0a000000 | |
PoolCurrencySymbolLimit | U32 | 32000000 | |
PalletId | [U8; 8] | 6465782f7374626c |
Name | Docs |
---|---|
InvalidPooledCurrency | The currency id can't join stable amm pool. |
InvalidLpCurrency | The currency id can't become the lp currency id of stable amm pool. |
MismatchParameter | The parameters of a call are contradictory. |
InvalidCurrencyDecimal | The decimal of currency is invalid when create pool. |
InvalidPoolId | The pool id is invalid. |
InvalidBasePool | The base pool mismatch this pool. |
Arithmetic | The error generate by some arithmetic function. |
Deadline | The call already expired. |
InsufficientSupply | The caller does not have enough currencies. |
InsufficientReserve | The pool does not have enough currencies. |
CheckDFailed | The new d below then older. |
AmountSlippage | Slippage is too large. |
SwapSameCurrency | Forbid swap same currency. |
CurrencyIndexOutRange | The index of currency id bigger the length of pool's currencies. |
InsufficientLpReserve | The pool does not have enough lp currency. |
ExceedThreshold | The setting value exceed threshold. |
RampADelay | The A of this pool is already ramped in current period. |
MinRampTime | The value of feature_a_time is too small. |
ExceedMaxAChange | Forbid change A of a pool bigger than MAX_A. |
AlreadyStoppedRampA | The ramping A of this pool is already stopped. |
ExceedMaxFee | The fee parameter exceeds MAX_SWAP_FEE when creating the pool. |
ExceedMaxAdminFee | The admin fee parameter exceeds MAX_ADMIN_FEE when creating the pool. |
ZeroA | The A parameter cannot be zero when creating the pool. |
ExceedMaxA | The A parameter exceed MAX_A when creating the pool. |
LpCurrencyAlreadyUsed | The lp currency id is already used when create pool. |
RequireAllCurrencies | Require all currencies of this pool when first supply. |
TooManyCurrencies | The number of currencies exceeds the length limit. |
BadPoolCurrencySymbol | The symbol of created pool exceeds the length limit. |
InvalidTransaction | The transaction change nothing. |
InvalidBasePoolLpCurrency | The base pool lp currency is invalid when create meta pool. |
TokenIndexOutOfRange | The token index out of range. |