subscan
Runtime Modules / DexGeneral
Spec Version:
Events
Name
Lookup
Attributes
PairCreated6500["AssetId","AssetId"]
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","AssetBalance","AssetId","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"]
Storage Functions
Name
Type
KLast{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"U256","keys_id":415,"value_id":436}}
FeeMeta{"origin":"PlainType","plain_type":"Tuple:option<AccountId>U8","PlainTypeValue":556}
LiquidityPairs{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"option<interbtc_primitives:CurrencyId>","keys_id":415,"value_id":557}}
PairStatuses{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"dex_general:primitives:PairStatus","keys_id":415,"value_id":558}}
BootstrapPersonalSupply{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:interbtc_primitives:CurrencyIdinterbtc_primitives:CurrencyId","AccountId"],"value":"Tuple:U128U128","keys_id":562,"value_id":561}}
BootstrapEndStatus{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"dex_general:primitives:PairStatus","keys_id":415,"value_id":558}}
BootstrapRewards{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"Vec<Tuple:interbtc_primitives:CurrencyIdU128>","keys_id":415,"value_id":563}}
BootstrapLimits{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["interbtc_primitives:CurrencyId","interbtc_primitives:CurrencyId"],"value":"Vec<Tuple:interbtc_primitives:CurrencyIdU128>","keys_id":415,"value_id":563}}
Constants
Name
Type
Value
PalletId[U8; 8]6465782f67656e72
Error Types
Name
Docs
RequireProtocolAdminRequire the admin who can reset the admin and receiver of the protocol fee.
RequireProtocolAdminCandidateRequire the admin candidate who can become new admin after confirm.
InvalidFeeRateInvalid fee_rate
UnsupportedAssetTypeUnsupported AssetId.
InsufficientAssetBalanceAccount balance must be greater than or equal to the transfer amount.
NativeBalanceTooLowAccount native currency balance must be greater than ExistentialDeposit.
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.
AccountIdBadLocationLocation given was invalid or unsupported.
ExecutionFailedXCM execution failed.
DeniedTransferToSelfTransfer to self by XCM message.
TargetChainNotRegisteredNot in registered parachains.
InvariantCheckFailedCan't pass the K value check
PairCreateForbiddenCreated pair can't create now
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,