Source Code
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 11565870 | 1879 days ago | IN | 0 ETH | 0.00135568 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x1983894a...049dB6f25 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.15+commit.6a57276f
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-03-16
*/
pragma solidity 0.5.15;
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 {
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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"unlockTime","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]Contract Creation Code
0x60806040526040516100af3803806100af83398181016040526040811015602557600080fd5b508051602090910151600091909155600155606a806100456000396000f3fe60806040526001544211801560195760018114601e576032565b600080fd5b60008060008030316000545af18015601957505b5000fea265627a7a7231582013876a131fb612745be13765f49451cc6f0f1d0f7b13e21ac2cf9c7d3aeca18964736f6c634300050f003200000000000000000000000029fec057b86ef46d240bd271837369f5715335ef000000000000000000000000000000000000000000000000000000005fdb2295
Deployed Bytecode
0x60806040526001544211801560195760018114601e576032565b600080fd5b60008060008030316000545af18015601957505b5000fea265627a7a7231582013876a131fb612745be13765f49451cc6f0f1d0f7b13e21ac2cf9c7d3aeca18964736f6c634300050f0032
Deployed Bytecode Sourcemap
27:671:0:-;;;479:4;473:11;462:9;459:26;499:23;;;;541:1;536:141;;;;452:225;;499:23;518:1;515;508:12;536:141;619:1;616;613;610;600:7;592:16;585:4;579:11;574:3;569:52;639:23;;;;562:100;452:225;;27:671
Swarm Source
bzzr://13876a131fb612745be13765f49451cc6f0f1d0f7b13e21ac2cf9c7d3aeca189
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.