#41894 [SC-Critical] Incorrect calculation of deposited rewards yeet leads to Staker's not being able to get their staked amount back
Description
Brief/Intro
Vulnerability Details
Impact Details
References
Proof of Concept
POC: (NOTE: StakingToken is YEET)
Step 0: Checking Current Balances
Step 1: Staking
Step 2: Initiating Unstaking process
Step 3: Manager checks amount of stakingToken available for distribution by calling StakingV2::accumulatedDeptRewardsYeet. This function will return 100e18(150e18 - 50e18).
StakingV2::accumulatedDeptRewardsYeet. This function will return 100e18(150e18 - 50e18).Step 4: Manager calls StakingV2::executeRewardDistributionYeet to distribute yeet rewards.
StakingV2::executeRewardDistributionYeet to distribute yeet rewards.Step 5: Finalize unstaking and get unStakeAmount back
Previous#41886 [SC-Low] Full or Large WBERA reward collects can be blocked by small amountsNext#41895 [SC-Medium] Potential loss of token0, token1 in the MoneyBrinter contract
Was this helpful?