Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x16fB0e46...A96bbeB75 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Lock
Compiler Version
v0.5.0+commit.1d4f565a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-07-12 */ /** *Submitted for verification at Etherscan.io on 2019-06-19 */ pragma solidity ^0.5.0; contract Lock { // address owner; slot #0 // address unlockTime; slot #1 constructor (address owner, uint256 unlockTime) public payable { assembly { sstore(0x00, owner) sstore(0x01, unlockTime) } } /** * @dev Withdraw function once timestamp has passed unlock time */ function () external payable { // payable so solidity doesn't add unnecessary logic assembly { switch gt(timestamp, sload(0x01)) case 0 { revert(0, 0) } case 1 { switch call(gas, sload(0x00), balance(address), 0, 0, 0, 0) case 0 { revert(0, 0) } } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"name":"owner","type":"address"},{"name":"unlockTime","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]
Deployed Bytecode
0x6080604052600154421160008114601b5760018114602057603f565b600080fd5b60008060008030316000545af160008114603857603d565b600080fd5b505b5000fea165627a7a723058204eb8a3bdf29246cf4d71b219e968bef7f03867af2803553ef1508429a50988a00029
Deployed Bytecode Sourcemap
98:730:0:-;;;609:4;603:11;592:9;589:26;634:1;629:23;;;;671:1;666:141;;;;582:225;;629:23;648:1;645;638:12;666:141;749:1;746;743;740;730:7;722:16;715:4;709:11;704:3;699:52;774:1;769:23;;;;692:100;;769:23;788:1;785;778:12;692:100;;582:225;;98:730
Swarm Source
bzzr://4eb8a3bdf29246cf4d71b219e968bef7f03867af2803553ef1508429a50988a0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.