Open code423n4 opened 2 years ago
hickuphh3
In getUserTokenAmount(), I presume that the pool is initialized for testing / development purposes. However, it was not commented out / removed, and becomes unused in the function.
getUserTokenAmount()
Redundant
IUniswapV3Pool pool = IUniswapV3Pool( PoolAddress.computeAddress( positionManager.factory(), PoolAddress.PoolKey({ token0: token0, token1: token1, fee: fee }) ) ); // (, int24 currentTick, , , , , ) = pool.slot0();
Remove or uncomment the lines mentioned above.
Handle
hickuphh3
Vulnerability details
Impact
In
getUserTokenAmount()
, I presume that the pool is initialized for testing / development purposes. However, it was not commented out / removed, and becomes unused in the function.Redundant
Recommended Mitigation Steps
Remove or uncomment the lines mentioned above.