preface

On May 11, 2021, the results of the seventh National census were released: as of 00:00 on November 1, 2020, the national population was 14,1177,8724 (excluding Hong Kong, Macao and Taiwan).

In honor of this statistic, I launched this experimental project to issue a dedicated commemorative cryptocurrency

Tokens,

  • Name:Chinese People Coin
  • Code:CPC
  • Total circulation:14117, 7872
  • Minimum unit:1 CPC
  • Execution standard:ERC20
  • Issuing public chain:Binance Smart Chain

The target

  • Commemorating the seventh national census
  • Make it available to everyone
  • Popularize the concept of cryptocurrency

dig

To achieve this goal, CPC has adopted an ultra-low-threshold mining approach that is accessible to everyone

Let’s take a look at the contract mining core code:

function mint() public virtual returns (bool) {
    uint256 amount = 1;
    address account = _msgSender();

    require(_balances[account] == 0."already have some tokens");
    require(_mintTotal < _totalSupply, "all supplied");

    _balances[account] += amount;
    _mintTotal += amount;

    emit Transfer(address(0), account, amount);

    return true;
}
Copy the code

A CPC can be found as long as the following two conditions are met:

  • Your account does not currently have anyCPC
  • Be dug outCPCIt hasn’t reached its total circulation yet

If the project goes well, 14,1177,8724 people will have one coin each through this simple mining mechanism;)

In addition, because CPC is compatible with ERC20 standard, it supports transfer function, so it can help relatives and friends to dig

Mining is simple, but the whole process requires a lot of learning about digital cryptocurrencies

We also hope to achieve the goal of popular science through this process, Have fun;

How to operate

  • The installationMeta MaskBrowser wallet and connectBinance Smart ChainMain:

  • Connect the wallet on the contract page and perform mining:

  • After the transaction is successful, add custom tokens to the wallet and check the balance:

Congratulations to you! Now that you have a CPC, try sharing what you’ve learned about cryptocurrencies with more people

The appendix

  • Wallet installation link: metamask.io/
  • Contract page link: bscscan.com/address/0x3…
  • Ethereum: ethereum.org/zh/
  • BSC:academy.binance.com/zh/articles…

Tips: CPC is an experimental science project and does not constitute investment advice

(End of article)