Skip to content

Commit f0df540

Browse files
committed
refactor: clarified supply calculation in test
1 parent 376e088 commit f0df540

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/XanV1.unit.t.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,11 @@ contract XanV1UnitTest is Test {
626626
assertEq(_xanProxy.lockedSupply(), 3 * valueToLock);
627627
}
628628

629-
function test_initialize_mints_1_billion_tokens() public view {
630-
uint256 expectedSupply = 10 ** 9 * (10 ** _xanProxy.decimals());
629+
function test_initialize_mints_the_expected_supply_amounting_to_1_billion_tokens() public view {
630+
uint256 expectedTokens = 10 ** 9;
631+
632+
// Consider the decimals for the expected supply.
633+
uint256 expectedSupply = expectedTokens * (10 ** _xanProxy.decimals());
631634

632635
assertEq(Parameters.SUPPLY, expectedSupply);
633636
assertEq(_xanProxy.totalSupply(), expectedSupply);

0 commit comments

Comments
 (0)