> For the complete documentation index, see [llms.txt](https://adrena.gitbook.io/adrena/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adrena.gitbook.io/adrena/reports/22-10-2024-upgrade-staking-accounting-issue-causing-extra-reward-distribution.md).

# 22/10/2024 - Upgrade staking accounting issue causing extra reward distribution

### What

Upgrading a locked stake allow user to claim rewards for past rounds for newly locked amount. \
Happens when users have unclaimed rewards and upgrade an existing locked stake.

### Impact

Too much USDC claimed by users. Leading to lack of liquidity in reward vault.

### Resolution

* Add a claim\_stakes cpi in upgrade\_locked\_stake instruction.
* Create a special instruction to inject extra USDC in the vault to be patch the USDC gap.&#x20;

### Details

**issue found:** \
**issue fix:** Orex and Corto\
**patch in**: Release/12 - Adrena Program v1.0.10\
**proposal url:**&#x20;
