Skip to content

Latest commit

 

History

History
260 lines (239 loc) · 9.23 KB

IFourYearVesting.md

File metadata and controls

260 lines (239 loc) · 9.23 KB

Interface for Four Year Vesting contract. (IFourYearVesting.sol)

View Source: contracts/governance/Vesting/fouryear/IFourYearVesting.sol

↘ Derived Contracts: FourYearVestingLogic

IFourYearVesting contract

Interfaces are used to cast a contract address into a callable instance. This interface is used by FourYearVestingLogic contract to implement stakeTokens function and on VestingRegistry contract to call IFourYearVesting(vesting).stakeTokens function at a vesting instance.

Functions


endDate

function endDate() external nonpayable
returns(uint256)
Source Code
function endDate() external returns (uint256);

stakeTokens

⤿ Overridden Implementation(s): FourYearVestingLogic.stakeTokens

function stakeTokens(uint256 _amount, uint256 _restartStakeSchedule) external nonpayable
returns(lastSchedule uint256, remainingAmount uint256)

Arguments

Name Type Description
_amount uint256
_restartStakeSchedule uint256
Source Code
function stakeTokens(uint256 _amount, uint256 _restartStakeSchedule)
        external
        returns (uint256 lastSchedule, uint256 remainingAmount);

Contracts