Findings
Issue 01
Type
Severity
Location
Status
Owner Capabilities
Informational
updateFees
Description
The owner can set the buy fee to up to 20% and sell fee to up to 30%
Recommendation
Our recommendation is to lower the upper limit of the fees. Since the contract has already been deployed, we suggest deploying an owner contract with diminished owner capabilities to achieve this goal.
Issue 02
Type
Severity
Location
Status
Volatile Code
Low
_transfer
Description
_transfer calls the external function swapTokensForEth
. Since this function can be called during _transfer
, it may cause _transfer
to fail unnecessarily.
In this particular case, the token owner can turn off the swapping feature to ensure that the token remains tradable
Recommendation
Use try-catch when calling external functions in critical path flows.
Our recommendation is to always make sure error cases are handled gracefully in critical functions such as _transfer.
Issue 03
Type
Severity
Location
Status
Gas Optimization
Informational
Description
The gas fees can be reduced by approving a very large amount of tokens instead of calling the approve function for every swap.
Recommendation
consider calling approve with a very large amount of tokens instead of calling approve for every swap, and only increasing when it's needed.
Last updated