func Earned
ActionEarned reports the rewards currently owed to `addr` (accrued but unminted), projected to the current block without mutating any state.
Package staking is a simplified, accounting-only port of Synthetix StakingRewards to gno.land. Users stake a fungible...
Package staking is a simplified, accounting-only port of Synthetix StakingRewards to gno.land. Users stake a fungible amount; rewards accrue every block, proportional to each staker's share of the total staked, at a fixed rewardPerBlock. There is no real coin transfer — balances and rewards are plain uint64 accounting (a demonstration of the classic "reward-per-token" accumulator pattern).
Earned reports the rewards currently owed to `addr` (accrued but unminted), projected to the current block without mutating any state.
GetReward mints all accrued rewards into the caller's reward balance and resets the accrual counter. Returns the amount minted this call.
Render renders pool stats and a stakers table.
Stake adds `amount` to the caller's staked balance.
StakedOf reports the current staked balance of `addr`.
Withdraw removes `amount` from the caller's staked balance.