subscan
Runtime Modules / DexGeneral
Spec Version:
Events
Name
Lookup
Attributes
PairCreated6500["AssetId","AssetId","AssetBalance"]
LiquidityAdded6501["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"]
LiquidityRemoved6502["AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"]
AssetSwap6503["AccountId","AccountId","Vec<AssetId>","Vec<AssetBalance>"]
BootstrapContribute6504["AccountId","AssetId","AssetId","AssetBalance","AssetBalance"]
BootstrapEnd6505["AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"]
BootstrapCreated6506["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance","AssetBalance","BlockNumber"]
BootstrapClaim6507["AccountId","AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance"]
BootstrapUpdate6508["AccountId","AssetId","AssetId","AssetBalance","AssetBalance","AssetBalance","AssetBalance","BlockNumber"]
BootstrapRefund6509["AccountId","AccountId","AssetId","AssetId","AssetBalance","AssetBalance"]
DistributeReward650a["AssetId","AssetId","AccountId","Vec<(AssetId, AssetBalance)>"]
ChargeReward650b["AssetId","AssetId","AccountId","Vec<(AssetId, AssetBalance)>"]
WithdrawReward650c["AssetId","AssetId","AccountId"]
NewFeeRate650d["AssetId","AssetId","u128"]
NewFeePoint650e["u8"]
Storage Functions
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<[U8; 32]>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","[U8; 32]"],"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}}
Constants
Name
Type
Value
PalletId[U8; 8]6465782f67656e72
MaxBootstrapRewardsU32e8030000
MaxBootstrapLimitsU32e8030000
Error Types
Name
Docs
InvalidFeeRateInvalid fee_rate
UnsupportedAssetTypeUnsupported AssetId.
InsufficientAssetBalanceAccount balance must be greater than or equal to the transfer amount.
DeniedCreatePairTrading pair can't be created.
PairAlreadyExistsTrading pair already exists.
PairNotExistsTrading pair does not exist.
AssetNotExistsAsset does not exist.
InsufficientLiquidityLiquidity is not enough.
InsufficientPairReserveTrading pair does have enough.
InsufficientTargetAmountGet target amount is less than exception.
ExcessiveSoldAmountSold amount is more than exception.
InvalidPathCan't find pair though trading path.
IncorrectAssetAmountRangeIncorrect amount range.
OverflowOverflow.
DeadlineTransaction block number is larger than the end block number.
InvariantCheckFailedCan't pass the K value check
NotInBootstrapPair is not in bootstrap
InvalidContributionAmountAmount of contribution is invalid.
UnqualifiedBootstrapAmount of contribution is invalid.
ZeroContributeZero contribute in bootstrap
DenyRefundBootstrap deny refund
DisableBootstrapBootstrap is disable
NotQualifiedAccountNot eligible to contribute
NoRewardTokensReward of bootstrap is not set.
ChargeRewardParamsErrorCharge bootstrap extrinsic args has error,
ExistRewardsInBootstrapExist some reward in bootstrap,
TooManyRewardsThe number of rewards exceeds the storage limit
TooManyLimitsThe number of limits exceeds the storage limit