Skip to content

Commit f629bae

Browse files
committed
fix: supply must consider the token decimals
1 parent 1abfa66 commit f629bae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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);
253+
_mint(initialMintRecipient, Parameters.SUPPLY * 10 ** decimals());
254254
}
255255

256256
/// @inheritdoc ERC20Upgradeable

src/libs/Parameters.sol

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

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

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

1111
/// @notice The quorum ration numerator.

0 commit comments

Comments
 (0)