# User can make their `veNFT` unpokeable by voting for a to-be-killed gauge

Voting a dust amount to a soon-to-be-killed gauge makes the veNFT unpokeable, preserving stale inflated voting weight for extra emissions and bribes.

- Payout: Audit contest
- Severity: medium
- Program: Velocimeter
- Found by: bughuntoor
- Disclosed: 2024-06-27
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-06-velocimeter-judging/issues/208
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-06-velocimeter%3AM-5
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:business-logic vuln:dos

**Target:** Voter.sol _vote / poke logic
**Root cause:** _vote reverts with 'gauge already dead' when iterating a veNFT's existing votes, so once a voted gauge is killed the whole poke/revote transaction reverts, freezing the veNFT's stale weight.
**Steps:**
1. Identify a gauge scheduled to be killed.
2. Vote most weight to desired pool and a dust amount to the to-be-killed gauge via `vote`.
3. Wait for the gauge to be killed (isAlive[_gauge] = false).
4. Any poke/revote now reverts at `require(isAlive[_gauge], "gauge already dead")` in `_vote`.
5. veNFT retains stale decaying weight, over-crediting the chosen pool and bribes.
**How found:** Reasoned about poke's role in correcting linearly-decaying vote weights, then read _vote's isAlive require and realized a dead gauge in the vote set bricks the whole poke loop.
**Exploitation:** Attacker votes dust to a doomed gauge; after kill, poke reverts so their veNFT keeps contributing its old (higher) balance to the preferred pool, earning excess emissions and bribes until unlock.
**Insight:** When a batch/loop function iterates stored user choices, a single now-invalid entry that reverts (rather than being skipped) can permanently DoS the maintenance path — check kill/removal flows against any loop over historical votes.

