No Maximum Supply limit was added in the contract
The contract lacks a mechanism to set a maximum supply limit for the stablecoin, allowing the owner to mint an unlimited number of tokens, which could reduce trust by users.
Without a maximum supply limit, the owner could potentially mint an excessive number of tokens, which might undermine the trust ofthe stablecoin.
Remix, VsCode
To avoid the risk of excessive token minting, you can set a maximum supply limit for the stablecoin. Here's an example of how you can implement it:
In this example, the MAX_SUPPLY constant is set to the desired maximum supply limit. The mint function now checks if the total supply plus the minted amount exceeds this limit before performing the minting operation.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.