ETH Price: $1,891.65 (-3.10%)
Gas: 0.12 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Work118115132021-02-07 20:35:471841 days ago1612730147IN
0xCA2E2df6...a6C2D3885
0 ETH0.16742168147
Update Pair114944992020-12-21 4:22:381890 days ago1608524558IN
0xCA2E2df6...a6C2D3885
0 ETH0.005326349
Work114500272020-12-14 8:29:331897 days ago1607934573IN
0xCA2E2df6...a6C2D3885
0 ETH0.06666
Work114472322020-12-13 22:06:521897 days ago1607897212IN
0xCA2E2df6...a6C2D3885
0 ETH0.0783009568.75
Work114470292020-12-13 21:16:591897 days ago1607894219IN
0xCA2E2df6...a6C2D3885
0 ETH0.06565
Work114460322020-12-13 17:31:151897 days ago1607880675IN
0xCA2E2df6...a6C2D3885
0 ETH0.0028412196
Work114460292020-12-13 17:30:551897 days ago1607880655IN
0xCA2E2df6...a6C2D3885
0 ETH0.0028412196
Work113868492020-12-04 15:03:481907 days ago1607094228IN
0xCA2E2df6...a6C2D3885
0 ETH0.0419210446
Work113347292020-11-26 15:06:351915 days ago1606403195IN
0xCA2E2df6...a6C2D3885
0 ETH0.0603629253.00000145
Work113343922020-11-26 13:55:391915 days ago1606398939IN
0xCA2E2df6...a6C2D3885
0 ETH0.0956695384
Work113256922020-11-25 5:33:401916 days ago1606282420IN
0xCA2E2df6...a6C2D3885
0 ETH0.030732827
Work113214712020-11-24 14:10:361917 days ago1606227036IN
0xCA2E2df6...a6C2D3885
0 ETH0.0617911154.35
Work113214552020-11-24 14:07:071917 days ago1606226827IN
0xCA2E2df6...a6C2D3885
0 ETH0.0618275854.35
Work113207362020-11-24 11:24:421917 days ago1606217082IN
0xCA2E2df6...a6C2D3885
0 ETH0.0502436244.35
Work113207242020-11-24 11:22:351917 days ago1606216955IN
0xCA2E2df6...a6C2D3885
0 ETH0.0505112344.35
Work113207142020-11-24 11:20:361917 days ago1606216836IN
0xCA2E2df6...a6C2D3885
0 ETH0.0617911154.35
Work113163582020-11-23 19:32:531917 days ago1606159973IN
0xCA2E2df6...a6C2D3885
0 ETH0.0803199266.15
Work113163572020-11-23 19:32:471917 days ago1606159967IN
0xCA2E2df6...a6C2D3885
0 ETH0.086033872.864
Work113160592020-11-23 18:19:181917 days ago1606155558IN
0xCA2E2df6...a6C2D3885
0 ETH0.0999063784.613
Work113160472020-11-23 18:16:571917 days ago1606155417IN
0xCA2E2df6...a6C2D3885
0 ETH0.0999063784.613
Work113144072020-11-23 12:08:531918 days ago1606133333IN
0xCA2E2df6...a6C2D3885
0 ETH0.1054017187
Work113142322020-11-23 11:30:161918 days ago1606131016IN
0xCA2E2df6...a6C2D3885
0 ETH0.009025780.4825
Work113142322020-11-23 11:30:161918 days ago1606131016IN
0xCA2E2df6...a6C2D3885
0 ETH0.0975024580.4825
Work113140812020-11-23 10:59:211918 days ago1606129161IN
0xCA2E2df6...a6C2D3885
0 ETH0.0942398477.7
Work113140812020-11-23 10:59:211918 days ago1606129161IN
0xCA2E2df6...a6C2D3885
0 ETH0.0931163777.7
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Worked118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Get Reserves118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price1Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
Price0Cumulative...118115132021-02-07 20:35:471841 days ago1612730147
0xCA2E2df6...a6C2D3885
0 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniswapV2Oracle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-11-05
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

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

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

// 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;

    // encode a uint112 as a UQ112x112
    function encode(uint112 x) internal pure returns (uq112x112 memory) {
        return uq112x112(uint224(x) << RESOLUTION);
    }

    // encodes a uint144 as a UQ144x112
    function encode144(uint144 x) internal pure returns (uq144x112 memory) {
        return uq144x112(uint256(x) << RESOLUTION);
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function div(uq112x112 memory self, uint112 x) internal pure returns (uq112x112 memory) {
        require(x != 0, 'FixedPoint: DIV_BY_ZERO');
        return uq112x112(self._x / uint224(x));
    }

    // multiply a UQ112x112 by a uint, returning a UQ144x112
    // reverts on overflow
    function mul(uq112x112 memory self, uint y) internal pure returns (uq144x112 memory) {
        uint z;
        require(y == 0 || (z = uint(self._x) * y) / y == uint(self._x), "FixedPoint: MULTIPLICATION_OVERFLOW");
        return uq144x112(z);
    }

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

    // decode a UQ112x112 into a uint112 by truncating after the radix point
    function decode(uq112x112 memory self) internal pure returns (uint112) {
        return uint112(self._x >> RESOLUTION);
    }

    // decode a UQ144x112 into a uint144 by truncating after the radix point
    function decode144(uq144x112 memory self) internal pure returns (uint144) {
        return uint144(self._x >> RESOLUTION);
    }
}

// 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;
        }
    }
}

// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)

/**
 * @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 addition of two unsigned integers, reverting with custom message on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, errorMessage);

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    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 multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) 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, errorMessage);

        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.
     */
    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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}

interface IKeep3rV1 {
    function isKeeper(address) external returns (bool);
    function worked(address keeper) external;
}

