subscan
Runtime Modules / VaultStaking
Spec Version:
Events
Name
Lookup
Attributes
DepositStake2a00["DefaultVaultId","AccountId","SignedFixedPoint"]
DistributeReward2a01["CurrencyId","DefaultVaultId","SignedFixedPoint"]
WithdrawStake2a02["DefaultVaultId","AccountId","SignedFixedPoint"]
WithdrawReward2a03["Index","CurrencyId","DefaultVaultId","AccountId","SignedFixedPoint"]
ForceRefund2a04["DefaultVaultId"]
IncreaseNonce2a05["DefaultVaultId","Index"]
Storage Functions
Name
Type
TotalStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","interbtc_primitives:VaultId"],"value":"I128","keys_id":471,"value_id":84}}
TotalCurrentStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","interbtc_primitives:VaultId"],"value":"I128","keys_id":471,"value_id":84}}
TotalRewards{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","Tuple:U32interbtc_primitives:VaultId"],"value":"I128","keys_id":472,"value_id":84}}
RewardPerToken{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","Tuple:U32interbtc_primitives:VaultId"],"value":"I128","keys_id":472,"value_id":84}}
SlashPerToken{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","interbtc_primitives:VaultId"],"value":"I128","keys_id":471,"value_id":84}}
Stake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","Tuple:interbtc_primitives:VaultId[U8; 32]"],"value":"I128","keys_id":473,"value_id":84}}
RewardTally{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","Tuple:U32interbtc_primitives:VaultId[U8; 32]"],"value":"I128","keys_id":475,"value_id":84}}
SlashTally{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","Tuple:interbtc_primitives:VaultId[U8; 32]"],"value":"I128","keys_id":473,"value_id":84}}
Nonce{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:VaultId"],"value":"U32","keys_id":88,"value_id":4}}
Constants
Name
Type
Value
GetNativeCurrencyIdinterbtc_primitives:CurrencyId000c
Error Types
Name
Docs
TryIntoIntErrorUnable to convert value.
InsufficientFundsBalance not sufficient to withdraw stake.
SlashZeroTotalStakeCannot slash zero total stake.