Contract Overview
Balance: 0 Ether
Transactions: 15539 txns
 Latest 25 txns from a total Of 15539 transactions
View All

TxHash Age From To Value [TxFee]
0x21c7205dba778840f8200892666fbe0235b6a8cf5480ac1f50225219e91edb8b1 hr 7 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061798
0x41ac19495d3897bfb09a08eeb89f0a39c33f1f52c8bf02a36720a93d709d086f3 hrs 33 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061798
0x7b00c14909e386c1bb7fa90c40baec0fbb89203242f1b7a7046b0706072e1e2e8 hrs 37 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0x6b05a07965ed96b81462f1d021a49952a362e6281d48ba31d16ad7eff329609313 hrs 41 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0x521a3eeedaf813cc8110b7ac7144440914add1fbc51475930706d93bb66963ed14 hrs 36 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000185394
0xfbfbdc14ef4d7eb145ce4ee3f9a91924340c55fc11dc9dd03cf83fa43e23ffe519 hrs 40 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00012196
0x1bce52bab1107b58f5c5c0702962bc08dc4b9f5b4576d78543a188186a322f731 day 44 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000183132
0xa2c46e296d84003bf19c9fdf234764112477de22280bcab39f17c5dddfeb61841 day 1 hr ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000123596
0xbe5a70a285a333944c21f31cc8c651412ad89a12c4afa7e7348a5109cf8254fd1 day 3 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000123596
0xc62e73b949367b13ebb8f160bb3bf7739f5e2f286ac43531cdcb6fbf2136acaf1 day 6 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000123724
0x426243460d3ed79fcf33b9f7d9240980929d0cc39bb85d24e455781e3026c6ee1 day 11 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0x98bc1b9485fbd736a410485d1d436f66dc59b3299447d2773edaa243509fcaa21 day 16 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0xdd9a8f75e06166ec9c7d0807ada63a4d34a61ed70a8bc2c4201ab288382278f51 day 21 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000122088
0x7caf0fa5a9002efc449312f2f9a15b5d88f7f6535f633f5f5851535123e6cbff1 day 22 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0x8201d6c2dce7d09915d4c40686b9f59b3b5303b0a64a533173b22962d737fc361 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
0xe9bf37c7bacc96624cb779b8bf1b54e7a06cbed365ffb3e0952bd70122f79bdb1 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00020708625
0xadfc2c4ecc1381e4a150b1cb65b44f9271d2b6ffbfa603d0055f4b60d75408371 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00012005
0xb3b9ecb8b81f112e771efe73dd195ece0b89ca5e3a14a7a5fbbe43cc574688331 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00012005
0x32243b83b2fd178e531a0b17dc6a1b6eb92d9ff413ab80dd4c1a6f9cd9c9837d1 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000300445
0xc8e628d7ed4553f525bc8322e0776a6830eb21f6b7e0962ac9124748740a2cca1 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000239844
0xaabb1640f5cee2662ff891c7c047d0c4936de3bae93cbc7b9f98bfd3f8bb1a671 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.0002401
0xa737ac05bd0c13c219496fd951680abe3c76eb13fdc48574a0ee66559d21ed4c1 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000300445
0xb8c733068cc4af9022470618be8ae29808d141c0df68c74fe4fd78548565d11d1 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000180075
0xb65b686447dcfa2e2090de5543c02343c710965427fb4b5ed7574abdfcd7e9d91 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000180075
0x8f54195747be4aba1b7bc02428e788ae3c02b0d2226adaf9a9fad53bf9d2228c1 day 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000180267
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Similar match)
Note: Displaying similar matching verified source code at contract 0xf2d75f99016ace9c4685751ef846aaf360b42d8b(excluding Constructor Arguments if any)
Contract Name: PriceFeed
Compiler Version: v0.4.18+commit.9cf6e910
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

// hevm: flattened sources of src/price-feed.sol
pragma solidity ^0.4.17;

////// lib/ds-thing/lib/ds-auth/src/auth.sol
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/* pragma solidity ^0.4.13; */

contract DSAuthority {
    function canCall(
        address src, address dst, bytes4 sig
    ) public view returns (bool);
}

contract DSAuthEvents {
    event LogSetAuthority (address indexed authority);
    event LogSetOwner     (address indexed owner);
}

contract DSAuth is DSAuthEvents {
    DSAuthority  public  authority;
    address      public  owner;

    function DSAuth() public {
        owner = msg.sender;
        LogSetOwner(msg.sender);
    }

    function setOwner(address owner_)
        public
        auth
    {
        owner = owner_;
        LogSetOwner(owner);
    }

    function setAuthority(DSAuthority authority_)
        public
        auth
    {
        authority = authority_;
        LogSetAuthority(authority);
    }

    modifier auth {
        require(isAuthorized(msg.sender, msg.sig));
        _;
    }

    function isAuthorized(address src, bytes4 sig) internal view returns (bool) {
        if (src == address(this)) {
            return true;
        } else if (src == owner) {
            return true;
        } else if (authority == DSAuthority(0)) {
            return false;
        } else {
            return authority.canCall(src, this, sig);
        }
    }
}

////// lib/ds-thing/lib/ds-math/src/math.sol
/// math.sol -- mixin for inline numerical wizardry

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/* pragma solidity ^0.4.13; */

contract DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x);
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x);
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x);
    }

    function min(uint x, uint y) internal pure returns (uint z) {
        return x <= y ? x : y;
    }
    function max(uint x, uint y) internal pure returns (uint z) {
        return x >= y ? x : y;
    }
    function imin(int x, int y) internal pure returns (int z) {
        return x <= y ? x : y;
    }
    function imax(int x, int y) internal pure returns (int z) {
        return x >= y ? x : y;
    }

    uint constant WAD = 10 ** 18;
    uint constant RAY = 10 ** 27;

    function wmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), WAD / 2) / WAD;
    }
    function rmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), RAY / 2) / RAY;
    }
    function wdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, WAD), y / 2) / y;
    }
    function rdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, RAY), y / 2) / y;
    }

    // This famous algorithm is called "exponentiation by squaring"
    // and calculates x^n with x as fixed-point and n as regular unsigned.
    //
    // It's O(log n), instead of O(n) for naive repeated multiplication.
    //
    // These facts are why it works:
    //
    //  If n is even, then x^n = (x^2)^(n/2).
    //  If n is odd,  then x^n = x * x^(n-1),
    //   and applying the equation for even x gives
    //    x^n = x * (x^2)^((n-1) / 2).
    //
    //  Also, EVM division is flooring and
    //    floor[(n-1) / 2] = floor[n / 2].
    //
    function rpow(uint x, uint n) internal pure returns (uint z) {
        z = n % 2 != 0 ? x : RAY;

        for (n /= 2; n != 0; n /= 2) {
            x = rmul(x, x);

            if (n % 2 != 0) {
                z = rmul(z, x);
            }
        }
    }
}

////// lib/ds-thing/lib/ds-note/src/note.sol
/// note.sol -- the `note' modifier, for logging calls as events

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/* pragma solidity ^0.4.13; */

contract DSNote {
    event LogNote(
        bytes4   indexed  sig,
        address  indexed  guy,
        bytes32  indexed  foo,
        bytes32  indexed  bar,
        uint              wad,
        bytes             fax
    ) anonymous;

    modifier note {
        bytes32 foo;
        bytes32 bar;

        assembly {
            foo := calldataload(4)
            bar := calldataload(36)
        }

        LogNote(msg.sig, msg.sender, foo, bar, msg.value, msg.data);

        _;
    }
}

////// lib/ds-thing/src/thing.sol
// thing.sol - `auth` with handy mixins. your things should be DSThings

// Copyright (C) 2017  DappHub, LLC

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/* pragma solidity ^0.4.13; */

/* import 'ds-auth/auth.sol'; */
/* import 'ds-note/note.sol'; */
/* import 'ds-math/math.sol'; */

contract DSThing is DSAuth, DSNote, DSMath {
}

////// src/price-feed.sol
/// price-feed.sol

// Copyright (C) 2017  DappHub, LLC

// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND (express or implied).

/* pragma solidity ^0.4.17; */

/* import "ds-thing/thing.sol"; */

