Gas: Use else if
in withdrawLiquidity
#148
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cmichel
Vulnerability details
The
if
conditions inPool.withdrawLiquidity
are distinct conditions on the pool status.Therefore,
else if
is semantically equivalent but more gas efficient.The text was updated successfully, but these errors were encountered: