subscan
Runtime Modules / DexStable
Spec Version:
Events
Name
Lookup
Attributes
CreatePool6600["PoolId","Vec<CurrencyId>","CurrencyId","Number","AccountId","AccountId"]
UpdateAdminFeeReceiver6601["PoolId","AccountId"]
AddLiquidity6602["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance","Balance"]
CurrencyExchange6603["PoolId","AccountId","AccountId","u32","Balance","u32","Balance"]
RemoveLiquidity6604["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance"]
RemoveLiquidityOneCurrency6605["PoolId","AccountId","AccountId","u32","Balance","Balance"]
RemoveLiquidityImbalance6606["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance","Balance"]
NewSwapFee6607["PoolId","Number"]
NewAdminFee6608["PoolId","Number"]
RampA6609["PoolId","Number","Number","Number","Number"]
StopRampA660a["PoolId","Number","Number"]
CollectProtocolFee660b["PoolId","CurrencyId","Balance"]
CurrencyExchangeUnderlying660c["PoolId","AccountId","Balance","Balance","u32","u32","AccountId"]
Storage Functions
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":565}}
LpCurrencies{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U32","keys_id":50,"value_id":4}}
Constants
Name
Type
Value
PoolCurrencySymbolLimitU3232000000
PalletId[U8; 8]6465782f7374626c
Error Types
Name
Docs
InvalidPooledCurrencyThe currency id can't join stable amm pool.
InvalidLpCurrencyThe currency id can't become the lp currency id of stable amm pool.
MismatchParameterThe parameters of a call are contradictory.
InvalidCurrencyDecimalThe decimal of currency is invalid when create pool.
InvalidPoolIdThe pool id is invalid.
InvalidBasePoolThe base pool mismatch this pool.
ArithmeticThe error generate by some arithmetic function.
DeadlineThe call already expired.
InsufficientSupplyThe caller does not have enough currencies.
InsufficientReserveThe pool does not have enough currencies.
CheckDFailedThe new d below then older.
AmountSlippageSlippage is too large.
SwapSameCurrencyForbid swap same currency.
CurrencyIndexOutRangeThe index of currency id bigger the length of pool's currencies;
InsufficientLpReserveThe pool does not have enough lp currency.
ExceedThresholdThe setting value exceed threshold.
RampADelayThe A of this pool is already ramped in current period.
MinRampTimeThe value of feature_a_time is too small.
ExceedMaxAChangeForbid change A of a pool bigger than MAX_A.
AlreadyStoppedRampAThe ramping A of this pool is already stopped.
ExceedMaxFeeThe fee parameter exceeds MAX_SWAP_FEE when creating the pool.
ExceedMaxAdminFeeThe admin fee parameter exceeds MAX_ADMIN_FEE when creating the pool.
ZeroAThe A parameter cannot be zero when creating the pool.
ExceedMaxAThe A parameter exceed MAX_A when creating the pool.
LpCurrencyAlreadyUsedThe lp currency id is already used when create pool.
RequireAllCurrenciesRequire all currencies of this pool when first supply.
BadPoolCurrencySymbolThe symbol of created pool maybe exceed length limit.
InvalidTransactionThe transaction change nothing.
InvalidBasePoolLpCurrencyThe base pool lp currency is invalid when create meta pool.
TokenIndexOutOfRangeThe token index out of range.