Astar icon indicating copy to clipboard operation
Astar copied to clipboard

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

Open Dinonard opened this issue 1 year ago • 0 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.

Dinonard avatar Feb 13 '24 07:02 Dinonard