当我在BSCSCAN上输入代码时,BEP20令牌未显示全部供应

发布于 2025-01-27 23:54:43 字数 336 浏览 4 评论 0原文

我已经部署了一个BEP20令牌。我遵循本教程中显示的步骤 https:https://docs.binance。 org/smart-chain/developer/devision-bep20.html 我输入了总电源= 60000000000,但是变化后,总电源并未显示我输入了哪个。谁能帮我添加总供应?合同地址是0xE2CFE49999E3A13333388EB47BCD2223F5C5E

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与清晨阳光 2025-02-03 23:54:43

您的令牌使用18个小数点。这意味着值60000000000在合同的第359行上进行了硬编码,代表令牌的0.00000006。 bscscan noreferrer“> token tracker”预定量的小数。

如果您想总供应600亿,则需要在此数字之后添加18个零以说明小数。

_totalSupply = 60000000000 * 1e18;

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;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文