ETH Price: $2,455.32 (-1.95%)

Contract

0x458DaBf1Eff8fCdfbF0896A6Bd1F457c01E2FfD6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer165354092023-02-01 17:18:59640 days ago1675271939IN
0x458DaBf1...c01E2FfD6
0 ETH0.000418319.91947108
Transfer163197312023-01-02 14:37:23670 days ago1672670243IN
0x458DaBf1...c01E2FfD6
0 ETH0.0003586917.08053566
Transfer163197252023-01-02 14:36:11670 days ago1672670171IN
0x458DaBf1...c01E2FfD6
0 ETH0.0003045714.50380555
Transfer105047602020-07-21 19:48:321565 days ago1595360912IN
0x458DaBf1...c01E2FfD6
0 ETH0.00107151
Transfer103664882020-06-30 10:12:251586 days ago1593511945IN
0x458DaBf1...c01E2FfD6
0 ETH0.00132363
Transfer98690442020-04-14 7:00:301663 days ago1586847630IN
0x458DaBf1...c01E2FfD6
0 ETH0.00001050.5
Lock98672072020-04-14 0:13:321664 days ago1586823212IN
0x458DaBf1...c01E2FfD6
200 ETH0.000023191
Lock98671402020-04-13 23:58:331664 days ago1586822313IN
0x458DaBf1...c01E2FfD6
5 ETH0.000359523
Lock98671122020-04-13 23:50:051664 days ago1586821805IN
0x458DaBf1...c01E2FfD6
3.8 ETH0.000288192.4
Lock98670942020-04-13 23:45:191664 days ago1586821519IN
0x458DaBf1...c01E2FfD6
1 ETH0.000359523
Lock98670682020-04-13 23:39:071664 days ago1586821147IN
0x458DaBf1...c01E2FfD6
100 ETH0.000143791.2
Lock98670022020-04-13 23:24:591664 days ago1586820299IN
0x458DaBf1...c01E2FfD6
1,500 ETH0.000960558
Lock98669882020-04-13 23:22:451664 days ago1586820165IN
0x458DaBf1...c01E2FfD6
0.05 ETH0.000960558
Lock98668472020-04-13 22:52:271664 days ago1586818347IN
0x458DaBf1...c01E2FfD6
150 ETH0.000239682
Lock98668402020-04-13 22:51:081664 days ago1586818268IN
0x458DaBf1...c01E2FfD6
16.94 ETH0.000119821.00000011
Lock98668032020-04-13 22:45:091664 days ago1586817909IN
0x458DaBf1...c01E2FfD6
0.64 ETH0.000360133
Lock98667572020-04-13 22:34:011664 days ago1586817241IN
0x458DaBf1...c01E2FfD6
61 ETH0.000599145
Lock98667542020-04-13 22:33:371664 days ago1586817217IN
0x458DaBf1...c01E2FfD6
500 ETH0.000599035
Lock98667462020-04-13 22:31:531664 days ago1586817113IN
0x458DaBf1...c01E2FfD6
500 ETH0.000958638
Lock98667312020-04-13 22:29:291664 days ago1586816969IN
0x458DaBf1...c01E2FfD6
20 ETH0.000240162
Lock98667162020-04-13 22:26:421664 days ago1586816802IN
0x458DaBf1...c01E2FfD6
0.3 ETH0.000239592
Lock98665992020-04-13 21:58:211664 days ago1586815101IN
0x458DaBf1...c01E2FfD6
20 ETH0.000251592.1
Lock98665442020-04-13 21:45:501664 days ago1586814350IN
0x458DaBf1...c01E2FfD6
10 ETH0.000264172.2
Lock98665382020-04-13 21:44:171664 days ago1586814257IN
0x458DaBf1...c01E2FfD6
3.00701202 ETH0.000120081
Lock98664672020-04-13 21:27:201664 days ago1586813240IN
0x458DaBf1...c01E2FfD6
1 ETH0.000240162
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
98671402020-04-13 23:58:331664 days ago1586822313
0x458DaBf1...c01E2FfD6
 Contract Creation5 ETH
98671122020-04-13 23:50:051664 days ago1586821805
0x458DaBf1...c01E2FfD6
 Contract Creation3.8 ETH
98670942020-04-13 23:45:191664 days ago1586821519
0x458DaBf1...c01E2FfD6
 Contract Creation1 ETH
98670682020-04-13 23:39:071664 days ago1586821147
0x458DaBf1...c01E2FfD6
 Contract Creation100 ETH
98670022020-04-13 23:24:591664 days ago1586820299
0x458DaBf1...c01E2FfD6
 Contract Creation1,500 ETH
98669882020-04-13 23:22:451664 days ago1586820165
0x458DaBf1...c01E2FfD6
 Contract Creation0.05 ETH
98668472020-04-13 22:52:271664 days ago1586818347
0x458DaBf1...c01E2FfD6
 Contract Creation150 ETH
98668402020-04-13 22:51:081664 days ago1586818268
0x458DaBf1...c01E2FfD6
 Contract Creation16.94 ETH
