subscan
Runtime Modules / FarmingRewards
Spec Version:
Events
Name
Lookup
Attributes
DepositStake3e00["PoolId","StakeId","SignedFixedPoint"]
DistributeReward3e01["CurrencyId","SignedFixedPoint"]
WithdrawStake3e02["PoolId","StakeId","SignedFixedPoint"]
WithdrawReward3e03["PoolId","StakeId","CurrencyId","SignedFixedPoint"]
Storage Functions
Name
Type
TotalStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"I128","keys_id":126,"value_id":187}}
TotalRewards{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"I128","keys_id":126,"value_id":187}}
RewardPerToken{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U128","U128"],"value":"I128","keys_id":621,"value_id":187}}
Stake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128","AccountId"],"value":"I128","keys_id":622,"value_id":187}}
RewardTally{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U128","Tuple:U128AccountId"],"value":"I128","keys_id":623,"value_id":187}}
RewardCurrencies{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"Vec<U128>","keys_id":126,"value_id":624}}
Constants
Name
Type
Value
MaxRewardCurrenciesU320a000000
Error Types
Name
Docs
TryIntoIntErrorUnable to convert value.
InsufficientFundsBalance not sufficient to withdraw stake.
ZeroTotalStakeCannot distribute rewards without stake.
MaxRewardCurrenciesMaximum rewards currencies reached.