Fixed fee level is used when swapping tokens on Uniswap.
In the SmartVaultV3
contract, the swap
function is employed to swap loan tokens for collateral tokens from liquidations. When constructing ISwapRouter.ExactInputSingleParams
, a fixed fee level of 3000 (0.3%) is utilized. However, not all pools in Uniswap are created with a fee level of 3000.
Using a fixed fee level when swapping tokens may lead to some fee tokens being locked in the contract.
Manual Review.
Pass fee as function parameter
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.