ETH Price: $2,625.36 (+0.46%)

Contract

0xE51BeA8a4be0E4211C2EEC1bD91076309d7c956F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Dao115895802021-01-04 18:15:271382 days ago1609784127IN
0xE51BeA8a...09d7c956F
0 ETH0.00531688122
Setup115895402021-01-04 18:07:331382 days ago1609783653IN
0xE51BeA8a...09d7c956F
0 ETH0.33157999131
0x60806040115895282021-01-04 18:06:381382 days ago1609783598IN
 Create: Oracle
0 ETH0.13947046131

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Oracle

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-04
*/

/**
 *Submitted for verification at Etherscan.io on 2020-10-19
*/

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

// File: @uniswap/lib/contracts/libraries/FixedPoint.sol

pragma solidity >=0.4.0;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
library FixedPoint {
    // range: [0, 2**112 - 1]
    // resolution: 1 / 2**112
    struct uq112x112 {
        uint224 _x;
    }

    // range: [0, 2**144 - 1]
    // resolution: 1 / 2**112
    struct uq144x112 {
        uint _x;
    }

    uint8 private constant RESOLUTION = 112;
    uint private constant Q112 = uint(1) << RESOLUTION;
    uint private constant Q224 = Q112 << RESOLUTION;

    // returns a UQ112x112 which represents the ratio of the numerator to the denominator
    // equivalent to encode(numerator).div(denominator)
    function fraction(uint112 numerator, uint112 denominator) internal pure returns (uq112x112 memory) {
        require(denominator > 0, "FixedPoint: DIV_BY_ZERO");
        return uq112x112((uint224(numerator) << RESOLUTION) / denominator);
    }
}

// File: contracts/external/UniswapV2OracleLibrary.sol

pragma solidity >=0.5.0;



// library with helper methods for oracles that are concerned with computing average prices
library UniswapV2OracleLibrary {
    using FixedPoint for *;

    // helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]
    function currentBlockTimestamp() internal view returns (uint32) {
        return uint32(block.timestamp % 2 ** 32);
    }

    // produces the cumulative price using counterfactuals to save gas and avoid a call to sync.
    function currentCumulativePrices(address pair)
    internal
    view
    returns (uint price0Cumulative, uint price1Cumulative, uint32 blockTimestamp) {
        blockTimestamp = currentBlockTimestamp();
        price0Cumulative = IUniswapV2Pair(pair).price0CumulativeLast();
        price1Cumulative = IUniswapV2Pair(pair).price1CumulativeLast();

        // if time has elapsed since the last update on the pair, mock the accumulated price values
        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IUniswapV2Pair(pair).getReserves();
        if (blockTimestampLast != blockTimestamp) {
            // subtraction overflow is desired
            uint32 timeElapsed = blockTimestamp - blockTimestampLast;
            // addition overflow is desired
            // counterfactual
            price0Cumulative += uint(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;
            // counterfactual
            price1Cumulative += uint(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;
        }
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}



// File: contracts/external/UniswapV2Library.sol

pragma solidity >=0.5.0;



library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }
}

// File: contracts/external/Require.sol

/*
    Copyright 2019 dYdX Trading Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    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, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.7;

/**
 * @title Require
 * @author dYdX
 *
 * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()
 */
library Require {

    // ============ Constants ============

    uint256 constant ASCII_ZERO = 48; // '0'
    uint256 constant ASCII_RELATIVE_ZERO = 87; // 'a' - 10
    uint256 constant ASCII_LOWER_EX = 120; // 'x'
    bytes2 constant COLON = 0x3a20; // ': '
    bytes2 constant COMMA = 0x2c20; // ', '
    bytes2 constant LPAREN = 0x203c; // ' <'
    byte constant RPAREN = 0x3e; // '>'
    uint256 constant FOUR_BIT_MASK = 0xf;

    // ============ Library Functions ============

    function that(
        bool must,
        bytes32 file,
        bytes32 reason
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason)
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        uint256 payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        uint256 payloadA,
        uint256 payloadB
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA,
        uint256 payloadB
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA,
        uint256 payloadB,
        uint256 payloadC
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        COMMA,
                        stringify(payloadC),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        bytes32 payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        bytes32 payloadA,
        uint256 payloadB,
        uint256 payloadC
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        COMMA,
                        stringify(payloadC),
                        RPAREN
                    )
                )
            );
        }
    }

    // ============ Private Functions ============

    function stringifyTruncated(
        bytes32 input
    )
    private
    pure
    returns (bytes memory)
    {
        // put the input bytes into the result
        bytes memory result = abi.encodePacked(input);

        // determine the length of the input by finding the location of the last non-zero byte
        for (uint256 i = 32; i > 0; ) {
            // reverse-for-loops with unsigned integer
            /* solium-disable-next-line security/no-modify-for-iter-var */
            i--;

            // find the last non-zero byte in order to determine the length
            if (result[i] != 0) {
                uint256 length = i + 1;

                /* solium-disable-next-line security/no-inline-assembly */
                assembly {
                    mstore(result, length) // r.length = length;
                }

                return result;
            }
        }

        // all bytes are zero
        return new bytes(0);
    }

    function stringify(
        uint256 input
    )
    private
    pure
    returns (bytes memory)
    {
        if (input == 0) {
            return "0";
        }

        // get the final string length
        uint256 j = input;
        uint256 length;
        while (j != 0) {
            length++;
            j /= 10;
        }

        // allocate the string
        bytes memory bstr = new bytes(length);

        // populate the string starting with the least-significant character
        j = input;
        for (uint256 i = length; i > 0; ) {
            // reverse-for-loops with unsigned integer
            /* solium-disable-next-line security/no-modify-for-iter-var */
            i--;

            // take last decimal digit
            bstr[i] = byte(uint8(ASCII_ZERO + (j % 10)));

            // remove the last decimal digit
            j /= 10;
        }

        return bstr;
    }

    function stringify(
        address input
    )
    private
    pure
    returns (bytes memory)
    {
        uint256 z = uint256(input);

        // addresses are "0x" followed by 20 bytes of data which take up 2 characters each
        bytes memory result = new bytes(42);

        // populate the result with "0x"
        result[0] = byte(uint8(ASCII_ZERO));
        result[1] = byte(uint8(ASCII_LOWER_EX));

        // for each byte (starting from the lowest byte), populate the result with two characters
        for (uint256 i = 0; i < 20; i++) {
            // each byte takes two characters
            uint256 shift = i * 2;

            // populate the least-significant character
            result[41 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;

            // populate the most-significant character
            result[40 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;
        }

        return result;
    }

    function stringify(
        bytes32 input
    )
    private
    pure
    returns (bytes memory)
    {
        uint256 z = uint256(input);

        // bytes32 are "0x" followed by 32 bytes of data which take up 2 characters each
        bytes memory result = new bytes(66);

        // populate the result with "0x"
        result[0] = byte(uint8(ASCII_ZERO));
        result[1] = byte(uint8(ASCII_LOWER_EX));

        // for each byte (starting from the lowest byte), populate the result with two characters
        for (uint256 i = 0; i < 32; i++) {
            // each byte takes two characters
            uint256 shift = i * 2;

            // populate the least-significant character
            result[65 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;

            // populate the most-significant character
            result[64 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;
        }

        return result;
    }

    function char(
        uint256 input
    )
    private
    pure
    returns (byte)
    {
        // return ASCII digit (0-9)
        if (input < 10) {
            return byte(uint8(input + ASCII_ZERO));
        }

        // return ASCII letter (a-f)
        return byte(uint8(input + ASCII_RELATIVE_ZERO));
    }
}

// File: contracts/external/Decimal.sol

/*
    Copyright 2019 dYdX Trading Inc.
    Copyright 2020 Empty Set Squad <[email protected]>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    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, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;


/**
 * @title Decimal
 * @author dYdX
 *
 * Library that defines a fixed-point number with 18 decimal places.
 */
library Decimal {
    using SafeMath for uint256;

    // ============ Constants ============

    uint256 constant BASE = 10**18;

    // ============ Structs ============


    struct D256 {
        uint256 value;
    }

    // ============ Static Functions ============

    function zero()
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: 0 });
    }

    function one()
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: BASE });
    }

    function from(
        uint256 a
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: a.mul(BASE) });
    }

    function ratio(
        uint256 a,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(a, BASE, b) });
    }

    // ============ Self Functions ============

    function add(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.add(b.mul(BASE)) });
    }

    function sub(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.mul(BASE)) });
    }

    function sub(
        D256 memory self,
        uint256 b,
        string memory reason
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.mul(BASE), reason) });
    }

    function mul(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.mul(b) });
    }

    function div(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.div(b) });
    }

    function pow(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        if (b == 0) {
            return from(1);
        }

        D256 memory temp = D256({ value: self.value });
        for (uint256 i = 1; i < b; i++) {
            temp = mul(temp, self);
        }

        return temp;
    }

    function add(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.add(b.value) });
    }

    function sub(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.value) });
    }

    function sub(
        D256 memory self,
        D256 memory b,
        string memory reason
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.value, reason) });
    }

    function mul(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(self.value, b.value, BASE) });
    }

    function div(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(self.value, BASE, b.value) });
    }

    function equals(D256 memory self, D256 memory b) internal pure returns (bool) {
        return self.value == b.value;
    }

    function greaterThan(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) == 2;
    }

    function lessThan(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) == 0;
    }

    function greaterThanOrEqualTo(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) > 0;
    }

    function lessThanOrEqualTo(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) < 2;
    }

    function isZero(D256 memory self) internal pure returns (bool) {
        return self.value == 0;
    }

    function asUint256(D256 memory self) internal pure returns (uint256) {
        return self.value.div(BASE);
    }

    // ============ Core Methods ============

    function getPartial(
        uint256 target,
        uint256 numerator,
        uint256 denominator
    )
    private
    pure
    returns (uint256)
    {
        return target.mul(numerator).div(denominator);
    }

    function compareTo(
        D256 memory a,
        D256 memory b
    )
    private
    pure
    returns (uint256)
    {
        if (a.value == b.value) {
            return 1;
        }
        return a.value > b.value ? 2 : 0;
    }
}

