Contract 0x6bbf7d831788d500745b9020233421412e0fb776

 

Contract Overview

Keep3rb Network: BlueBerry Oracle
Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0xc00358cfab04d1399d11b85c61587af3ab77872e2386e80245ec3e3e5d3b5ef877528252021-05-26 19:09:1768 days 14 hrs agoKeep3rb Network: Deployer IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001759085
0x17390be7c7d536bf8389f27aa223d5588d75deadebe363436478494865b4637072644952021-05-09 8:04:1486 days 1 hr ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x55f7306d8a49857cd30a6ca7bf894a4846115b1fe5cb8f1bc3ebc424e32894ac72644592021-05-09 8:02:2686 days 1 hr ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xfa0b7dbd3f168537c9c32c05ef1d8dfd4f49c1df0daa1f7c097929e0de919da072644172021-05-09 8:00:2086 days 1 hr ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x7b8cc07fec5675b7b92d67916a69c4c441db2f406a72bd8f0e4e6e410cbdc4f372643862021-05-09 7:58:4786 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x4e0b6ee98c48ec068871e02704e76d87df7357b6ab251144121283316caed73372643502021-05-09 7:56:5986 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xf952f3e8b024e967c93a55c6d5ad0418e69b8e882db20251b1496eeb62f7358a72643012021-05-09 7:54:3286 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x0292bfd7bd0473b56e048a82af1f8af83135fc997002d7f680654633f00ad20172642552021-05-09 7:52:1486 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xf67322e4dfbe41641bd89194ccc29ef742a00c7bc93b09e649917c484aae131472642232021-05-09 7:50:1886 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x26b40e8111b967008d5e2d0d26bdf6ab1fddc9a861f50374f7c665c56c8bfd1172641172021-05-09 7:44:5186 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xf0bd1a728732de2501338fc0b02f95356e9d42e27bf332385a81639e589e3b8f72640722021-05-09 7:42:3686 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x5dcddb444d6b32c6183fc9115a209006472cb45ea3627a4668af3afc9d8f3b2472640262021-05-09 7:40:1886 days 2 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xeb792d34cf7aadc01081734ccd3d20be67037442f6d68dac52ba5ccbaccc860372441032021-05-08 14:05:5786 days 19 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xbe1c64418b27cbeb3ab44670f198daf9acbba7ea588c0954648b5c4fd8e52c4172440322021-05-08 14:02:1986 days 19 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xefb0aee9ba641e405390b54c94a7addee5b6b2a8db181b226ef950e2c73ce46072439812021-05-08 13:59:1486 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001474595
0x968c183fce4241d6efadbddc9f83906b7328f8b35f3caca890bbfa99ca264f7472439302021-05-08 13:56:0986 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x23b79c9ca9503e910b677d3346fa5f4ad3497064f9b8e881ffde4370bdee34f372439022021-05-08 13:54:4586 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xb9ad94fdddae6a61b155b43a94391d169a9a6fcfd3c325544fa56187277b25f572438652021-05-08 13:52:5486 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x0de8ce7535f1ba60b1f5652a4eebeca8699e81d1b3737e77d7f536265f2641a872438172021-05-08 13:50:1486 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xe45bca30d80dfda04bdadda0891a02c1c1c7e8d5b1b4e9ddfe41c00fe6423a1472437822021-05-08 13:48:1786 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xbfbd2e5edec9853777ea67ebb55f04ff2459e87306da8bff0bf0ca837fdc708472437492021-05-08 13:46:2286 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xa782f01826c34acb590bdbad071246c62b8693d59c84a6d26cf053395496c5ae72437082021-05-08 13:44:1686 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x51e022d0ef7f16fae3c7dcc6a5b5ddef1d6e27a208c2bf594118a063ce3a74df72436652021-05-08 13:42:0786 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0x0d71accc278ef33249c5b4a540cab7b82f0f4bdde4bd6d8982de9cf62242d0aa72435782021-05-08 13:37:4686 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
0xa4e67dbdba8298c6773cdb2c8e0081060c481b7f30f9b8069da1027fb06738eb72435152021-05-08 13:34:3786 days 20 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: BlueBerry Oracle0 BNB0.001477915
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle Keep3rb Network: KP3RB Token0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: WBNB-BUSD0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: WBNB-BUSD0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: WBNB-BUSD0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-BUSD0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-BUSD0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-BUSD0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: HOTS-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: HOTS-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: HOTS-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-CHS0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-CHS0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-CHS0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: CHS-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: CHS-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: CHS-WBNB0 BNB
0x06ade0ad193ce5ffdf705caad7456f16da76a364684cfa4e1c0eb7eb977a22b654651612021-03-07 6:51:00149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle Keep3rb Network: KP3RB Token0 BNB
0xdc97e3ba985f7d785a54669d09013366636a5c50b1a9d337a0584d628f4a0f8d54651192021-03-07 6:48:54149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle Keep3rb Network: KP3RB Token0 BNB
0xdc97e3ba985f7d785a54669d09013366636a5c50b1a9d337a0584d628f4a0f8d54651192021-03-07 6:48:54149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: WBNB-BUSD0 BNB
0xdc97e3ba985f7d785a54669d09013366636a5c50b1a9d337a0584d628f4a0f8d54651192021-03-07 6:48:54149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: WBNB-BUSD0 BNB
0xdc97e3ba985f7d785a54669d09013366636a5c50b1a9d337a0584d628f4a0f8d54651192021-03-07 6:48:54149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: WBNB-BUSD0 BNB
0xdc97e3ba985f7d785a54669d09013366636a5c50b1a9d337a0584d628f4a0f8d54651192021-03-07 6:48:54149 days 3 hrs ago Keep3rb Network: BlueBerry Oracle CheeseSwap: KP3RB-BUSD0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BlueBerryOracle

