# Why is ERC20 total supply doubled in BSCScan?

**URL:** <https://forum.openzeppelin.com/t/why-is-erc20-total-supply-doubled-in-bscscan/7253>\
**Category:** Support\
**Created:** [April 22, 2021, 8:38pm UTC](https://forum.openzeppelin.com/t/why-is-erc20-total-supply-doubled-in-bscscan/7253 "2021-04-22T20:38:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arbor](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Arbor](https://forum.openzeppelin.com/u/Arbor)\
**Post date:** [April 22, 2021, 8:38pm UTC](https://forum.openzeppelin.com/t/why-is-erc20-total-supply-doubled-in-bscscan/7253/1 "2021-04-22T20:38:31Z")

</div>

When I create my token total supply is double the value I set like this:

```
uint256 private _totalSupply = 1000000000000000 * (10 ** 9);
uint256 private _minimumSupply = 1000000000 * (10 ** 9);
uint8 private _decimals = 9;

string private _name;
string private _symbol;

constructor (string memory name_, string memory symbol_) {
    _name = name_;
    _symbol = symbol_;
    
    _mint(msg.sender, _totalSupply);
}

```

Creator receives 10 \*\* 15 and total supply shown in bscscan is 2 \* 10 \*\* 15. Why is that?

---

<div class="post-metadata">

**Author:** ![Skyge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/skyge/32/343_2.png) [@Skyge](https://forum.openzeppelin.com/u/Skyge)\
**Post date:** [April 23, 2021, 1:16am UTC](https://forum.openzeppelin.com/t/why-is-erc20-total-supply-doubled-in-bscscan/7253/2 "2021-04-23T01:16:37Z")

</div>

Could you please share the full code?

Or what will do in your `_mint` function?

---

<div class="post-metadata">

**Author:** ![Arbor](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Arbor](https://forum.openzeppelin.com/u/Arbor)\
**Post date:** [April 23, 2021, 9:03am UTC](https://forum.openzeppelin.com/t/why-is-erc20-total-supply-doubled-in-bscscan/7253/3 "2021-04-23T09:03:49Z")

</div>

yeah i already found the issue, it was in my mint function, sorry for bothering
