UniswapV3Adapter.sol uses the same feeBps
for all tokens, which can lead to non-optimized swap paths, higher fees, or even failed swaps if a pool with the specified feeBps
does not exist.
Owner sets the same feeBps
in UniswapV3Adapter.sol:setPoolFee() for all tokens:
Take for example FeeConversionKeeper.sol which uses the same dexSwapStrategyId
for all assets.
Assume dexSwapStrategyId
is set to contract UniswapV3Adapter
with feeBps = 0.05%
(which is used for most of the pairs WBTC/ETH, USDC/ETH, USDT/ETH) and fee distribution needed for wstETH
.
The only pool for pair wstETH/ETH on Arbitrum currently has feeBps = 0.01%
Swap will fail because Uniswap can't find pool with feeBps = 0.05%
for this tokens.
Using feeBps
for all tokens can lead to non-optimized swap paths, higher fees, or even failed swaps if a pool with the specified feeBps
does not exist.
Manual Review
Dynamically select the most appropriate feeBps
for each token pair based on available pools.
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.