contract PriceFeed is DSThing {

    uint128 val;
    uint32 public zzz;

    function peek() public view
        returns (bytes32,bool)
    {
        return (bytes32(val), now < zzz);
    }

    function read() public view
        returns (bytes32)
    {
        assert(now < zzz);
        return bytes32(val);
    }

    function poke(uint128 val_, uint32 zzz_) public note auth
    {
        val = val_;
        zzz = zzz_;
    }

    function post(uint128 val_, uint32 zzz_, address med_) public note auth
    {
        val = val_;
        zzz = zzz_;
        bool ret = med_.call(bytes4(keccak256("poke()")));
        ret;
    }

    function void() public note auth
    {
        zzz = 0;
    }

}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"val_","type":"uint128"},{"name":"zzz_","type":"uint32"}],"name":"poke","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"read","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"peek","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"val_","type":"uint128"},{"name":"zzz_","type":"uint32"},{"name":"med_","type":"address"}],"name":"post","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"zzz","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"void","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":true,"inputs":[{"indexed":true,"name":"sig","type":"bytes4"},{"indexed":true,"name":"guy","type":"address"},{"indexed":true,"name":"foo","type":"bytes32"},{"indexed":true,"name":"bar","type":"bytes32"},{"indexed":false,"name":"wad","type":"uint256"},{"indexed":false,"name":"fax","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604090815260018054600160a060020a03191633600160a060020a0316908117909155907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94905160405180910390a261076d8061005f6000396000f30060606040526004361061008a5763ffffffff60e060020a60003504166313af4035811461008f57806350ed2a2c146100b057806357de26a4146100e157806359e02dd7146101065780635a686699146101335780637a9e5e4b146101705780638da5cb5b1461018f578063a4dff0a2146101be578063ac4c25b2146101ea578063bf7e214f146101fd575b600080fd5b341561009a57600080fd5b6100ae600160a060020a0360043516610210565b005b34156100bb57600080fd5b6100ae6fffffffffffffffffffffffffffffffff6004351663ffffffff6024351661028f565b34156100ec57600080fd5b6100f4610366565b60405190815260200160405180910390f35b341561011157600080fd5b61011961039a565b604051918252151560208201526040908101905180910390f35b341561013e57600080fd5b6100ae6fffffffffffffffffffffffffffffffff6004351663ffffffff60243516600160a060020a03604435166103c4565b341561017b57600080fd5b6100ae600160a060020a0360043516610501565b341561019a57600080fd5b6101a2610580565b604051600160a060020a03909116815260200160405180910390f35b34156101c957600080fd5b6101d161058f565b60405163ffffffff909116815260200160405180910390f35b34156101f557600080fd5b6100ae6105a2565b341561020857600080fd5b6101a261063a565b61022633600035600160e060020a031916610649565b151561023157600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055167fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9460405160405180910390a250565b600435602435808233600160a060020a031660008035600160e060020a0319169034903660405183815260406020820181815290820183905260608201848480828437820191505094505050505060405180910390a46102fb33600035600160e060020a031916610649565b151561030657600080fd5b50506002805463ffffffff909216608060020a0273ffffffff00000000000000000000000000000000196fffffffffffffffffffffffffffffffff9094166fffffffffffffffffffffffffffffffff199093169290921792909216179055565b600254600090608060020a900463ffffffff16421061038157fe5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff811691608060020a90910463ffffffff16421090565b60006004356024358082600160a060020a033316600160e060020a031986351634873660405183815260406020820181815290820183905260608201848480828437820191505094505050505060405180910390a461042f33600035600160e060020a031916610649565b151561043a57600080fd5b600280546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff88161773ffffffff000000000000000000000000000000001916608060020a63ffffffff881602179055600160a060020a0384166040517f706f6b65282900000000000000000000000000000000000000000000000000008152600601604051809103902060e060020a90046040518163ffffffff1660e060020a02815260040160006040518083038160008761646e5a03f150505050505050505050565b61051733600035600160e060020a031916610649565b151561052257600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911791829055167f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada460405160405180910390a250565b600154600160a060020a031681565b600254608060020a900463ffffffff1681565b600435602435808233600160a060020a031660008035600160e060020a0319169034903660405183815260406020820181815290820183905260608201848480828437820191505094505050505060405180910390a461060e33600035600160e060020a031916610649565b151561061957600080fd5b50506002805473ffffffff0000000000000000000000000000000019169055565b600054600160a060020a031681565b600030600160a060020a031683600160a060020a0316141561066d5750600161073b565b600154600160a060020a038481169116141561068b5750600161073b565b600054600160a060020a031615156106a55750600061073b565b60008054600160a060020a03169063b7009613908590309086906040516020015260405160e060020a63ffffffff8616028152600160a060020a039384166004820152919092166024820152600160e060020a03199091166044820152606401602060405180830381600087803b151561071e57600080fd5b6102c65a03f1151561072f57600080fd5b50505060405180519150505b929150505600a165627a7a72305820a2fcbc821c93f59554f511bdc01172d0d7985befd6513c1be2aa5cf37e8458800029

   Swarm Source:
bzzr://a2fcbc821c93f59554f511bdc01172d0d7985befd6513c1be2aa5cf37e845880

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward