ETH Price: $1,976.20 (+0.12%)
 

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
Post126238702021-06-13 3:58:161715 days ago1623556696IN
0x343e182D...39B7BDF2B
0 ETH0.00050296
Post101207432020-05-23 7:22:512101 days ago1590218571IN
0x343e182D...39B7BDF2B
0 ETH0.0007170410
Post101177762020-05-22 20:27:192101 days ago1590179239IN
0x343e182D...39B7BDF2B
0 ETH0.0011831116.50000035
Post101111872020-05-21 19:40:142102 days ago1590090014IN
0x343e182D...39B7BDF2B
0 ETH0.0018247525
Post101102692020-05-21 16:18:552102 days ago1590077935IN
0x343e182D...39B7BDF2B
0 ETH0.0028418739.389
Post101099862020-05-21 15:18:142102 days ago1590074294IN
0x343e182D...39B7BDF2B
0 ETH0.0042334258
Post101097332020-05-21 14:17:472102 days ago1590070667IN
0x343e182D...39B7BDF2B
0 ETH0.0043167656
Post101092242020-05-21 12:25:372102 days ago1590063937IN
0x343e182D...39B7BDF2B
0 ETH0.003812250
Post101085832020-05-21 10:05:042103 days ago1590055504IN
0x343e182D...39B7BDF2B
0 ETH0.0037309148.40000014
Post101081202020-05-21 8:21:052103 days ago1590049265IN
0x343e182D...39B7BDF2B
0 ETH0.0031245640
Post101080672020-05-21 8:09:262103 days ago1590048566IN
0x343e182D...39B7BDF2B
0 ETH0.0038636550
Post101080172020-05-21 7:58:532103 days ago1590047933IN
0x343e182D...39B7BDF2B
0 ETH0.00366950
Post101078162020-05-21 7:12:442103 days ago1590045164IN
0x343e182D...39B7BDF2B
0 ETH0.0035459146
Post101077002020-05-21 6:45:182103 days ago1590043518IN
0x343e182D...39B7BDF2B
0 ETH0.002715335
Post101076262020-05-21 6:27:252103 days ago1590042445IN
0x343e182D...39B7BDF2B
0 ETH0.001939525
Post101073992020-05-21 5:40:212103 days ago1590039621IN
0x343e182D...39B7BDF2B
0 ETH0.0022873230
Post101065802020-05-21 2:30:462103 days ago1590028246IN
0x343e182D...39B7BDF2B
0 ETH0.0023756430
Post101062482020-05-21 1:14:582103 days ago1590023698IN
0x343e182D...39B7BDF2B
0 ETH0.0022766528.75
Post101053882020-05-20 22:04:472103 days ago1590012287IN
0x343e182D...39B7BDF2B
0 ETH0.001378917.60000014
Post101050012020-05-20 20:34:322103 days ago1590006872IN
0x343e182D...39B7BDF2B
0 ETH0.0011878215
Post101047282020-05-20 19:37:072103 days ago1590003427IN
0x343e182D...39B7BDF2B
0 ETH0.001357817
Post101046202020-05-20 19:15:562103 days ago1590002156IN
0x343e182D...39B7BDF2B
0 ETH0.0016035620
Post101037792020-05-20 16:11:402103 days ago1589991100IN
0x343e182D...39B7BDF2B
0 ETH0.0039173550
Post101037342020-05-20 16:01:232103 days ago1589990483IN
0x343e182D...39B7BDF2B
0 ETH0.0042514554.395
Post101036002020-05-20 15:30:342103 days ago1589988634IN
0x343e182D...39B7BDF2B
0 ETH0.0035857345
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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 0x335EBC47...995314229
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
PriceFeed

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-09-26
*/

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

////// 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.23; */

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;

    constructor() public {
        owner = msg.sender;
        emit LogSetOwner(msg.sender);
    }

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

    function setAuthority(DSAuthority authority_)
        public
        auth
    {
        authority = authority_;
        emit 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.23; */

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)
        }

        emit 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.23; */

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

contract DSThing is DSAuth, DSNote, DSMath {

    function S(string s) internal pure returns (bytes4) {
        return bytes4(keccak256(abi.encodePacked(s)));
    }

}

////// src/price-feed.sol
/// price-feed.sol - ds-value like that also pokes a medianizer

// Copyright (C) 2017, 2018  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.23; */

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

interface Medianizer {
    function poke() external;
}

contract PriceFeed is DSThing {

    uint128       val;
    uint32 public zzz;

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

    function read() external view returns (bytes32)
    {
        require(now < zzz);
        return bytes32(val);
    }

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

    function post(uint128 val_, uint32 zzz_, Medianizer med_) external note auth
    {
        val = val_;
        zzz = zzz_;
        med_.poke();
    }

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

}

Contract Security Audit

Contract ABI

API
[{"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"}]

