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

0 stars 0 forks source link

ERC20_8 totalSupply is always 0 #236

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

contract ERC20_8 does not update _totalSupply on _mint/_burn, so it always remains 0.

Recommended Mitigation Steps

Increase total supply on mint and decrease on burn.

kingyetifinance commented 2 years ago

Duplicate #128

alcueca commented 2 years ago

Duplicate of #259

alcueca commented 2 years ago

Assets are not a risk, code is incorrect as to spec. Low severity.