AstarNetwork / astar-frame

Core frame modules for Astar & Shiden network.
Other
58 stars 38 forks source link

Individual Claim #6

Closed Dinonard closed 2 years ago

Dinonard commented 2 years ago

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.

TODO

Check list

codespool commented 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?

Dinonard commented 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?

Oh, I didn't rename the variable name. I will do it now. The type is RewardDestination though, even here.

Dinonard commented 2 years ago

@codespool You can rebase on the default branch now. No more force-pushes :D