The sellProfits()
function in Fees
contract is intended to swap the specified tokens to WETH using Uniswap's SwapRouter
. This function will not work because the SwapRouter
contract is never approved to spend the Fees
contract's balance.
The implementation of sellProfits
function looks like this:
It uses swapRouter
contract's method exactInputSingle
to swap the Fees
contract's balance of token _profits
to WETH
. However, the Fees
contract never approves the swapRouter
to spend its balance of _profits
token, therefore the function will always revert.
Function sellProfits()
is not working.
Manual Review
Approve the swapRoute
to spend the tokens before calling the exactInputSingle
method.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.