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.

Details

issue found: issue fix: Orex and Corto patch in: Release/12 - Adrena Program v1.0.10 proposal url:

Last updated