MultiversX Tracker is Live!

Questions about ERC20 Tokens

Etherum Reddit

More / Etherum Reddit 128 Views

I read UNDERSTAND THE ERC-20 TOKEN SMART CONTRACT and I have a three questions.

  1. 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
  2. Why is Mint and Burn not part of the ERC20 interface?
  3. 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?
submitted by /u/finlaydotweber
[link] [comments]
Get BONUS $200 for FREE!

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