Name | Lookup | Parameters | |
---|---|---|---|
set_fee_receiver | 6500 | 1 | |
set_fee_point | 6501 | 1 | |
set_exchange_fee | 6502 | 3 | |
create_pair | 6503 | 3 | |
add_liquidity | 6504 | 7 | |
remove_liquidity | 6505 | 7 | |
swap_exact_assets_for_assets | 6506 | 5 | |
swap_assets_for_exact_assets | 6507 | 5 | |
bootstrap_create | 6508 | 9 | |
bootstrap_contribute | 6509 | 5 | |
bootstrap_claim | 650a | 4 | |
bootstrap_end | 650b | 2 | |
bootstrap_update | 650c | 9 | |
bootstrap_refund | 650d | 2 | |
bootstrap_charge_reward | 650e | 3 | |
bootstrap_withdraw_reward | 650f | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PairCreated | 6500 | ["AssetId","AssetId","AssetBalance"] | |
LiquidityAdded | 6501 | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
LiquidityRemoved | 6502 | ["AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
AssetSwap | 6503 | ["AccountId","AccountId","Vec<AssetId>","Vec<AssetBalance>"] | |
BootstrapContribute | 6504 | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance"] | |
BootstrapEnd | 6505 | ["AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
BootstrapCreated | 6506 | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance","AssetBalance","BlockNumber"] | |
BootstrapClaim | 6507 | ["AccountId","AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"] | |
BootstrapUpdate | 6508 | ["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance","AssetBalance","BlockNumber"] | |
BootstrapRefund | 6509 | ["AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance"] | |
DistributeReward | 650a | ["AssetId","AssetId","AccountId","Vec<(AssetId, AssetBalance)>"] | |
ChargeReward | 650b | ["AssetId","AssetId","AccountId","Vec<(AssetId, AssetBalance)>"] | |
WithdrawReward | 650c | ["AssetId","AssetId","AccountId"] | |
NewFeeRate | 650d | ["AssetId","AssetId","u128"] | |
NewFeePoint | 650e | ["u8"] |
Name | Type | |
---|---|---|
KLast | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"U256","keys_id":466,"value_id":187}} | |
FeeMeta | {"origin":"PlainType","plain_type":"Tuple:option<AccountId>U8","PlainTypeValue":606} | |
LiquidityPairs | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"option<interbtc_primitives:CurrencyId>","keys_id":466,"value_id":607}} | |
PairStatuses | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"dex_general:primitives:PairStatus","keys_id":466,"value_id":608}} | |
BootstrapPersonalSupply | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:interbtc_primitives:CurrencyIdinterbtc_primitives:CurrencyId","AccountId"],"value":"Tuple:U128U128","keys_id":612,"value_id":611}} | |
BootstrapEndStatus | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"dex_general:primitives:PairStatus","keys_id":466,"value_id":608}} | |
BootstrapRewards | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"Vec<Tuple:interbtc_primitives:CurrencyIdU128>","keys_id":466,"value_id":613}} | |
BootstrapLimits | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"Vec<Tuple:interbtc_primitives:CurrencyIdU128>","keys_id":466,"value_id":615}} |
Name | Type | Value | |
---|---|---|---|
PalletId | [U8; 8] | 6465782f67656e72 | |
MaxBootstrapRewards | U32 | e8030000 | |
MaxBootstrapLimits | U32 | e8030000 |
Name | Docs |
---|---|
InvalidFeeRate | Invalid fee_rate |
UnsupportedAssetType | Unsupported AssetId. |
InsufficientAssetBalance | Account balance must be greater than or equal to the transfer amount. |
DeniedCreatePair | Trading pair can't be created. |
PairAlreadyExists | Trading pair already exists. |
PairNotExists | Trading pair does not exist. |
AssetNotExists | Asset does not exist. |
InsufficientLiquidity | Liquidity is not enough. |
InsufficientPairReserve | Trading pair does have enough. |
InsufficientTargetAmount | Get target amount is less than exception. |
ExcessiveSoldAmount | Sold amount is more than exception. |
InvalidPath | Can't find pair though trading path. |
IncorrectAssetAmountRange | Incorrect amount range. |
Overflow | Overflow. |
Deadline | Transaction block number is larger than the end block number. |
InvariantCheckFailed | Can't pass the K value check |
NotInBootstrap | Pair is not in bootstrap |
InvalidContributionAmount | Amount of contribution is invalid. |
UnqualifiedBootstrap | Amount of contribution is invalid. |
ZeroContribute | Zero contribute in bootstrap |
DenyRefund | Bootstrap deny refund |
DisableBootstrap | Bootstrap is disable |
NotQualifiedAccount | Not eligible to contribute |
NoRewardTokens | Reward of bootstrap is not set. |
ChargeRewardParamsError | Charge bootstrap extrinsic args has error, |
ExistRewardsInBootstrap | Exist some reward in bootstrap, |
TooManyRewards | The number of rewards exceeds the storage limit |
TooManyLimits | The number of limits exceeds the storage limit |