Source Code
Latest 25 from a total of 6,281 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Post | 12623870 | 1715 days ago | IN | 0 ETH | 0.0005029 | ||||
| Post | 10120743 | 2101 days ago | IN | 0 ETH | 0.00071704 | ||||
| Post | 10117776 | 2101 days ago | IN | 0 ETH | 0.00118311 | ||||
| Post | 10111187 | 2102 days ago | IN | 0 ETH | 0.00182475 | ||||
| Post | 10110269 | 2102 days ago | IN | 0 ETH | 0.00284187 | ||||
| Post | 10109986 | 2102 days ago | IN | 0 ETH | 0.00423342 | ||||
| Post | 10109733 | 2102 days ago | IN | 0 ETH | 0.00431676 | ||||
| Post | 10109224 | 2102 days ago | IN | 0 ETH | 0.0038122 | ||||
| Post | 10108583 | 2103 days ago | IN | 0 ETH | 0.00373091 | ||||
| Post | 10108120 | 2103 days ago | IN | 0 ETH | 0.00312456 | ||||
| Post | 10108067 | 2103 days ago | IN | 0 ETH | 0.00386365 | ||||
| Post | 10108017 | 2103 days ago | IN | 0 ETH | 0.003669 | ||||
| Post | 10107816 | 2103 days ago | IN | 0 ETH | 0.00354591 | ||||
| Post | 10107700 | 2103 days ago | IN | 0 ETH | 0.0027153 | ||||
| Post | 10107626 | 2103 days ago | IN | 0 ETH | 0.0019395 | ||||
| Post | 10107399 | 2103 days ago | IN | 0 ETH | 0.00228732 | ||||
| Post | 10106580 | 2103 days ago | IN | 0 ETH | 0.00237564 | ||||
| Post | 10106248 | 2103 days ago | IN | 0 ETH | 0.00227665 | ||||
| Post | 10105388 | 2103 days ago | IN | 0 ETH | 0.0013789 | ||||
| Post | 10105001 | 2103 days ago | IN | 0 ETH | 0.00118782 | ||||
| Post | 10104728 | 2103 days ago | IN | 0 ETH | 0.0013578 | ||||
| Post | 10104620 | 2103 days ago | IN | 0 ETH | 0.00160356 | ||||
| Post | 10103779 | 2103 days ago | IN | 0 ETH | 0.00391735 | ||||
| Post | 10103734 | 2103 days ago | IN | 0 ETH | 0.00425145 | ||||
| Post | 10103600 | 2103 days ago | IN | 0 ETH | 0.00358573 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
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 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
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
0x6080604081905260018054600160a060020a03191633908117909155907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a26107de806100516000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100a857806350ed2a2c146100cb57806357de26a4146100fe57806359e02dd7146101255780635a686699146101535780637a9e5e4b146101925780638da5cb5b146101b3578063a4dff0a2146101e4578063ac4c25b214610212578063bf7e214f14610227575b600080fd5b3480156100b457600080fd5b506100c9600160a060020a036004351661023c565b005b3480156100d757600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff602435166102ba565b34801561010a57600080fd5b50610113610399565b60408051918252519081900360200190f35b34801561013157600080fd5b5061013a6103dd565b6040805192835290151560208301528051918290030190f35b34801561015f57600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff60243516600160a060020a0360443516610414565b34801561019e57600080fd5b506100c9600160a060020a036004351661055e565b3480156101bf57600080fd5b506101c86105d8565b60408051600160a060020a039092168252519081900360200190f35b3480156101f057600080fd5b506101f96105e7565b6040805163ffffffff9092168252519081900360200190f35b34801561021e57600080fd5b506100c9610607565b34801561023357600080fd5b506101c861069a565b61025233600035600160e060020a0319166106a9565b151561025d57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461032133600035600160e060020a0319166106a9565b151561032c57600080fd5b50506002805463ffffffff9092167001000000000000000000000000000000000273ffffffff00000000000000000000000000000000196fffffffffffffffffffffffffffffffff9094166fffffffffffffffffffffffffffffffff199093169290921792909216179055565b600254600090700100000000000000000000000000000000900463ffffffff1642106103c457600080fd5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff81169170010000000000000000000000000000000090910463ffffffff16421090565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461047b33600035600160e060020a0319166106a9565b151561048657600080fd5b600280546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff87161773ffffffff00000000000000000000000000000000191670010000000000000000000000000000000063ffffffff871602179055604080517f181783580000000000000000000000000000000000000000000000000000000081529051600160a060020a03851691631817835891600480830192600092919082900301818387803b15801561053f57600080fd5b505af1158015610553573d6000803e3d6000fd5b505050505050505050565b61057433600035600160e060020a0319166106a9565b151561057f57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b600154600160a060020a031681565b600254700100000000000000000000000000000000900463ffffffff1681565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461066e33600035600160e060020a0319166106a9565b151561067957600080fd5b50506002805473ffffffff0000000000000000000000000000000019169055565b600054600160a060020a031681565b6000600160a060020a0383163014156106c4575060016107ac565b600154600160a060020a03848116911614156106e2575060016107ac565b600054600160a060020a031615156106fc575060006107ac565b60008054604080517fb7009613000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152600160e060020a0319871660448301529151919092169263b700961392606480820193602093909283900390910190829087803b15801561077d57600080fd5b505af1158015610791573d6000803e3d6000fd5b505050506040513d60208110156107a757600080fd5b505190505b929150505600a165627a7a72305820f4f803b520d4231fc9d97fd0ea6a4400b5fc7d8cc1bcb74b0d48f70afdb2d9920029
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100a857806350ed2a2c146100cb57806357de26a4146100fe57806359e02dd7146101255780635a686699146101535780637a9e5e4b146101925780638da5cb5b146101b3578063a4dff0a2146101e4578063ac4c25b214610212578063bf7e214f14610227575b600080fd5b3480156100b457600080fd5b506100c9600160a060020a036004351661023c565b005b3480156100d757600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff602435166102ba565b34801561010a57600080fd5b50610113610399565b60408051918252519081900360200190f35b34801561013157600080fd5b5061013a6103dd565b6040805192835290151560208301528051918290030190f35b34801561015f57600080fd5b506100c96fffffffffffffffffffffffffffffffff6004351663ffffffff60243516600160a060020a0360443516610414565b34801561019e57600080fd5b506100c9600160a060020a036004351661055e565b3480156101bf57600080fd5b506101c86105d8565b60408051600160a060020a039092168252519081900360200190f35b3480156101f057600080fd5b506101f96105e7565b6040805163ffffffff9092168252519081900360200190f35b34801561021e57600080fd5b506100c9610607565b34801561023357600080fd5b506101c861069a565b61025233600035600160e060020a0319166106a9565b151561025d57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461032133600035600160e060020a0319166106a9565b151561032c57600080fd5b50506002805463ffffffff9092167001000000000000000000000000000000000273ffffffff00000000000000000000000000000000196fffffffffffffffffffffffffffffffff9094166fffffffffffffffffffffffffffffffff199093169290921792909216179055565b600254600090700100000000000000000000000000000000900463ffffffff1642106103c457600080fd5b506002546fffffffffffffffffffffffffffffffff1690565b6002546fffffffffffffffffffffffffffffffff81169170010000000000000000000000000000000090910463ffffffff16421090565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461047b33600035600160e060020a0319166106a9565b151561048657600080fd5b600280546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff87161773ffffffff00000000000000000000000000000000191670010000000000000000000000000000000063ffffffff871602179055604080517f181783580000000000000000000000000000000000000000000000000000000081529051600160a060020a03851691631817835891600480830192600092919082900301818387803b15801561053f57600080fd5b505af1158015610553573d6000803e3d6000fd5b505050505050505050565b61057433600035600160e060020a0319166106a9565b151561057f57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b600154600160a060020a031681565b600254700100000000000000000000000000000000900463ffffffff1681565b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a461066e33600035600160e060020a0319166106a9565b151561067957600080fd5b50506002805473ffffffff0000000000000000000000000000000019169055565b600054600160a060020a031681565b6000600160a060020a0383163014156106c4575060016107ac565b600154600160a060020a03848116911614156106e2575060016107ac565b600054600160a060020a031615156106fc575060006107ac565b60008054604080517fb7009613000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152600160e060020a0319871660448301529151919092169263b700961392606480820193602093909283900390910190829087803b15801561077d57600080fd5b505af1158015610791573d6000803e3d6000fd5b505050506040513d60208110156107a757600080fd5b505190505b929150505600a165627a7a72305820f4f803b520d4231fc9d97fd0ea6a4400b5fc7d8cc1bcb74b0d48f70afdb2d9920029
Swarm Source
bzzr://f4f803b520d4231fc9d97fd0ea6a4400b5fc7d8cc1bcb74b0d48f70afdb2d992
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 ]
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.