Skip to main content

REWARD_PRECISION

Constant REWARD_PRECISION 

Source
pub const REWARD_PRECISION: u128 = 1_000_000_000_000;
Expand description

Scaling factor for reward-per-token accumulator (1e12).

This provides 12 decimal places of precision. Enough for any practical staking scenario without overflowing u128 for reasonable token amounts.