subscan
Runtime Modules / ChannelCommission
Spec Version:
Events
Name
Lookup
Attributes
ChannelRegistered8800["ChannelId","AccountIdOf","Bytes"]
ChannelRemoved8801["ChannelId"]
ChannelReceiveAccountUpdated8802["ChannelId","AccountIdOf"]
CommissionTokenSet8803["CurrencyId","Option<CurrencyId>"]
ChannelCommissionSet8804["ChannelId","CurrencyId","Percent"]
CommissionClaimed8805["ChannelId","CurrencyId","BalanceOf"]
ChannelVtokenSharesUpdated8806["ChannelId","CurrencyId","Permill"]
VtokenIssuanceSnapshotUpdated8807["CurrencyId","BalanceOf","BalanceOf"]
PeriodVtokenTotalMintUpdated8808["CurrencyId","BalanceOf","BalanceOf"]
PeriodVtokenTotalRedeemUpdated8809["CurrencyId","BalanceOf","BalanceOf"]
PeriodChannelVtokenMintUpdated880a["ChannelId","CurrencyId","BalanceOf","BalanceOf"]
PeriodTotalCommissionsUpdated880b["CurrencyId","BalanceOf","BalanceOf"]
ChannelClaimableCommissionUpdated880c["ChannelId","CurrencyId","BalanceOf"]
CalculationFailed880d["BalanceOf","BalanceOf"]
BifrostCommissionTransferFailed880e["AccountIdOf","AccountIdOf","CurrencyId","BalanceOf"]
RemovalNotCompleteError880f["u32","u32","u32"]
Storage Functions
Name
Type
ChannelNextId{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Channels{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"Tuple:AccountIdbounded_collections:bounded_vec:BoundedVec@878","keys_id":4,"value_id":877}}
CommissionTokens{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"bifrost_primitives:currency:CurrencyId","keys_id":307,"value_id":307}}
ChannelCommissionTokenRates{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"U8","keys_id":814,"value_id":48}}
ChannelVtokenShares{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":814,"value_id":339}}
VtokenIssuanceSnapshots{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":307,"value_id":423}}
PeriodVtokenTotalMint{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":307,"value_id":423}}
PeriodVtokenTotalRedeem{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":307,"value_id":423}}
PeriodChannelVtokenMint{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":814,"value_id":423}}
PeriodTotalCommissions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":307,"value_id":423}}
PeriodClearedCommissions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":307,"value_id":6}}
ChannelClaimableCommissions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":814,"value_id":6}}
Constants
Name
Type
Value
ClearingDurationU3240380000
NameLengthLimitU3214000000
Error Types
Name
Docs
OverflowOverflow error, indicating that a mathematical operation exceeded the allowed numeric range.
ChannelNameTooLongError indicating that the provided channel name exceeds the maximum allowed length.
ConversionErrorConversion error, indicating a failure during a type conversion operation.
ChannelNotExistError indicating that the specified channel does not exist in storage.
TransferErrorTransfer error, indicating that a fund transfer operation has failed.
VtokenNotConfiguredForCommissionError indicating that the vToken is not configured for commission calculations.
InvalidCommissionRateInvalid commission rate, indicating that the provided commission rate is out of range or malformed.
CommissionTokenAlreadySetError indicating that the commission token has already been set and cannot be reconfigured.
InvalidVtokenInvalid vToken, indicating that the provided vToken is invalid or unrecognized.
NoChangesMadeError indicating that no changes were made during a modification operation.This means that a modification request was issued but did not result in any actual changes.
DivisionByZeroError indicating a division operation encountered a divisor of zero.This is a critical error, as division by zero is undefined and cannot be performed.
RemovalNotCompleteError indicating that the removal operation was not successfully completed.This means an attempt to remove a resource or record did not succeed.
TokenToVtokenConversionFailedError indicating a failure during token-to-vToken conversion via exchange rate calculation.This can occur when the conversion formula encounters an unexpected condition or invalid input.