Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : LockETH
pragma solidity 0.5.2; /** * @title LockETH contract. * * @dev Escrows ETH until `_endOfLockUp`. Calling `unlockETH()` after `_endOfLockUp` sends ETH * to `_contractOwner`. */ contract LockETH { uint256 public _endOfLockUp; address payable public _contractOwner; constructor (uint256 endOfLockUp, address payable contractOwner) public payable { _endOfLockUp = endOfLockUp; _contractOwner = contractOwner; } /** * @dev Send ETH owned by this contract to `_contractOwner`. Can be called by anyone but * requires `block.timestamp` > `endOfLockUp`. */ function unlockETH() external { // Verify end of lock-up period. require(block.timestamp > _endOfLockUp, 'Cannot claim yet.'); // Send ETH balance to `_contractOwner`. _contractOwner.transfer(address(this).balance); } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.