F-2024-0012·dead-code
Redundant Code in validatePool
TL;DR
validatePool contains an if/else branch where both arms return the same expression, making the conditional redundant.
Severity
INFO
Impact
LOW
Likelihood
LOW
Method
MManual review
CAT.
Complexity
LOW
Exploitability
LOW
02Section · Description
Description
In WEDXswap::validatePool the code below is redundant:
solidity
if (tokenIn != WNATIVE) {result = exInfo(j, uniAllowedFees[i], refLiquidity);} else {result = exInfo(j, uniAllowedFees[i], refLiquidity);}
03Section · Recommendation
Recommendation
Consider removing and leave result = exInfo(j, uniAllowedFees[i], refLiquidity);.

