subscan
Runtime Modules / ZenlinkStableAMM
Spec Version:
Events
Name
Lookup
Attributes
CreatePool5200["PoolId","Vec<CurrencyId>","CurrencyId","Number","AccountId","AccountId"]
UpdateAdminFeeReceiver5201["PoolId","AccountId"]
AddLiquidity5202["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance","Balance"]
CurrencyExchange5203["PoolId","AccountId","AccountId","u32","Balance","u32","Balance"]
RemoveLiquidity5204["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance"]
RemoveLiquidityOneCurrency5205["PoolId","AccountId","AccountId","u32","Balance","Balance"]
RemoveLiquidityImbalance5206["PoolId","AccountId","AccountId","Vec<Balance>","Vec<Balance>","Balance","Balance"]
NewSwapFee5207["PoolId","Number"]
NewAdminFee5208["PoolId","Number"]
RampA5209["PoolId","Number","Number","Number","Number"]
StopRampA520a["PoolId","Number","Number"]
CollectProtocolFee520b["PoolId","CurrencyId","Balance"]
CurrencyExchangeUnderlying520c["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":"zenlink_stable_amm:primitives:Pool","keys_id":4,"value_id":623}}
LpCurrencies{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["node_primitives:currency:CurrencyId"],"value":"U32","keys_id":117,"value_id":4}}
Constants
Name
Type
Value
PoolCurrencySymbolLimitU3232000000
PalletId[U8; 8]62662f7374616d6d
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 create pool.
ExceedMaxAdminFeeThe admin fee parameter exceeds MAX_ADMIN_FEE when create pool.
ExceedMaxAThe A parameter exceed MAX_A when create 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.