Name | Lookup | Attributes | |
|---|---|---|---|
| CreatePool | 8000 | ["StableAssetPoolId","AtLeast64BitUnsigned","AccountId","AccountId"] | |
| LiquidityAdded | 8001 | ["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Vec<Balance>","Balance","Vec<Balance>","Balance","Balance","Balance"] | |
| TokenSwapped | 8002 | ["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","AssetId","AssetId","Balance","Balance","Vec<Balance>","Balance","Balance"] | |
| RedeemedProportion | 8003 | ["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Balance","Vec<Balance>","Vec<Balance>","Balance","Balance","Vec<Balance>"] | |
| RedeemedSingle | 8004 | ["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Balance","AssetId","Balance","Vec<Balance>","Balance","Balance","Balance"] | |
| RedeemedMulti | 8005 | ["AccountId","StableAssetPoolId","AtLeast64BitUnsigned","Vec<Balance>","Balance","Vec<Balance>","Balance","Balance","Balance"] | |
| BalanceUpdated | 8006 | ["StableAssetPoolId","Vec<Balance>","Vec<Balance>"] | |
| YieldCollected | 8007 | ["StableAssetPoolId","AtLeast64BitUnsigned","Balance","Balance","AccountId","Balance"] | |
| FeeCollected | 8008 | ["StableAssetPoolId","AtLeast64BitUnsigned","Vec<Balance>","Vec<Balance>","Balance","Balance","AccountId","Balance"] | |
| AModified | 8009 | ["StableAssetPoolId","AtLeast64BitUnsigned","BlockNumberFor"] | |
| FeeModified | 800a | ["StableAssetPoolId","AtLeast64BitUnsigned","AtLeast64BitUnsigned","AtLeast64BitUnsigned"] | |
| RecipientModified | 800b | ["StableAssetPoolId","AccountId","AccountId"] | |
| TokenRateSet | 800c | ["StableAssetPoolId","Vec<(AssetId, (AtLeast64BitUnsigned, AtLeast64BitUnsigned),) >"] | |
| TokenRateHardcapConfigured | 800d | ["AssetId","Permill"] | |
| TokenRateHardcapRemoved | 800e | ["AssetId"] | |
| TokenRateRefreshFailed | 800f | ["StableAssetPoolId"] | |
| RateAdjustmentLimited | 8010 | ["StableAssetPoolId","AssetId","U256","U256","U256"] |
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":1023}} | |
| TokenRateCaches | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":985,"value_id":503}} | |
| TokenRateHardcap | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":333,"value_id":419}} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 62662f737461626c | |
| FeePrecision | U128 | 00e40b54020000000000000000000000 | |
| SwapExactOverAmount | U128 | 64000000000000000000000000000000 | |
| APrecision | U128 | 64000000000000000000000000000000 | |
| PoolAssetLimit | U32 | 05000000 |
Name | Docs |
|---|---|
| InconsistentStorage | The pool is existed, cannot create again. |
| InvalidPoolAsset | The pool asset is invalid. |
| ArgumentsMismatch | The arguments are mismatch, not match the expected length. |
| ArgumentsError | The arguments are error. |
| PoolNotFound | The pool is not found, cannot modify. |
| Math | make mistakes in calculation. |
| InvalidPoolValue | The new invariant of the pool is invalid. |
| MintUnderMin | The actual output amount is less than the expected minimum output amount when addliquidity. |
| SwapUnderMin | The actual output amount is less than the expected minimum output amount when swap. |
| RedeemUnderMin | The actual output amount is less than the expected minimum output amount when redeem. |
| RedeemOverMax | The actual input amount is more than the expected maximum input amount when redeemmulti. |
| TokenRateNotCleared | The old token rate is not cleared. |