Checks are missing in transfer function like -
Zero amount swap
Self transfer REF
The sellProfits()
function performs a swap on Uniswap, but there is no check that the amount swapped is greater than 0. If amount is 0, the swap call will still be made, consuming gas unnecessarily.
The require
statement in the sellProfits
function could be more specific. Instead of simply checking that _profits
is not equal to WETH
, the statement could check that _profits
is not equal to WETH
and that it is not equal to the address of the contract itself.
The contract could lose the funds or consuming gas unnecessarily
Manual code review
Add checks to integrate the solution of this vulnerability
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.