DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: medium
Invalid

Underlying token balance is not checked in `StrategyMainnet::claimAndSwap`

Summary

Balance of underying token is not checked in claimAndSwap function of StrategyMainnet contract.

Vulnerability Details

claimAndSwap function of op and arb contract does check for underlying tokens but for mainnet this check is missing.

uint256 underlyingBalance = underlying.balanceOf(address(this));
require(underlyingBalance >= _amount, "not enough underlying balance");

This check is not in mainnet contract so it should be added.

Impact

Underlying balance can be lower than amount which is not checked.

Tools Used

Manual Review

Recommendations

Protocol should check balance of underlying tokens are greater than amount as checked in op and arb contracts.

Updates

Appeal created

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.