98668032020-04-13 22:45:091664 days ago1586817909
0x458DaBf1...c01E2FfD6
 Contract Creation0.64 ETH
98667572020-04-13 22:34:011664 days ago1586817241
0x458DaBf1...c01E2FfD6
 Contract Creation61 ETH
98667542020-04-13 22:33:371664 days ago1586817217
0x458DaBf1...c01E2FfD6
 Contract Creation500 ETH
98667462020-04-13 22:31:531664 days ago1586817113
0x458DaBf1...c01E2FfD6
 Contract Creation500 ETH
98667312020-04-13 22:29:291664 days ago1586816969
0x458DaBf1...c01E2FfD6
 Contract Creation20 ETH
98667162020-04-13 22:26:421664 days ago1586816802
0x458DaBf1...c01E2FfD6
 Contract Creation0.3 ETH
98665992020-04-13 21:58:211664 days ago1586815101
0x458DaBf1...c01E2FfD6
 Contract Creation20 ETH
98665442020-04-13 21:45:501664 days ago1586814350
0x458DaBf1...c01E2FfD6
 Contract Creation10 ETH
98665382020-04-13 21:44:171664 days ago1586814257
0x458DaBf1...c01E2FfD6
 Contract Creation3.00701202 ETH
98664672020-04-13 21:27:201664 days ago1586813240
0x458DaBf1...c01E2FfD6
 Contract Creation1 ETH
98664282020-04-13 21:16:561664 days ago1586812616
0x458DaBf1...c01E2FfD6
 Contract Creation10 ETH
98664162020-04-13 21:15:041664 days ago1586812504
0x458DaBf1...c01E2FfD6
 Contract Creation5.9 ETH
98663242020-04-13 20:59:081664 days ago1586811548
0x458DaBf1...c01E2FfD6
 Contract Creation46 ETH
98662872020-04-13 20:53:071664 days ago1586811187
0x458DaBf1...c01E2FfD6
 Contract Creation3 ETH
98662542020-04-13 20:47:501664 days ago1586810870
0x458DaBf1...c01E2FfD6
 Contract Creation6.97 ETH
98662002020-04-13 20:37:331664 days ago1586810253
0x458DaBf1...c01E2FfD6
 Contract Creation20 ETH
98661842020-04-13 20:35:121664 days ago1586810112
0x458DaBf1...c01E2FfD6
 Contract Creation40 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Lockdrop

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-03-13
*/

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 Lockdrop {
    // Time constants
    uint256 constant public LOCK_DROP_PERIOD = 30 days;
    uint256 public LOCK_START_TIME;
    uint256 public LOCK_END_TIME;

    // ETH locking events
    event Locked(uint256 indexed eth, uint256 indexed duration, address lock, address introducer);

    constructor(uint startTime) public {
        LOCK_START_TIME = startTime;
        LOCK_END_TIME = startTime + LOCK_DROP_PERIOD;
    }

    /**
     * @dev        Locks up the value sent to contract in a new Lock
     * @param      _days         The length of the lock up
     * @param      _introducer   The introducer of the user.
     */
    function lock(uint256 _days, address _introducer)
        external
        payable
        didStart
        didNotEnd
    {
        // Accept External Owned Accounts only
        require(msg.sender == tx.origin);

        // Accept only fixed set of durations
        require(_days == 30 || _days == 100 || _days == 300 || _days == 1000); 
        uint256 unlockTime = now + _days * 1 days;

        // Accept non-zero payments only
        require(msg.value > 0);
        uint256 eth = msg.value;

        // Create ETH lock contract
        Lock lockAddr = (new Lock).value(eth)(msg.sender, unlockTime);

        // ensure lock contract has all ETH, or fail
        assert(address(lockAddr).balance >= eth);

        emit Locked(eth, _days, address(lockAddr), _introducer);
    }

    /**
     * @dev        Ensures the lockdrop has started
     */
    modifier didStart() {
        require(now >= LOCK_START_TIME);
        _;
    }

    /**
     * @dev        Ensures the lockdrop has not ended
     */
    modifier didNotEnd() {
        require(now <= LOCK_END_TIME);
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eth","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"address","name":"lock","type":"address"},{"indexed":false,"internalType":"address","name":"introducer","type":"address"}],"name":"Locked","type":"event"},{"constant":true,"inputs":[],"name":"LOCK_DROP_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LOCK_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LOCK_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_days","type":"uint256"},{"internalType":"address","name":"_introducer","type":"address"}],"name":"lock","outputs":[],"payable":true,"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b506040516103323803806103328339818101604052602081101561003357600080fd5b5051600081905562278d00016001556102e1806100516000396000f3fe60806040526004361061003f5760003560e01c806315f2e2f714610044578063396214661461006b57806366dfbfb4146100805780638cf0cb55146100ae575b600080fd5b34801561005057600080fd5b506100596100c3565b60408051918252519081900360200190f35b34801561007757600080fd5b506100596100c9565b6100ac6004803603604081101561009657600080fd5b50803590602001356001600160a01b03166100cf565b005b3480156100ba57600080fd5b506100596101ea565b60005481565b60015481565b6000544210156100de57600080fd5b6001544211156100ed57600080fd5b3332146100f957600080fd5b81601e14806101085750816064145b8061011457508161012c145b806101205750816103e8145b61012957600080fd5b42620151808302013461013b57600080fd5b60003490506000813384604051610151906101f1565b6001600160a01b03909216825260208201526040805191829003019082f080158015610181573d6000803e3d6000fd5b509050905081816001600160a01b031631101561019a57fe5b604080516001600160a01b038084168252861660208201528151879285927f1f8f04eebd96e2dab57d8611613f0e859a7e1b4bc41c7831d74435a3ee9e42fe929081900390910190a35050505050565b62278d0081565b60af806101fe8339019056fe60806040526040516100af3803806100af83398181016040526040811015602557600080fd5b508051602090910151600091909155600155606a806100456000396000f3fe60806040526001544211801560195760018114601e576032565b600080fd5b60008060008030316000545af18015601957505b5000fea265627a7a7231582013876a131fb612745be13765f49451cc6f0f1d0f7b13e21ac2cf9c7d3aeca18964736f6c634300050f0032a265627a7a723158204e19f9c974509cadd995b0246fd82bb8873200bbd389ec7bf218d174645b3c1064736f6c634300050f0032000000000000000000000000000000000000000000000000000000005e6d7000

