Closed code423n4 closed 2 years ago
p4st13r4
sYETIToken.sol has a useless require in mint function:
sYETIToken.sol
mint
require(msg.sender != address(0), "Zero address");
https://github.com/code-423n4/2021-12-yetifinance/blob/main/packages/contracts/contracts/YETI/sYETIToken.sol#L175
Editor
Remove it to save on gas
@LilYeti Duplicate #103
Handle
p4st13r4
Vulnerability details
Impact
sYETIToken.sol
has a useless require inmint
function: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