29059 - [SC - Medium] Race condition in StakingBonus will result in s...
Description
Brief/Intro
Vulnerability Details
function calculateBonus(
uint256 amount
) public view override returns (uint256) {
uint256 bonus = (amount * bonusBps) / 100;
// if we don't have enough funds to pay out bonuses, then return 0
if (zero.balanceOf(address(this)) < bonus) return 0;
return (amount * bonusBps) / 100;
}Impact Details
Proof of Concept
Previous29052 - [SC - Medium] Pool funds could be locked due to Division by zeroNext29062 - [SC - Critical] Attacker can steal locked balance of staked nft...
Last updated
Was this helpful?