/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a given release time */ contract TokenTimelock { using SafeERC20 for ERC20Basic;
// ERC20 basic token contract being held ERC20Basic public token;
// beneficiary of tokens after they are released address public beneficiary;
// timestamp when token release is enabled uint256 public releaseTime;
/** * 这个是释放代币的函数,需要人为调用,如果调用成功,代币将转到beneficiary * @notice Transfers tokens held by timelock to beneficiary. */ function release() public { // solium-disable-next-line security/no-block-members require(block.timestamp >= releaseTime);