#41886 [SC-Low] Full or Large WBERA reward collects can be blocked by small amounts
Description
Brief/Intro
Vulnerability Details
function depositReward() public payable {
require(msg.value > 0, "Must send value");
@> accumulatedRewards += msg.value;
emit RewardDeposited(msg.sender, msg.value);
}
--- SNIPPED ---
function depositWBERA(uint256 amount) external {
@> wbera.withdraw(amount);
this.depositReward{
value: amount
}();
}Impact Details
Recommendation
References
Proof of Concept
Proof of Concept
Runnable PoC
Conceptual PoC
Previous#41890 [SC-Insight] MoneyBrinter vault does not consider Farm's staking capNext#41894 [SC-Critical] Incorrect calculation of deposited rewards yeet leads to Staker's not being able to get their staked amount back
Was this helpful?