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

Permanent lock of funds in Fees contract due lack of token spending approval

Summary

The tokens sent to the Fees contract are potentially locked permanently as there is no token spending approval to the uniswap router before the swap.

Vulnerability Details

When swapping profits in Fees.sol the sellProfits function performs a UniswapV3 swap. However, the required _profits spending allowance for the ISwapRouter swapRouter contract is missing. This leads to a revert due to insufficient allowance.

Impact

Permanent lock of funds

Tools Used

Manual review

Recommendations

Add token spending allowance for the swapRouter before executing a swap.

Support

FAQs

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

Give us feedback!