Compiler Version
v0.7.0+commit.9e61f92b

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-01-26
*/

// SPDX-License-Identifier: MIT


pragma solidity ^0.7.0;

interface ICheeseSwapFactory {
    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 ICheeseSwapPair {
    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;
}


library FixedPoint {
    struct uq112x112 {
        uint224 _x;
    }
    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);
    }

    function encode144(uint144 x) internal pure returns (uq144x112 memory) {
        return uq144x112(uint256(x) << RESOLUTION);
    }

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

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

    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 BlueBerryOracleLibrary {
    using FixedPoint for *;
    function currentBlockTimestamp() internal view returns (uint32) {
        return uint32(block.timestamp % 2 ** 32);
    }

    function currentCumulativePrices(
        address pair
    ) internal view returns (uint price0Cumulative, uint price1Cumulative, uint32 blockTimestamp) {
        blockTimestamp = currentBlockTimestamp();
        price0Cumulative = ICheeseSwapPair(pair).price0CumulativeLast();
        price1Cumulative = ICheeseSwapPair(pair).price1CumulativeLast();

        // if time has elapsed since the last update on the pair, mock the accumulated price values
        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = ICheeseSwapPair(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)

library SafeMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, 'ds-math-add-overflow');
    }

    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x, 'ds-math-sub-underflow');
    }

    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow');
    }
}

library CheeseSwapLibrary {
    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, 'CheeseSwapLibrary: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'CheeseSwapLibrary: 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'f52c5189a89e7ca2ef4f19f2798e3900fba7a316de7cef6c5a9446621ba86286' // 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,) = ICheeseSwapPair(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, 'CheeseSwapLibrary: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'CheeseSwapLibrary: 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, 'CheeseSwapLibrary: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'CheeseSwapLibrary: 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, 'CheeseSwapLibrary: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'CheeseSwapLibrary: 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, 'CheeseSwapLibrary: 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, 'CheeseSwapLibrary: 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 IKeep3rb {
    function isKeeper(address) external returns (bool);
    function worked(address keeper) external;
}

