Skip to content

Commit b0c666d

Browse files
committed
refactor: remove args from modifier
1 parent 48b5d54 commit b0c666d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/tokenDistribution/MetaTokenDistributor.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Clones} from "@openzeppelin/contracts/proxy/Clones.sol";
77
import {MetaToken} from "src/MetaToken.sol";
88

99
import {IMetaTokenDistributor} from "./interfaces/IMetaTokenDistributor.sol";
10-
import {Vesting, IVesting} from "./vesting/Vesting.sol";
10+
import {IVesting} from "./vesting/Vesting.sol";
1111
import {IVestingParams} from "./vesting/interfaces/IVestingParams.sol";
1212
import {Schedule, Beneficiary, VestingType} from "./utils/Common.sol";
1313

@@ -34,7 +34,7 @@ contract MetaTokenDistributor is IMetaTokenDistributor {
3434
mapping(VestingType vestingType => address vesting) private _vestingAddresses;
3535

3636
/// @dev Validate start vesting time
37-
modifier validateTime(VestingType vestingType) {
37+
modifier validateTime() {
3838
uint64 startTime = _vestingParams.getStartTime();
3939

4040
if (block.timestamp < startTime) {
@@ -65,7 +65,7 @@ contract MetaTokenDistributor is IMetaTokenDistributor {
6565
* @return vesting Address of created vesting contract
6666
* @dev Any can start vesting after start time
6767
*/
68-
function startVesting(VestingType vestingType) external validateTime(vestingType) returns (address vesting) {
68+
function startVesting(VestingType vestingType) external validateTime returns (address vesting) {
6969
if (_vestingAddresses[vestingType] != address(0)) {
7070
revert VestingHasAlreadyStarted();
7171
}

test/tokenDistribution/vesting/Vesting.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {MetaToken} from "src/MetaToken.sol";
1111
import {VestingType, Beneficiary, Schedule, Period} from "src/tokenDistribution/utils/Common.sol";
1212

1313
contract VestingTest is Test {
14-
uint256 public constant MONTH = 30;
14+
uint256 public constant MONTH = 30 days;
1515
uint256 public constant BASIS_POINTS = 10_000; // the same vesting contract
1616

1717
uint256 public constant SCHEDULE_TGE_PORTION = 2000;

0 commit comments

Comments
 (0)