Skip to content

Commit

Permalink
allows anyone to post vesting schedules
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Adolf <stadolf@gmail.com>
  • Loading branch information
elmariachi111 committed May 7, 2023
1 parent 88790c1 commit e068a34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contracts/TokenVesting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ contract TokenVesting is IERC20Metadata, Ownable, ReentrancyGuard, Pausable {
_createVestingSchedule(_beneficiary, _start, _cliff, _duration, _slicePeriodSeconds, _revokable, _amount);
}

function createPublicVestingSchedule(
address _beneficiary,
uint256 _start,
uint256 _cliff,
uint256 _duration,
uint256 _slicePeriodSeconds,
uint256 _amount
) external {
_createVestingSchedule(_beneficiary, _start, _cliff, _duration, _slicePeriodSeconds, false, _amount);
}

/**
* @notice Creates a new vesting schedule for a beneficiary.
* @param _beneficiary address of the beneficiary to whom vested tokens are transferred
Expand Down

0 comments on commit e068a34

Please sign in to comment.