I read UNDERSTAND THE ERC-20 TOKEN SMART CONTRACT and I have a three questions.
- What actions updates it? I only see a value set at the point of contract creation. My guess will be burn and mint actions (or are there other actions?). Which leads to the second question
- Why is Mint and Burn not part of the ERC20 interface?
- The total supply is assigned to
balances[msg.sender]
. Correct me if I am wrong, but this means the account that deployed the contract basically owns all the tokens at the beginning? Is there not some security worry here? If the private key is compromised that the funds can be moved from it to any other accounts! Has there been cases of exploits that happened because of this? In real life situation how do people handle this security risks? Are there a different kind of ERC20 where supply is spread and held by multiple accounts?
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments