ETH Price: $2,045.39 (+0.91%)

Contract

0xeCd192ecb9386f91bb4b9649dF4d4f9293D42Ac2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer90735932019-12-08 20:08:162285 days ago1575835696IN
0xeCd192ec...293D42Ac2
0 ETH0.000030821

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-90735932019-12-08 20:08:162285 days ago1575835696
0xeCd192ec...293D42Ac2
0.1 ETH
-84595332019-08-31 18:19:502384 days ago1567275590  Contract Creation0.1 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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

Contract ABI

API
[{"inputs":[{"name":"owner","type":"address"},{"name":"unlockTime","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

0x60806040526040516040806100c383398101806040526040811015602257600080fd5b81019080805190602001909291908051906020019092919050505081600055806001555050606e806100556000396000f3fe6080604052600154421160008114601b5760018114602057603f565b600080fd5b60008060008030316000545af160008114603857603d565b600080fd5b505b5000fea165627a7a723058204eb8a3bdf29246cf4d71b219e968bef7f03867af2803553ef1508429a50988a0002900000000000000000000000070564145fa8e8a15348ef0190e6b7c07a2120462000000000000000000000000000000000000000000000000000000005de40446

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

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.