The function sellProfits
will selling _profits
to WETH
through swap router but missing a _profits
token approval for the router which will cause the transaction revert.
The function sellProfits
will selling _profits
to WETH
through swap router, and this operation should authorize the swap router spending _profits
token, more specifically sending the profit token to the pool and swapping.
However, there is no authorize/approval operation before invoking the swapRouter.exactInputSingle(params);
at L42, which will cause the transaction revert.
The missing token approval will cause the selling profit transaction revert.
Manual
Recommend adding token approval operation before the swapRouter.exactInputSingle
.
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.