Expand description
Opt-in staking [rewards system] for TIP-20 tokens.
Token holders opt in by setting a reward recipient via TIP20Token::set_reward_recipient.
Rewards are distributed pro-rata across the opted-in supply and tracked via a global
reward-per-token accumulator scaled by ACC_PRECISION.
Modules§
Structs§
- User
Reward Info - Per-user reward tracking state for the opt-in staking rewards system.
- User
Reward Info Handler - Type-safe handler for accessing
#struct_namein storage.
Constants§
- ACC_
PRECISION - Precision multiplier for reward-per-token accumulator (1e18).