Contract Overview
Balance: 0 Ether
Transactions: 16008 txns
 Latest 25 txns From a total of 16008 Transactions

TxHash Age From To Value [TxFee]
0x17274d4ddb854ed07ae36a44b23adf914ddd9538b90430a6c0af9370506b33f058 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0x2b11083189deadf10186263e896d656534679c03dc1d97535bedd9279452da8d8 hrs 55 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0x30877a51f8c62d4807dd83c164170b0908a378a8713649df8071a217126f398319 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0x83862ef624515356325bfd06227f8ae6085e4a2bccfa471dc429cd3b52ce13071 day 45 mins ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0x4de0def333bd3d1e476c91b96bb7e69c6b6ab9ff4d0457166ef395564b8886f41 day 2 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0xb7254fdb811e5e93d892aa48816818b9abc9b69c05b2a1e7c48adcd16ebf25301 day 3 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061798
0x2a5e980ea129895f50c7374878ae2ce5dcade034752af74893e79e44c72d7a7d1 day 7 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0x476b0f3d071bcce37f44921f68b95e411b2ce19a47d898dd721d6576f07300a81 day 7 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
0x01a61bbfd3b1028276ad488b6acee9e5191b11bba4dd3039f3f46f562068a9e51 day 8 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
0xbb630cf15cbbc286e157136f44c8004cdbddcdc0b03796490b72a907746e81ae1 day 8 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061734
0xc8cd3eb30d87fb8586238293232f7d00806a3dee1b0839897304bc0050ad1ab31 day 9 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061798
0xebed002ca8d1cae0ddd251f39e15768dd6dc7ce3cdebb1e265e480f1e689ad6f1 day 19 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061798
0x4999aab5ad5d6bd3cbf841c1d38e5282902ad0d593d7d5cd34155d3e5cc38d742 days 4 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
0xc373e010bc313ee077466128e546d574bdc8bc52768058836faaf6aa0707b0fb2 days 4 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
0x936eb9982f957f142f6b61679bd5a483cfb28c051f98d05b2917268c9b2511302 days 5 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0xbbb1eb4000450b04df8c0f3ba2fd513c0d6bf1159cf37369073d84948ba2dcb62 days 6 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00006098
0xd605d5f6d584a8bee3839a25fd640a90cbdb35c73d1bc9ca6f0330ebd6c7ab0b2 days 15 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
0x8048f32f3cd92eb667583ab334628b1ecd48ae5c6dbf5a6dccf1dc8905c512e32 days 22 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00030522
0x2f035b1ce89f19678b0a35c4d23fe02fab291c245fd119ab1d355c995a0f01643 days 7 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000123724
0x164e7812601659abf5e2ce0e516fbf2719284e7bf7f3576dc88aa9c10931e4063 days 8 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061044
0x715a1ddb824cbbb3f86ce5d128ca061a280b7f9f973e280956a61940043a94813 days 17 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000075283949
0x65cfb1a290c8eaf2358f21efc09a00af1d938ceefb6a1ab7d91fd577d71615de3 days 23 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.00030931
0x604cb1ce964d1ecfdba95c6019cc5d665d8e6d66eb6138e42ec0fe555c8160af4 days 9 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000075283949
0x00a054e1071d6d12a4d05fbf41ba265dbb6677ce20b975ab242d59c9304f72a04 days 12 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000060916
0x7a8a3d9a04fcb7b45db5f8374dda574d1c995fedf839fbed0c837a64ec959f4d4 days 14 hrs ago0x00daa9a2d88bed5a29a6ca93e0b7d860cd1d403f  IN   0x216d678c14be600cb88338e763bb57755ca2b1cf0 Ether0.000061862
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Similar Match)
Note: Displaying Similar Match Verified Source Code At Contract 0xf2d75f99016ace9c4685751ef846aaf360b42d8b(Excluding Constructor Arguments if_any)
Contract Name: PriceFeed
Compiler Text: 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 transaction Difficulty Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward