#41521 [SC-Critical] Unstaked tokens incorrectly counted as rewards during vesting period
Description
Brief/Intro
Vulnerability Details
function accumulatedDeptRewardsYeet() public view returns (uint256) {
@> return stakingToken.balanceOf(address(this)) - totalSupply;
}Impact Details
The severity assessment
References
Proof of Concept
Proof of Concept
Previous#41511 [SC-Low] The contract calculates the `minimumYeetPoint` using the Pot going to the winner instead of the whole Pot.Next#41524 [SC-Critical] Incorrect Reward Calculation in accumulatedDeptRewardsYeet() Function Leads to Loss of User Funds During Vesting Period
Was this helpful?