// File: contracts/oracle/IOracle.sol

/*
    Copyright 2020 Empty Set Squad <[email protected]>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    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, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.17;


contract IOracle {
    function setup() public;
    function capture() public returns (Decimal.D256 memory, bool);
    function pair() external view returns (address);
}

// File: contracts/oracle/IUSDC.sol

/*
    Copyright 2020 Empty Set Squad <[email protected]>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    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, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.17;

contract IUSDC {
    function isBlacklisted(address _account) external view returns (bool);
}

// File: contracts/Constants.sol

/*
    Copyright 2020 Empty Set Squad <[email protected]>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    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, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.17;


library Constants {
    /* Chain */
    uint256 private constant CHAIN_ID = 1; // Mainnet

    /* Bootstrapping */
    uint256 private constant BOOTSTRAPPING_PERIOD = 300;
    uint256 private constant BOOTSTRAPPING_PRICE = 154e16; // 1.54 USDC
    uint256 private constant BOOTSTRAPPING_SPEEDUP_FACTOR = 3; // 30 days @ 8 hours

    /* Oracle */
    address private constant USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    uint256 private constant ORACLE_RESERVE_MINIMUM = 1e10; // 10,000 USDC

    /* Bonding */
    uint256 private constant INITIAL_STAKE_MULTIPLE = 1e6; // 100 ESD -> 100M ESDS

    /* Epoch */
    struct EpochStrategy {
        uint256 offset;
        uint256 start;
        uint256 period;
    }

    uint256 private constant PREVIOUS_EPOCH_OFFSET = 91;
    uint256 private constant PREVIOUS_EPOCH_START = 1600905600;
    uint256 private constant PREVIOUS_EPOCH_PERIOD = 3600;

    uint256 private constant CURRENT_EPOCH_OFFSET = 106;
    uint256 private constant CURRENT_EPOCH_START = 1602201600;
    uint256 private constant CURRENT_EPOCH_PERIOD = 3600;

    /* Governance */
    uint256 private constant GOVERNANCE_PERIOD = 72;
    uint256 private constant GOVERNANCE_QUORUM = 33e16; // 33%
    uint256 private constant GOVERNANCE_SUPER_MAJORITY = 66e16; // 66%
    uint256 private constant GOVERNANCE_EMERGENCY_DELAY = 12; // 6 epochs

    /* DAO */
    uint256 private constant ADVANCE_INCENTIVE = 1e20; // 100 ESD

    /* Market */
    uint256 private constant COUPON_EXPIRATION = 360;
    uint256 private constant DEBT_RATIO_CAP = 35e16; // 35%

    /* Regulator */
    uint256 private constant SUPPLY_CHANGE_LIMIT = 2e16; // 2%
    uint256 private constant ORACLE_POOL_RATIO = 50; // 50%

    /**
     * Getters
     */

    function getUsdcAddress() internal pure returns (address) {
        return USDC;
    }

    function getOracleReserveMinimum() internal pure returns (uint256) {
        return ORACLE_RESERVE_MINIMUM;
    }

    function getPreviousEpochStrategy() internal pure returns (EpochStrategy memory) {
        return EpochStrategy({
            offset: PREVIOUS_EPOCH_OFFSET,
            start: PREVIOUS_EPOCH_START,
            period: PREVIOUS_EPOCH_PERIOD
        });
    }

    function getCurrentEpochStrategy() internal pure returns (EpochStrategy memory) {
        return EpochStrategy({
            offset: CURRENT_EPOCH_OFFSET,
            start: CURRENT_EPOCH_START,
            period: CURRENT_EPOCH_PERIOD
        });
    }

    function getInitialStakeMultiple() internal pure returns (uint256) {
        return INITIAL_STAKE_MULTIPLE;
    }

    function getBootstrappingPeriod() internal pure returns (uint256) {
        return BOOTSTRAPPING_PERIOD;
    }

    function getBootstrappingPrice() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: BOOTSTRAPPING_PRICE});
    }

    function getBootstrappingSpeedupFactor() internal pure returns (uint256) {
        return BOOTSTRAPPING_SPEEDUP_FACTOR;
    }

    function getGovernancePeriod() internal pure returns (uint256) {
        return GOVERNANCE_PERIOD;
    }

    function getGovernanceQuorum() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_QUORUM});
    }

    function getGovernanceSuperMajority() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_SUPER_MAJORITY});
    }

    function getGovernanceEmergencyDelay() internal pure returns (uint256) {
        return GOVERNANCE_EMERGENCY_DELAY;
    }

    function getAdvanceIncentive() internal pure returns (uint256) {
        return ADVANCE_INCENTIVE;
    }

    function getCouponExpiration() internal pure returns (uint256) {
        return COUPON_EXPIRATION;
    }

    function getDebtRatioCap() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: DEBT_RATIO_CAP});
    }

    function getSupplyChangeLimit() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: SUPPLY_CHANGE_LIMIT});
    }

    function getOraclePoolRatio() internal pure returns (uint256) {
        return ORACLE_POOL_RATIO;
    }

    function getChainId() internal pure returns (uint256) {
        return CHAIN_ID;
    }
}

