11// SPDX-License-Identifier: UNLICENSED
22pragma solidity 0.8.28 ;
33
4- import {Test, console } from "forge-std/Test.sol " ;
4+ import {Test} from "forge-std/Test.sol " ;
55import {IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
66
77import {MetaTokenDistributor, IMetaTokenDistributor} from "src/tokenDistribution/MetaTokenDistributor.sol " ;
88import {Vesting} from "src/tokenDistribution/vesting/Vesting.sol " ;
99import {VestingParams} from "src/tokenDistribution/vesting/VestingParams.sol " ;
10- import {Beneficiary, VestingType, Schedule } from "src/tokenDistribution/utils/Common.sol " ;
10+ import {Beneficiary, VestingType} from "src/tokenDistribution/utils/Common.sol " ;
1111
1212contract MetaTokenDistributorTest is Test {
1313 uint256 public constant MONTH = 30 days ;
@@ -22,6 +22,7 @@ contract MetaTokenDistributorTest is Test {
2222 address liquidityBeneficiary;
2323
2424 function setUp () external {
25+ // forge-lint: disable-next-line(unsafe-typecast)
2526 vestingStartTime = uint64 (block .timestamp + MONTH);
2627 (Beneficiary[] memory teamBeneficiaries , Beneficiary[] memory liquidityBeneficiaries ) = _generateBeneficiaries ();
2728
@@ -34,7 +35,7 @@ contract MetaTokenDistributorTest is Test {
3435
3536 function test_deploy () external view {
3637 assertEq (distributor.getVestingParamsAddress (), address (vestingParams));
37- assertNotEq (distributor.getMETAAddress (), address (0 ));
38+ assertNotEq (distributor.getMetaAddress (), address (0 ));
3839 assertNotEq (distributor.getVestingImplAddress (), address (0 ));
3940 }
4041
@@ -56,8 +57,8 @@ contract MetaTokenDistributorTest is Test {
5657
5758 assertNotEq (teamVesting, address (0 ));
5859
59- IERC20 META = IERC20 (distributor.getMETAAddress ());
60- assertEq (META .balanceOf (teamVesting), vestingParams.TEAM_TOTAL_AMOUNT ());
60+ IERC20 meta = IERC20 (distributor.getMetaAddress ());
61+ assertEq (meta .balanceOf (teamVesting), vestingParams.TEAM_TOTAL_AMOUNT ());
6162 }
6263
6364 function test_deploy_revertIfZeroAddress () external {
@@ -72,12 +73,12 @@ contract MetaTokenDistributorTest is Test {
7273
7374 function test_startVesting () external {
7475 vm.warp (vestingStartTime);
75- IERC20 META = IERC20 (distributor.getMETAAddress ());
76+ IERC20 meta = IERC20 (distributor.getMetaAddress ());
7677
7778 address vesting = distributor.startVesting (VestingType.TEAM);
7879
79- assertEq (META .balanceOf (vesting), vestingParams.TEAM_TOTAL_AMOUNT ());
80- assertEq (META .balanceOf (address (distributor)), META .totalSupply () - vestingParams.TEAM_TOTAL_AMOUNT ());
80+ assertEq (meta .balanceOf (vesting), vestingParams.TEAM_TOTAL_AMOUNT ());
81+ assertEq (meta .balanceOf (address (distributor)), meta .totalSupply () - vestingParams.TEAM_TOTAL_AMOUNT ());
8182 assertNotEq (vesting, address (0 ));
8283 assertNotEq (distributor.getVestingAddress (VestingType.TEAM), address (0 ));
8384 }
0 commit comments