# USDC rewards will not be distributed if `_updateRewardsStates` is triggered too often

USDC reward rate rounds to zero per-token when _updateRewardsStates is called frequently, letting a griefer deposit 1 wei to block all staker rewards.

- Payout: Audit contest
- Severity: high
- Program: Symm Io Stacking
- Found by: 0xBecket
- Disclosed: 2025-03-05
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2025-03-symm-io-stacking-judging/issues/575
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-03-symm-io-stacking%3AH-1
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:sherlock sev:high tech:solidity vuln:accounting-error vuln:dos vuln:precision-loss vuln:reward-distribution

**Target:** SymmStaking.sol reward accounting (_updateRewardsStates)
**Root cause:** Reward-per-token math uses raw token decimals; for low-decimal tokens like USDC the per-second rate times elapsed divided by total staked rounds down to zero, but lastUpdated still advances, discarding accrued rewards.
**Steps:**
1. Set SYMM total staked supply = 1_000_000e18 and notifyRewardAmount with 1209.6e6 USDC over 604800s -> rate = 2000 units/s
2. Attacker calls `deposit(1 wei)` (or withdraw/claim/notifyRewardAmount) every ~249 blocks, triggering `_updateRewardsStates`
3. perTokenStored increment = 2*2000*1e18/1_000_000e18 = 0, but lastUpdated advances
4. Repeat for the reward period; USDC rewards remain stuck in contract, undistributed to stakers
**How found:** Reading reward accrual math and noticing that low-decimal reward tokens combined with frequent lastUpdated resets cause the per-token increment to round to zero while time still advances.
**Exploitation:** Griefer repeatedly pokes deposit/withdraw with 1 wei SYMM at intervals short enough that the per-token reward delta rounds to zero, resetting lastUpdated each time and permanently forfeiting the USDC reward accrual for all stakers.
**Insight:** When auditing staking/reward contracts, check precision of reward-per-token math against the reward token's decimals and whether any permissionless call resets the accrual timestamp; frequent small pokes can silently zero out accrual for low-decimal tokens like USDC/USDT.

