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

0 stars 0 forks source link

Useless require #160

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

p4st13r4

Vulnerability details

Impact

sYETIToken.sol has a useless require in mint function:

require(msg.sender != address(0), "Zero address");

Proof of Concept

https://github.com/code-423n4/2021-12-yetifinance/blob/main/packages/contracts/contracts/YETI/sYETIToken.sol#L175

Tools Used

Editor

Recommended Mitigation Steps

Remove it to save on gas

kingyetifinance commented 2 years ago

@LilYeti Duplicate #103