AstarNetwork/Astar

dApp staking v3 - storing reward per staked ASTR instead of the reward pool

Dinonard opened this issue · 1 comments

Description

To simplify off-chain calculations, we could store reward per staked ASTR value into the reward info, instead of the overall reward pool.

This would help since off-chain integrations would not need to worry about matching Rust/polkadot-sdk's rounding logic.

It's a minor improvement suggestion.

Not relevant at this point, solution is stable & no need to introduce such a change.