contract BlueBerryOracle {
    using FixedPoint for *;
    using SafeMath for uint;

    struct Observation {
        uint timestamp;
        uint price0Cumulative;
        uint price1Cumulative;
    }
    
    modifier keeper() {
        require(KP3RB.isKeeper(msg.sender), "::isKeeper: keeper is not registered");
        _;
    }
    
    modifier upkeep() {
        require(KP3RB.isKeeper(msg.sender), "::isKeeper: keeper is not registered");
        _;
        KP3RB.worked(msg.sender);
    }
    
    address public governance;
    address public pendingGovernance;
    function setGovernance(address _governance) external {
        require(msg.sender == governance, "setGovernance: !gov");
        pendingGovernance = _governance;
    }

    function acceptGovernance() external {
        require(msg.sender == pendingGovernance, "acceptGovernance: !pendingGov");
        governance = pendingGovernance;
    }
    
    function setKeep3rb(address _keep3rb) external {
        require(msg.sender == governance, "setKeep3rb: !gov");
        KP3RB = IKeep3rb(_keep3rb);
    }
    
    IKeep3rb public KP3RB;

    address public immutable factory = 0xdd538E4Fd1b69B7863E1F741213276A6Cf1EfB3B;
    uint public immutable windowSize = 960;
    uint8 public immutable granularity = 8;
    uint public immutable periodSize = 120;
    
    address[] internal _pairs;
    mapping(address => bool) internal _known;
    mapping(address => uint) public lastUpdated;
    
    function pairs() external view returns (address[] memory) {
        return _pairs;
    }
    mapping(address => Observation[]) public pairObservations;

    constructor(address _keep3rb) public {
        governance = msg.sender;
        KP3RB = IKeep3rb(_keep3rb);
    }

    // returns the index of the observation corresponding to the given timestamp
    function observationIndexOf(uint timestamp) public view returns (uint8 index) {
        uint epochPeriod = timestamp / periodSize;
        return uint8(epochPeriod % granularity);
    }

    // returns the observation from the oldest epoch (at the beginning of the window) relative to the current time
    function getFirstObservationInWindow(address pair) private view returns (Observation storage firstObservation) {
        uint8 observationIndex = observationIndexOf(block.timestamp);
        // no overflow issue. if observationIndex + 1 overflows, result is still zero.
        uint8 firstObservationIndex = (observationIndex + 1) % granularity;
        firstObservation = pairObservations[pair][firstObservationIndex];
    }
    
    function updatePair(address pair) external keeper returns (bool) {
        return _update(pair);
    }

    // update the cumulative price for the observation at the current timestamp. each observation is updated at most
    // once per epoch period.
    function update(address tokenA, address tokenB) external keeper returns (bool) {
        address pair = CheeseSwapLibrary.pairFor(factory, tokenA, tokenB);
        return _update(pair);
    }
    
    function add(address tokenA, address tokenB) external {
        require(msg.sender == governance, "BlueBerryOracle::add: !gov");
        address pair = CheeseSwapLibrary.pairFor(factory, tokenA, tokenB);
        require(!_known[pair], "known");
        _known[pair] = true;
        _pairs.push(pair);
    }
    
    function work() public upkeep {
        bool worked = _updateAll();
        require(worked, "BlueBerryOracle: !work");
    }
    
    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 updateableList() external view returns (address[] memory list) {
        uint _index = 0;
        for (uint i = 0; i < _pairs.length; i++) {
            if (updateable(_pairs[i])) {
               list[_index++] = _pairs[i];
            }
        }
    }
    
    function updateable(address pair) public view returns (bool) {
        return (block.timestamp - lastUpdated[pair]) > periodSize;
    }
    
    function updateable() external view returns (bool) {
        for (uint i = 0; i < _pairs.length; i++) {
            if (updateable(_pairs[i])) {
                return true;
            }
        }
        return false;
    }
    
    function updateableFor(uint i, uint length) external view returns (bool) {
        for (; i < length; i++) {
            if (updateable(_pairs[i])) {
                return true;
            }
        }
        return false;
    }
    
    function _update(address pair) internal returns (bool) {
        // populate the array with empty observations (first call only)
        for (uint i = pairObservations[pair].length; i < granularity; i++) {
            pairObservations[pair].push();
        }

        // get the observation for the current period
        uint8 observationIndex = observationIndexOf(block.timestamp);
        Observation storage observation = pairObservations[pair][observationIndex];

        // we only want to commit updates once per period (i.e. windowSize / granularity)
        uint timeElapsed = block.timestamp - observation.timestamp;
        if (timeElapsed > periodSize) {
            (uint price0Cumulative, uint price1Cumulative,) = BlueBerryOracleLibrary.currentCumulativePrices(pair);
            observation.timestamp = block.timestamp;
            lastUpdated[pair] = block.timestamp;
            observation.price0Cumulative = price0Cumulative;
            observation.price1Cumulative = price1Cumulative;
            return true;
        }
        
        return false;
    }

    // given the cumulative prices of the start and end of a period, and the length of the period, compute the average
    // price in terms of how much amount out is received for the amount in
    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 consult(address tokenIn, uint amountIn, address tokenOut) external view returns (uint amountOut) {
        address pair = CheeseSwapLibrary.pairFor(factory, tokenIn, tokenOut);
        Observation storage firstObservation = getFirstObservationInWindow(pair);

        uint timeElapsed = block.timestamp - firstObservation.timestamp;
        require(timeElapsed <= windowSize, 'SlidingWindowOracle: MISSING_HISTORICAL_OBSERVATION');
        // should never happen.
        require(timeElapsed >= windowSize - periodSize * 2, 'SlidingWindowOracle: UNEXPECTED_TIME_ELAPSED');

        (uint price0Cumulative, uint price1Cumulative,) = BlueBerryOracleLibrary.currentCumulativePrices(pair);
        (address token0,) = CheeseSwapLibrary.sortTokens(tokenIn, tokenOut);

        if (token0 == tokenIn) {
            return computeAmountOut(firstObservation.price0Cumulative, price0Cumulative, timeElapsed, amountIn);
        } else {
            return computeAmountOut(firstObservation.price1Cumulative, price1Cumulative, timeElapsed, amountIn);
        }
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_keep3rb","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KP3RB","outputs":[{"internalType":"contract IKeep3rb","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":"consult","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":[],"name":"granularity","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"observationIndexOf","outputs":[{"internalType":"uint8","name":"index","type":"uint8"}],"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":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keep3rb","type":"address"}],"name":"setKeep3rb","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":"updateable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"updateable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"updateableFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updateableList","outputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"windowSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"work","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040527fdd538e4fd1b69b7863e1f741213276a6cf1efb3b0000000000000000000000006080526103c060a052600160fb1b60c052607860e05234801561004857600080fd5b506040516119463803806119468339818101604052602081101561006b57600080fd5b5051600080546001600160a01b03199081163317909155600280546001600160a01b039093169290911691909117905560805160601c60a05160c05160f81c60e051611834610112600039806109dc5280610b9b5280610e175280610e7752806110c652508061087e5280610e4352806110235280611246525080610917528061097d5280610a0052508061079552806109415280610c045280610ce052506118346000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063ab033ea9116100c3578063dbaad32f1161007c578063dbaad32f146103b1578063e4463eb2146103ce578063e8bb6d42146103d6578063f39c38a01461042e578063fd0ca65a14610436578063ffb0a4a01461045c57610158565b8063ab033ea9146102c2578063b4a5ed38146102e8578063bfcc8e421461030e578063c45a015514610358578063c640752d14610360578063c9ff6f4d1461038e57610158565b80635aa6e675116101155780635aa6e6751461022d57806384c6d93514610251578063886d24a9146102745780638a14117a1461027c5780638c86f1e414610284578063983586d9146102ba57610158565b80630a6f93e61461015d5780631b56bbf914610195578063238efcbc146101cf578063322e9f04146101d957806352c28fab146101e1578063556f0dc71461020f575b600080fd5b6101836004803603602081101561017357600080fd5b50356001600160a01b0316610464565b60408051918252519081900360200190f35b6101bb600480360360208110156101ab57600080fd5b50356001600160a01b0316610476565b604080519115158252519081900360200190f35b6101d761053a565b005b6101d76105bd565b6101d7600480360360408110156101f757600080fd5b506001600160a01b038135811691602001351661072f565b61021761087c565b6040805160ff9092168252519081900360200190f35b6102356108a0565b604080516001600160a01b039092168252519081900360200190f35b6101bb6004803603604081101561026757600080fd5b50803590602001356108af565b610235610906565b610183610915565b6101836004803603606081101561029a57600080fd5b506001600160a01b03813581169160208101359160409091013516610939565b6101bb610acc565b6101d7600480360360208110156102d857600080fd5b50356001600160a01b0316610b0a565b6101bb600480360360208110156102fe57600080fd5b50356001600160a01b0316610b81565b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610bc3565b60408051938452602084019290925282820152519081900360600190f35b610235610c02565b6101bb6004803603604081101561037657600080fd5b506001600160a01b0381358116916020013516610c26565b6101bb600480360360408110156103a457600080fd5b5080359060200135610d19565b610217600480360360208110156103c757600080fd5b5035610e12565b610183610e75565b6103de610e99565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561041a578181015183820152602001610402565b505050509050019250505060405180910390f35b610235610f22565b6101d76004803603602081101561044c57600080fd5b50356001600160a01b0316610f31565b6103de610fa5565b60056020526000908152604090205481565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b1580156104c257600080fd5b505af11580156104d6573d6000803e3d6000fd5b505050506040513d60208110156104ec57600080fd5b50516105295760405162461bcd60e51b81526004018080602001828103825260248152602001806117b86024913960400191505060405180910390fd5b61053282611007565b90505b919050565b6001546001600160a01b03163314610599576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600254604080516335d2155560e11b815233600482015290516001600160a01b0390921691636ba42aaa916024808201926020929091908290030181600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b50516106715760405162461bcd60e51b81526004018080602001828103825260248152602001806117b86024913960400191505060405180910390fd5b600061067b611140565b9050806106c8576040805162461bcd60e51b8152602060048201526016602482015275426c756542657272794f7261636c653a2021776f726b60501b604482015290519081900360640190fd5b50600254604080516317fbade560e21b815233600482015290516001600160a01b0390921691635feeb7949160248082019260009290919082900301818387803b15801561071557600080fd5b505af1158015610729573d6000803e3d6000fd5b50505050565b6000546001600160a01b0316331461078e576040805162461bcd60e51b815260206004820152601a60248201527f426c756542657272794f7261636c653a3a6164643a2021676f76000000000000604482015290519081900360640190fd5b60006107bb7f00000000000000000000000000000000000000000000000000000000000000008484611174565b6001600160a01b03811660009081526004602052604090205490915060ff1615610814576040805162461bcd60e51b815260206004820152600560248201526435b737bbb760d91b604482015290519081900360640190fd5b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031681565b60005b818310156108fc576108e4600384815481106108ca57fe5b6000918252602090912001546001600160a01b0316610b81565b156108f157506001610900565b6001909201916108b2565b5060005b92915050565b6002546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806109677f00000000000000000000000000000000000000000000000000000000000000008685611174565b9050600061097482611234565b805490915042037f00000000000000000000000000000000000000000000000000000000000000008111156109da5760405162461bcd60e51b81526004018080602001828103825260338152602001806117336033913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006002027f000000000000000000000000000000000000000000000000000000000000000003811015610a5e5760405162461bcd60e51b815260040180806020018281038252602c815260200180611766602c913960400191505060405180910390fd5b600080610a6a856112c3565b50915091506000610a7b8a89611492565b509050896001600160a01b0316816001600160a01b03161415610ab557610aa8856001015484868c611570565b9650505050505050610ac5565b610aa8856002015483868c611570565b9392505050565b6000805b600354811015610b0157610aea600382815481106108ca57fe5b15610af9576001915050610b07565b600101610ad0565b50600090505b90565b6000546001600160a01b03163314610b5f576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03166000908152600560205260409020547f000000000000000000000000000000000000000000000000000000000000000042919091031190565b60066020528160005260406000208181548110610bdc57fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b7f000000000000000000000000000000000000000000000000000000000000000081565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b505050506040513d6020811015610c9c57600080fd5b5051610cd95760405162461bcd60e51b81526004018080602001828103825260248152602001806117b86024913960400191505060405180910390fd5b6000610d067f00000000000000000000000000000000000000000000000000000000000000008585611174565b9050610d1181611007565b949350505050565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610d6557600080fd5b505af1158015610d79573d6000803e3d6000fd5b505050506040513d6020811015610d8f57600080fd5b5051610dcc5760405162461bcd60e51b81526004018080602001828103825260248152602001806117b86024913960400191505060405180910390fd5b8183101561090057610dfe60038481548110610de457fe5b6000918252602090912001546001600160a01b0316611007565b15610e07575060015b600190920191610dcc565b6000807f00000000000000000000000000000000000000000000000000000000000000008381610e3e57fe5b0490507f000000000000000000000000000000000000000000000000000000000000000060ff168181610e6d57fe5b069392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606000805b600354811015610f1d57610eb9600382815481106108ca57fe5b15610f155760038181548110610ecb57fe5b600091825260209091200154835160018401936001600160a01b039092169185918110610ef457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101610e9f565b505090565b6001546001600160a01b031681565b6000546001600160a01b03163314610f83576040805162461bcd60e51b815260206004820152601060248201526f39b2ba25b2b2b819b9311d1010b3b7bb60811b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805480602002602001604051908101604052809291908181526020018280548015610ffd57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fdf575b5050505050905090565b6001600160a01b0381166000908152600660205260408120545b7f000000000000000000000000000000000000000000000000000000000000000060ff16811015611075576001600160a01b0383166000908152600660205260408120805460019081018255915201611021565b50600061108142610e12565b6001600160a01b03841660009081526006602052604081208054929350909160ff84169081106110ad57fe5b60009182526020909120600390910201805490915042037f0000000000000000000000000000000000000000000000000000000000000000811115611135576000806110f8876112c3565b50428087556001600160a01b038a166000908152600560205260409020556001808701929092556002909501949094555091935061053592505050565b506000949350505050565b6000805b6003548110156111705761115e60038281548110610de457fe5b1561116857600191505b600101611144565b5090565b60008060006111838585611492565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527ff52c5189a89e7ca2ef4f19f2798e3900fba7a316de7cef6c5a9446621ba86286609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60008061124042610e12565b905060007f000000000000000000000000000000000000000000000000000000000000000060ff168260010160ff168161127657fe5b06905060066000856001600160a01b03166001600160a01b031681526020019081526020016000208160ff16815481106112ac57fe5b906000526020600020906003020192505050919050565b60008060006112d06115ce565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561130b57600080fd5b505afa15801561131f573d6000803e3d6000fd5b505050506040513d602081101561133557600080fd5b505160408051635a3d549360e01b815290519194506001600160a01b03861691635a3d549391600480820192602092909190829003018186803b15801561137b57600080fd5b505afa15801561138f573d6000803e3d6000fd5b505050506040513d60208110156113a557600080fd5b505160408051630240bc6b60e21b81529051919350600091829182916001600160a01b03891691630902f1ac916004808301926060929190829003018186803b1580156113f157600080fd5b505afa158015611405573d6000803e3d6000fd5b505050506040513d606081101561141b57600080fd5b5080516020820151604090920151909450909250905063ffffffff808216908516146114885780840363ffffffff811661145584866115d8565b516001600160e01b031602969096019563ffffffff811661147685856115d8565b516001600160e01b0316029590950194505b5050509193909250565b600080826001600160a01b0316846001600160a01b031614156114e65760405162461bcd60e51b81526004018080602001828103825260268152602001806117926026913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611506578284611509565b83835b90925090506001600160a01b038216611569576040805162461bcd60e51b815260206004820152601f60248201527f436865657365537761704c6962726172793a205a45524f5f4144445245535300604482015290519081900360640190fd5b9250929050565b600061157a61170d565b6040518060200160405280858888038161159057fe5b046001600160e01b0316905290506115b06115ab8285611688565b611706565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b63ffffffff421690565b6115e061170d565b6000826001600160701b03161161163e576040805162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161167357fe5b046001600160e01b0316815250905092915050565b61169061171f565b60008215806116b657505082516001600160e01b0316828102908382816116b357fe5b04145b6116f15760405162461bcd60e51b81526004018080602001828103825260238152602001806117dc6023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b60408051602081019091526000815290565b604051806020016040528060008152509056fe536c6964696e6757696e646f774f7261636c653a204d495353494e475f484953544f524943414c5f4f42534552564154494f4e536c6964696e6757696e646f774f7261636c653a20554e45585045435445445f54494d455f454c4150534544436865657365537761704c6962726172793a204944454e544943414c5f4144445245535345533a3a69734b65657065723a206b6565706572206973206e6f7420726567697374657265644669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a2646970667358221220836f6efa204dc4e6b9567e1b0134b7909b1d83d712370d3290f3d523ff5ad15b64736f6c634300070000330000000000000000000000005ea29eee799aa7cc379fde5cf370bc24f2ea7c81

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

0000000000000000000000005ea29eee799aa7cc379fde5cf370bc24f2ea7c81

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005ea29eee799aa7cc379fde5cf370bc24f2ea7c81


Deployed ByteCode Sourcemap

11190:7787:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12651:43;;;;;;;;;;;;;;;;-1:-1:-1;12651:43:0;-1:-1:-1;;;;;12651:43:0;;:::i;:::-;;;;;;;;;;;;;;;;13829:104;;;;;;;;;;;;;;;;-1:-1:-1;13829:104:0;-1:-1:-1;;;;;13829:104:0;;:::i;:::-;;;;;;;;;;;;;;;;;;11967:170;;;:::i;:::-;;14620:127;;;:::i;14296:312::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14296:312:0;;;;;;;;;;:::i;12476:38::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11718:25;;;:::i;:::-;;;;-1:-1:-1;;;;;11718:25:0;;;;;;;;;;;;;;15890:237;;;;;;;;;;;;;;;;-1:-1:-1;15890:237:0;;;;;;;:::i;12317:21::-;;;:::i;12431:38::-;;;:::i;17893:1081::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17893:1081:0;;;;;;;;;;;;;;;;;:::i;15646:232::-;;;:::i;11789:170::-;;;;;;;;;;;;;;;;-1:-1:-1;11789:170:0;-1:-1:-1;;;;;11789:170:0;;:::i;15497:137::-;;;;;;;;;;;;;;;;-1:-1:-1;15497:137:0;-1:-1:-1;;;;;15497:137:0;;:::i;12803:57::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;12803:57:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;12347:77;;;:::i;14090:194::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14090:194:0;;;;;;;;;;:::i;14983:220::-;;;;;;;;;;;;;;;;-1:-1:-1;14983:220:0;;;;;;;:::i;13075:188::-;;;;;;;;;;;;;;;;-1:-1:-1;13075:188:0;;:::i;12521:38::-;;;:::i;15215:270::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11750:32;;;:::i;12149:156::-;;;;;;;;;;;;;;;;-1:-1:-1;12149:156:0;-1:-1:-1;;;;;12149:156:0;;:::i;12707:90::-;;;:::i;12651:43::-;;;;;;;;;;;;;:::o;13829:104::-;11448:5;;:26;;;-1:-1:-1;;;11448:26:0;;11463:10;11448:26;;;;;;13888:4;;-1:-1:-1;;;;;11448:5:0;;:14;;:26;;;;;;;;;;;;;;13888:4;11448:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11448:26:0;11440:75;;;;-1:-1:-1;;;11440:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13912:13:::1;13920:4;13912:7;:13::i;:::-;13905:20;;11526:1;13829:104:::0;;;:::o;11967:170::-;12037:17;;-1:-1:-1;;;;;12037:17:0;12023:10;:31;12015:73;;;;;-1:-1:-1;;;12015:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12112:17;;;12099:30;;-1:-1:-1;;;;;;12099:30:0;-1:-1:-1;;;;;12112:17:0;;;12099:30;;;;;;11967:170::o;14620:127::-;11584:5;;:26;;;-1:-1:-1;;;11584:26:0;;11599:10;11584:26;;;;;;-1:-1:-1;;;;;11584:5:0;;;;:14;;:26;;;;;;;;;;;;;;;:5;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11584:26:0;11576:75;;;;-1:-1:-1;;;11576:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14661:11:::1;14675:12;:10;:12::i;:::-;14661:26;;14706:6;14698:41;;;::::0;;-1:-1:-1;;;14698:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14698:41:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;11674:5:0;;:24;;;-1:-1:-1;;;11674:24:0;;11687:10;11674:24;;;;;;-1:-1:-1;;;;;11674:5:0;;;;:12;;:24;;;;;:5;;:24;;;;;;;;:5;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14620:127::o;14296:312::-;14383:10;;-1:-1:-1;;;;;14383:10:0;14369;:24;14361:63;;;;;-1:-1:-1;;;14361:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14435:12;14450:50;14476:7;14485:6;14493;14450:25;:50::i;:::-;-1:-1:-1;;;;;14520:12:0;;;;;;:6;:12;;;;;;14435:65;;-1:-1:-1;14520:12:0;;14519:13;14511:31;;;;;-1:-1:-1;;;14511:31:0;;;;;;;;;;;;-1:-1:-1;;;14511:31:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;14553:12:0;;;;;:6;:12;;;;;:19;;-1:-1:-1;;14553:19:0;14568:4;14553:19;;;;;;14583:6;:17;;;;;;;;;;;;;;-1:-1:-1;;;;;;14583:17:0;;;;;;-1:-1:-1;;14296:312:0:o;12476:38::-;;;:::o;11718:25::-;;;-1:-1:-1;;;;;11718:25:0;;:::o;15890:237::-;15957:4;15974:123;15985:6;15981:1;:10;15974:123;;;16017:21;16028:6;16035:1;16028:9;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16028:9:0;16017:10;:21::i;:::-;16013:73;;;-1:-1:-1;16066:4:0;16059:11;;16013:73;15993:3;;;;;15974:123;;;-1:-1:-1;16114:5:0;15890:237;;;;;:::o;12317:21::-;;;-1:-1:-1;;;;;12317:21:0;;:::o;12431:38::-;;;:::o;17893:1081::-;17983:14;18010:12;18025:53;18051:7;18060;18069:8;18025:25;:53::i;:::-;18010:68;;18089:36;18128:33;18156:4;18128:27;:33::i;:::-;18211:26;;18089:72;;-1:-1:-1;18193:15:0;:44;18271:10;18256:25;;;18248:89;;;;-1:-1:-1;;;18248:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18417:10;18430:1;18417:14;18404:10;:27;18389:11;:42;;18381:99;;;;-1:-1:-1;;;18381:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18494:21;18517;18543:52;18590:4;18543:46;:52::i;:::-;18493:102;;;;;18607:14;18626:47;18655:7;18664:8;18626:28;:47::i;:::-;18606:67;;;18700:7;-1:-1:-1;;;;;18690:17:0;:6;-1:-1:-1;;;;;18690:17:0;;18686:281;;;18731:92;18748:16;:33;;;18783:16;18801:11;18814:8;18731:16;:92::i;:::-;18724:99;;;;;;;;;;18686:281;18863:92;18880:16;:33;;;18915:16;18933:11;18946:8;18863:16;:92::i;17893:1081::-;;;;;;:::o;15646:232::-;15691:4;;15708:140;15729:6;:13;15725:17;;15708:140;;;15768:21;15779:6;15786:1;15779:9;;;;;;;15768:21;15764:73;;;15817:4;15810:11;;;;;15764:73;15744:3;;15708:140;;;;15865:5;15858:12;;15646:232;;:::o;11789:170::-;11875:10;;-1:-1:-1;;;;;11875:10:0;11861;:24;11853:56;;;;;-1:-1:-1;;;11853:56:0;;;;;;;;;;;;-1:-1:-1;;;11853:56:0;;;;;;;;;;;;;;;11920:17;:31;;-1:-1:-1;;;;;;11920:31:0;-1:-1:-1;;;;;11920:31:0;;;;;;;;;;11789:170::o;15497:137::-;-1:-1:-1;;;;;15595:17:0;15552:4;15595:17;;;:11;:17;;;;;;15616:10;15577:15;:35;;;;15576:50;;15497:137::o;12803:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12803:57:0;;-1:-1:-1;12803:57:0;:::o;12347:77::-;;;:::o;14090:194::-;11448:5;;:26;;;-1:-1:-1;;;11448:26:0;;11463:10;11448:26;;;;;;14163:4;;-1:-1:-1;;;;;11448:5:0;;:14;;:26;;;;;;;;;;;;;;14163:4;11448:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11448:26:0;11440:75;;;;-1:-1:-1;;;11440:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14180:12:::1;14195:50;14221:7;14230:6;14238;14195:25;:50::i;:::-;14180:65;;14263:13;14271:4;14263:7;:13::i;:::-;14256:20:::0;14090:194;-1:-1:-1;;;;14090:194:0:o;14983:220::-;11448:5;;:26;;;-1:-1:-1;;;11448:26:0;;11463:10;11448:26;;;;;;15048:12;;-1:-1:-1;;;;;11448:5:0;;:14;;:26;;;;;;;;;;;;;;15048:12;11448:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11448:26:0;11440:75;;;;-1:-1:-1;;;11440:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15084:6:::1;15080:1;:10;15073:123;;;15116:18;15124:6;15131:1;15124:9;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;15124:9:0::1;15116:7;:18::i;:::-;15112:73;;;-1:-1:-1::0;15165:4:0::1;15112:73;15092:3;::::0;;::::1;::::0;15073:123:::1;;13075:188:::0;13140:11;13164:16;13195:10;13183:9;:22;;;;;;13164:41;;13243:11;13229:25;;:11;:25;;;;;;;13075:188;-1:-1:-1;;;13075:188:0:o;12521:38::-;;;:::o;15215:270::-;15264:21;15298:11;15329:6;15324:154;15345:6;:13;15341:17;;15324:154;;;15384:21;15395:6;15402:1;15395:9;;;;;;;15384:21;15380:87;;;15442:6;15449:1;15442:9;;;;;;;;;;;;;;;;;;15425:14;;15442:9;15430:8;;;-1:-1:-1;;;;;15442:9:0;;;;15425:4;;:14;;;;;;;;;;;:26;-1:-1:-1;;;;;15425:26:0;;;-1:-1:-1;;;;;15425:26:0;;;;;15380:87;15360:3;;15324:154;;;;15215:270;;:::o;11750:32::-;;;-1:-1:-1;;;;;11750:32:0;;:::o;12149:156::-;12229:10;;-1:-1:-1;;;;;12229:10:0;12215;:24;12207:53;;;;;-1:-1:-1;;;12207:53:0;;;;;;;;;;;;-1:-1:-1;;;12207:53:0;;;;;;;;;;;;;;;12271:5;:26;;-1:-1:-1;;;;;;12271:26:0;-1:-1:-1;;;;;12271:26:0;;;;;;;;;;12149:156::o;12707:90::-;12747:16;12783:6;12776:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12776:13:0;;;;;;;;;;;;;;;;;;;;;;;12707:90;:::o;16139:1100::-;-1:-1:-1;;;;;16292:22:0;;16188:4;16292:22;;;:16;:22;;;;;:29;16278:123;16327:11;16323:15;;:1;:15;16278:123;;;-1:-1:-1;;;;;16360:22:0;;;;;;:16;:22;;;;;:29;;;;;;;;;;16340:3;16278:123;;;;16468:22;16493:35;16512:15;16493:18;:35::i;:::-;-1:-1:-1;;;;;16573:22:0;;16539:31;16573:22;;;:16;:22;;;;;:40;;16468:60;;-1:-1:-1;16539:31:0;;16573:40;;;;;;;;;;;;;;;;;;;;;;;16754:21;;16573:40;;-1:-1:-1;16736:15:0;:39;16804:10;16790:24;;16786:413;;;16832:21;16855;16881:52;16928:4;16881:46;:52::i;:::-;-1:-1:-1;16972:15:0;16948:39;;;-1:-1:-1;;;;;17002:17:0;;16948:21;17002:17;;;:11;:17;;;;;:35;17052:28;;;;:47;;;;17114:28;;;;:47;;;;-1:-1:-1;17052:28:0;;-1:-1:-1;17176:11:0;;-1:-1:-1;;;17176:11:0;16786:413;-1:-1:-1;17226:5:0;;16139:1100;-1:-1:-1;;;;16139:1100:0:o;14759:212::-;14799:12;;14824:140;14845:6;:13;14841:17;;14824:140;;;14884:18;14892:6;14899:1;14892:9;;;;;;;14884:18;14880:73;;;14933:4;14923:14;;14880:73;14860:3;;14824:140;;;;14759:212;:::o;7244:478::-;7333:12;7359:14;7375;7393:26;7404:6;7412;7393:10;:26::i;:::-;7557:32;;;-1:-1:-1;;7557:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7547:43;;;;;;-1:-1:-1;;;;;;7460:251:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7450:262;;;;;;;;;7244:478;-1:-1:-1;;;;;7244:478:0:o;13387:430::-;13460:36;13509:22;13534:35;13553:15;13534:18;:35::i;:::-;13509:60;;13668:27;13723:11;13698:36;;13699:16;13718:1;13699:20;13698:36;;;;;;;;13668:66;;13764:16;:22;13781:4;-1:-1:-1;;;;;13764:22:0;-1:-1:-1;;;;;13764:22:0;;;;;;;;;;;;13787:21;13764:45;;;;;;;;;;;;;;;;;;;;13745:64;;13387:430;;;;;:::o;5013:1061::-;5099:21;5122;5145;5196:23;:21;:23::i;:::-;5179:40;;5265:4;-1:-1:-1;;;;;5249:42:0;;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5249:44:0;5323;;;-1:-1:-1;;;5323:44:0;;;;5249;;-1:-1:-1;;;;;;5323:42:0;;;;;:44;;;;;5249;;5323;;;;;;;;:42;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5323:44:0;5547:35;;;-1:-1:-1;;;5547:35:0;;;;5323:44;;-1:-1:-1;5482:16:0;;;;;;-1:-1:-1;;;;;5547:33:0;;;;;:35;;;;;;;;;;;;;;:33;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5547:35:0;;;;;;;;;;;;;-1:-1:-1;5547:35:0;;-1:-1:-1;5547:35:0;-1:-1:-1;5597:36:0;;;;;;;;5593:474;;5719:35;;;5865:62;;;5870:39;5890:8;5900;5870:19;:39::i;:::-;:42;-1:-1:-1;;;;;5865:48:0;:62;5845:82;;;;;5993:62;;;5998:39;6018:8;6028;5998:19;:39::i;:::-;:42;-1:-1:-1;;;;;5993:48:0;:62;5973:82;;;;;-1:-1:-1;5593:474:0;5013:1061;;;;;;;;:::o;6801:351::-;6876:14;6892;6937:6;-1:-1:-1;;;;;6927:16:0;:6;-1:-1:-1;;;;;6927:16:0;;;6919:67;;;;-1:-1:-1;;;6919:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7025:6;-1:-1:-1;;;;;7016:15:0;:6;-1:-1:-1;;;;;7016:15:0;;:53;;7054:6;7062;7016:53;;;7035:6;7043;7016:53;6997:72;;-1:-1:-1;6997:72:0;-1:-1:-1;;;;;;7088:20:0;;7080:64;;;;;-1:-1:-1;;;7080:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6801:351;;;;;:::o;17443:442::-;17601:14;17661:40;;:::i;:::-;17704:112;;;;;;;;17793:11;17769:20;17748:18;:41;17747:57;;;;;;-1:-1:-1;;;;;17704:112:0;;;17661:155;-1:-1:-1;17839:38:0;:26;17661:155;17856:8;17839:16;:26::i;:::-;:36;:38::i;:::-;17827:50;;;17443:442;-1:-1:-1;;;;;;17443:442:0:o;4882:123::-;4971:25;:15;:25;;4882:123::o;4131:246::-;4212:16;;:::i;:::-;4263:1;4249:11;-1:-1:-1;;;;;4249:15:0;;4241:51;;;;;-1:-1:-1;;;4241:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4310:59;;;;;;;;;;-1:-1:-1;;;;;4320:48:0;;-1:-1:-1;;;3335:3:0;4321:32;;;;4320:48;;;;;;-1:-1:-1;;;;;4310:59:0;;;;4303:66;;4131:246;;;;:::o;3870:253::-;3937:16;;:::i;:::-;3966:6;3991;;;:54;;-1:-1:-1;;4037:7:0;;-1:-1:-1;;;;;4032:13:0;4006:17;;;;4027:1;4006:17;4027:1;4001:27;;;;;:44;3991:54;3983:102;;;;-1:-1:-1;;;3983:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4103:12;;;;;;;;;;;;;3870:253;-1:-1:-1;;;3870:253:0:o;4676:130::-;4776:7;3335:3;4776:21;;4676:130::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://836f6efa204dc4e6b9567e1b0134b7909b1d83d712370d3290f3d523ff5ad15b
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.