ETH Price: $3,336.94 (+4.20%)
Gas: 2 Gwei

Contract

0xE4FD993A0C5f9045e09C98e2b7843e12dc8d2a3b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Asset Price170160422023-04-10 6:30:47461 days ago1681108247IN
0xE4FD993A...2dc8d2a3b
0 ETH0.0014279929.72828158
Transfer Ownersh...169966002023-04-07 12:26:11464 days ago1680870371IN
0xE4FD993A...2dc8d2a3b
0 ETH0.0006807523.72793395
0x60806040169963292023-04-07 11:30:47464 days ago1680867047IN
 Create: PhiatBackupPriceOracle
0 ETH0.0231683624.5251473

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PhiatBackupPriceOracle

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : PhiatBackupPriceOracle.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

import {Ownable} from "../dependencies/openzeppelin/contracts/Ownable.sol";
import {SafeMath} from "../dependencies/openzeppelin/contracts/SafeMath.sol";

import {IPhiatBackupPriceOracle} from "../interfaces/IPhiatBackupPriceOracle.sol";
import {IPhiatPriceAggregator} from "../interfaces/IPhiatPriceAggregator.sol";

contract PhiatBackupPriceOracle is IPhiatBackupPriceOracle, Ownable {
    using SafeMath for uint256;

    mapping(address => uint256) private _prices;
    mapping(address => IPhiatPriceAggregator) private _assetsSources;
    mapping(address => bool) private _isKeeper;
    uint256 private _aggregatorWeightBps;

    event AssetSourceUpdated(address indexed asset, address indexed source);
    event AssetPriceUpdated(
        address indexed asset,
        uint256 price,
        uint256 timestamp
    );
    event KeeperUpdated(address indexed keeper, bool state);
    event AggregatorWeightUpdated(uint256 oldWeightBps, uint256 newWeightBps);

    constructor(
        address[] memory assets,
        address[] memory sources,
        address[] memory keepers,
        uint256 weightBps
    ) Ownable() {
        _setAssetsSources(assets, sources);
        for (uint256 i = 0; i < keepers.length; i++) {
            _isKeeper[keepers[i]] = true;
            emit KeeperUpdated(keepers[i], true);
        }
        _setAggregatorWeight(weightBps);
    }

    /**
     * @dev Throws if called by any account other than one of the keepers.
     */
    modifier onlyKeepers() {
        require(
            _isKeeper[_msgSender()],
            "PhiatBackupPriceOracle: caller is not one of the keepers"
        );
        _;
    }

    /// @notice External function called by the Phiat governance to set or replace sources of assets
    /// @param assets The addresses of the assets
    /// @param sources The address of the source of each asset
    function setAssetSources(
        address[] calldata assets,
        address[] calldata sources
    ) external onlyOwner {
        _setAssetsSources(assets, sources);
    }

    function setAggregatorWeight(uint256 weightBps) external onlyOwner {
        _setAggregatorWeight(weightBps);
    }

    function setKeeper(address keeper, bool state) external onlyOwner {
        _isKeeper[keeper] = state;
        emit KeeperUpdated(keeper, state);
    }

    function getAssetPrice(address asset)
        external
        view
        override
        returns (uint256)
    {
        if (_aggregatorWeightBps == 0 && _prices[asset] > 0) {
            return _prices[asset];
        } else {
            IPhiatPriceAggregator source = _assetsSources[asset];
            if (address(source) == address(0)) {
                return _prices[asset];
            }
            uint256 price = uint256(source.latestAnswer());
            if (price == 0) {
                return _prices[asset];
            } else if (_aggregatorWeightBps == 10000 || _prices[asset] == 0) {
                return price;
            } else {
                return
                    price
                        .mul(_aggregatorWeightBps)
                        .add(_prices[asset].mul(10000 - _aggregatorWeightBps))
                        .div(10000);
            }
        }
    }

    function setAssetPrice(address asset, uint256 price)
        external
        override
        onlyKeepers
    {
        _prices[asset] = price;
        emit AssetPriceUpdated(asset, price, block.timestamp);
    }

    /// @notice Internal function to set the sources for each asset
    /// @param assets The addresses of the assets
    /// @param sources The address of the source of each asset
    function _setAssetsSources(
        address[] memory assets,
        address[] memory sources
    ) internal {
        require(
            assets.length == sources.length,
            "PhiatBackupPriceOracle: inconsistent params length"
        );
        for (uint256 i = 0; i < assets.length; i++) {
            _assetsSources[assets[i]] = IPhiatPriceAggregator(sources[i]);
            emit AssetSourceUpdated(assets[i], sources[i]);
        }
    }

    /// @notice Internal function to set aggregator weight (in bps)
    /// @param weightBps New aggregator weight (in bps)
    function _setAggregatorWeight(uint256 weightBps) internal {
        require(
            weightBps <= 10000,
            "PhiatBackupPriceOracle: weight should be no higher than 10000 bps"
        );
        emit AggregatorWeightUpdated(_aggregatorWeightBps, weightBps);
        _aggregatorWeightBps = weightBps;
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 4 of 6 : IPhiatBackupPriceOracle.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

/************
@title IPriceOracle interface
@notice Interface for the Aave price oracle.*/
interface IPhiatBackupPriceOracle {
    /***********
    @dev returns the asset price in ETH
     */
    function getAssetPrice(address asset) external view returns (uint256);

    /***********
    @dev sets the asset price, in wei
     */
    function setAssetPrice(address asset, uint256 price) external;
}

File 5 of 6 : IPhiatPriceAggregator.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

interface IPhiatPriceAggregator {
    function decimals() external view returns (uint8);

    function latestAnswer() external view returns (int256);
}

File 6 of 6 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"address[]","name":"sources","type":"address[]"},{"internalType":"address[]","name":"keepers","type":"address[]"},{"internalType":"uint256","name":"weightBps","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldWeightBps","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newWeightBps","type":"uint256"}],"name":"AggregatorWeightUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AssetPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"source","type":"address"}],"name":"AssetSourceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"keeper","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"KeeperUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getAssetPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"weightBps","type":"uint256"}],"name":"setAggregatorWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setAssetPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"address[]","name":"sources","type":"address[]"}],"name":"setAssetSources","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"keeper","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200120638038062001206833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82518660208202830111640100000000821117156200008c57600080fd5b82525081516020918201928201910280838360005b83811015620000bb578181015183820152602001620000a1565b5050505090500160405260200180516040519392919084640100000000821115620000e557600080fd5b908301906020820185811115620000fb57600080fd5b82518660208202830111640100000000821117156200011957600080fd5b82525081516020918201928201910280838360005b83811015620001485781810151838201526020016200012e565b50505050905001604052602001805160405193929190846401000000008211156200017257600080fd5b9083019060208201858111156200018857600080fd5b8251866020820283011164010000000082111715620001a657600080fd5b82525081516020918201928201910280838360005b83811015620001d5578181015183820152602001620001bb565b50505050919091016040525060200151915060009050620001f562000321565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200024b848462000325565b60005b82518110156200030b576001600360008584815181106200026b57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550828181518110620002b757fe5b60200260200101516001600160a01b03167f786c9db967bf0c6b16c7c91adae8a8c554b15a57d373fa2059607300f4616c00600160405180821515815260200191505060405180910390a26001016200024e565b5062000317816200045c565b50505050620004e1565b3390565b8051825114620003675760405162461bcd60e51b8152600401808060200182810382526032815260200180620011936032913960400191505060405180910390fd5b60005b825181101562000457578181815181106200038157fe5b6020026020010151600260008584815181106200039a57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550818181518110620003f357fe5b60200260200101516001600160a01b03168382815181106200041157fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a36001016200036a565b505050565b6127108111156200049f5760405162461bcd60e51b8152600401808060200182810382526041815260200180620011c56041913960600191505060405180910390fd5b600454604080519182526020820183905280517f57e2fd47e8dbf1e3bc92ff4ab8e3bcafc0c439a6f691b45a3b79ac81fa23d9139281900390910190a1600455565b610ca280620004f16000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063abfd53101161005b578063abfd531014610104578063b3596f07146101c6578063d1b9e853146101fe578063f2fde38b1461022c57610088565b806351323f721461008d578063715018a6146100bb5780638da5cb5b146100c35780639fbe73b3146100e7575b600080fd5b6100b9600480360360408110156100a357600080fd5b506001600160a01b038135169060200135610252565b005b6100b9610313565b6100cb6103bf565b604080516001600160a01b039092168252519081900360200190f35b6100b9600480360360208110156100fd57600080fd5b50356103ce565b6100b96004803603604081101561011a57600080fd5b81019060208101813564010000000081111561013557600080fd5b82018360208201111561014757600080fd5b8035906020019184602083028401116401000000008311171561016957600080fd5b91939092909160208101903564010000000081111561018757600080fd5b82018360208201111561019957600080fd5b803590602001918460208302840111640100000000831117156101bb57600080fd5b50909250905061043c565b6101ec600480360360208110156101dc57600080fd5b50356001600160a01b0316610511565b60408051918252519081900360200190f35b6100b96004803603604081101561021457600080fd5b506001600160a01b03813516906020013515156106bd565b6100b96004803603602081101561024257600080fd5b50356001600160a01b031661077f565b6003600061025e610881565b6001600160a01b0316815260208101919091526040016000205460ff166102b65760405162461bcd60e51b8152600401808060200182810382526038815260200180610c356038913960400191505060405180910390fd5b6001600160a01b0382166000818152600160209081526040918290208490558151848152429181019190915281517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d92929181900390910190a25050565b61031b610881565b6001600160a01b031661032c6103bf565b6001600160a01b031614610375576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6103d6610881565b6001600160a01b03166103e76103bf565b6001600160a01b031614610430576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b61043981610885565b50565b610444610881565b6001600160a01b03166104556103bf565b6001600160a01b03161461049e576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b61050b8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080880282810182019093528782529093508792508691829185019084908082843760009201919091525061090892505050565b50505050565b6000600454600014801561053c57506001600160a01b03821660009081526001602052604090205415155b1561056057506001600160a01b0381166000908152600160205260409020546106b8565b6001600160a01b0380831660009081526002602052604090205416806105a05750506001600160a01b0381166000908152600160205260409020546106b8565b6000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105db57600080fd5b505afa1580156105ef573d6000803e3d6000fd5b505050506040513d602081101561060557600080fd5b505190508061062f575050506001600160a01b0381166000908152600160205260409020546106b8565b600454612710148061065757506001600160a01b038416600090815260016020526040902054155b156106655791506106b89050565b6004546001600160a01b0385166000908152600160205260409020546106b391612710916106ad9161069991908403610a37565b6004546106a7908690610a37565b90610a99565b90610af3565b925050505b919050565b6106c5610881565b6001600160a01b03166106d66103bf565b6001600160a01b03161461071f576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260036020908152604091829020805460ff1916851515908117909155825190815291517f786c9db967bf0c6b16c7c91adae8a8c554b15a57d373fa2059607300f4616c009281900390910190a25050565b610787610881565b6001600160a01b03166107986103bf565b6001600160a01b0316146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b6001600160a01b0381166108265760405162461bcd60e51b8152600401808060200182810382526026815260200180610b8d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6127108111156108c65760405162461bcd60e51b8152600401808060200182810382526041815260200180610bf46041913960600191505060405180910390fd5b600454604080519182526020820183905280517f57e2fd47e8dbf1e3bc92ff4ab8e3bcafc0c439a6f691b45a3b79ac81fa23d9139281900390910190a1600455565b80518251146109485760405162461bcd60e51b8152600401808060200182810382526032815260200180610b5b6032913960400191505060405180910390fd5b60005b8251811015610a325781818151811061096057fe5b60200260200101516002600085848151811061097857fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508181815181106109d057fe5b60200260200101516001600160a01b03168382815181106109ed57fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a360010161094b565b505050565b600082610a4657506000610a93565b82820282848281610a5357fe5b0414610a905760405162461bcd60e51b8152600401808060200182810382526021815260200180610bb36021913960400191505060405180910390fd5b90505b92915050565b600082820183811015610a90576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211610b49576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610b5257fe5b04939250505056fe50686961744261636b757050726963654f7261636c653a20696e636f6e73697374656e7420706172616d73206c656e6774684f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657250686961744261636b757050726963654f7261636c653a207765696768742073686f756c64206265206e6f20686967686572207468616e2031303030302062707350686961744261636b757050726963654f7261636c653a2063616c6c6572206973206e6f74206f6e65206f6620746865206b656570657273a2646970667358221220fa4e64beacbe132b2030e6c155cda032f5b1f7bb0824142aed84b57f89df0eed64736f6c6343000706003350686961744261636b757050726963654f7261636c653a20696e636f6e73697374656e7420706172616d73206c656e67746850686961744261636b757050726963654f7261636c653a207765696768742073686f756c64206265206e6f20686967686572207468616e20313030303020627073000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000080000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb390000000000000000000000003819f64f282bf135d62168c1e513280daf905e06000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce000000000000000000000000e9f721e7419423f11863e83dbd710b5d6127b5b000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e723dc1e86eb88c3857722ad6a9a5ca0d17c3524000000000000000000000000d8bc26a9194f6361bb23eeac79aa6adce971dd00000000000000000000000000b0385cd4529bd965819ec8a688b4f7d8c7899c520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000064e7ff734848dc7b04d00da71615649d321c04a3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063abfd53101161005b578063abfd531014610104578063b3596f07146101c6578063d1b9e853146101fe578063f2fde38b1461022c57610088565b806351323f721461008d578063715018a6146100bb5780638da5cb5b146100c35780639fbe73b3146100e7575b600080fd5b6100b9600480360360408110156100a357600080fd5b506001600160a01b038135169060200135610252565b005b6100b9610313565b6100cb6103bf565b604080516001600160a01b039092168252519081900360200190f35b6100b9600480360360208110156100fd57600080fd5b50356103ce565b6100b96004803603604081101561011a57600080fd5b81019060208101813564010000000081111561013557600080fd5b82018360208201111561014757600080fd5b8035906020019184602083028401116401000000008311171561016957600080fd5b91939092909160208101903564010000000081111561018757600080fd5b82018360208201111561019957600080fd5b803590602001918460208302840111640100000000831117156101bb57600080fd5b50909250905061043c565b6101ec600480360360208110156101dc57600080fd5b50356001600160a01b0316610511565b60408051918252519081900360200190f35b6100b96004803603604081101561021457600080fd5b506001600160a01b03813516906020013515156106bd565b6100b96004803603602081101561024257600080fd5b50356001600160a01b031661077f565b6003600061025e610881565b6001600160a01b0316815260208101919091526040016000205460ff166102b65760405162461bcd60e51b8152600401808060200182810382526038815260200180610c356038913960400191505060405180910390fd5b6001600160a01b0382166000818152600160209081526040918290208490558151848152429181019190915281517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d92929181900390910190a25050565b61031b610881565b6001600160a01b031661032c6103bf565b6001600160a01b031614610375576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6103d6610881565b6001600160a01b03166103e76103bf565b6001600160a01b031614610430576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b61043981610885565b50565b610444610881565b6001600160a01b03166104556103bf565b6001600160a01b03161461049e576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b61050b8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080880282810182019093528782529093508792508691829185019084908082843760009201919091525061090892505050565b50505050565b6000600454600014801561053c57506001600160a01b03821660009081526001602052604090205415155b1561056057506001600160a01b0381166000908152600160205260409020546106b8565b6001600160a01b0380831660009081526002602052604090205416806105a05750506001600160a01b0381166000908152600160205260409020546106b8565b6000816001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105db57600080fd5b505afa1580156105ef573d6000803e3d6000fd5b505050506040513d602081101561060557600080fd5b505190508061062f575050506001600160a01b0381166000908152600160205260409020546106b8565b600454612710148061065757506001600160a01b038416600090815260016020526040902054155b156106655791506106b89050565b6004546001600160a01b0385166000908152600160205260409020546106b391612710916106ad9161069991908403610a37565b6004546106a7908690610a37565b90610a99565b90610af3565b925050505b919050565b6106c5610881565b6001600160a01b03166106d66103bf565b6001600160a01b03161461071f576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260036020908152604091829020805460ff1916851515908117909155825190815291517f786c9db967bf0c6b16c7c91adae8a8c554b15a57d373fa2059607300f4616c009281900390910190a25050565b610787610881565b6001600160a01b03166107986103bf565b6001600160a01b0316146107e1576040805162461bcd60e51b81526020600482018190526024820152600080516020610bd4833981519152604482015290519081900360640190fd5b6001600160a01b0381166108265760405162461bcd60e51b8152600401808060200182810382526026815260200180610b8d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6127108111156108c65760405162461bcd60e51b8152600401808060200182810382526041815260200180610bf46041913960600191505060405180910390fd5b600454604080519182526020820183905280517f57e2fd47e8dbf1e3bc92ff4ab8e3bcafc0c439a6f691b45a3b79ac81fa23d9139281900390910190a1600455565b80518251146109485760405162461bcd60e51b8152600401808060200182810382526032815260200180610b5b6032913960400191505060405180910390fd5b60005b8251811015610a325781818151811061096057fe5b60200260200101516002600085848151811061097857fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508181815181106109d057fe5b60200260200101516001600160a01b03168382815181106109ed57fe5b60200260200101516001600160a01b03167f22c5b7b2d8561d39f7f210b6b326a1aa69f15311163082308ac4877db6339dc160405160405180910390a360010161094b565b505050565b600082610a4657506000610a93565b82820282848281610a5357fe5b0414610a905760405162461bcd60e51b8152600401808060200182810382526021815260200180610bb36021913960400191505060405180910390fd5b90505b92915050565b600082820183811015610a90576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211610b49576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610b5257fe5b04939250505056fe50686961744261636b757050726963654f7261636c653a20696e636f6e73697374656e7420706172616d73206c656e6774684f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657250686961744261636b757050726963654f7261636c653a207765696768742073686f756c64206265206e6f20686967686572207468616e2031303030302062707350686961744261636b757050726963654f7261636c653a2063616c6c6572206973206e6f74206f6e65206f6620746865206b656570657273a2646970667358221220fa4e64beacbe132b2030e6c155cda032f5b1f7bb0824142aed84b57f89df0eed64736f6c63430007060033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000080000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb390000000000000000000000003819f64f282bf135d62168c1e513280daf905e06000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce000000000000000000000000e9f721e7419423f11863e83dbd710b5d6127b5b000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e723dc1e86eb88c3857722ad6a9a5ca0d17c3524000000000000000000000000d8bc26a9194f6361bb23eeac79aa6adce971dd00000000000000000000000000b0385cd4529bd965819ec8a688b4f7d8c7899c520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000064e7ff734848dc7b04d00da71615649d321c04a3

