Submitted by Picodes, also found by cccz
https://github.com/Plex-Engineer/lending-market/blob/ab31a612be354e252d72faead63d86b844172761/contracts/ERC20.sol#L33
https://github.com/Plex-Engineer/lending-market/blob/ab31a612be354e252d72faead63d86b844172761/contracts/ERC20.sol#L95
For an obscure reason as its not commented, _totalSupply is not initialized to 0, leading to an inaccurate total supply, which could easily break integrations, computations of market cap, etc.
If the constructor is called with _initialSupply = 1000, then 1000 tokens are minted. The total supply will be 2000.
Remove _initialSupply.
tkkwon1998 (Canto) disputed and commented:
Picodes (warden) commented:
Alex the Entreprenerd (judge) commented:
Alex the Entreprenerd (judge) commented:
