subscan
Runtime Modules / StableAsset
Spec Version:
Events
Name
Lookup
Attributes
CreatePool8000["StableAssetPoolId","AtLeast64BitUnsigned","AccountId","AccountId"]
LiquidityAdded8001["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Vec<Balance>","Balance","Vec<Balance>","Balance","Balance","Balance"]
TokenSwapped8002["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","AssetId","AssetId","Balance","Balance","Vec<Balance>","Balance","Balance"]
RedeemedProportion8003["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Balance","Vec<Balance>","Vec<Balance>","Balance","Balance","Vec<Balance>"]
RedeemedSingle8004["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Balance","AssetId","Balance","Vec<Balance>","Balance","Balance","Balance"]
RedeemedMulti8005["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Vec<Balance>","Balance","Vec<Balance>","Balance","Balance","Balance"]
BalanceUpdated8006["StableAssetPoolId","Vec<Balance>","Vec<Balance>"]
YieldCollected8007["StableAssetPoolId","AtLeast64BitUnsigned","Balance","Balance","AccountId","Balance"]
FeeCollected8008["StableAssetPoolId","AtLeast64BitUnsigned","Vec<Balance>","Vec<Balance>","Balance","Balance","AccountId","Balance"]
AModified8009["StableAssetPoolId","AtLeast64BitUnsigned","BlockNumberFor"]
FeeModified800a["StableAssetPoolId","AtLeast64BitUnsigned","AtLeast64BitUnsigned","AtLeast64BitUnsigned"]
RecipientModified800b["StableAssetPoolId","AccountId","AccountId"]
TokenRateSet800c["StableAssetPoolId","Vec<(AssetId, (AtLeast64BitUnsigned, AtLeast64BitUnsigned),) >"]
TokenRateHardcapConfigured800d["AssetId","Permill"]
TokenRateHardcapRemoved800e["AssetId"]
TokenRateRefreshFailed800f["StableAssetPoolId"]
RateAdjustmentLimited8010["StableAssetPoolId","AssetId","U256","U256","U256"]
Storage Functions
Name
Type
PoolCount{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Pools{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"bifrost_stable_asset:StableAssetPoolInfo","keys_id":4,"value_id":843}}
TokenRateCaches{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":814,"value_id":423}}
TokenRateHardcap{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":307,"value_id":339}}
Constants
Name
Type
Value
PalletId[U8; 8]62662f737461626c
FeePrecisionU12800e40b54020000000000000000000000
SwapExactOverAmountU12864000000000000000000000000000000
APrecisionU12864000000000000000000000000000000
PoolAssetLimitU3205000000
Error Types
Name
Docs
InconsistentStorageThe pool is existed, cannot create again.
InvalidPoolAssetThe pool asset is invalid.
ArgumentsMismatchThe arguments are mismatch, not match the expected length.
ArgumentsErrorThe arguments are error.
PoolNotFoundThe pool is not found, cannot modify.
Mathmake mistakes in calculation.
InvalidPoolValueThe new invariant of the pool is invalid.
MintUnderMinThe actual output amount is less than the expected minimum output amount when addliquidity.
SwapUnderMinThe actual output amount is less than the expected minimum output amount when swap.
RedeemUnderMinThe actual output amount is less than the expected minimum output amount when redeem.
RedeemOverMaxThe actual input amount is more than the expected maximum input amount when redeemmulti.
TokenRateNotClearedThe old token rate is not cleared.