Skip to content

Commit d6279ad

Browse files
committed
refactor: supply parameters to include decimals
1 parent f629bae commit d6279ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/XanV1.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ contract XanV1 is IXanV1, Initializable, ERC20Upgradeable, ERC20BurnableUpgradea
250250
/// @custom:oz-upgrades-unsafe-allow missing-initializer-call
251251
// solhint-disable-next-line func-name-mixedcase
252252
function __XanV1_init_unchained(address initialMintRecipient) internal onlyInitializing {
253-
_mint(initialMintRecipient, Parameters.SUPPLY * 10 ** decimals());
253+
_mint(initialMintRecipient, Parameters.SUPPLY);
254254
}
255255

256256
/// @inheritdoc ERC20Upgradeable

src/libs/Parameters.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
pragma solidity ^0.8.30;
33

44
library Parameters {
5-
/// @notice The total supply of the token amounting to 1 bn (10^9).
6-
uint256 internal constant SUPPLY = 1_000_000_000;
5+
/// @notice The total supply amounting to 1 bn (10^9) tokens with 18 decimals.
6+
uint256 internal constant SUPPLY = 10 ** (9 + 18);
77

88
/// @notice The minimal locked supply required for upgrades amounting to 25% of the total supply.
9-
uint256 internal constant MIN_LOCKED_SUPPLY = 250_000_000;
9+
uint256 internal constant MIN_LOCKED_SUPPLY = SUPPLY / 4;
1010

1111
/// @notice The quorum ration numerator.
1212
uint256 internal constant QUORUM_RATIO_NUMERATOR = 1;

0 commit comments

Comments
 (0)