20,000 USDC
View results
Submission Details
Severity: high
Valid

Fees contract cannot swap because of missing allowance

Summary

Fees contract is supposed to executing swaps on UniswapV3, which fails because of missing allowance.

Vulnerability Details

The Fees contract is used to swap received Fees to WETH and send them to the staking Contract. It uses UNIswapV3 router for this. However there is never any allowance given for the Tokens to swap to the UniswapV3 router contract.
Therefore all swaps would revert

Impact

sellProfits function will always revert because of missing allowance.
Attacker can make profit out of Fees contract by sandwiching a swap.

Tools Used

Manual Review

Recommendations

Call approve for the UniswapV3 router before executing the swap.

Support

FAQs

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