subscan
Runtime Modules / EscrowRewards
Spec Version:
Events
Name
Lookup
Attributes
DepositStake2000["PoolId","StakeId","SignedFixedPoint"]
DistributeReward2001["CurrencyId","SignedFixedPoint"]
WithdrawStake2002["PoolId","StakeId","SignedFixedPoint"]
WithdrawReward2003["PoolId","StakeId","CurrencyId","SignedFixedPoint"]
Storage Functions
Name
Type
TotalStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["NULL"],"value":"I128","keys_id":32,"value_id":84}}
TotalRewards{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"I128","keys_id":51,"value_id":84}}
RewardPerToken{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","NULL"],"value":"I128","keys_id":455,"value_id":84}}
Stake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["NULL","AccountId"],"value":"I128","keys_id":456,"value_id":84}}
RewardTally{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","Tuple:NULLAccountId"],"value":"I128","keys_id":457,"value_id":84}}
RewardCurrencies{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["NULL"],"value":"Vec<interbtc_primitives:CurrencyId>","keys_id":32,"value_id":458}}
Constants
Name
Type
Value
MaxRewardCurrenciesU3201000000
Error Types
Name
Docs
TryIntoIntErrorUnable to convert value.
InsufficientFundsBalance not sufficient to withdraw stake.
ZeroTotalStakeCannot distribute rewards without stake.
MaxRewardCurrenciesMaximum rewards currencies reached.