Open code423n4 opened 3 years ago
pauliax
Uneccesarry multiplication by 1 here: require(initialization._fee < 1 * PoolSwapLibrary.WAD_PRECISION, "Fee >= 100%");
require(initialization._fee < PoolSwapLibrary.WAD_PRECISION, "Fee >= 100%");
Agree with the finding 1 * X is X
Handle
pauliax
Vulnerability details
Impact
Uneccesarry multiplication by 1 here: require(initialization._fee < 1 * PoolSwapLibrary.WAD_PRECISION, "Fee >= 100%");
Recommended Mitigation Steps
require(initialization._fee < PoolSwapLibrary.WAD_PRECISION, "Fee >= 100%");