BEP20 token not showing total supply as i entered on code on bscscan

793 Views Asked by At

I have deployed a BEP20 token. I followed the steps shown in this tutorial https://docs.binance.org/smart-chain/developer/issue-BEP20.html and I entered total supply = 60000000000 but after varifying, the total supply is not showing which was I entered. Can anyone help me to add the total supply? The contract address is 0xE2cFe49999e3a133EaFE13388Eb47BCd223f5c5E

1

There are 1 best solutions below

3
On

Your token uses 18 decimal places. Which means that the value 60000000000 hardcoded on line 359 of your contract represents 0.00000006 of the token. The BSCScan token tracker shows total supply 0 AAG just because it rounds to some predefined amount of decimals.

If you want a total supply of 60 billion, you need to add 18 zeros after this number to account for the decimals.

_totalSupply = 60000000000 * 1e18;