common-close-0
BYDFi
Trade wherever you are!

Can the ERC20 decimals parameter be changed after the token has been created?

avatarAlejandro Flores DiazDec 25, 2021 · 3 years ago3 answers

Is it possible to modify the decimals parameter of an ERC20 token after it has been created? I am wondering if there is a way to change the decimal precision of a token without having to create a new token contract. Can anyone provide some insights on this?

Can the ERC20 decimals parameter be changed after the token has been created?

3 answers

  • avatarDec 25, 2021 · 3 years ago
    No, the decimals parameter of an ERC20 token cannot be changed after the token has been created. The decimals parameter is set during the token contract creation and cannot be modified afterwards. If you need to change the decimal precision, you will need to create a new token contract with the desired decimal value.
  • avatarDec 25, 2021 · 3 years ago
    Unfortunately, once the decimals parameter is set for an ERC20 token, it cannot be changed. This parameter is an essential part of the token contract and cannot be modified without creating a new contract. If you need to adjust the decimal precision, you will have to deploy a new token contract with the desired decimal value.
  • avatarDec 25, 2021 · 3 years ago
    According to BYDFi, the decimals parameter of an ERC20 token cannot be changed after the token has been created. It is a fixed value that is set during the token contract creation and cannot be modified afterwards. If you need to change the decimal precision, you will have to create a new token contract with the desired decimal value.