// sliding oracle that uses observations collected to provide moving price averages in the past
contract UniswapV2Oracle {
    using FixedPoint for *;
    using SafeMath for uint;

    struct Observation {
        uint timestamp;
        uint price0Cumulative;
        uint price1Cumulative;
    }

    modifier keeper() {
        require(KP3R.isKeeper(msg.sender), "::isKeeper: keeper is not registered");
        _;
    }

    modifier upkeep() {
        require(KP3R.isKeeper(msg.sender), "::isKeeper: keeper is not registered");
        _;
        KP3R.worked(msg.sender);
    }

    address public governance;
    address public pendingGovernance;

    /**
     * @notice Allows governance to change governance (for future upgradability)
     * @param _governance new governance address to set
     */
    function setGovernance(address _governance) external {
        require(msg.sender == governance, "setGovernance: !gov");
        pendingGovernance = _governance;
    }

    /**
     * @notice Allows pendingGovernance to accept their role as governance (protection pattern)
     */
    function acceptGovernance() external {
        require(msg.sender == pendingGovernance, "acceptGovernance: !pendingGov");
        governance = pendingGovernance;
    }

    IKeep3rV1 public constant KP3R = IKeep3rV1(0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44);

    address public constant factory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
    // this is redundant with granularity and windowSize, but stored for gas savings & informational purposes.
    uint public constant periodSize = 1800;

    address[] internal _pairs;
    mapping(address => bool) internal _known;

    function pairs() external view returns (address[] memory) {
        return _pairs;
    }

    // mapping from pair address to a list of price observations of that pair
    mapping(address => Observation[]) public pairObservations;

    constructor() public {
        governance = msg.sender;
    }

    function updatePair(address pair) external keeper returns (bool) {
        return _update(pair);
    }

    function update(address tokenA, address tokenB) external keeper returns (bool) {
        address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        return _update(pair);
    }

    function add(address tokenA, address tokenB) external {
        require(msg.sender == governance, "UniswapV2Oracle::add: !gov");
        address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        require(!_known[pair], "known");
        _known[pair] = true;
        _pairs.push(pair);

        (uint price0Cumulative, uint price1Cumulative,) = UniswapV2OracleLibrary.currentCumulativePrices(pair);
        pairObservations[pair].push(Observation(block.timestamp, price0Cumulative, price1Cumulative));
    }

    function work() public upkeep {
        bool worked = _updateAll();
        require(worked, "UniswapV2Oracle: !work");
    }

    function workForFree() public keeper {
        bool worked = _updateAll();
        require(worked, "UniswapV2Oracle: !work");
    }
    
    function lastObservation(address pair) public view returns (Observation memory) {
        return pairObservations[pair][pairObservations[pair].length-1];
    }

    function _updateAll() internal returns (bool updated) {
        for (uint i = 0; i < _pairs.length; i++) {
            if (_update(_pairs[i])) {
                updated = true;
            }
        }
    }

    function updateFor(uint i, uint length) external keeper returns (bool updated) {
        for (; i < length; i++) {
            if (_update(_pairs[i])) {
                updated = true;
            }
        }
    }

    function workable(address pair) public view returns (bool) {
        return (block.timestamp - lastObservation(pair).timestamp) > periodSize;
    }

    function workable() external view returns (bool) {
        for (uint i = 0; i < _pairs.length; i++) {
            if (workable(_pairs[i])) {
                return true;
            }
        }
        return false;
    }

    function _update(address pair) internal returns (bool) {
        // we only want to commit updates once per period (i.e. windowSize / granularity)
        uint timeElapsed = block.timestamp - lastObservation(pair).timestamp;
        if (timeElapsed > periodSize) {
            (uint price0Cumulative, uint price1Cumulative,) = UniswapV2OracleLibrary.currentCumulativePrices(pair);
            pairObservations[pair].push(Observation(block.timestamp, price0Cumulative, price1Cumulative));
            return true;
        }
        return false;
    }

    function computeAmountOut(
        uint priceCumulativeStart, uint priceCumulativeEnd,
        uint timeElapsed, uint amountIn
    ) private pure returns (uint amountOut) {
        // overflow is desired.
        FixedPoint.uq112x112 memory priceAverage = FixedPoint.uq112x112(
            uint224((priceCumulativeEnd - priceCumulativeStart) / timeElapsed)
        );
        amountOut = priceAverage.mul(amountIn).decode144();
    }

    function _valid(address pair, uint age) internal view returns (bool) {
        return (block.timestamp - lastObservation(pair).timestamp) <= age;
    }

    function current(address tokenIn, uint amountIn, address tokenOut) external view returns (uint amountOut) {
        address pair = UniswapV2Library.pairFor(factory, tokenIn, tokenOut);
        require(_valid(pair, periodSize.mul(2)), "UniswapV2Oracle::quote: stale prices");
        (address token0,) = UniswapV2Library.sortTokens(tokenIn, tokenOut);

        Observation memory _observation = lastObservation(pair);
        (uint price0Cumulative, uint price1Cumulative,) = UniswapV2OracleLibrary.currentCumulativePrices(pair);
        if (block.timestamp == _observation.timestamp) {
            _observation = pairObservations[pair][pairObservations[pair].length-2];
        }
        
        uint timeElapsed = block.timestamp - _observation.timestamp;
        timeElapsed = timeElapsed == 0 ? 1 : timeElapsed;
        if (token0 == tokenIn) {
            return computeAmountOut(_observation.price0Cumulative, price0Cumulative, timeElapsed, amountIn);
        } else {
            return computeAmountOut(_observation.price1Cumulative, price1Cumulative, timeElapsed, amountIn);
        }
    }

    function quote(address tokenIn, uint amountIn, address tokenOut, uint granularity) external view returns (uint amountOut) {
        address pair = UniswapV2Library.pairFor(factory, tokenIn, tokenOut);
        require(_valid(pair, periodSize.mul(granularity)), "UniswapV2Oracle::quote: stale prices");
        (address token0,) = UniswapV2Library.sortTokens(tokenIn, tokenOut);

        uint priceAverageCumulative = 0;
        uint length = pairObservations[pair].length-1;
        uint i = length.sub(granularity);


        uint nextIndex = 0;
        if (token0 == tokenIn) {
            for (; i < length; i++) {
                nextIndex = i+1;
                priceAverageCumulative += computeAmountOut(
                    pairObservations[pair][i].price0Cumulative,
                    pairObservations[pair][nextIndex].price0Cumulative, 
                    pairObservations[pair][nextIndex].timestamp - pairObservations[pair][i].timestamp, amountIn);
            }
        } else {
            for (; i < length; i++) {
                nextIndex = i+1;
                priceAverageCumulative += computeAmountOut(
                    pairObservations[pair][i].price1Cumulative,
                    pairObservations[pair][nextIndex].price1Cumulative, 
                    pairObservations[pair][nextIndex].timestamp - pairObservations[pair][i].timestamp, amountIn);
            }
        }
        return priceAverageCumulative.div(granularity);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KP3R","outputs":[{"internalType":"contract IKeep3rV1","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"tokenOut","type":"address"}],"name":"current","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"lastObservation","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"price0Cumulative","type":"uint256"},{"internalType":"uint256","name":"price1Cumulative","type":"uint256"}],"internalType":"struct UniswapV2Oracle.Observation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"pairObservations","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"price0Cumulative","type":"uint256"},{"internalType":"uint256","name":"price1Cumulative","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairs","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"granularity","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"update","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"updateFor","outputs":[{"internalType":"bool","name":"updated","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"updatePair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"work","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"workForFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"workable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"workable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b03191633179055611b9c806100326000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063a75d39c2116100ad578063c640752d11610071578063c640752d1461024f578063c9ff6f4d14610262578063e4463eb214610275578063f39c38a01461027d578063ffb0a4a0146102855761012c565b8063a75d39c2146101df578063ab033ea9146101ff578063ae6ec9b714610212578063bfcc8e4214610225578063c45a0155146102475761012c565b8063399b2fb9116100f4578063399b2fb9146101a157806352c28fab146101a95780635aa6e675146101bc57806380bb2bac146101c45780639f471303146101cc5761012c565b806305e0b9a0146101315780631b56bbf91461014f578063202e1e431461016f578063238efcbc1461018f578063322e9f0414610199575b600080fd5b61013961029a565b6040516101469190611794565b60405180910390f35b61016261015d366004611576565b6102b2565b60405161014691906117f5565b61018261017d366004611576565b610374565b6040516101469190611afc565b6101976103e2565b005b610197610430565b61019761056a565b6101976101b7366004611591565b61063b565b610139610797565b6101626107a6565b6101626101da366004611576565b6107fe565b6101f26101ed3660046115ef565b610816565b6040516101469190611b1d565b61019761020d366004611576565b61096e565b6101f2610220366004611630565b6109ba565b6102386102333660046115c5565b610c60565b60405161014693929190611b26565b610139610c9f565b61016261025d366004611591565b610cb7565b6101626102703660046116f6565b610d95565b6101f2610e83565b610139610e89565b61028d610e98565b60405161014691906117a8565b731ceb5cb57c4d4e2b2433641b95dd330a33185a4481565b6040516335d2155560e11b8152600090731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa906102ec903390600401611794565b602060405180830381600087803b15801561030657600080fd5b505af115801561031a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033e9190611675565b6103635760405162461bcd60e51b815260040161035a906119d7565b60405180910390fd5b61036c82610efa565b90505b919050565b61037c611519565b6001600160a01b0382166000908152600460205260409020805460001981019081106103a457fe5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b6001546001600160a01b0316331461040c5760405162461bcd60e51b815260040161035a906119a0565b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6040516335d2155560e11b8152731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa90610467903390600401611794565b602060405180830381600087803b15801561048157600080fd5b505af1158015610495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b99190611675565b6104d55760405162461bcd60e51b815260040161035a906119d7565b60006104df610f94565b9050806104fe5760405162461bcd60e51b815260040161035a90611acc565b506040516317fbade560e21b8152731ceb5cb57c4d4e2b2433641b95dd330a33185a4490635feeb79490610536903390600401611794565b600060405180830381600087803b15801561055057600080fd5b505af1158015610564573d6000803e3d6000fd5b50505050565b6040516335d2155560e11b8152731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa906105a1903390600401611794565b602060405180830381600087803b1580156105bb57600080fd5b505af11580156105cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f39190611675565b61060f5760405162461bcd60e51b815260040161035a906119d7565b6000610619610f94565b9050806106385760405162461bcd60e51b815260040161035a90611acc565b50565b6000546001600160a01b031633146106655760405162461bcd60e51b815260040161035a90611853565b6000610686735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8484610fc8565b6001600160a01b03811660009081526003602052604090205490915060ff16156106c25760405162461bcd60e51b815260040161035a90611981565b6001600160a01b0381166000818152600360205260408120805460ff1916600190811790915560028054918201815582527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169092179091558061073183611038565b506001600160a01b0390941660009081526004602090815260408083208151606081018352428152808401958652918201978852805460018181018355918552929093209051600390920201908155915190820155925160029093019290925550505050565b6000546001600160a01b031681565b6000805b6002548110156107f5576107de600282815481106107c457fe5b6000918252602090912001546001600160a01b03166107fe565b156107ed5760019150506107fb565b6001016107aa565b50600090505b90565b600061070861080c83610374565b5142031192915050565b600080610838735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8685610fc8565b90506108508161084b610708600261120d565b611247565b61086c5760405162461bcd60e51b815260040161035a906118fc565b6000610878868561125f565b509050610883611519565b61088c83610374565b905060008061089a85611038565b508451919350915042141561090b576001600160a01b0385166000908152600460205260409020805460011981019081106108d157fe5b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505092505b82514203801561091b578061091e565b60015b9050896001600160a01b0316856001600160a01b031614156109575761094a846020015184838c6112e9565b9650505050505050610967565b61094a846040015183838c6112e9565b9392505050565b6000546001600160a01b031633146109985760405162461bcd60e51b815260040161035a9061188a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000806109dc735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8786610fc8565b90506109ee8161084b6107088661120d565b610a0a5760405162461bcd60e51b815260040161035a906118fc565b6000610a16878661125f565b506001600160a01b038316600090815260046020526040812054919250906000190181610a438288611347565b905060008a6001600160a01b0316856001600160a01b03161415610b7e575b82821015610b7957506001600160a01b038516600090815260046020526040902080546001830191610b6a9184908110610a9857fe5b90600052602060002090600302016001015460046000896001600160a01b03166001600160a01b031681526020019081526020016000208381548110610ada57fe5b906000526020600020906003020160010154600460008a6001600160a01b03166001600160a01b031681526020019081526020016000208581548110610b1c57fe5b600091825260208083206003909202909101546001600160a01b038c16835260049091526040909120805486908110610b5157fe5b906000526020600020906003020160000154038d6112e9565b90930192600190910190610a62565b610c47565b82821015610c4757506001600160a01b038516600090815260046020526040902080546001830191610c389184908110610bb457fe5b90600052602060002090600302016002015460046000896001600160a01b03166001600160a01b031681526020019081526020016000208381548110610bf657fe5b906000526020600020906003020160020154600460008a6001600160a01b03166001600160a01b031681526020019081526020016000208581548110610b1c57fe5b90930192600190910190610b7e565b610c518489611389565b9b9a5050505050505050505050565b60046020528160005260406000208181548110610c7957fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b6040516335d2155560e11b8152600090731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa90610cf1903390600401611794565b602060405180830381600087803b158015610d0b57600080fd5b505af1158015610d1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d439190611675565b610d5f5760405162461bcd60e51b815260040161035a906119d7565b6000610d80735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8585610fc8565b9050610d8b81610efa565b9150505b92915050565b6040516335d2155560e11b8152600090731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa90610dcf903390600401611794565b602060405180830381600087803b158015610de957600080fd5b505af1158015610dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e219190611675565b610e3d5760405162461bcd60e51b815260040161035a906119d7565b81831015610d8f57610e6f60028481548110610e5557fe5b6000918252602090912001546001600160a01b0316610efa565b15610e78575060015b600190920191610e3d565b61070881565b6001546001600160a01b031681565b60606002805480602002602001604051908101604052809291908181526020018280548015610ef057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ed2575b5050505050905090565b600080610f0683610374565b5142039050610708811115610f8b57600080610f2185611038565b506001600160a01b038716600090815260046020908152604080832081516060810183524281528084019687529182019485528054600181810183559185529290932090516003909202019081559251838201559051600290920191909155935061036f92505050565b50600092915050565b6000805b600254811015610fc457610fb260028281548110610e5557fe5b15610fbc57600191505b600101610f98565b5090565b6000806000610fd7858561125f565b91509150858282604051602001610fef929190611717565b6040516020818303038152906040528051906020012060405160200161101692919061173e565b60408051601f1981840301815291905280516020909101209695505050505050565b60008060006110456113cb565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561108057600080fd5b505afa158015611094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b891906116de565b9250836001600160a01b0316635a3d54936040518163ffffffff1660e01b815260040160206040518083038186803b1580156110f357600080fd5b505afa158015611107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112b91906116de565b91506000806000866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561116b57600080fd5b505afa15801561117f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a39190611695565b9250925092508363ffffffff168163ffffffff16146112035780840363ffffffff81166111d084866113d5565b516001600160e01b031602969096019563ffffffff81166111f185856113d5565b516001600160e01b0316029590950194505b5050509193909250565b60008261121c57506000610d8f565b8282028284828161122957fe5b04146109675760405162461bcd60e51b815260040161035a90611940565b60008161125384610374565b51420311159392505050565b600080826001600160a01b0316846001600160a01b031614156112945760405162461bcd60e51b815260040161035a906118b7565b826001600160a01b0316846001600160a01b0316106112b45782846112b7565b83835b90925090506001600160a01b0382166112e25760405162461bcd60e51b815260040161035a90611a5e565b9250929050565b60006112f361153a565b6040518060200160405280858888038161130957fe5b046001600160e01b0316905290506113296113248285611450565b6114af565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b600061096783836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f77008152506114b6565b600061096783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114e2565b63ffffffff421690565b6113dd61153a565b6000826001600160701b0316116114065760405162461bcd60e51b815260040161035a90611a95565b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161143b57fe5b046001600160e01b0316815250905092915050565b61145861154c565b600082158061147e57505082516001600160e01b03168281029083828161147b57fe5b04145b61149a5760405162461bcd60e51b815260040161035a90611a1b565b60408051602081019091529081529392505050565b5160701c90565b600081848411156114da5760405162461bcd60e51b815260040161035a9190611800565b505050900390565b600081836115035760405162461bcd60e51b815260040161035a9190611800565b50600083858161150f57fe5b0495945050505050565b60405180606001604052806000815260200160008152602001600081525090565b60408051602081019091526000815290565b6040518060200160405280600081525090565b80356001600160a01b0381168114610d8f57600080fd5b600060208284031215611587578081fd5b610967838361155f565b600080604083850312156115a3578081fd5b6115ad848461155f565b91506115bc846020850161155f565b90509250929050565b600080604083850312156115d7578182fd5b6115e1848461155f565b946020939093013593505050565b600080600060608486031215611603578081fd5b833561160e81611b3c565b925060208401359150604084013561162581611b3c565b809150509250925092565b60008060008060808587031215611645578081fd5b61164f868661155f565b935060208501359250611665866040870161155f565b9396929550929360600135925050565b600060208284031215611686578081fd5b81518015158114610967578182fd5b6000806000606084860312156116a9578283fd5b83516116b481611b51565b60208501519093506116c581611b51565b604085015190925063ffffffff81168114611625578182fd5b6000602082840312156116ef578081fd5b5051919050565b60008060408385031215611708578182fd5b50508035926020909101359150565b6bffffffffffffffffffffffff19606093841b811682529190921b16601482015260280190565b6001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b818110156117e95783516001600160a01b0316835292840192918401916001016117c4565b50909695505050505050565b901515815260200190565b6000602080835283518082850152825b8181101561182c57858101830151858201604001528201611810565b8181111561183d5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601a908201527f556e697377617056324f7261636c653a3a6164643a2021676f76000000000000604082015260600190565b60208082526013908201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604082015260600190565b60208082526025908201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604082015264455353455360d81b606082015260800190565b60208082526024908201527f556e697377617056324f7261636c653a3a71756f74653a207374616c652070726040820152636963657360e01b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526005908201526435b737bbb760d91b604082015260600190565b6020808252601d908201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604082015260600190565b60208082526024908201527f3a3a69734b65657065723a206b6565706572206973206e6f7420726567697374604082015263195c995960e21b606082015260800190565b60208082526023908201527f4669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552466040820152624c4f5760e81b606082015260800190565b6020808252601e908201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604082015260600190565b60208082526017908201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604082015260600190565b602080825260169082015275556e697377617056324f7261636c653a2021776f726b60501b604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b9283526020830191909152604082015260600190565b6001600160a01b038116811461063857600080fd5b6001600160701b038116811461063857600080fdfea2646970667358221220cb0159bc5fda5da0b5c7ef2e37aee852336214335c3296dd291a9e42831e566464736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c8063a75d39c2116100ad578063c640752d11610071578063c640752d1461024f578063c9ff6f4d14610262578063e4463eb214610275578063f39c38a01461027d578063ffb0a4a0146102855761012c565b8063a75d39c2146101df578063ab033ea9146101ff578063ae6ec9b714610212578063bfcc8e4214610225578063c45a0155146102475761012c565b8063399b2fb9116100f4578063399b2fb9146101a157806352c28fab146101a95780635aa6e675146101bc57806380bb2bac146101c45780639f471303146101cc5761012c565b806305e0b9a0146101315780631b56bbf91461014f578063202e1e431461016f578063238efcbc1461018f578063322e9f0414610199575b600080fd5b61013961029a565b6040516101469190611794565b60405180910390f35b61016261015d366004611576565b6102b2565b60405161014691906117f5565b61018261017d366004611576565b610374565b6040516101469190611afc565b6101976103e2565b005b610197610430565b61019761056a565b6101976101b7366004611591565b61063b565b610139610797565b6101626107a6565b6101626101da366004611576565b6107fe565b6101f26101ed3660046115ef565b610816565b6040516101469190611b1d565b61019761020d366004611576565b61096e565b6101f2610220366004611630565b6109ba565b6102386102333660046115c5565b610c60565b60405161014693929190611b26565b610139610c9f565b61016261025d366004611591565b610cb7565b6101626102703660046116f6565b610d95565b6101f2610e83565b610139610e89565b61028d610e98565b60405161014691906117a8565b731ceb5cb57c4d4e2b2433641b95dd330a33185a4481565b6040516335d2155560e11b8152600090731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa906102ec903390600401611794565b602060405180830381600087803b15801561030657600080fd5b505af115801561031a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033e9190611675565b6103635760405162461bcd60e51b815260040161035a906119d7565b60405180910390fd5b61036c82610efa565b90505b919050565b61037c611519565b6001600160a01b0382166000908152600460205260409020805460001981019081106103a457fe5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b6001546001600160a01b0316331461040c5760405162461bcd60e51b815260040161035a906119a0565b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6040516335d2155560e11b8152731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa90610467903390600401611794565b602060405180830381600087803b15801561048157600080fd5b505af1158015610495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b99190611675565b6104d55760405162461bcd60e51b815260040161035a906119d7565b60006104df610f94565b9050806104fe5760405162461bcd60e51b815260040161035a90611acc565b506040516317fbade560e21b8152731ceb5cb57c4d4e2b2433641b95dd330a33185a4490635feeb79490610536903390600401611794565b600060405180830381600087803b15801561055057600080fd5b505af1158015610564573d6000803e3d6000fd5b50505050565b6040516335d2155560e11b8152731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa906105a1903390600401611794565b602060405180830381600087803b1580156105bb57600080fd5b505af11580156105cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f39190611675565b61060f5760405162461bcd60e51b815260040161035a906119d7565b6000610619610f94565b9050806106385760405162461bcd60e51b815260040161035a90611acc565b50565b6000546001600160a01b031633146106655760405162461bcd60e51b815260040161035a90611853565b6000610686735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8484610fc8565b6001600160a01b03811660009081526003602052604090205490915060ff16156106c25760405162461bcd60e51b815260040161035a90611981565b6001600160a01b0381166000818152600360205260408120805460ff1916600190811790915560028054918201815582527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169092179091558061073183611038565b506001600160a01b0390941660009081526004602090815260408083208151606081018352428152808401958652918201978852805460018181018355918552929093209051600390920201908155915190820155925160029093019290925550505050565b6000546001600160a01b031681565b6000805b6002548110156107f5576107de600282815481106107c457fe5b6000918252602090912001546001600160a01b03166107fe565b156107ed5760019150506107fb565b6001016107aa565b50600090505b90565b600061070861080c83610374565b5142031192915050565b600080610838735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8685610fc8565b90506108508161084b610708600261120d565b611247565b61086c5760405162461bcd60e51b815260040161035a906118fc565b6000610878868561125f565b509050610883611519565b61088c83610374565b905060008061089a85611038565b508451919350915042141561090b576001600160a01b0385166000908152600460205260409020805460011981019081106108d157fe5b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505092505b82514203801561091b578061091e565b60015b9050896001600160a01b0316856001600160a01b031614156109575761094a846020015184838c6112e9565b9650505050505050610967565b61094a846040015183838c6112e9565b9392505050565b6000546001600160a01b031633146109985760405162461bcd60e51b815260040161035a9061188a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000806109dc735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8786610fc8565b90506109ee8161084b6107088661120d565b610a0a5760405162461bcd60e51b815260040161035a906118fc565b6000610a16878661125f565b506001600160a01b038316600090815260046020526040812054919250906000190181610a438288611347565b905060008a6001600160a01b0316856001600160a01b03161415610b7e575b82821015610b7957506001600160a01b038516600090815260046020526040902080546001830191610b6a9184908110610a9857fe5b90600052602060002090600302016001015460046000896001600160a01b03166001600160a01b031681526020019081526020016000208381548110610ada57fe5b906000526020600020906003020160010154600460008a6001600160a01b03166001600160a01b031681526020019081526020016000208581548110610b1c57fe5b600091825260208083206003909202909101546001600160a01b038c16835260049091526040909120805486908110610b5157fe5b906000526020600020906003020160000154038d6112e9565b90930192600190910190610a62565b610c47565b82821015610c4757506001600160a01b038516600090815260046020526040902080546001830191610c389184908110610bb457fe5b90600052602060002090600302016002015460046000896001600160a01b03166001600160a01b031681526020019081526020016000208381548110610bf657fe5b906000526020600020906003020160020154600460008a6001600160a01b03166001600160a01b031681526020019081526020016000208581548110610b1c57fe5b90930192600190910190610b7e565b610c518489611389565b9b9a5050505050505050505050565b60046020528160005260406000208181548110610c7957fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b6040516335d2155560e11b8152600090731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa90610cf1903390600401611794565b602060405180830381600087803b158015610d0b57600080fd5b505af1158015610d1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d439190611675565b610d5f5760405162461bcd60e51b815260040161035a906119d7565b6000610d80735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8585610fc8565b9050610d8b81610efa565b9150505b92915050565b6040516335d2155560e11b8152600090731ceb5cb57c4d4e2b2433641b95dd330a33185a4490636ba42aaa90610dcf903390600401611794565b602060405180830381600087803b158015610de957600080fd5b505af1158015610dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e219190611675565b610e3d5760405162461bcd60e51b815260040161035a906119d7565b81831015610d8f57610e6f60028481548110610e5557fe5b6000918252602090912001546001600160a01b0316610efa565b15610e78575060015b600190920191610e3d565b61070881565b6001546001600160a01b031681565b60606002805480602002602001604051908101604052809291908181526020018280548015610ef057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ed2575b5050505050905090565b600080610f0683610374565b5142039050610708811115610f8b57600080610f2185611038565b506001600160a01b038716600090815260046020908152604080832081516060810183524281528084019687529182019485528054600181810183559185529290932090516003909202019081559251838201559051600290920191909155935061036f92505050565b50600092915050565b6000805b600254811015610fc457610fb260028281548110610e5557fe5b15610fbc57600191505b600101610f98565b5090565b6000806000610fd7858561125f565b91509150858282604051602001610fef929190611717565b6040516020818303038152906040528051906020012060405160200161101692919061173e565b60408051601f1981840301815291905280516020909101209695505050505050565b60008060006110456113cb565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561108057600080fd5b505afa158015611094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b891906116de565b9250836001600160a01b0316635a3d54936040518163ffffffff1660e01b815260040160206040518083038186803b1580156110f357600080fd5b505afa158015611107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112b91906116de565b91506000806000866001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561116b57600080fd5b505afa15801561117f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a39190611695565b9250925092508363ffffffff168163ffffffff16146112035780840363ffffffff81166111d084866113d5565b516001600160e01b031602969096019563ffffffff81166111f185856113d5565b516001600160e01b0316029590950194505b5050509193909250565b60008261121c57506000610d8f565b8282028284828161122957fe5b04146109675760405162461bcd60e51b815260040161035a90611940565b60008161125384610374565b51420311159392505050565b600080826001600160a01b0316846001600160a01b031614156112945760405162461bcd60e51b815260040161035a906118b7565b826001600160a01b0316846001600160a01b0316106112b45782846112b7565b83835b90925090506001600160a01b0382166112e25760405162461bcd60e51b815260040161035a90611a5e565b9250929050565b60006112f361153a565b6040518060200160405280858888038161130957fe5b046001600160e01b0316905290506113296113248285611450565b6114af565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b600061096783836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f77008152506114b6565b600061096783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114e2565b63ffffffff421690565b6113dd61153a565b6000826001600160701b0316116114065760405162461bcd60e51b815260040161035a90611a95565b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161143b57fe5b046001600160e01b0316815250905092915050565b61145861154c565b600082158061147e57505082516001600160e01b03168281029083828161147b57fe5b04145b61149a5760405162461bcd60e51b815260040161035a90611a1b565b60408051602081019091529081529392505050565b5160701c90565b600081848411156114da5760405162461bcd60e51b815260040161035a9190611800565b505050900390565b600081836115035760405162461bcd60e51b815260040161035a9190611800565b50600083858161150f57fe5b0495945050505050565b60405180606001604052806000815260200160008152602001600081525090565b60408051602081019091526000815290565b6040518060200160405280600081525090565b80356001600160a01b0381168114610d8f57600080fd5b600060208284031215611587578081fd5b610967838361155f565b600080604083850312156115a3578081fd5b6115ad848461155f565b91506115bc846020850161155f565b90509250929050565b600080604083850312156115d7578182fd5b6115e1848461155f565b946020939093013593505050565b600080600060608486031215611603578081fd5b833561160e81611b3c565b925060208401359150604084013561162581611b3c565b809150509250925092565b60008060008060808587031215611645578081fd5b61164f868661155f565b935060208501359250611665866040870161155f565b9396929550929360600135925050565b600060208284031215611686578081fd5b81518015158114610967578182fd5b6000806000606084860312156116a9578283fd5b83516116b481611b51565b60208501519093506116c581611b51565b604085015190925063ffffffff81168114611625578182fd5b6000602082840312156116ef578081fd5b5051919050565b60008060408385031215611708578182fd5b50508035926020909101359150565b6bffffffffffffffffffffffff19606093841b811682529190921b16601482015260280190565b6001600160f81b0319815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b818110156117e95783516001600160a01b0316835292840192918401916001016117c4565b50909695505050505050565b901515815260200190565b6000602080835283518082850152825b8181101561182c57858101830151858201604001528201611810565b8181111561183d5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601a908201527f556e697377617056324f7261636c653a3a6164643a2021676f76000000000000604082015260600190565b60208082526013908201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604082015260600190565b60208082526025908201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604082015264455353455360d81b606082015260800190565b60208082526024908201527f556e697377617056324f7261636c653a3a71756f74653a207374616c652070726040820152636963657360e01b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526005908201526435b737bbb760d91b604082015260600190565b6020808252601d908201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604082015260600190565b60208082526024908201527f3a3a69734b65657065723a206b6565706572206973206e6f7420726567697374604082015263195c995960e21b606082015260800190565b60208082526023908201527f4669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552466040820152624c4f5760e81b606082015260800190565b6020808252601e908201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604082015260600190565b60208082526017908201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604082015260600190565b602080825260169082015275556e697377617056324f7261636c653a2021776f726b60501b604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b9283526020830191909152604082015260600190565b6001600160a01b038116811461063857600080fd5b6001600160701b038116811461063857600080fdfea2646970667358221220cb0159bc5fda5da0b5c7ef2e37aee852336214335c3296dd291a9e42831e566464736f6c634300060c0033

Deployed Bytecode Sourcemap

18169:7882:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19383:86;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20115:104;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;21247:161::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;19205:170::-;;;:::i;:::-;;20966:127;;;:::i;21101:134::-;;;:::i;20428:530::-;;;;;;:::i;:::-;;:::i;18682:25::-;;;:::i;22021:228::-;;;:::i;21864:149::-;;;;;;:::i;:::-;;:::i;23435:1117::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;18912:170::-;;;;;;:::i;:::-;;:::i;24560:1488::-;;;;;;:::i;:::-;;:::i;19978:57::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;19478:76::-;;;:::i;20227:193::-;;;;;;:::i;:::-;;:::i;21636:220::-;;;;;;:::i;:::-;;:::i;19673:38::-;;;:::i;18714:32::-;;;:::i;19801:90::-;;;:::i;:::-;;;;;;;:::i;19383:86::-;19426:42;19383:86;:::o;20115:104::-;18423:25;;-1:-1:-1;;;18423:25:0;;20174:4;;19426:42;;18423:13;;:25;;18437:10;;18423:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18415:74;;;;-1:-1:-1;;;18415:74:0;;;;;;;:::i;:::-;;;;;;;;;20198:13:::1;20206:4;20198:7;:13::i;:::-;20191:20;;18500:1;20115:104:::0;;;:::o;21247:161::-;21307:18;;:::i;:::-;-1:-1:-1;;;;;21345:22:0;;;;;;:16;:22;;;;;21368:29;;-1:-1:-1;;21368:31:0;;;21345:55;;;;;;;;;;;;;;;;21338:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21247:161;;;:::o;19205:170::-;19275:17;;-1:-1:-1;;;;;19275:17:0;19261:10;:31;19253:73;;;;-1:-1:-1;;;19253:73:0;;;;;;;:::i;:::-;19350:17;;;19337:30;;-1:-1:-1;;;;;;19337:30:0;-1:-1:-1;;;;;19350:17:0;;;19337:30;;;;;;19205:170::o;20966:127::-;18554:25;;-1:-1:-1;;;18554:25:0;;19426:42;;18554:13;;:25;;18568:10;;18554:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18546:74;;;;-1:-1:-1;;;18546:74:0;;;;;;;:::i;:::-;21007:11:::1;21021:12;:10;:12::i;:::-;21007:26;;21052:6;21044:41;;;;-1:-1:-1::0;;;21044:41:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;18643:23:0;;-1:-1:-1;;;18643:23:0;;19426:42;;18643:11;;:23;;18655:10;;18643:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20966:127::o;21101:134::-;18423:25;;-1:-1:-1;;;18423:25:0;;19426:42;;18423:13;;:25;;18437:10;;18423:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18415:74;;;;-1:-1:-1;;;18415:74:0;;;;;;;:::i;:::-;21149:11:::1;21163:12;:10;:12::i;:::-;21149:26;;21194:6;21186:41;;;;-1:-1:-1::0;;;21186:41:0::1;;;;;;;:::i;:::-;18500:1;21101:134::o:0;20428:530::-;20515:10;;-1:-1:-1;;;;;20515:10:0;20501;:24;20493:63;;;;-1:-1:-1;;;20493:63:0;;;;;;;:::i;:::-;20567:12;20582:49;19512:42;20616:6;20624;20582:24;:49::i;:::-;-1:-1:-1;;;;;20651:12:0;;;;;;:6;:12;;;;;;20567:64;;-1:-1:-1;20651:12:0;;20650:13;20642:31;;;;-1:-1:-1;;;20642:31:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;20684:12:0;;;;;;:6;:12;;;;;:19;;-1:-1:-1;;20684:19:0;20699:4;20684:19;;;;;;20714:6;:17;;;;;;;;;;;;;-1:-1:-1;;;;;;20714:17:0;;;;;;;20684:12;20794:52;20691:4;20794:46;:52::i;:::-;-1:-1:-1;;;;;;20857:22:0;;;;;;;:16;:22;;;;;;;;20885:64;;;;;;;20897:15;20885:64;;;;;;;;;;;;;;20857:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;20428:530:0:o;18682:25::-;;;-1:-1:-1;;;;;18682:25:0;;:::o;22021:228::-;22064:4;;22081:138;22102:6;:13;22098:17;;22081:138;;;22141:19;22150:6;22157:1;22150:9;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22150:9:0;22141:8;:19::i;:::-;22137:71;;;22188:4;22181:11;;;;;22137:71;22117:3;;22081:138;;;;22236:5;22229:12;;22021:228;;:::o;21864:149::-;21917:4;19707;21960:21;21976:4;21960:15;:21::i;:::-;:31;21942:15;:49;21941:64;;21864:149;-1:-1:-1;;21864:149:0:o;23435:1117::-;23525:14;23552:12;23567:52;19512:42;23601:7;23610:8;23567:24;:52::i;:::-;23552:67;-1:-1:-1;23638:31:0;23552:67;23651:17;19707:4;23666:1;23651:14;:17::i;:::-;23638:6;:31::i;:::-;23630:80;;;;-1:-1:-1;;;23630:80:0;;;;;;;:::i;:::-;23722:14;23741:46;23769:7;23778:8;23741:27;:46::i;:::-;23721:66;;;23800:31;;:::i;:::-;23834:21;23850:4;23834:15;:21::i;:::-;23800:55;;23867:21;23890;23916:52;23963:4;23916:46;:52::i;:::-;-1:-1:-1;24002:22:0;;23866:102;;-1:-1:-1;23866:102:0;-1:-1:-1;23983:15:0;:41;23979:144;;;-1:-1:-1;;;;;24056:22:0;;;;;;:16;:22;;;;;24079:29;;-1:-1:-1;;24079:31:0;;;24056:55;;;;;;;;;;;;;;;;24041:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23979:144;24180:22;;24162:15;:40;24227:16;;:34;;24250:11;24227:34;;;24246:1;24227:34;24213:48;;24286:7;-1:-1:-1;;;;;24276:17:0;:6;-1:-1:-1;;;;;24276:17:0;;24272:273;;;24317:88;24334:12;:29;;;24365:16;24383:11;24396:8;24317:16;:88::i;:::-;24310:95;;;;;;;;;;24272:273;24445:88;24462:12;:29;;;24493:16;24511:11;24524:8;24445:16;:88::i;23435:1117::-;;;;;;:::o;18912:170::-;18998:10;;-1:-1:-1;;;;;18998:10:0;18984;:24;18976:56;;;;-1:-1:-1;;;18976:56:0;;;;;;;:::i;:::-;19043:17;:31;;-1:-1:-1;;;;;;19043:31:0;-1:-1:-1;;;;;19043:31:0;;;;;;;;;;18912:170::o;24560:1488::-;24666:14;24693:12;24708:52;19512:42;24742:7;24751:8;24708:24;:52::i;:::-;24693:67;-1:-1:-1;24779:41:0;24693:67;24792:27;19707:4;24807:11;24792:14;:27::i;24779:41::-;24771:90;;;;-1:-1:-1;;;24771:90:0;;;;;;;:::i;:::-;24873:14;24892:46;24920:7;24929:8;24892:27;:46::i;:::-;-1:-1:-1;;;;;;25007:22:0;;24951:27;25007:22;;;:16;:22;;;;;:29;24872:66;;-1:-1:-1;24951:27:0;-1:-1:-1;;25007:31:0;24951:27;25058:23;25007:31;25069:11;25058:10;:23::i;:::-;25049:32;;25096:14;25139:7;-1:-1:-1;;;;;25129:17:0;:6;-1:-1:-1;;;;;25129:17:0;;25125:859;;;25163:389;25174:6;25170:1;:10;25163:389;;;-1:-1:-1;;;;;;25305:22:0;;;;;;:16;:22;;;;;:25;;25220:1;25218:3;;;25266:270;;25218:1;;25305:25;;;;;;;;;;;;;;;;:42;;;25370:16;:22;25387:4;-1:-1:-1;;;;;25370:22:0;-1:-1:-1;;;;;25370:22:0;;;;;;;;;;;;25393:9;25370:33;;;;;;;;;;;;;;;;;;:50;;;25490:16;:22;25507:4;-1:-1:-1;;;;;25490:22:0;-1:-1:-1;;;;;25490:22:0;;;;;;;;;;;;25513:1;25490:25;;;;;;;;;;;;;;;;;;;;;;;:35;-1:-1:-1;;;;;25444:22:0;;;;:16;:22;;;;;;;:33;;25467:9;;25444:33;;;;;;;;;;;;;;;;:43;;;:81;25527:8;25266:16;:270::i;:::-;25240:296;;;;25182:3;;;;;25163:389;;;25125:859;;;25595:6;25591:1;:10;25584:389;;;-1:-1:-1;;;;;;25726:22:0;;;;;;:16;:22;;;;;:25;;25641:1;25639:3;;;25687:270;;25639:1;;25726:25;;;;;;;;;;;;;;;;:42;;;25791:16;:22;25808:4;-1:-1:-1;;;;;25791:22:0;-1:-1:-1;;;;;25791:22:0;;;;;;;;;;;;25814:9;25791:33;;;;;;;;;;;;;;;;;;:50;;;25911:16;:22;25928:4;-1:-1:-1;;;;;25911:22:0;-1:-1:-1;;;;;25911:22:0;;;;;;;;;;;;25934:1;25911:25;;;;;;;25687:270;25661:296;;;;25603:3;;;;;25584:389;;;26001:39;:22;26028:11;26001:26;:39::i;:::-;25994:46;24560:1488;-1:-1:-1;;;;;;;;;;;24560:1488:0:o;19978:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19978:57:0;;-1:-1:-1;19978:57:0;:::o;19478:76::-;19512:42;19478:76;:::o;20227:193::-;18423:25;;-1:-1:-1;;;18423:25:0;;20300:4;;19426:42;;18423:13;;:25;;18437:10;;18423:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18415:74;;;;-1:-1:-1;;;18415:74:0;;;;;;;:::i;:::-;20317:12:::1;20332:49;19512:42;20366:6;20374;20332:24;:49::i;:::-;20317:64;;20399:13;20407:4;20399:7;:13::i;:::-;20392:20;;;18500:1;20227:193:::0;;;;:::o;21636:220::-;18423:25;;-1:-1:-1;;;18423:25:0;;21701:12;;19426:42;;18423:13;;:25;;18437:10;;18423:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18415:74;;;;-1:-1:-1;;;18415:74:0;;;;;;;:::i;:::-;21737:6:::1;21733:1;:10;21726:123;;;21769:18;21777:6;21784:1;21777:9;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;21777:9:0::1;21769:7;:18::i;:::-;21765:73;;;-1:-1:-1::0;21818:4:0::1;21765:73;21745:3;::::0;;::::1;::::0;21726:123:::1;;19673:38:::0;19707:4;19673:38;:::o;18714:32::-;;;-1:-1:-1;;;;;18714:32:0;;:::o;19801:90::-;19841:16;19877:6;19870:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19870:13:0;;;;;;;;;;;;;;;;;;;;;;;19801:90;:::o;22257:559::-;22306:4;22414:16;22451:21;22467:4;22451:15;:21::i;:::-;:31;22433:15;:49;;-1:-1:-1;19707:4:0;22497:24;;22493:293;;;22539:21;22562;22588:52;22635:4;22588:46;:52::i;:::-;-1:-1:-1;;;;;;22655:22:0;;;;;;:16;:22;;;;;;;;22683:64;;;;;;;22695:15;22683:64;;;;;;;;;;;;;;22655:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22763:11:0;;-1:-1:-1;;;22763:11:0;22493:293;-1:-1:-1;22803:5:0;;22257:559;-1:-1:-1;;22257:559:0:o;21416:212::-;21456:12;;21481:140;21502:6;:13;21498:17;;21481:140;;;21541:18;21549:6;21556:1;21549:9;;;;;;;21541:18;21537:73;;;21590:4;21580:14;;21537:73;21517:3;;21481:140;;;;21416:212;:::o;14134:478::-;14223:12;14249:14;14265;14283:26;14294:6;14302;14283:10;:26::i;:::-;14248:61;;;;14411:7;14464:6;14472;14447:32;;;;;;;;;:::i;:::-;;;;;;;;;;;;;14437:43;;;;;;14350:251;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;14350:251:0;;;;;;;;;14340:262;;14350:251;14340:262;;;;;14134:478;-1:-1:-1;;;;;;14134:478:0:o;5917:1058::-;6003:21;6026;6049;6100:23;:21;:23::i;:::-;6083:40;;6168:4;-1:-1:-1;;;;;6153:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6134:62;;6241:4;-1:-1:-1;;;;;6226:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6207:62;;6384:16;6402;6420:25;6464:4;-1:-1:-1;;;;;6449:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6383:100;;;;;;6520:14;6498:36;;:18;:36;;;6494:474;;6620:35;;;6766:62;;;6771:39;6791:8;6801;6771:19;:39::i;:::-;:42;-1:-1:-1;;;;;6766:48:0;:62;6746:82;;;;;6894:62;;;6899:39;6919:8;6929;6899:19;:39::i;:::-;:42;-1:-1:-1;;;;;6894:48:0;:62;6874:82;;;;;-1:-1:-1;6494:474:0;5917:1058;;;;;;;;:::o;9668:471::-;9726:7;9971:6;9967:47;;-1:-1:-1;10001:1:0;9994:8;;9967:47;10038:5;;;10042:1;10038;:5;:1;10062:5;;;;;:10;10054:56;;;;-1:-1:-1;;;10054:56:0;;;;;;;:::i;23274:153::-;23337:4;23416:3;23380:21;23396:4;23380:15;:21::i;:::-;:31;23362:15;:49;23361:58;;;23274:153;-1:-1:-1;;;23274:153:0:o;13693:349::-;13768:14;13784;13829:6;-1:-1:-1;;;;;13819:16:0;:6;-1:-1:-1;;;;;13819:16:0;;;13811:66;;;;-1:-1:-1;;;13811:66:0;;;;;;;:::i;:::-;13916:6;-1:-1:-1;;;;;13907:15:0;:6;-1:-1:-1;;;;;13907:15:0;;:53;;13945:6;13953;13907:53;;;13926:6;13934;13907:53;13888:72;;-1:-1:-1;13888:72:0;-1:-1:-1;;;;;;13979:20:0;;13971:63;;;;-1:-1:-1;;;13971:63:0;;;;;;;:::i;:::-;13693:349;;;;;:::o;22824:442::-;22982:14;23042:40;;:::i;:::-;23085:112;;;;;;;;23174:11;23150:20;23129:18;:41;23128:57;;;;;;-1:-1:-1;;;;;23085:112:0;;;23042:155;-1:-1:-1;23220:38:0;:26;23042:155;23237:8;23220:16;:26::i;:::-;:36;:38::i;:::-;23208:50;;;22824:442;-1:-1:-1;;;;;;22824:442:0:o;8807:137::-;8865:7;8892:44;8896:1;8899;8892:44;;;;;;;;;;;;;;;;;:3;:44::i;11326:132::-;11384:7;11411:39;11415:1;11418;11411:39;;;;;;;;;;;;;;;;;:3;:39::i;5688:123::-;5777:25;:15;:25;;5688:123::o;4731:246::-;4812:16;;:::i;:::-;4863:1;4849:11;-1:-1:-1;;;;;4849:15:0;;4841:51;;;;-1:-1:-1;;;4841:51:0;;;;;;;:::i;:::-;4910:59;;;;;;;;;;-1:-1:-1;;;;;4920:48:0;;-1:-1:-1;;;3593:3:0;4921:32;;;;4920:48;;;;;;-1:-1:-1;;;;;4910:59:0;;;;4903:66;;4731:246;;;;:::o;4322:253::-;4389:16;;:::i;:::-;4418:6;4443;;;:54;;-1:-1:-1;;4489:7:0;;-1:-1:-1;;;;;4484:13:0;4458:17;;;;4479:1;4458:17;4479:1;4453:27;;;;;:44;4443:54;4435:102;;;;-1:-1:-1;;;4435:102:0;;;;;;;:::i;:::-;4555:12;;;;;;;;;;;;;4322:253;-1:-1:-1;;;4322:253:0:o;5276:130::-;5376:7;3593:3;5376:21;;5276:130::o;9233:192::-;9319:7;9355:12;9347:6;;;;9339:29;;;;-1:-1:-1;;;9339:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;9391:5:0;;;9233:192::o;11946:345::-;12032:7;12134:12;12127:5;12119:28;;;;-1:-1:-1;;;12119:28:0;;;;;;;;:::i;:::-;;12158:9;12174:1;12170;:5;;;;;;;11946:345;-1:-1:-1;;;;;11946:345:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;5:130::-;72:20;;-1:-1;;;;;23251:54;;24989:35;;24979:2;;25038:1;;25028:12;835:241;;939:2;927:9;918:7;914:23;910:32;907:2;;;-1:-1;;945:12;907:2;1007:53;1052:7;1028:22;1007:53;:::i;1083:366::-;;;1204:2;1192:9;1183:7;1179:23;1175:32;1172:2;;;-1:-1;;1210:12;1172:2;1272:53;1317:7;1293:22;1272:53;:::i;:::-;1262:63;;1380:53;1425:7;1362:2;1405:9;1401:22;1380:53;:::i;:::-;1370:63;;1166:283;;;;;:::o;1456:366::-;;;1577:2;1565:9;1556:7;1552:23;1548:32;1545:2;;;-1:-1;;1583:12;1545:2;1645:53;1690:7;1666:22;1645:53;:::i;:::-;1635:63;1735:2;1774:22;;;;485:20;;-1:-1;;;1539:283::o;1829:491::-;;;;1967:2;1955:9;1946:7;1942:23;1938:32;1935:2;;;-1:-1;;1973:12;1935:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2025:63;-1:-1;2125:2;2164:22;;485:20;;-1:-1;2233:2;2272:22;;72:20;97:33;72:20;97:33;:::i;:::-;2241:63;;;;1929:391;;;;;:::o;2327:617::-;;;;;2482:3;2470:9;2461:7;2457:23;2453:33;2450:2;;;-1:-1;;2489:12;2450:2;2551:53;2596:7;2572:22;2551:53;:::i;:::-;2541:63;;2641:2;2684:9;2680:22;485:20;2649:63;;2767:53;2812:7;2749:2;2792:9;2788:22;2767:53;:::i;:::-;2444:500;;;;-1:-1;2757:63;;2857:2;2896:22;485:20;;-1:-1;;2444:500::o;2951:257::-;;3063:2;3051:9;3042:7;3038:23;3034:32;3031:2;;;-1:-1;;3069:12;3031:2;223:6;217:13;25135:5;22968:13;22961:21;25113:5;25110:32;25100:2;;-1:-1;;25146:12;3215:533;;;;3363:2;3351:9;3342:7;3338:23;3334:32;3331:2;;;-1:-1;;3369:12;3331:2;361:6;355:13;373:33;400:5;373:33;:::i;:::-;3532:2;3582:22;;355:13;3421:74;;-1:-1;373:33;355:13;373:33;:::i;:::-;3651:2;3700:22;;773:13;3540:74;;-1:-1;23468:10;23457:22;;25478:34;;25468:2;;-1:-1;;25516:12;3755:263;;3870:2;3858:9;3849:7;3845:23;3841:32;3838:2;;;-1:-1;;3876:12;3838:2;-1:-1;633:13;;3832:186;-1:-1;3832:186::o;4025:366::-;;;4146:2;4134:9;4125:7;4121:23;4117:32;4114:2;;;-1:-1;;4152:12;4114:2;-1:-1;;485:20;;;4304:2;4343:22;;;485:20;;-1:-1;4108:283::o;12662:392::-;-1:-1;;24902:2;24898:14;;;;;5048:58;;24898:14;;;;;12915:2;12906:12;;5048:58;13017:12;;;12806:248::o;13061:926::-;-1:-1;;;;;;8753:87;;24902:2;24898:14;;;;-1:-1;;24898:14;8738:1;8859:11;;5048:58;13673:12;;;6047:58;8365:66;13784:12;;;8345:87;8451:12;;;13407:580::o;13994:222::-;-1:-1;;;;;23251:54;;;;4790:37;;14121:2;14106:18;;14092:124::o;14468:370::-;14645:2;14659:47;;;22006:12;;14630:18;;;22410:19;;;14468:370;;14645:2;21860:14;;;;22450;;;;14468:370;5557:260;5582:6;5579:1;5576:13;5557:260;;;5643:13;;-1:-1;;;;;23251:54;4790:37;;22265:14;;;;4552;;;;23262:42;5597:9;5557:260;;;-1:-1;14712:116;;14616:222;-1:-1;;;;;;14616:222::o;14845:210::-;22968:13;;22961:21;5912:34;;14966:2;14951:18;;14937:118::o;15327:310::-;;15474:2;;15495:17;15488:47;6431:5;22006:12;22422:6;15474:2;15463:9;15459:18;22410:19;-1:-1;24240:101;24254:6;24251:1;24248:13;24240:101;;;24321:11;;;;;24315:18;24302:11;;;22450:14;24302:11;24295:39;24269:10;;24240:101;;;24356:6;24353:1;24350:13;24347:2;;;-1:-1;22450:14;24412:6;15463:9;24403:16;;24396:27;24347:2;-1:-1;24807:7;24791:14;-1:-1;;24787:28;6589:39;;;;22450:14;6589:39;;15445:192;-1:-1;;;15445:192::o;15644:416::-;15844:2;15858:47;;;6865:2;15829:18;;;22410:19;6901:28;22450:14;;;6881:49;6949:12;;;15815:245::o;16067:416::-;16267:2;16281:47;;;7200:2;16252:18;;;22410:19;-1:-1;;;22450:14;;;7216:42;7277:12;;;16238:245::o;16490:416::-;16690:2;16704:47;;;7528:2;16675:18;;;22410:19;7564:34;22450:14;;;7544:55;-1:-1;;;7619:12;;;7612:29;7660:12;;;16661:245::o;16913:416::-;17113:2;17127:47;;;7911:2;17098:18;;;22410:19;7947:34;22450:14;;;7927:55;-1:-1;;;8002:12;;;7995:28;8042:12;;;17084:245::o;17336:416::-;17536:2;17550:47;;;9109:2;17521:18;;;22410:19;9145:34;22450:14;;;9125:55;-1:-1;;;9200:12;;;9193:25;9237:12;;;17507:245::o;17759:416::-;17959:2;17973:47;;;9488:1;17944:18;;;22410:19;-1:-1;;;22450:14;;;9503:28;9550:12;;;17930:245::o;18182:416::-;18382:2;18396:47;;;9801:2;18367:18;;;22410:19;9837:31;22450:14;;;9817:52;9888:12;;;18353:245::o;18605:416::-;18805:2;18819:47;;;10139:2;18790:18;;;22410:19;10175:34;22450:14;;;10155:55;-1:-1;;;10230:12;;;10223:28;10270:12;;;18776:245::o;19028:416::-;19228:2;19242:47;;;10521:2;19213:18;;;22410:19;10557:34;22450:14;;;10537:55;-1:-1;;;10612:12;;;10605:27;10651:12;;;19199:245::o;19451:416::-;19651:2;19665:47;;;10902:2;19636:18;;;22410:19;10938:32;22450:14;;;10918:53;10990:12;;;19622:245::o;19874:416::-;20074:2;20088:47;;;11241:2;20059:18;;;22410:19;11277:25;22450:14;;;11257:46;11322:12;;;20045:245::o;20297:416::-;20497:2;20511:47;;;11573:2;20482:18;;;22410:19;-1:-1;;;22450:14;;;11589:45;11653:12;;;20468:245::o;20720:338::-;11980:23;;6047:58;;12163:4;12152:16;;;12146:23;12223:14;;;6047:58;12329:4;12318:16;;;12312:23;12389:14;;;6047:58;;;;20905:2;20890:18;;20876:182::o;21065:222::-;6047:58;;;21192:2;21177:18;;21163:124::o;21294:444::-;6047:58;;;21641:2;21626:18;;6047:58;;;;21724:2;21709:18;;6047:58;21477:2;21462:18;;21448:290::o;24930:117::-;-1:-1;;;;;23251:54;;24989:35;;24979:2;;25038:1;;25028:12;25172:117;-1:-1;;;;;25259:5;23135:42;25234:5;25231:35;25221:2;;25280:1;;25270:12

Swarm Source

ipfs://cb0159bc5fda5da0b5c7ef2e37aee852336214335c3296dd291a9e42831e5664

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.