User Controls

BEP20 Tokenomics maths coding problem

  1. #1
     constructor() public {
    _name = {{TOKEN_NAME}};
    _symbol = {{TOKEN_SYMBOL}};
    _decimals = {{DECIMALS}};
    _totalSupply = {{TOTAL_SUPPLY}};
    _balances[msg.sender] = _totalSupply;

    emit Transfer(address(0), msg.sender, _totalSupply);

    When I put
    _decimals = 4;
    _totalSupply = 10000

    it only minted 1 token I think because I put 4 decimals. If I put 8 decimals will it make 10,000 tokens?
Jump to Top