Uniswap v3 router address and a fee value of 3000
are hardcoded.
The address 0xE592427A0AEce92De3Edee1F18E0157C05861564
is hardcoded as the Uniswap v3 router address. Based on UniswapV3 documentation this address if for Mainnet
, Goerli
, Arbitrum
, Optimism
, Polygon
. Celo
blockchain has another address, will not be supported.
A fee value of 3000
is hardcoded in the ExactInputSingleParams
structure within the sellProfits
function. Uniswap pools with another fee are not supported.
Any changes to these values require a modification of the contract code and redeployment.
Manual review
Instead of hardcoding the values, consider parameterizing them through the constructor or configurable methods. This allows for greater flexibility and adaptability to network changes.
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.