Deployed Bytecode

0x60806040526004361061003f5760003560e01c806315f2e2f714610044578063396214661461006b57806366dfbfb4146100805780638cf0cb55146100ae575b600080fd5b34801561005057600080fd5b506100596100c3565b60408051918252519081900360200190f35b34801561007757600080fd5b506100596100c9565b6100ac6004803603604081101561009657600080fd5b50803590602001356001600160a01b03166100cf565b005b3480156100ba57600080fd5b506100596101ea565b60005481565b60015481565b6000544210156100de57600080fd5b6001544211156100ed57600080fd5b3332146100f957600080fd5b81601e14806101085750816064145b8061011457508161012c145b806101205750816103e8145b61012957600080fd5b42620151808302013461013b57600080fd5b60003490506000813384604051610151906101f1565b6001600160a01b03909216825260208201526040805191829003019082f080158015610181573d6000803e3d6000fd5b509050905081816001600160a01b031631101561019a57fe5b604080516001600160a01b038084168252861660208201528151879285927f1f8f04eebd96e2dab57d8611613f0e859a7e1b4bc41c7831d74435a3ee9e42fe929081900390910190a35050505050565b62278d0081565b60af806101fe8339019056fe60806040526040516100af3803806100af83398181016040526040811015602557600080fd5b508051602090910151600091909155600155606a806100456000396000f3fe60806040526001544211801560195760018114601e576032565b600080fd5b60008060008030316000545af18015601957505b5000fea265627a7a7231582013876a131fb612745be13765f49451cc6f0f1d0f7b13e21ac2cf9c7d3aeca18964736f6c634300050f0032a265627a7a723158204e19f9c974509cadd995b0246fd82bb8873200bbd389ec7bf218d174645b3c1064736f6c634300050f0032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000005e6d7000

-----Decoded View---------------
Arg [0] : startTime (uint256): 1584230400

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000005e6d7000


Deployed Bytecode Sourcemap

702:1793:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;807:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;807:30:0;;;:::i;:::-;;;;;;;;;;;;;;;;844:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;844:28:0;;;:::i;1364:805::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1364:805:0;;;;;;-1:-1:-1;;;;;1364:805:0;;:::i;:::-;;750:50;;8:9:-1;5:2;;;30:1;27;20:12;5:2;750:50:0;;;:::i;807:30::-;;;;:::o;844:28::-;;;;:::o;1364:805::-;2294:15;;2287:3;:22;;2279:31;;;;;;2458:13;;2451:3;:20;;2443:29;;;;;;1558:10;1572:9;1558:23;1550:32;;;;;;1650:5;1659:2;1650:11;:27;;;;1665:5;1674:3;1665:12;1650:27;:43;;;;1681:5;1690:3;1681:12;1650:43;:60;;;;1697:5;1706:4;1697:13;1650:60;1642:69;;;;;;1744:3;1758:6;1750:14;;1744:20;1827:9;1819:22;;;;;;1852:11;1866:9;1852:23;;1925:13;1958:3;1963:10;1975;1941:45;;;;;:::i;:::-;-1:-1:-1;;;;;1941:45:0;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1941:45:0;;;1925:61;;2089:3;2068:8;-1:-1:-1;;;;;2060:25:0;;:32;;2053:40;;;;2111:50;;;-1:-1:-1;;;;;2111:50:0;;;;;;;;;;;;;2123:5;;2118:3;;2111:50;;;;;;;;;;;2483:1;;;1364:805;;:::o;750:50::-;793:7;750:50;:::o;702:1793::-;;;;;;;;:::o

Swarm Source

bzzr://4e19f9c974509cadd995b0246fd82bb8873200bbd389ec7bf218d174645b3c10

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

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