Open code423n4 opened 2 years ago
0x0x0x
It is cheaper to use != 0 than > 0 for uint256.
!= 0
> 0
SettToRenIbbtcZap.sol#L266 IbbtcVaultZap.sol#L150 IbbtcVaultZap.sol#L163 DepositZapibBTC.vy#L283 DepositZapibBTC.vy#L296
Manual analysis
Factually correct
I would like to correct this fact, as per Ethereum Yellow Paper, its more gas efficient to use !=0 than >0 since the prior uses more opcodes to compute as compared to the latter.
Handle
0x0x0x
Vulnerability details
Impact
It is cheaper to use
!= 0
than> 0
for uint256.Occurences
Tools Used
Manual analysis