Skip to content

Commit dcaab33

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libs/Parameters.sol

Lines changed: 4 additions & 4 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.
6-
uint256 internal constant SUPPLY = 1_000_000_000;
5+
/// @notice The total supply of the token amounting to 1 bn (10^9) XAN tokens with 18 decimals).
6+
uint256 internal constant SUPPLY = 10 ** (9 + 18);
77

8-
/// @notice The minimal locked supply required for upgrades.
9-
uint256 internal constant MIN_LOCKED_SUPPLY = 250_000_000;
8+
/// @notice The minimal locked supply required for upgrades amounting to 25% of the total supply.
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)