Closed Dinonard closed 2 years ago
Found this while fixing my own PR: you're still using reward_handling property name in migrations: https://github.com/AstarNetwork/astar-frame/blob/6df33856f0616fcecf21e5bb593a444961c9bbe5/frame/dapps-staking/src/migrations.rs#L548 is that intentional?
Found this while fixing my own PR: you're still using reward_handling property name in migrations:
is that intentional?
Oh, I didn't rename the variable name. I will do it now.
The type is RewardDestination
though, even here.
@codespool You can rebase on the default branch now. No more force-pushes :D
Pull Request Summary
Main purpose of this commit is to solve scalability problems with the former
claim
implementation. Instead of using group claims, each staker will now be responsible for claiming their own rewards.This entails changes in storage schema and other extrinsic calls.
DAppState
Forcing
enum of unused valuesEraStakingPoints
now contains info about staked value, number of stakers and whether dapp rewards were claimed for an eraStakerInfo
is a new struct which handles(staker, contract)
info storage in a scalable mannerRewardHandling
enum as preparation for future task (to avoid storage migration)HistoryDepth
limit has been removedBonusEraDuration
has been removed as it serves no purpose anymorewithdraw_from_unregistered
to cleanup stakes after contract was removedclaim_staker
andclaim_dapp
TODO
Check list