Verified contractPartial
LockETH
Address0xff43edd5615a7ecf4cfe49618e23cef41e5a0450
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.5.2
- Same code
153 more contracts
Details
- Compiler
- solc 0.5.2+commit.1df8f40c
- Language
- solidity
- Optimization
- No
- EVM version
- byzantium
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 12,876,364
- Creation transaction
- 0xc527f4f9be…35c830d104
- Main copy (most transactions)
- 0x127f1bc3…634c1046
LockETH.sol
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);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "byzantium",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.