0x6080604081905260018054600160a060020a03191633908117909155907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a26107de806100516000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100a857806350ed2a2c146100cb57806357de26a4146100fe57806359e02dd7146101255780635a686699146101535780637a9e5e4b146101925780638da5cb5b146101b3578063a4dff0a2146101e4578063ac4c25b214610212578063bf7e214f14610227575b600080fd5b3480156100b457600080fd5b506100c9600160a060020a036004351661023c565b005b3480156100d757600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff602435166102ba565b34801561010a57600080fd5b50610113610399565b60408051918252519081900360200190f35b34801561013157600080fd5b5061013a6103dd565b6040805192835290151560208301528051918290030190f35b34801561015f57600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff60243516600160a060020a0360443516610414565b34801561019e57600080fd5b506100c9600160a060020a036004351661055e565b3480156101bf57600080fd5b506101c86105d8565b60408051600160a060020a039092168252519081900360200190f35b3480156101f057600080fd5b506101f96105e7565b6040805163ffffffff9092168252519081900360200190f35b34801561021e57600080fd5b506100c9610607565b34801561023357600080fd5b506101c861069a565b61025233600035600160e060020a0319166106a9565b151561025d57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461032133600035600160e060020a0319166106a9565b151561032c57600080fd5b50506002805463ffffffff9092167001000000000000000000000000000000000273ffffffff00000000000000000000000000000000196fffffffffffffffffffffffffffffffff9094166fffffffffffffffffffffffffffffffff199093169290921792909216179055565b600254600090700100000000000000000000000000000000900463ffffffff1642106103c457600080fd5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff81169170010000000000000000000000000000000090910463ffffffff16421090565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461047b33600035600160e060020a0319166106a9565b151561048657600080fd5b600280546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff87161773ffffffff00000000000000000000000000000000191670010000000000000000000000000000000063ffffffff871602179055604080517f181783580000000000000000000000000000000000000000000000000000000081529051600160a060020a03851691631817835891600480830192600092919082900301818387803b15801561053f57600080fd5b505af1158015610553573d6000803e3d6000fd5b505050505050505050565b61057433600035600160e060020a0319166106a9565b151561057f57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b600154600160a060020a031681565b600254700100000000000000000000000000000000900463ffffffff1681565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461066e33600035600160e060020a0319166106a9565b151561067957600080fd5b50506002805473ffffffff0000000000000000000000000000000019169055565b600054600160a060020a031681565b6000600160a060020a0383163014156106c4575060016107ac565b600154600160a060020a03848116911614156106e2575060016107ac565b600054600160a060020a031615156106fc575060006107ac565b60008054604080517fb7009613000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152600160e060020a0319871660448301529151919092169263b700961392606480820193602093909283900390910190829087803b15801561077d57600080fd5b505af1158015610791573d6000803e3d6000fd5b505050506040513d60208110156107a757600080fd5b505190505b929150505600a165627a7a72305820f4f803b520d4231fc9d97fd0ea6a4400b5fc7d8cc1bcb74b0d48f70afdb2d9920029

Deployed Bytecode

0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100a857806350ed2a2c146100cb57806357de26a4146100fe57806359e02dd7146101255780635a686699146101535780637a9e5e4b146101925780638da5cb5b146101b3578063a4dff0a2146101e4578063ac4c25b214610212578063bf7e214f14610227575b600080fd5b3480156100b457600080fd5b506100c9600160a060020a036004351661023c565b005b3480156100d757600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff602435166102ba565b34801561010a57600080fd5b50610113610399565b60408051918252519081900360200190f35b34801561013157600080fd5b5061013a6103dd565b6040805192835290151560208301528051918290030190f35b34801561015f57600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff60243516600160a060020a0360443516610414565b34801561019e57600080fd5b506100c9600160a060020a036004351661055e565b3480156101bf57600080fd5b506101c86105d8565b60408051600160a060020a039092168252519081900360200190f35b3480156101f057600080fd5b506101f96105e7565b6040805163ffffffff9092168252519081900360200190f35b34801561021e57600080fd5b506100c9610607565b34801561023357600080fd5b506101c861069a565b61025233600035600160e060020a0319166106a9565b151561025d57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461032133600035600160e060020a0319166106a9565b151561032c57600080fd5b50506002805463ffffffff9092167001000000000000000000000000000000000273ffffffff00000000000000000000000000000000196fffffffffffffffffffffffffffffffff9094166fffffffffffffffffffffffffffffffff199093169290921792909216179055565b600254600090700100000000000000000000000000000000900463ffffffff1642106103c457600080fd5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff81169170010000000000000000000000000000000090910463ffffffff16421090565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461047b33600035600160e060020a0319166106a9565b151561048657600080fd5b600280546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff87161773ffffffff00000000000000000000000000000000191670010000000000000000000000000000000063ffffffff871602179055604080517f181783580000000000000000000000000000000000000000000000000000000081529051600160a060020a03851691631817835891600480830192600092919082900301818387803b15801561053f57600080fd5b505af1158015610553573d6000803e3d6000fd5b505050505050505050565b61057433600035600160e060020a0319166106a9565b151561057f57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b600154600160a060020a031681565b600254700100000000000000000000000000000000900463ffffffff1681565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461066e33600035600160e060020a0319166106a9565b151561067957600080fd5b50506002805473ffffffff0000000000000000000000000000000019169055565b600054600160a060020a031681565b6000600160a060020a0383163014156106c4575060016107ac565b600154600160a060020a03848116911614156106e2575060016107ac565b600054600160a060020a031615156106fc575060006107ac565b60008054604080517fb7009613000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152600160e060020a0319871660448301529151919092169263b700961392606480820193602093909283900390910190829087803b15801561077d57600080fd5b505af1158015610791573d6000803e3d6000fd5b505050506040513d60208110156107a757600080fd5b505190505b929150505600a165627a7a72305820f4f803b520d4231fc9d97fd0ea6a4400b5fc7d8cc1bcb74b0d48f70afdb2d9920029

Swarm Source

bzzr://f4f803b520d4231fc9d97fd0ea6a4400b5fc7d8cc1bcb74b0d48f70afdb2d992

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