Tokens do not get approved to be spent by the Uniswap router, which will always make sellProfits
revert and lock any tokens sent to this contract in the process.
In Fees.sol
, sellProfits
does not approve tokens to be spent by the Uniswap router. This will cause any call to sellProfits
to always revert upon calling and will results in all tokens sent to the contract to be locked forever.
This issue will make any ERC20 tokens sent to be contract to be permanently frozen in the contract, hence the high-severity of this finding.
Manual Review
Consider adding something like the following snippet just before to the function to mitigate the issue:
Also, consider making the contract take the tokens out of the user upon calling so that even if something else makes the execution fail the funds will still be in the user's balance.
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.