# Define parameters in ERC20

**URL:** <https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780>\
**Category:** Contracts\
**Created:** [November 26, 2020, 12:02am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780 "2020-11-26T00:02:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AktiViti](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@AktiViti](https://forum.openzeppelin.com/u/AktiViti)\
**Post date:** [November 26, 2020, 12:02am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/1 "2020-11-26T00:02:53Z")

</div>

Have been finding it very difficult building a Mintable, Burnable, Pausable token with the latest solidity version despite having access to the files here.

Please, I need assistance especially on how to configure the constructor or define the parameters of the token like Name, Symbol, Total Supply, Decimal.

Thank you.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 26, 2020, 12:19am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/2 "2020-11-26T00:19:43Z")

</div>

Hi @AktiViti,

Welcome to the community 👋

I suggest looking at the following tutorials:

- [Create an ERC20 using Remix, without writing Solidity](https://forum.openzeppelin.com/t/create-an-erc20-using-remix-without-writing-solidity/2908)
- [Create an ERC20 using Truffle, without writing Solidity](https://forum.openzeppelin.com/t/create-an-erc20-using-truffle-without-writing-solidity/2713)

---

<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:** [November 26, 2020, 1:25am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/3 "2020-11-26T01:25:07Z")

</div>

Just like so:

```auto
pragma solidity 0.6.12;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";

contract MyToken is Initializable, ERC20Upgradeable {
    function initialize(string memory name, string memory symbol, uint256 initialSupply) public virtual initializer {
        __ERC20_init(name, symbol);
        _mint(_msgSender(), initialSupply);
    }
}

```

Then you can set for `name`, `symbol` and `totalSupply`, BTW, the default decimals is 18, so if you want to set it for another value, you also need to call the function `_setReserveDecimals()` to set a new value.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 26, 2020, 2:11am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/4 "2020-11-26T02:11:45Z")

</div>

Hi @AktiViti,

Please note, the example from @Skyge above can be used with upgradeable contracts: [Create upgradeable ERC20](https://forum.openzeppelin.com/t/create-upgradeable-erc20/4782/2)

For a non-upgradeable contract you could look at the following: [Deploy a simple ERC20 token in Remix](https://forum.openzeppelin.com/t/deploy-a-simple-erc20-token-in-remix/1203)

---

<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:** [November 26, 2020, 2:24am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/5 "2020-11-26T02:24:45Z")

</div>

Thanks for your kind remind.

---

<div class="post-metadata">

**Author:** ![AktiViti](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@AktiViti](https://forum.openzeppelin.com/u/AktiViti)\
**Post date:** [November 26, 2020, 2:27am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/6 "2020-11-26T02:27:40Z")

</div>

Thank you for your assistance. But i want it to be mintable, pausable, and burnable. How do i implement in ERC20UpgradablePresetMinterPauser

---

<div class="post-metadata">

**Author:** ![AktiViti](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@AktiViti](https://forum.openzeppelin.com/u/AktiViti)\
**Post date:** [November 26, 2020, 2:29am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/7 "2020-11-26T02:29:00Z")

</div>

I observed that. Thank you.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 26, 2020, 2:34am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/8 "2020-11-26T02:34:42Z")

</div>

Hi @AktiViti,

Please use one of the following tutorials to use the Preset ERC20:

> [@abcoathup](#):
>
> - [Create an ERC20 using Remix, without writing Solidity](https://forum.openzeppelin.com/t/create-an-erc20-using-remix-without-writing-solidity/2908)
> - [Create an ERC20 using Truffle, without writing Solidity](https://forum.openzeppelin.com/t/create-an-erc20-using-truffle-without-writing-solidity/2713)

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 26, 2020, 2:38am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/9 "2020-11-26T02:38:32Z")

</div>

Hi @Skyge,

Thanks for being an awesome member of the community 🙏

I really appreciate your contribution.

---

<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:** [November 26, 2020, 2:53am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/10 "2020-11-26T02:53:33Z")

</div>

Ohh, it is my pleasure!

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 30, 2020, 3:39am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/11 "2020-11-30T03:39:54Z")

</div>

Hi @AktiViti,

Did you get to try one of the tutorials using the Preset ERC20?

---

<div class="post-metadata">

**Author:** ![AktiViti](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@AktiViti](https://forum.openzeppelin.com/u/AktiViti)\
**Post date:** [November 30, 2020, 9:03am UTC](https://forum.openzeppelin.com/t/define-parameters-in-erc20/4780/12 "2020-11-30T09:03:18Z")

</div>

Yes. It worked.  
Thank you so much for your assistance.
