code-423n4 / 2021-11-streaming-findings

0 stars 0 forks source link

Gas optimization: Use else if for mutually exclusive conditions #205

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

gzeon

Vulnerability details

Impact

Use else if for mutually exclusive conditions to save gas https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L662 https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L679

itsmetechjay commented 2 years ago

Withdrawn by warden. Per gzeon, the finding was submitted incorrectly.