// File: oracle/Oracle.sol

/*
    Copyright 2020 Empty Set Squad <[email protected]>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    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, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.17;

contract Oracle is IOracle {
    using Decimal for Decimal.D256;

    bytes32 private constant FILE = "Oracle";
    address private constant UNISWAP_FACTORY = address(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);

    address internal _dao;
    address internal _dollar;

    bool internal _initialized;
    IUniswapV2Pair internal _pair;
    uint256 internal _index;
    uint256 internal _cumulative;
    uint32 internal _timestamp;

    uint256 internal _reserve;
    address public owner;

    constructor (address dollar) public {
        owner = msg.sender;
        _dollar = dollar;
    }

    function setup() public onlyOwner {
        _pair = IUniswapV2Pair(IUniswapV2Factory(UNISWAP_FACTORY).createPair(_dollar, usdc()));

        (address token0, address token1) = (_pair.token0(), _pair.token1());
        _index = _dollar == token0 ? 0 : 1;

        Require.that(
            _index == 0 || _dollar == token1,
            FILE,
            "Døllar not found"
        );
    }
    
    function setDao(address dao) public onlyOwner {
        _dao = dao;
    }

    /**
     * Trades/Liquidity: (1) Initializes reserve and blockTimestampLast (can calculate a price)
     *                   (2) Has non-zero cumulative prices
     *
     * Steps: (1) Captures a reference blockTimestampLast
     *        (2) First reported value
     */
    function capture() public onlyDao returns (Decimal.D256 memory, bool) {
        if (_initialized) {
            return updateOracle();
        } else {
            initializeOracle();
            return (Decimal.one(), false);
        }
    }

    function initializeOracle() private {
        IUniswapV2Pair pair = _pair;
        uint256 priceCumulative = _index == 0 ?
            pair.price0CumulativeLast() :
            pair.price1CumulativeLast();
        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = pair.getReserves();
        if(reserve0 != 0 && reserve1 != 0 && blockTimestampLast != 0) {
            _cumulative = priceCumulative;
            _timestamp = blockTimestampLast;
            _initialized = true;
            _reserve = _index == 0 ? reserve1 : reserve0; // get counter's reserve
        }
    }

    function updateOracle() private returns (Decimal.D256 memory, bool) {
        Decimal.D256 memory price = updatePrice();
        uint256 lastReserve = updateReserve();
        bool isBlacklisted = IUSDC(usdc()).isBlacklisted(address(_pair));

        bool valid = true;
        if (lastReserve < Constants.getOracleReserveMinimum()) {
            valid = false;
        }
        if (_reserve < Constants.getOracleReserveMinimum()) {
            valid = false;
        }
        if (isBlacklisted) {
            valid = false;
        }

        return (price, valid);
    }

    function updatePrice() private returns (Decimal.D256 memory) {
        (uint256 price0Cumulative, uint256 price1Cumulative, uint32 blockTimestamp) =
        UniswapV2OracleLibrary.currentCumulativePrices(address(_pair));
        uint32 timeElapsed = blockTimestamp - _timestamp; // overflow is desired
        uint256 priceCumulative = _index == 0 ? price0Cumulative : price1Cumulative;
        Decimal.D256 memory price = Decimal.ratio((priceCumulative - _cumulative) / timeElapsed, 2**112);

        _timestamp = blockTimestamp;
        _cumulative = priceCumulative;

        return price.mul(1e12);
    }

    function updateReserve() private returns (uint256) {
        uint256 lastReserve = _reserve;
        (uint112 reserve0, uint112 reserve1,) = _pair.getReserves();
        _reserve = _index == 0 ? reserve1 : reserve0; // get counter's reserve

        return lastReserve;
    }

    function usdc() internal view returns (address) {
        return Constants.getUsdcAddress();
    }

    function pair() external view returns (address) {
        return address(_pair);
    }

    function reserve() external view returns (uint256) {
        return _reserve;
    }
    
    modifier onlyOwner() {
        Require.that(
            msg.sender == owner,
            FILE,
            "Not owner"
        );

        _;
    }

    modifier onlyDao() {
        Require.that(
            msg.sender == _dao,
            FILE,
            "Not dao"
        );

        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"dollar","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[],"name":"capture","outputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"","type":"tuple"},{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"dao","type":"address"}],"name":"setDao","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"setup","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051620012503803806200125083398101604081905261003191610075565b60078054336001600160a01b031991821617909155600180549091166001600160a01b03929092169190911790556100c3565b805161006f816100ac565b92915050565b60006020828403121561008757600080fd5b60006100938484610064565b949350505050565b60006001600160a01b03821661006f565b6100b58161009b565b81146100c057600080fd5b50565b61117d80620000d36000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80636637b882146100675780638da5cb5b1461007c578063a8aa1b311461009a578063ba0bba40146100a2578063cd3293de146100aa578063d4a3e9d7146100bf575b600080fd5b61007a610075366004610dad565b6100d5565b005b610084610125565b6040516100919190610ff8565b60405180910390f35b610084610134565b61007a610143565b6100b2610399565b604051610091919061106d565b6100c761039f565b604051610091929190611052565b600754610103906001600160a01b03163314654f7261636c6560d01b682737ba1037bbb732b960b91b610412565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b6002546001600160a01b031690565b600754610171906001600160a01b03163314654f7261636c6560d01b682737ba1037bbb732b960b91b610412565b600154735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063c9c65396906001600160a01b03166101a1610475565b6040518363ffffffff1660e01b81526004016101be929190611006565b602060405180830381600087803b1580156101d857600080fd5b505af11580156101ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102109190810190610dd3565b600280546001600160a01b0319166001600160a01b03928316179081905560408051630dfe168160e01b8152905160009384931691630dfe1681916004808301926020929190829003018186803b15801561026a57600080fd5b505afa15801561027e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102a29190810190610dd3565b600260009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156102f057600080fd5b505afa158015610304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506103289190810190610dd3565b60015491935091506001600160a01b0380841691161461034957600161034c565b60005b60ff16600381905561039590158061037157506001546001600160a01b038381169116145b654f7261636c6560d01b701130ee1b1b185c881b9bdd08199bdd5b99607a1b610412565b5050565b60065490565b6103a7610d46565b600080546103d4906001600160a01b03163314654f7261636c6560d01b664e6f742064616f60c81b610412565b600154600160a01b900460ff16156103f7576103ee610484565b9150915061040e565b6103ff610579565b610407610783565b6000915091505b9091565b8261047057610420826107a5565b6101d160f51b61042f836107a5565b60405160200161044193929190610fc7565b60408051601f198184030181529082905262461bcd60e51b825261046791600401611021565b60405180910390fd5b505050565b600061047f610827565b905090565b61048c610d46565b6000610496610d46565b61049e61083f565b905060006104aa6108f5565b905060006104b6610475565b60025460405163fe575a8760e01b81526001600160a01b039283169263fe575a87926104e792911690600401610ff8565b60206040518083038186803b1580156104ff57600080fd5b505afa158015610513573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506105379190810190610df1565b905060016105436109b1565b83101561054e575060005b6105566109b1565b6006541015610563575060005b811561056d575060005b92945091925050509091565b6002546003546001600160a01b03909116906000901561060957816001600160a01b0316635a3d54936040518163ffffffff1660e01b815260040160206040518083038186803b1580156105cc57600080fd5b505afa1580156105e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506106049190810190610e5c565b61067a565b816001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561064257600080fd5b505afa158015610656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061067a9190810190610e5c565b90506000806000846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156106ba57600080fd5b505afa1580156106ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506106f29190810190610e0f565b925092509250826001600160701b031660001415801561071a57506001600160701b03821615155b801561072b575063ffffffff811615155b1561077c5760048490556005805463ffffffff831663ffffffff199091161790556001805460ff60a01b1916600160a01b1790556003541561076d578261076f565b815b6001600160701b03166006555b5050505050565b61078b610d46565b506040805160208101909152670de0b6b3a7640000815290565b606080826040516020016107b99190610fb2565b60408051601f19818403018152919052905060205b801561080e578151600019909101908290829081106107e957fe5b01602001516001600160f81b031916156108095760010181529050610822565b6107ce565b505060408051600081526020810190915290505b919050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4890565b610847610d46565b60025460009081908190610863906001600160a01b03166109ba565b600554600354939650919450925063ffffffff1682039060009015610888578361088a565b845b9050610894610d46565b6108b58363ffffffff166004548403816108aa57fe5b04600160701b610b8f565b6005805463ffffffff191663ffffffff8781169190911790915560048490559091506108ea90829064e8d4a5100090610bc016565b965050505050505090565b6000806006549050600080600260009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506109869190810190610e0f565b509150915060035460001461099b578161099d565b805b6001600160701b0316600655509091505090565b6402540be40090565b60008060006109c7610be7565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0257600080fd5b505afa158015610a16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610a3a9190810190610e5c565b9250836001600160a01b0316635a3d54936040518163ffffffff1660e01b815260040160206040518083038186803b158015610a7557600080fd5b505afa158015610a89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610aad9190810190610e5c565b91506000806000866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610aed57600080fd5b505afa158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b259190810190610e0f565b9250925092508363ffffffff168163ffffffff1614610b855780840363ffffffff8116610b528486610bf1565b516001600160e01b031602969096019563ffffffff8116610b738585610bf1565b516001600160e01b0316029590950194505b5050509193909250565b610b97610d46565b6040518060200160405280610bb585670de0b6b3a764000086610c6c565b905290505b92915050565b610bc8610d46565b604080516020810190915283518190610bb5908563ffffffff610c9816565b63ffffffff421690565b610bf9610d59565b6000826001600160701b031611610c225760405162461bcd60e51b815260040161046790611042565b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b1681610c5757fe5b046001600160e01b0316815250905092915050565b6000610c8e82610c82868663ffffffff610c9816565b9063ffffffff610cd216565b90505b9392505050565b600082610ca757506000610bba565b82820282848281610cb457fe5b0414610c915760405162461bcd60e51b815260040161046790611032565b6000610c9183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183610d305760405162461bcd60e51b81526004016104679190611021565b506000838581610d3c57fe5b0495945050505050565b6040518060200160405280600081525090565b60408051602081019091526000815290565b8035610bba816110ff565b8051610bba816110ff565b8051610bba81611116565b8051610bba8161111f565b8051610bba81611128565b8051610bba81611131565b600060208284031215610dbf57600080fd5b6000610dcb8484610d6b565b949350505050565b600060208284031215610de557600080fd5b6000610dcb8484610d76565b600060208284031215610e0357600080fd5b6000610dcb8484610d81565b600080600060608486031215610e2457600080fd5b6000610e308686610d8c565b9350506020610e4186828701610d8c565b9250506040610e5286828701610da2565b9150509250925092565b600060208284031215610e6e57600080fd5b6000610dcb8484610d97565b610e8381611088565b82525050565b610e8381611093565b610e83610e9e82611098565b6110a5565b610e83610e9e826110a5565b6000610eba8261107b565b610ec48185610822565b9350610ed48185602086016110c9565b9290920192915050565b6000610ee98261107b565b610ef3818561107f565b9350610f038185602086016110c9565b610f0c816110f5565b9093019392505050565b6000610f2360218361107f565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000610f6660178361107f565b7f4669786564506f696e743a204449565f42595f5a45524f000000000000000000815260200192915050565b80516020830190610fa38482610fa9565b50505050565b610e83816110a5565b6000610fbe8284610ea3565b50602001919050565b6000610fd38286610eaf565b9150610fdf8285610e92565b600282019150610fef8284610eaf565b95945050505050565b60208101610bba8284610e7a565b604081016110148285610e7a565b610c916020830184610e7a565b60208082528101610c918184610ede565b60208082528101610bba81610f16565b60208082528101610bba81610f59565b604081016110608285610f92565b610c916020830184610e89565b60208101610bba8284610fa9565b5190565b90815260200190565b6000610bba826110b4565b151590565b6001600160f01b03191690565b90565b6001600160701b031690565b6001600160a01b031690565b63ffffffff1690565b60005b838110156110e45781810151838201526020016110cc565b83811115610fa35750506000910152565b601f01601f191690565b61110881611088565b811461111357600080fd5b50565b61110881611093565b611108816110a8565b611108816110a5565b611108816110c056fea365627a7a723158200b766abb7d844da5581ca690fb4582584bb347c47388c45ad8c3c2ff4edcf8026c6578706572696d656e74616cf564736f6c63430005110040000000000000000000000000597072f9d8af624702c8fc4aa7fc919a04dafbde

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80636637b882146100675780638da5cb5b1461007c578063a8aa1b311461009a578063ba0bba40146100a2578063cd3293de146100aa578063d4a3e9d7146100bf575b600080fd5b61007a610075366004610dad565b6100d5565b005b610084610125565b6040516100919190610ff8565b60405180910390f35b610084610134565b61007a610143565b6100b2610399565b604051610091919061106d565b6100c761039f565b604051610091929190611052565b600754610103906001600160a01b03163314654f7261636c6560d01b682737ba1037bbb732b960b91b610412565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b6002546001600160a01b031690565b600754610171906001600160a01b03163314654f7261636c6560d01b682737ba1037bbb732b960b91b610412565b600154735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063c9c65396906001600160a01b03166101a1610475565b6040518363ffffffff1660e01b81526004016101be929190611006565b602060405180830381600087803b1580156101d857600080fd5b505af11580156101ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102109190810190610dd3565b600280546001600160a01b0319166001600160a01b03928316179081905560408051630dfe168160e01b8152905160009384931691630dfe1681916004808301926020929190829003018186803b15801561026a57600080fd5b505afa15801561027e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506102a29190810190610dd3565b600260009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156102f057600080fd5b505afa158015610304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506103289190810190610dd3565b60015491935091506001600160a01b0380841691161461034957600161034c565b60005b60ff16600381905561039590158061037157506001546001600160a01b038381169116145b654f7261636c6560d01b701130ee1b1b185c881b9bdd08199bdd5b99607a1b610412565b5050565b60065490565b6103a7610d46565b600080546103d4906001600160a01b03163314654f7261636c6560d01b664e6f742064616f60c81b610412565b600154600160a01b900460ff16156103f7576103ee610484565b9150915061040e565b6103ff610579565b610407610783565b6000915091505b9091565b8261047057610420826107a5565b6101d160f51b61042f836107a5565b60405160200161044193929190610fc7565b60408051601f198184030181529082905262461bcd60e51b825261046791600401611021565b60405180910390fd5b505050565b600061047f610827565b905090565b61048c610d46565b6000610496610d46565b61049e61083f565b905060006104aa6108f5565b905060006104b6610475565b60025460405163fe575a8760e01b81526001600160a01b039283169263fe575a87926104e792911690600401610ff8565b60206040518083038186803b1580156104ff57600080fd5b505afa158015610513573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506105379190810190610df1565b905060016105436109b1565b83101561054e575060005b6105566109b1565b6006541015610563575060005b811561056d575060005b92945091925050509091565b6002546003546001600160a01b03909116906000901561060957816001600160a01b0316635a3d54936040518163ffffffff1660e01b815260040160206040518083038186803b1580156105cc57600080fd5b505afa1580156105e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506106049190810190610e5c565b61067a565b816001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561064257600080fd5b505afa158015610656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061067a9190810190610e5c565b90506000806000846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156106ba57600080fd5b505afa1580156106ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506106f29190810190610e0f565b925092509250826001600160701b031660001415801561071a57506001600160701b03821615155b801561072b575063ffffffff811615155b1561077c5760048490556005805463ffffffff831663ffffffff199091161790556001805460ff60a01b1916600160a01b1790556003541561076d578261076f565b815b6001600160701b03166006555b5050505050565b61078b610d46565b506040805160208101909152670de0b6b3a7640000815290565b606080826040516020016107b99190610fb2565b60408051601f19818403018152919052905060205b801561080e578151600019909101908290829081106107e957fe5b01602001516001600160f81b031916156108095760010181529050610822565b6107ce565b505060408051600081526020810190915290505b919050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4890565b610847610d46565b60025460009081908190610863906001600160a01b03166109ba565b600554600354939650919450925063ffffffff1682039060009015610888578361088a565b845b9050610894610d46565b6108b58363ffffffff166004548403816108aa57fe5b04600160701b610b8f565b6005805463ffffffff191663ffffffff8781169190911790915560048490559091506108ea90829064e8d4a5100090610bc016565b965050505050505090565b6000806006549050600080600260009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506109869190810190610e0f565b509150915060035460001461099b578161099d565b805b6001600160701b0316600655509091505090565b6402540be40090565b60008060006109c7610be7565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0257600080fd5b505afa158015610a16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610a3a9190810190610e5c565b9250836001600160a01b0316635a3d54936040518163ffffffff1660e01b815260040160206040518083038186803b158015610a7557600080fd5b505afa158015610a89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610aad9190810190610e5c565b91506000806000866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610aed57600080fd5b505afa158015610b01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b259190810190610e0f565b9250925092508363ffffffff168163ffffffff1614610b855780840363ffffffff8116610b528486610bf1565b516001600160e01b031602969096019563ffffffff8116610b738585610bf1565b516001600160e01b0316029590950194505b5050509193909250565b610b97610d46565b6040518060200160405280610bb585670de0b6b3a764000086610c6c565b905290505b92915050565b610bc8610d46565b604080516020810190915283518190610bb5908563ffffffff610c9816565b63ffffffff421690565b610bf9610d59565b6000826001600160701b031611610c225760405162461bcd60e51b815260040161046790611042565b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b1681610c5757fe5b046001600160e01b0316815250905092915050565b6000610c8e82610c82868663ffffffff610c9816565b9063ffffffff610cd216565b90505b9392505050565b600082610ca757506000610bba565b82820282848281610cb457fe5b0414610c915760405162461bcd60e51b815260040161046790611032565b6000610c9183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060008183610d305760405162461bcd60e51b81526004016104679190611021565b506000838581610d3c57fe5b0495945050505050565b6040518060200160405280600081525090565b60408051602081019091526000815290565b8035610bba816110ff565b8051610bba816110ff565b8051610bba81611116565b8051610bba8161111f565b8051610bba81611128565b8051610bba81611131565b600060208284031215610dbf57600080fd5b6000610dcb8484610d6b565b949350505050565b600060208284031215610de557600080fd5b6000610dcb8484610d76565b600060208284031215610e0357600080fd5b6000610dcb8484610d81565b600080600060608486031215610e2457600080fd5b6000610e308686610d8c565b9350506020610e4186828701610d8c565b9250506040610e5286828701610da2565b9150509250925092565b600060208284031215610e6e57600080fd5b6000610dcb8484610d97565b610e8381611088565b82525050565b610e8381611093565b610e83610e9e82611098565b6110a5565b610e83610e9e826110a5565b6000610eba8261107b565b610ec48185610822565b9350610ed48185602086016110c9565b9290920192915050565b6000610ee98261107b565b610ef3818561107f565b9350610f038185602086016110c9565b610f0c816110f5565b9093019392505050565b6000610f2360218361107f565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000610f6660178361107f565b7f4669786564506f696e743a204449565f42595f5a45524f000000000000000000815260200192915050565b80516020830190610fa38482610fa9565b50505050565b610e83816110a5565b6000610fbe8284610ea3565b50602001919050565b6000610fd38286610eaf565b9150610fdf8285610e92565b600282019150610fef8284610eaf565b95945050505050565b60208101610bba8284610e7a565b604081016110148285610e7a565b610c916020830184610e7a565b60208082528101610c918184610ede565b60208082528101610bba81610f16565b60208082528101610bba81610f59565b604081016110608285610f92565b610c916020830184610e89565b60208101610bba8284610fa9565b5190565b90815260200190565b6000610bba826110b4565b151590565b6001600160f01b03191690565b90565b6001600160701b031690565b6001600160a01b031690565b63ffffffff1690565b60005b838110156110e45781810151838201526020016110cc565b83811115610fa35750506000910152565b601f01601f191690565b61110881611088565b811461111357600080fd5b50565b61110881611093565b611108816110a8565b611108816110a5565b611108816110c056fea365627a7a723158200b766abb7d844da5581ca690fb4582584bb347c47388c45ad8c3c2ff4edcf8026c6578706572696d656e74616cf564736f6c63430005110040

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

