Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: low
Invalid

Unable to swap with uniswap pool that have 1bp fee tier

Vulnerability Details

In UniswapV3Adapter, when setting pool fee, it only allow value 500, 3000 and 10000:

function setPoolFee(uint24 newFee) public onlyOwner {
// revert if the new fee is not 500, 3000 or 10_000
if (newFee != 500 && newFee != 3000 && newFee != 10_000) revert Errors.InvalidPoolFee(); // <--
// set the new fee
feeBps = newFee;
// emit the event
emit LogSetPoolFee(newFee);
}

But in arbitrum, where the protocol will be deployed, it have 1bps fee tier: link. from the function above, it is not able to add this fee tier

Impact

Unable to swap with pools that have 1bps fee tier

Recommendations

Add 1bps fee tier as whitelist in setPoolFee() function

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

[INVALID] Missing Support for 0.01% Fee Tier in `UniswapV3Adapter`

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.