-----Decoded View---------------
Arg [0] : assets (address[]): 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599,0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39,0x3819f64f282bf135d62168C1e513280dAF905e06,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xdAC17F958D2ee523a2206206994597C13D831ec7,0x6B175474E89094C44Da98b954EedeAC495271d0F,0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE,0xE9F721E7419423f11863e83DbD710b5D6127b5b0
Arg [1] : sources (address[]): 0x0000000000000000000000000000000000000000,0xe723dc1e86eb88c3857722AD6A9A5cA0D17c3524,0xD8Bc26A9194f6361BB23eeac79AA6ADcE971dD00,0xB0385cd4529bD965819eC8A688B4F7d8C7899C52,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000
Arg [2] : keepers (address[]): 0x64E7Ff734848DC7b04D00DA71615649d321c04A3
Arg [3] : weightBps (uint256): 10000

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599
Arg [6] : 0000000000000000000000002b591e99afe9f32eaa6214f7b7629768c40eeb39
Arg [7] : 0000000000000000000000003819f64f282bf135d62168c1e513280daf905e06
Arg [8] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [9] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [10] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [11] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Arg [12] : 000000000000000000000000e9f721e7419423f11863e83dbd710b5d6127b5b0
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 000000000000000000000000e723dc1e86eb88c3857722ad6a9a5ca0d17c3524
Arg [16] : 000000000000000000000000d8bc26a9194f6361bb23eeac79aa6adce971dd00
Arg [17] : 000000000000000000000000b0385cd4529bd965819ec8a688b4f7d8c7899c52
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [23] : 00000000000000000000000064e7ff734848dc7b04d00da71615649d321c04a3


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  ]

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.