000000000000000000000000597072f9d8af624702c8fc4aa7fc919a04dafbde

-----Decoded View---------------
Arg [0] : dollar (address): 0x597072f9D8af624702c8fC4aA7fC919a04dAFbde

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000597072f9d8af624702c8fc4aa7fc919a04dafbde


Deployed Bytecode Sourcemap

37731:4402:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37731:4402:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38765:75;;;;;;;;;:::i;:::-;;38216:20;;;:::i;:::-;;;;;;;;;;;;;;;;41622:88;;;:::i;38353:400::-;;;:::i;41718:85::-;;;:::i;:::-;;;;;;;;39131:249;;;:::i;:::-;;;;;;;;;38765:75;41888:5;;41847:102;;-1:-1:-1;;;;;41888:5:0;41874:10;:19;-1:-1:-1;;;;;;41847:12:0;:102::i;:::-;38822:4;:10;;-1:-1:-1;;;;;;38822:10:0;-1:-1:-1;;;;;38822:10:0;;;;;;;;;;38765:75::o;38216:20::-;;;-1:-1:-1;;;;;38216:20:0;;:::o;41622:88::-;41696:5;;-1:-1:-1;;;;;41696:5:0;41622:88;:::o;38353:400::-;41888:5;;41847:102;;-1:-1:-1;;;;;41888:5:0;41874:10;:19;-1:-1:-1;;;;;;41847:12:0;:102::i;:::-;38467:7;;37902:42;;38421:45;;-1:-1:-1;;;;;38467:7:0;38476:6;:4;:6::i;:::-;38421:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38421:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38421:62:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;38421:62:0;;;;;;;;;38398:5;:86;;-1:-1:-1;;;;;;38398:86:0;-1:-1:-1;;;;;38398:86:0;;;;;;;;38533:14;;;-1:-1:-1;;;38533:14:0;;;;-1:-1:-1;;;;38533:5:0;;:12;;:14;;;;;;;;;;;;;;:5;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;38533:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38533:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;38533:14:0;;;;;;;;;38549:5;;;;;;;;;-1:-1:-1;;;;;38549:5:0;-1:-1:-1;;;;;38549:12:0;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38549:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38549:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;38549:14:0;;;;;;;;;38584:7;;38497:67;;-1:-1:-1;38497:67:0;-1:-1:-1;;;;;;38584:17:0;;;:7;;:17;:25;;38608:1;38584:25;;;38604:1;38584:25;38575:34;;:6;:34;;;38622:123;;38649:11;;:32;;-1:-1:-1;38664:7:0;;-1:-1:-1;;;;;38664:17:0;;;:7;;:17;38649:32;-1:-1:-1;;;;;;38622:12:0;:123::i;:::-;41962:1;;38353:400::o;41718:85::-;41787:8;;41718:85;:::o;39131:249::-;39174:19;;:::i;:::-;39195:4;42050;;42009:99;;-1:-1:-1;;;;;42050:4:0;42036:10;:18;-1:-1:-1;;;;;;42009:12:0;:99::i;:::-;39216:12;;-1:-1:-1;;;39216:12:0;;;;39212:161;;;39252:14;:12;:14::i;:::-;39245:21;;;;;;39212:161;39299:18;:16;:18::i;:::-;39340:13;:11;:13::i;:::-;39355:5;39332:29;;;;39212:161;39131:249;;:::o;14946:437::-;15080:4;15075:301;;15198:24;15217:4;15198:18;:24::i;:::-;-1:-1:-1;;;15281:26:0;15300:6;15281:18;:26::i;:::-;15155:175;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;15155:175:0;;;;-1:-1:-1;;;15101:263:0;;;;;;;;;;;;;;;;15075:301;14946:437;;;:::o;41514:100::-;41553:7;41580:26;:24;:26::i;:::-;41573:33;;41514:100;:::o;39999:591::-;40040:19;;:::i;:::-;40061:4;40078:25;;:::i;:::-;40106:13;:11;:13::i;:::-;40078:41;;40130:19;40152:15;:13;:15::i;:::-;40130:37;;40178:18;40205:6;:4;:6::i;:::-;40235:5;;40199:43;;-1:-1:-1;;;40199:43:0;;-1:-1:-1;;;;;40199:27:0;;;;;;:43;;40235:5;;;40199:43;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40199:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40199:43:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;40199:43:0;;;;;;;;;40178:64;-1:-1:-1;40268:4:0;40301:35;:33;:35::i;:::-;40287:11;:49;40283:95;;;-1:-1:-1;40361:5:0;40283:95;40403:35;:33;:35::i;:::-;40392:8;;:46;40388:92;;;-1:-1:-1;40463:5:0;40388:92;40494:13;40490:59;;;-1:-1:-1;40532:5:0;40490:59;40569:5;;-1:-1:-1;40576:5:0;;-1:-1:-1;;;39999:591:0;;:::o;39388:603::-;39457:5;;39499:6;;-1:-1:-1;;;;;39457:5:0;;;;39435:19;;39499:11;:97;;39569:4;-1:-1:-1;;;;;39569:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39569:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39569:27:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;39569:27:0;;;;;;;;;39499:97;;;39526:4;-1:-1:-1;;;;;39526:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39526:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39526:27:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;39526:27:0;;;;;;;;;39473:123;;39608:16;39626;39644:25;39673:4;-1:-1:-1;;;;;39673:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39673:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39673:18:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;39673:18:0;;;;;;;;;39607:84;;;;;;39705:8;-1:-1:-1;;;;;39705:13:0;39717:1;39705:13;;:30;;;;-1:-1:-1;;;;;;39722:13:0;;;;39705:30;:57;;;;-1:-1:-1;39739:23:0;;;;;39705:57;39702:282;;;39779:11;:29;;;39823:10;:31;;;;;-1:-1:-1;;39823:31:0;;;;;;;39869:19;;-1:-1:-1;;;;39869:19:0;-1:-1:-1;;;39869:19:0;;;-1:-1:-1;39914:6:0;:11;:33;;39939:8;39914:33;;;39928:8;39914:33;-1:-1:-1;;;;;39903:44:0;:8;:44;39702:282;39388:603;;;;;:::o;25740:118::-;25793:11;;:::i;:::-;-1:-1:-1;25829:21:0;;;;;;;;;25450:6;25829:21;;25740:118;:::o;20163:985::-;20259:12;20337:19;20376:5;20359:23;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;20359:23:0;;;;-1:-1:-1;49:4;20491:587:0;20512:5;;20491:587;;20769:9;;-1:-1:-1;;20668:3:0;;;;20769:6;;20668:3;;20769:9;;;;;;;;;;-1:-1:-1;;;;;;20769:9:0;:14;20765:302;;20825:1;20821:5;20955:22;;20962:6;-1:-1:-1;21038:13:0;;20765:302;20491:587;;;-1:-1:-1;;21128:12:0;;;21138:1;21128:12;;;;;;;;;-1:-1:-1;20163:985:0;;;;:::o;34451:88::-;33029:42;34451:88;:::o;40598:619::-;40638:19;;:::i;:::-;40812:5;;40671:24;;;;;;40757:62;;-1:-1:-1;;;;;40812:5:0;40757:46;:62::i;:::-;40868:10;;40938:6;;40670:149;;-1:-1:-1;40670:149:0;;-1:-1:-1;40670:149:0;-1:-1:-1;40868:10:0;;40851:27;;;40830:18;;40938:11;:49;;40971:16;40938:49;;;40952:16;40938:49;40912:75;;40998:25;;:::i;:::-;41026:68;41074:11;41040:45;;41059:11;;41041:15;:29;41040:45;;;;;;-1:-1:-1;;;41026:13:0;:68::i;:::-;41107:10;:27;;-1:-1:-1;;41107:27:0;;;;;;;;;;;;41145:11;:29;;;40998:96;;-1:-1:-1;41194:15:0;;40998:96;;41204:4;;41194:9;:15;:::i;:::-;41187:22;;;;;;;;40598:619;:::o;41225:281::-;41267:7;41287:19;41309:8;;41287:30;;41329:16;41347;41368:5;;;;;;;;;-1:-1:-1;;;;;41368:5:0;-1:-1:-1;;;;;41368:17:0;;:19;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41368:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41368:19:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;41368:19:0;;;;;;;;;41328:59;;;;;41409:6;;41419:1;41409:11;:33;;41434:8;41409:33;;;41423:8;41409:33;-1:-1:-1;;;;;41398:44:0;:8;:44;-1:-1:-1;41487:11:0;;-1:-1:-1;;41225:281:0;:::o;34547:115::-;33129:4;34547:115;:::o;4971:1057::-;5056:21;5079;5102;5153:23;:21;:23::i;:::-;5136:40;;5221:4;-1:-1:-1;;;;;5206:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5206:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5206:43:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;5206:43:0;;;;;;;;;5187:62;;5294:4;-1:-1:-1;;;;;5279:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5279:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5279:43:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;5279:43:0;;;;;;;;;5260:62;;5437:16;5455;5473:25;5517:4;-1:-1:-1;;;;;5502:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5502:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5502:34:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;5502:34:0;;;;;;;;;5436:100;;;;;;5573:14;5551:36;;:18;:36;;;5547:474;;5673:35;;;5819:62;;;5824:39;5844:8;5854;5824:19;:39::i;:::-;:42;-1:-1:-1;;;;;5819:48:0;:62;5799:82;;;;;5947:62;;;5952:39;5972:8;5982;5952:19;:39::i;:::-;:42;-1:-1:-1;;;;;5947:48:0;:62;5927:82;;;;;-1:-1:-1;5547:474:0;4971:1057;;;;;;;;:::o;26025:183::-;26125:11;;:::i;:::-;26161:39;;;;;;;;26175:22;26186:1;25450:6;26195:1;26175:10;:22::i;:::-;26161:39;;26154:46;-1:-1:-1;26025:183:0;;;;;:::o;26909:::-;27014:11;;:::i;:::-;27050:34;;;;;;;;;27064:10;;27050:34;;27064:17;;27079:1;27064:17;:14;:17;:::i;4742:123::-;4831:25;:15;:25;;4742:123::o;4124:246::-;4205:16;;:::i;:::-;4256:1;4242:11;-1:-1:-1;;;;;4242:15:0;;4234:51;;;;-1:-1:-1;;;4234:51:0;;;;;;;;;4303:59;;;;;;;;;;-1:-1:-1;;;;;4313:48:0;;-1:-1:-1;;;3853:3:0;4314:32;;;;4313:48;;;;;;-1:-1:-1;;;;;4303:59:0;;;;4296:66;;4124:246;;;;:::o;29726:225::-;29873:7;29905:38;29931:11;29905:21;:6;29916:9;29905:21;:10;:21;:::i;:::-;:25;:38;:25;:38;:::i;:::-;29898:45;;29726:225;;;;;;:::o;8320:471::-;8378:7;8623:6;8619:47;;-1:-1:-1;8653:1:0;8646:8;;8619:47;8690:5;;;8694:1;8690;:5;:1;8714:5;;;;;:10;8706:56;;;;-1:-1:-1;;;8706:56:0;;;;;;;;9259:132;9317:7;9344:39;9348:1;9351;9344:39;;;;;;;;;;;;;;;;;10007:7;10109:12;10102:5;10094:28;;;;-1:-1:-1;;;10094:28:0;;;;;;;;;;;10133:9;10149:1;10145;:5;;;;;;;9921:345;-1:-1:-1;;;;;9921:345:0:o;37731:4402::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;37731:4402:0;;;:::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;142:134;220:13;;238:33;220:13;238:33;;283:128;358:13;;376:30;358:13;376:30;;418:134;496:13;;514:33;496:13;514:33;;559:134;637:13;;655:33;637:13;655:33;;700:132;777:13;;795:32;777:13;795:32;;839:241;;943:2;931:9;922:7;918:23;914:32;911:2;;;959:1;956;949:12;911:2;994:1;1011:53;1056:7;1036:9;1011:53;;;1001:63;905:175;-1:-1;;;;905:175;1087:263;;1202:2;1190:9;1181:7;1177:23;1173:32;1170:2;;;1218:1;1215;1208:12;1170:2;1253:1;1270:64;1326:7;1306:9;1270:64;;1357:257;;1469:2;1457:9;1448:7;1444:23;1440:32;1437:2;;;1485:1;1482;1475:12;1437:2;1520:1;1537:61;1590:7;1570:9;1537:61;;1621:533;;;;1769:2;1757:9;1748:7;1744:23;1740:32;1737:2;;;1785:1;1782;1775:12;1737:2;1820:1;1837:64;1893:7;1873:9;1837:64;;;1827:74;;1799:108;1938:2;1956:64;2012:7;2003:6;1992:9;1988:22;1956:64;;;1946:74;;1917:109;2057:2;2075:63;2130:7;2121:6;2110:9;2106:22;2075:63;;;2065:73;;2036:108;1731:423;;;;;;2161:263;;2276:2;2264:9;2255:7;2251:23;2247:32;2244:2;;;2292:1;2289;2282:12;2244:2;2327:1;2344:64;2400:7;2380:9;2344:64;;2431:113;2514:24;2532:5;2514:24;;;2509:3;2502:37;2496:48;;;2551:104;2628:21;2643:5;2628:21;;2662:148;2761:43;2780:23;2797:5;2780:23;;;2761:43;;2817:152;2918:45;2938:24;2956:5;2938:24;;2976:356;;3104:38;3136:5;3104:38;;;3154:88;3235:6;3230:3;3154:88;;;3147:95;;3247:52;3292:6;3287:3;3280:4;3273:5;3269:16;3247:52;;;3311:16;;;;;3084:248;-1:-1;;3084:248;3339:347;;3451:39;3484:5;3451:39;;;3502:71;3566:6;3561:3;3502:71;;;3495:78;;3578:52;3623:6;3618:3;3611:4;3604:5;3600:16;3578:52;;;3651:29;3673:6;3651:29;;;3642:39;;;;3431:255;-1:-1;;;3431:255;3694:370;;3854:67;3918:2;3913:3;3854:67;;;3954:34;3934:55;;-1:-1;;;4018:2;4009:12;;4002:25;4055:2;4046:12;;3840:224;-1:-1;;3840:224;4073:323;;4233:67;4297:2;4292:3;4233:67;;;4333:25;4313:46;;4387:2;4378:12;;4219:177;-1:-1;;4219:177;4453:317;4657:23;;4590:4;4581:14;;;4686:63;4585:3;4657:23;4686:63;;;4610:145;4563:207;;;;4777:103;4850:24;4868:5;4850:24;;5007:244;;5126:75;5197:3;5188:6;5126:75;;;-1:-1;5223:2;5214:12;;5114:137;-1:-1;5114:137;5258:553;;5474:93;5563:3;5554:6;5474:93;;;5467:100;;5578:73;5647:3;5638:6;5578:73;;;5673:1;5668:3;5664:11;5657:18;;5693:93;5782:3;5773:6;5693:93;;;5686:100;5455:356;-1:-1;;;;;5455:356;5818:213;5936:2;5921:18;;5950:71;5925:9;5994:6;5950:71;;6038:324;6184:2;6169:18;;6198:71;6173:9;6242:6;6198:71;;;6280:72;6348:2;6337:9;6333:18;6324:6;6280:72;;6369:301;6507:2;6521:47;;;6492:18;;6582:78;6492:18;6646:6;6582:78;;6677:407;6868:2;6882:47;;;6853:18;;6943:131;6853:18;6943:131;;7091:407;7282:2;7296:47;;;7267:18;;7357:131;7267:18;7357:131;;7505:400;7689:2;7674:18;;7703:115;7678:9;7791:6;7703:115;;;7829:66;7891:2;7880:9;7876:18;7867:6;7829:66;;7912:213;8030:2;8015:18;;8044:71;8019:9;8088:6;8044:71;;8132:121;8219:12;;8190:63;8543:163;8646:19;;;8695:4;8686:14;;8639:67;8714:91;;8776:24;8794:5;8776:24;;8812:85;8878:13;8871:21;;8854:43;8904:144;-1:-1;;;;;;8965:78;;8948:100;9055:72;9117:5;9100:27;9134:109;-1:-1;;;;;9196:42;;9179:64;9250:121;-1:-1;;;;;9312:54;;9295:76;9457:88;9529:10;9518:22;;9501:44;9553:268;9618:1;9625:101;9639:6;9636:1;9633:13;9625:101;;;9706:11;;;9700:18;9687:11;;;9680:39;9661:2;9654:10;9625:101;;;9741:6;9738:1;9735:13;9732:2;;;-1:-1;;9806:1;9788:16;;9781:27;9602:219;9990:97;10078:2;10058:14;-1:-1;;10054:28;;10038:49;10095:117;10164:24;10182:5;10164:24;;;10157:5;10154:35;10144:2;;10203:1;10200;10193:12;10144:2;10138:74;;10219:111;10285:21;10300:5;10285:21;;10337:117;10406:24;10424:5;10406:24;;10461:117;10530:24;10548:5;10530:24;;10585:115;10653:23;10670:5;10653:23;

Swarm Source

bzzr://0b766abb7d844da5581ca690fb4582584bb347c47388c45ad8c3c2ff4edcf802

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.