@@ -18,6 +18,9 @@ import "../../utils/Context.sol";
18
18
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
19
19
* to implement supply mechanisms].
20
20
*
21
+ * The default value of {decimals} is 18. To change this, you should override
22
+ * this function so it returns a different value.
23
+ *
21
24
* We have followed general OpenZeppelin Contracts guidelines: functions revert
22
25
* instead returning `false` on failure. This behavior is nonetheless
23
26
* conventional and does not conflict with the expectations of ERC20
@@ -45,9 +48,6 @@ contract ERC20 is Context, IERC20, IERC20Metadata {
45
48
/**
46
49
* @dev Sets the values for {name} and {symbol}.
47
50
*
48
- * The default value of {decimals} is 18. To select a different value for
49
- * {decimals} you should overload it.
50
- *
51
51
* All two of these values are immutable: they can only be set once during
52
52
* construction.
53
53
*/
@@ -77,8 +77,8 @@ contract ERC20 is Context, IERC20, IERC20Metadata {
77
77
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
78
78
*
79
79
* Tokens usually opt for a value of 18, imitating the relationship between
80
- * Ether and Wei. This is the value {ERC20} uses, unless this function is
81
- * overridden;
80
+ * Ether and Wei. This is the default value returned by this function, unless
81
+ * it's overridden.
82
82
*
83
83
* NOTE: This information is only used for _display_ purposes: it in
84
84
* no way affects any of the arithmetic of the contract, including
0 commit comments