code-423n4 / 2021-12-yetifinance-findings

0 stars 0 forks source link

Gas: Unnecessary caller != 0 check #210

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

cmichel

Vulnerability details

The sYETIToken.mint function requires msg.sender != address(0) which is never the case as nobody has the private key for the zero EOA. The code can be removed to save gas.

kingyetifinance commented 2 years ago

@LilYeti: Duplicate #103