Contract 0x79b6F29703080BeC4f811DA0A88083d415Bda846

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x2c0633e00b43ac58c006af8b1586e2e27e78c5cac4497ae031ac6cab798270d769042432021-04-26 14:57:2113 days 18 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00031361
0x1d03c723a636303e7dca15939139c224beba87eb509b337ae9c0637d0bbc39c868732902021-04-25 13:03:3314 days 19 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.000152915
0xb9d974ffdeae9b798cd752843ccc5d46a97d144fba90afee4d4d4c0553a7966668422962021-04-24 11:05:2515 days 21 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.000152915
0x427c1e66cd51e903cf1a80966940ac2cec3b0dc5fef975ceb943b2ef4aa76f4768422962021-04-24 11:05:2515 days 21 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.000152915
0xe997db718c1f3682024eddf3e33cc82a30eec2e6a4ba9d6c6c298bb09d6ca97e68415142021-04-24 10:26:1815 days 22 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.000152915
0x12fe2a49b63e73fcf9d8576a8b9d16b1d4cde0fa70d7ac1801b483e52c8fbd4168412342021-04-24 10:12:1815 days 22 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.000152915
0x7d96193bb445ab0fc647d9ac7724f67bd0e47a3adb6b216b0e7bad1cb45cc8c468404422021-04-24 9:32:4215 days 23 hrs ago0xde599cac633be9f6da148632d1c0d3b8dd292136 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.000152915
0x7819e96872eda246be8cfca9eba5742890d7e0a4b2d371472842dc7567865e3760029822021-03-26 0:20:0445 days 8 hrs ago0xd49c9065c26ece23e12ed4cd7f440ef55de51cb3 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00333836
0x786f7956d68a800296da7e3d231afea8a52e17ed09c2575fe50ca36fe5268ca059928512021-03-25 15:48:1645 days 17 hrs ago0xd49c9065c26ece23e12ed4cd7f440ef55de51cb3 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334504
0x050cb253326ce14ed3b95c6f16fbff63ea76b063643c7743703a57556d4e5a0e59913652021-03-25 14:33:5745 days 18 hrs ago0xd49c9065c26ece23e12ed4cd7f440ef55de51cb3 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334504
0x429cc425152220fb43e40754e4aa930c7298cccfee2a2c2a6daa624fc62c8b9559842392021-03-25 8:35:5446 days 23 mins ago0x6ba34a45be26a6dfd67bfcf966d61098e992d5f0 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x5a5998f5a1d75ddde501c140416d6ef5ff0f772743f76ce8d2f7853e265d221559793902021-03-25 4:30:1346 days 4 hrs ago0xe059d5f7d1e68f0191d1eb9174d95ce2605f04f1 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x2b13c78e165ed6d2de3aa56b1cc7288043eaab6229f4679ebcee09a1bad8c3d359788002021-03-25 4:00:0946 days 4 hrs ago0x005a945c426fe1f2eb3c4b04585a2427f7a032a8 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x6068578f8c0f1c1660da94132491076eb7ec8dbffed1b4ebefd63c0607737fed59787222021-03-25 3:55:5246 days 5 hrs ago0x0ab745e9055bb6c21456616734be26cc29bed637 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.0033453
0xf2bab18eb05b6f469fec4ecd3564a1e2d80d019ec75155babe4494d3c5944fbb59774642021-03-25 2:52:3746 days 6 hrs ago0xd49c9065c26ece23e12ed4cd7f440ef55de51cb3 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334504
0xc6316bcf96172aa87d49b3f179345ed2bc8d082b937d6cd3913f1efbf4dd89ba59766192021-03-25 2:09:3746 days 6 hrs ago0x1cd65bab9683dc74a0746b0922af49949c4fee65 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x0356faeb49981860b9c61f9b2567b2e151a6d76e74f1ee076e7cd679f5c3a1ce59761362021-03-25 1:44:5846 days 7 hrs ago0x6f198f157246a596acd5766814cc4d5a74234d19 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0xd1d236c334423e593462482462473599ed11a54b7c00df1873454dc06b4db26359756502021-03-25 1:20:4046 days 7 hrs ago0x0ab745e9055bb6c21456616734be26cc29bed637 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.0033453
0x7d1686d761fc87037e0c36953ae60fecf3ee5754b063cacb1cfabe3080ee364e59750362021-03-25 0:49:5846 days 8 hrs ago0x23270d3c66298d52266fd9e6692528dd0307d400 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x54583f07d41080be51f762ffdeae24f17ec6cb66aba2fcd454d20614b29bdcca59745222021-03-25 0:24:1046 days 8 hrs ago0x63c45aabd052e259ab33efcfacd41361d0ef69bf IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0xfb6e5948dfaffbf6d78194a730c55463f2a628362e24588002e094b3d87c1f9759740192021-03-24 23:58:5546 days 9 hrs ago0x63c45aabd052e259ab33efcfacd41361d0ef69bf IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0xdfe431a66ade9beeb198cd4a53ca041661797da758bccc9c6dab9935c0e15c4d59688962021-03-24 19:41:0946 days 13 hrs ago0xe059d5f7d1e68f0191d1eb9174d95ce2605f04f1 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0xd041dc6e0b8d937a1f1acedf02bbd8da329b0e3cb18e2a0e607544017cfdab8e59683272021-03-24 19:10:3746 days 13 hrs ago0xe059d5f7d1e68f0191d1eb9174d95ce2605f04f1 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x082bac3c8505cb19e0b639b21fa26ff0040ccdc9ac92ee23a0d1bcea13451faf59673922021-03-24 18:23:5246 days 14 hrs ago0x79ecea55f5f6422987d6c2573c8293cf973fa0e6 IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
0x23776e71ce03f16eb6c3ec58a3f4acf41e5faba55a247f0c8c3feea2d92e037859667512021-03-24 17:51:4946 days 15 hrs ago0x34c912c13de7953530dbe4c32f597d1baf77889b IN  Keep3rb Network: CheeseSwapOracle0 BNB0.00334556
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle Keep3rb Network: KP3RB Token0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-USDC0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-USDC0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-USDC0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-CHS0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-CHS0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-CHS0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: CHS-WBNB0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: CHS-WBNB0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: CHS-WBNB0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: BUTT-CHS0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: BUTT-CHS0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: BUTT-CHS0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle 0xb95538ecae1387bd8637daaba0f30c9f72c69cd00 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle 0xb95538ecae1387bd8637daaba0f30c9f72c69cd00 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle 0xb95538ecae1387bd8637daaba0f30c9f72c69cd00 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: WBNB-USDT0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: WBNB-USDT0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: WBNB-USDT0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-WBNB0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-WBNB0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-WBNB0 BNB
0xc6699b8e0e2b9478612027e1adc80242ce4f882a57f0dbedbe4869ebabdac56e54704262021-03-07 11:14:1563 days 21 hrs ago Keep3rb Network: CheeseSwapOracle Keep3rb Network: KP3RB Token0 BNB
0x16947c132cc59ba9396585df07fe601626598aafdfa45d9ee6c070a5d3d7612154699662021-03-07 10:51:1563 days 22 hrs ago Keep3rb Network: CheeseSwapOracle Keep3rb Network: KP3RB Token0 BNB
0x16947c132cc59ba9396585df07fe601626598aafdfa45d9ee6c070a5d3d7612154699662021-03-07 10:51:1563 days 22 hrs ago Keep3rb Network: CheeseSwapOracle CheeseSwap: KP3RB-USDC0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CheeseSwapOracle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2020-12-07
*/

// SPDX-License-Identifier: MIT


pragma solidity ^0.6.12;

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 CheeseSwapOracleLibrary {
    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 CheeseSwapOracle {
    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 = 14400;
    uint8 public immutable granularity = 8;
    uint public immutable periodSize = 1800;
    
    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, "CheeseSwapOracle::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, "CheeseSwapOracle: !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,) = CheeseSwapOracleLibrary.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,) = CheeseSwapOracleLibrary.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"}]

6101006040527fdd538e4fd1b69b7863e1f741213276a6cf1efb3b00000000000000000000000060805261384060a052600160fb1b60c05261070860e05234801561004957600080fd5b5060405161194e38038061194e8339818101604052602081101561006c57600080fd5b5051600080546001600160a01b03199081163317909155600280546001600160a01b039093169290911691909117905560805160601c60a05160c05160f81c60e05161183b610113600039806109e35280610ba25280610e1e5280610e7e52806110cd5250806108855280610e4a528061102a528061124d52508061091e52806109845280610a0752508061079c52806109485280610c0b5280610ce7525061183b6000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063ab033ea9116100c3578063dbaad32f1161007c578063dbaad32f146103b1578063e4463eb2146103ce578063e8bb6d42146103d6578063f39c38a01461042e578063fd0ca65a14610436578063ffb0a4a01461045c57610158565b8063ab033ea9146102c2578063b4a5ed38146102e8578063bfcc8e421461030e578063c45a015514610358578063c640752d14610360578063c9ff6f4d1461038e57610158565b80635aa6e675116101155780635aa6e6751461022d57806384c6d93514610251578063886d24a9146102745780638a14117a1461027c5780638c86f1e414610284578063983586d9146102ba57610158565b80630a6f93e61461015d5780631b56bbf914610195578063238efcbc146101cf578063322e9f04146101d957806352c28fab146101e1578063556f0dc71461020f575b600080fd5b6101836004803603602081101561017357600080fd5b50356001600160a01b0316610464565b60408051918252519081900360200190f35b6101bb600480360360208110156101ab57600080fd5b50356001600160a01b0316610476565b604080519115158252519081900360200190f35b6101d761053a565b005b6101d76105bd565b6101d7600480360360408110156101f757600080fd5b506001600160a01b0381358116916020013516610736565b610217610883565b6040805160ff9092168252519081900360200190f35b6102356108a7565b604080516001600160a01b039092168252519081900360200190f35b6101bb6004803603604081101561026757600080fd5b50803590602001356108b6565b61023561090d565b61018361091c565b6101836004803603606081101561029a57600080fd5b506001600160a01b03813581169160208101359160409091013516610940565b6101bb610ad3565b6101d7600480360360208110156102d857600080fd5b50356001600160a01b0316610b11565b6101bb600480360360208110156102fe57600080fd5b50356001600160a01b0316610b88565b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610bca565b60408051938452602084019290925282820152519081900360600190f35b610235610c09565b6101bb6004803603604081101561037657600080fd5b506001600160a01b0381358116916020013516610c2d565b6101bb600480360360408110156103a457600080fd5b5080359060200135610d20565b610217600480360360208110156103c757600080fd5b5035610e19565b610183610e7c565b6103de610ea0565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561041a578181015183820152602001610402565b505050509050019250505060405180910390f35b610235610f29565b6101d76004803603602081101561044c57600080fd5b50356001600160a01b0316610f38565b6103de610fac565b60056020526000908152604090205481565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b1580156104c257600080fd5b505af11580156104d6573d6000803e3d6000fd5b505050506040513d60208110156104ec57600080fd5b50516105295760405162461bcd60e51b81526004018080602001828103825260248152602001806117bf6024913960400191505060405180910390fd5b6105328261100e565b90505b919050565b6001546001600160a01b03163314610599576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600254604080516335d2155560e11b815233600482015290516001600160a01b0390921691636ba42aaa916024808201926020929091908290030181600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b50516106715760405162461bcd60e51b81526004018080602001828103825260248152602001806117bf6024913960400191505060405180910390fd5b600061067b611147565b9050806106cf576040805162461bcd60e51b815260206004820152601760248201527f436865657365537761704f7261636c653a2021776f726b000000000000000000604482015290519081900360640190fd5b50600254604080516317fbade560e21b815233600482015290516001600160a01b0390921691635feeb7949160248082019260009290919082900301818387803b15801561071c57600080fd5b505af1158015610730573d6000803e3d6000fd5b50505050565b6000546001600160a01b03163314610795576040805162461bcd60e51b815260206004820152601b60248201527f436865657365537761704f7261636c653a3a6164643a2021676f760000000000604482015290519081900360640190fd5b60006107c27f0000000000000000000000000000000000000000000000000000000000000000848461117b565b6001600160a01b03811660009081526004602052604090205490915060ff161561081b576040805162461bcd60e51b815260206004820152600560248201526435b737bbb760d91b604482015290519081900360640190fd5b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031681565b60005b81831015610903576108eb600384815481106108d157fe5b6000918252602090912001546001600160a01b0316610b88565b156108f857506001610907565b6001909201916108b9565b5060005b92915050565b6002546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061096e7f0000000000000000000000000000000000000000000000000000000000000000868561117b565b9050600061097b8261123b565b805490915042037f00000000000000000000000000000000000000000000000000000000000000008111156109e15760405162461bcd60e51b815260040180806020018281038252603381526020018061173a6033913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006002027f000000000000000000000000000000000000000000000000000000000000000003811015610a655760405162461bcd60e51b815260040180806020018281038252602c81526020018061176d602c913960400191505060405180910390fd5b600080610a71856112ca565b50915091506000610a828a89611499565b509050896001600160a01b0316816001600160a01b03161415610abc57610aaf856001015484868c611577565b9650505050505050610acc565b610aaf856002015483868c611577565b9392505050565b6000805b600354811015610b0857610af1600382815481106108d157fe5b15610b00576001915050610b0e565b600101610ad7565b50600090505b90565b6000546001600160a01b03163314610b66576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03166000908152600560205260409020547f000000000000000000000000000000000000000000000000000000000000000042919091031190565b60066020528160005260406000208181548110610be357fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b7f000000000000000000000000000000000000000000000000000000000000000081565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610c7957600080fd5b505af1158015610c8d573d6000803e3d6000fd5b505050506040513d6020811015610ca357600080fd5b5051610ce05760405162461bcd60e51b81526004018080602001828103825260248152602001806117bf6024913960400191505060405180910390fd5b6000610d0d7f0000000000000000000000000000000000000000000000000000000000000000858561117b565b9050610d188161100e565b949350505050565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b505050506040513d6020811015610d9657600080fd5b5051610dd35760405162461bcd60e51b81526004018080602001828103825260248152602001806117bf6024913960400191505060405180910390fd5b8183101561090757610e0560038481548110610deb57fe5b6000918252602090912001546001600160a01b031661100e565b15610e0e575060015b600190920191610dd3565b6000807f00000000000000000000000000000000000000000000000000000000000000008381610e4557fe5b0490507f000000000000000000000000000000000000000000000000000000000000000060ff168181610e7457fe5b069392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606000805b600354811015610f2457610ec0600382815481106108d157fe5b15610f1c5760038181548110610ed257fe5b600091825260209091200154835160018401936001600160a01b039092169185918110610efb57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101610ea6565b505090565b6001546001600160a01b031681565b6000546001600160a01b03163314610f8a576040805162461bcd60e51b815260206004820152601060248201526f39b2ba25b2b2b819b9311d1010b3b7bb60811b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380548060200260200160405190810160405280929190818152602001828054801561100457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fe6575b5050505050905090565b6001600160a01b0381166000908152600660205260408120545b7f000000000000000000000000000000000000000000000000000000000000000060ff1681101561107c576001600160a01b0383166000908152600660205260408120805460019081018255915201611028565b50600061108842610e19565b6001600160a01b03841660009081526006602052604081208054929350909160ff84169081106110b457fe5b60009182526020909120600390910201805490915042037f000000000000000000000000000000000000000000000000000000000000000081111561113c576000806110ff876112ca565b50428087556001600160a01b038a166000908152600560205260409020556001808701929092556002909501949094555091935061053592505050565b506000949350505050565b6000805b6003548110156111775761116560038281548110610deb57fe5b1561116f57600191505b60010161114b565b5090565b600080600061118a8585611499565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527ff52c5189a89e7ca2ef4f19f2798e3900fba7a316de7cef6c5a9446621ba86286609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60008061124742610e19565b905060007f000000000000000000000000000000000000000000000000000000000000000060ff168260010160ff168161127d57fe5b06905060066000856001600160a01b03166001600160a01b031681526020019081526020016000208160ff16815481106112b357fe5b906000526020600020906003020192505050919050565b60008060006112d76115d5565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561131257600080fd5b505afa158015611326573d6000803e3d6000fd5b505050506040513d602081101561133c57600080fd5b505160408051635a3d549360e01b815290519194506001600160a01b03861691635a3d549391600480820192602092909190829003018186803b15801561138257600080fd5b505afa158015611396573d6000803e3d6000fd5b505050506040513d60208110156113ac57600080fd5b505160408051630240bc6b60e21b81529051919350600091829182916001600160a01b03891691630902f1ac916004808301926060929190829003018186803b1580156113f857600080fd5b505afa15801561140c573d6000803e3d6000fd5b505050506040513d606081101561142257600080fd5b5080516020820151604090920151909450909250905063ffffffff8082169085161461148f5780840363ffffffff811661145c84866115df565b516001600160e01b031602969096019563ffffffff811661147d85856115df565b516001600160e01b0316029590950194505b5050509193909250565b600080826001600160a01b0316846001600160a01b031614156114ed5760405162461bcd60e51b81526004018080602001828103825260268152602001806117996026913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061150d578284611510565b83835b90925090506001600160a01b038216611570576040805162461bcd60e51b815260206004820152601f60248201527f436865657365537761704c6962726172793a205a45524f5f4144445245535300604482015290519081900360640190fd5b9250929050565b6000611581611714565b6040518060200160405280858888038161159757fe5b046001600160e01b0316905290506115b76115b2828561168f565b61170d565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b63ffffffff421690565b6115e7611714565b6000826001600160701b031611611645576040805162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161167a57fe5b046001600160e01b0316815250905092915050565b611697611726565b60008215806116bd57505082516001600160e01b0316828102908382816116ba57fe5b04145b6116f85760405162461bcd60e51b81526004018080602001828103825260238152602001806117e36023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b60408051602081019091526000815290565b604051806020016040528060008152509056fe536c6964696e6757696e646f774f7261636c653a204d495353494e475f484953544f524943414c5f4f42534552564154494f4e536c6964696e6757696e646f774f7261636c653a20554e45585045435445445f54494d455f454c4150534544436865657365537761704c6962726172793a204944454e544943414c5f4144445245535345533a3a69734b65657065723a206b6565706572206973206e6f7420726567697374657265644669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a2646970667358221220642ca876423cd6dae9356b7e81a744dbe6abf3be21fcd13b33f08ba7934ec59064736f6c634300060c00330000000000000000000000005ea29eee799aa7cc379fde5cf370bc24f2ea7c81

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

11192:7795:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12657:43;;;;;;;;;;;;;;;;-1:-1:-1;12657:43:0;-1:-1:-1;;;;;12657:43:0;;:::i;:::-;;;;;;;;;;;;;;;;13835:104;;;;;;;;;;;;;;;;-1:-1:-1;13835:104:0;-1:-1:-1;;;;;13835:104:0;;:::i;:::-;;;;;;;;;;;;;;;;;;11970:170;;;:::i;:::-;;14627:128;;;:::i;14302:313::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14302:313:0;;;;;;;;;;:::i;12481:38::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11721:25;;;:::i;:::-;;;;-1:-1:-1;;;;;11721:25:0;;;;;;;;;;;;;;15898:237;;;;;;;;;;;;;;;;-1:-1:-1;15898:237:0;;;;;;;:::i;12320:21::-;;;:::i;12434:40::-;;;:::i;17902:1082::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17902:1082:0;;;;;;;;;;;;;;;;;:::i;15654:232::-;;;:::i;11792:170::-;;;;;;;;;;;;;;;;-1:-1:-1;11792:170:0;-1:-1:-1;;;;;11792:170:0;;:::i;15505:137::-;;;;;;;;;;;;;;;;-1:-1:-1;15505:137:0;-1:-1:-1;;;;;15505:137:0;;:::i;12809:57::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;12809:57:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;12350:77;;;:::i;14096:194::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14096:194:0;;;;;;;;;;:::i;14991:220::-;;;;;;;;;;;;;;;;-1:-1:-1;14991:220:0;;;;;;;:::i;13081:188::-;;;;;;;;;;;;;;;;-1:-1:-1;13081:188:0;;:::i;12526:39::-;;;:::i;15223:270::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11753:32;;;:::i;12152:156::-;;;;;;;;;;;;;;;;-1:-1:-1;12152:156:0;-1:-1:-1;;;;;12152:156:0;;:::i;12713:90::-;;;:::i;12657:43::-;;;;;;;;;;;;;:::o;13835:104::-;11451:5;;:26;;;-1:-1:-1;;;11451:26:0;;11466:10;11451:26;;;;;;13894:4;;-1:-1:-1;;;;;11451:5:0;;:14;;:26;;;;;;;;;;;;;;13894:4;11451:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11451:26:0;11443:75;;;;-1:-1:-1;;;11443:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13918:13:::1;13926:4;13918:7;:13::i;:::-;13911:20;;11529:1;13835:104:::0;;;:::o;11970:170::-;12040:17;;-1:-1:-1;;;;;12040:17:0;12026:10;:31;12018:73;;;;;-1:-1:-1;;;12018:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12115:17;;;12102:30;;-1:-1:-1;;;;;;12102:30:0;-1:-1:-1;;;;;12115:17:0;;;12102:30;;;;;;11970:170::o;14627:128::-;11587:5;;:26;;;-1:-1:-1;;;11587:26:0;;11602:10;11587:26;;;;;;-1:-1:-1;;;;;11587:5:0;;;;:14;;:26;;;;;;;;;;;;;;;:5;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11587:26:0;11579:75;;;;-1:-1:-1;;;11579:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14668:11:::1;14682:12;:10;:12::i;:::-;14668:26;;14713:6;14705:42;;;::::0;;-1:-1:-1;;;14705:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;11677:5:0;;:24;;;-1:-1:-1;;;11677:24:0;;11690:10;11677:24;;;;;;-1:-1:-1;;;;;11677:5:0;;;;:12;;:24;;;;;:5;;:24;;;;;;;;:5;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14627:128::o;14302:313::-;14389:10;;-1:-1:-1;;;;;14389:10:0;14375;:24;14367:64;;;;;-1:-1:-1;;;14367:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14442:12;14457:50;14483:7;14492:6;14500;14457:25;:50::i;:::-;-1:-1:-1;;;;;14527:12:0;;;;;;:6;:12;;;;;;14442:65;;-1:-1:-1;14527:12:0;;14526:13;14518:31;;;;;-1:-1:-1;;;14518:31:0;;;;;;;;;;;;-1:-1:-1;;;14518:31:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;14560:12:0;;;;;:6;:12;;;;;:19;;-1:-1:-1;;14560:19:0;14575:4;14560:19;;;;;;14590:6;:17;;;;;;;;;;;;;;-1:-1:-1;;;;;;14590:17:0;;;;;;-1:-1:-1;;14302:313:0:o;12481:38::-;;;:::o;11721:25::-;;;-1:-1:-1;;;;;11721:25:0;;:::o;15898:237::-;15965:4;15982:123;15993:6;15989:1;:10;15982:123;;;16025:21;16036:6;16043:1;16036:9;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16036:9:0;16025:10;:21::i;:::-;16021:73;;;-1:-1:-1;16074:4:0;16067:11;;16021:73;16001:3;;;;;15982:123;;;-1:-1:-1;16122:5:0;15898:237;;;;;:::o;12320:21::-;;;-1:-1:-1;;;;;12320:21:0;;:::o;12434:40::-;;;:::o;17902:1082::-;17992:14;18019:12;18034:53;18060:7;18069;18078:8;18034:25;:53::i;:::-;18019:68;;18098:36;18137:33;18165:4;18137:27;:33::i;:::-;18220:26;;18098:72;;-1:-1:-1;18202:15:0;:44;18280:10;18265:25;;;18257:89;;;;-1:-1:-1;;;18257:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18426:10;18439:1;18426:14;18413:10;:27;18398:11;:42;;18390:99;;;;-1:-1:-1;;;18390:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18503:21;18526;18552:53;18600:4;18552:47;:53::i;:::-;18502:103;;;;;18617:14;18636:47;18665:7;18674:8;18636:28;:47::i;:::-;18616:67;;;18710:7;-1:-1:-1;;;;;18700:17:0;:6;-1:-1:-1;;;;;18700:17:0;;18696:281;;;18741:92;18758:16;:33;;;18793:16;18811:11;18824:8;18741:16;:92::i;:::-;18734:99;;;;;;;;;;18696:281;18873:92;18890:16;:33;;;18925:16;18943:11;18956:8;18873:16;:92::i;17902:1082::-;;;;;;:::o;15654:232::-;15699:4;;15716:140;15737:6;:13;15733:17;;15716:140;;;15776:21;15787:6;15794:1;15787:9;;;;;;;15776:21;15772:73;;;15825:4;15818:11;;;;;15772:73;15752:3;;15716:140;;;;15873:5;15866:12;;15654:232;;:::o;11792:170::-;11878:10;;-1:-1:-1;;;;;11878:10:0;11864;:24;11856:56;;;;;-1:-1:-1;;;11856:56:0;;;;;;;;;;;;-1:-1:-1;;;11856:56:0;;;;;;;;;;;;;;;11923:17;:31;;-1:-1:-1;;;;;;11923:31:0;-1:-1:-1;;;;;11923:31:0;;;;;;;;;;11792:170::o;15505:137::-;-1:-1:-1;;;;;15603:17:0;15560:4;15603:17;;;:11;:17;;;;;;15624:10;15585:15;:35;;;;15584:50;;15505:137::o;12809:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12809:57:0;;-1:-1:-1;12809:57:0;:::o;12350:77::-;;;:::o;14096:194::-;11451:5;;:26;;;-1:-1:-1;;;11451:26:0;;11466:10;11451:26;;;;;;14169:4;;-1:-1:-1;;;;;11451:5:0;;:14;;:26;;;;;;;;;;;;;;14169:4;11451:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11451:26:0;11443:75;;;;-1:-1:-1;;;11443:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14186:12:::1;14201:50;14227:7;14236:6;14244;14201:25;:50::i;:::-;14186:65;;14269:13;14277:4;14269:7;:13::i;:::-;14262:20:::0;14096:194;-1:-1:-1;;;;14096:194:0:o;14991:220::-;11451:5;;:26;;;-1:-1:-1;;;11451:26:0;;11466:10;11451:26;;;;;;15056:12;;-1:-1:-1;;;;;11451:5:0;;:14;;:26;;;;;;;;;;;;;;15056:12;11451:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11451:26:0;11443:75;;;;-1:-1:-1;;;11443:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15092:6:::1;15088:1;:10;15081:123;;;15124:18;15132:6;15139:1;15132:9;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;15132:9:0::1;15124:7;:18::i;:::-;15120:73;;;-1:-1:-1::0;15173:4:0::1;15120:73;15100:3;::::0;;::::1;::::0;15081:123:::1;;13081:188:::0;13146:11;13170:16;13201:10;13189:9;:22;;;;;;13170:41;;13249:11;13235:25;;:11;:25;;;;;;;13081:188;-1:-1:-1;;;13081:188:0:o;12526:39::-;;;:::o;15223:270::-;15272:21;15306:11;15337:6;15332:154;15353:6;:13;15349:17;;15332:154;;;15392:21;15403:6;15410:1;15403:9;;;;;;;15392:21;15388:87;;;15450:6;15457:1;15450:9;;;;;;;;;;;;;;;;;;15433:14;;15450:9;15438:8;;;-1:-1:-1;;;;;15450:9:0;;;;15433:4;;:14;;;;;;;;;;;:26;-1:-1:-1;;;;;15433:26:0;;;-1:-1:-1;;;;;15433:26:0;;;;;15388:87;15368:3;;15332:154;;;;15223:270;;:::o;11753:32::-;;;-1:-1:-1;;;;;11753:32:0;;:::o;12152:156::-;12232:10;;-1:-1:-1;;;;;12232:10:0;12218;:24;12210:53;;;;;-1:-1:-1;;;12210:53:0;;;;;;;;;;;;-1:-1:-1;;;12210:53:0;;;;;;;;;;;;;;;12274:5;:26;;-1:-1:-1;;;;;;12274:26:0;-1:-1:-1;;;;;12274:26:0;;;;;;;;;;12152:156::o;12713:90::-;12753:16;12789:6;12782:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12782:13:0;;;;;;;;;;;;;;;;;;;;;;;12713:90;:::o;16147:1101::-;-1:-1:-1;;;;;16300:22:0;;16196:4;16300:22;;;:16;:22;;;;;:29;16286:123;16335:11;16331:15;;:1;:15;16286:123;;;-1:-1:-1;;;;;16368:22:0;;;;;;:16;:22;;;;;:29;;;;;;;;;;16348:3;16286:123;;;;16476:22;16501:35;16520:15;16501:18;:35::i;:::-;-1:-1:-1;;;;;16581:22:0;;16547:31;16581:22;;;:16;:22;;;;;:40;;16476:60;;-1:-1:-1;16547:31:0;;16581:40;;;;;;;;;;;;;;;;;;;;;;;16762:21;;16581:40;;-1:-1:-1;16744:15:0;:39;16812:10;16798:24;;16794:414;;;16840:21;16863;16889:53;16937:4;16889:47;:53::i;:::-;-1:-1:-1;16981:15:0;16957:39;;;-1:-1:-1;;;;;17011:17:0;;16957:21;17011:17;;;:11;:17;;;;;:35;17061:28;;;;:47;;;;17123:28;;;;:47;;;;-1:-1:-1;17061:28:0;;-1:-1:-1;17185:11:0;;-1:-1:-1;;;17185:11:0;16794:414;-1:-1:-1;17235:5:0;;16147:1101;-1:-1:-1;;;;16147:1101:0:o;14767:212::-;14807:12;;14832:140;14853:6;:13;14849:17;;14832:140;;;14892:18;14900:6;14907:1;14900:9;;;;;;;14892:18;14888:73;;;14941:4;14931:14;;14888:73;14868:3;;14832:140;;;;14767:212;:::o;7246:478::-;7335:12;7361:14;7377;7395:26;7406:6;7414;7395:10;:26::i;:::-;7559:32;;;-1:-1:-1;;7559:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7549:43;;;;;;-1:-1:-1;;;;;;7462:251:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7452:262;;;;;;;;;7246:478;-1:-1:-1;;;;;7246:478:0:o;13393:430::-;13466:36;13515:22;13540:35;13559:15;13540:18;:35::i;:::-;13515:60;;13674:27;13729:11;13704:36;;13705:16;13724:1;13705:20;13704:36;;;;;;;;13674:66;;13770:16;:22;13787:4;-1:-1:-1;;;;;13770:22:0;-1:-1:-1;;;;;13770:22:0;;;;;;;;;;;;13793:21;13770:45;;;;;;;;;;;;;;;;;;;;13751:64;;13393:430;;;;;:::o;5015:1061::-;5101:21;5124;5147;5198:23;:21;:23::i;:::-;5181:40;;5267:4;-1:-1:-1;;;;;5251:42:0;;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5251:44:0;5325;;;-1:-1:-1;;;5325:44:0;;;;5251;;-1:-1:-1;;;;;;5325:42:0;;;;;:44;;;;;5251;;5325;;;;;;;;:42;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5325:44:0;5549:35;;;-1:-1:-1;;;5549:35:0;;;;5325:44;;-1:-1:-1;5484:16:0;;;;;;-1:-1:-1;;;;;5549:33:0;;;;;:35;;;;;;;;;;;;;;:33;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5549:35:0;;;;;;;;;;;;;-1:-1:-1;5549:35:0;;-1:-1:-1;5549:35:0;-1:-1:-1;5599:36:0;;;;;;;;5595:474;;5721:35;;;5867:62;;;5872:39;5892:8;5902;5872:19;:39::i;:::-;:42;-1:-1:-1;;;;;5867:48:0;:62;5847:82;;;;;5995:62;;;6000:39;6020:8;6030;6000:19;:39::i;:::-;:42;-1:-1:-1;;;;;5995:48:0;:62;5975:82;;;;;-1:-1:-1;5595:474:0;5015:1061;;;;;;;;:::o;6803:351::-;6878:14;6894;6939:6;-1:-1:-1;;;;;6929:16:0;:6;-1:-1:-1;;;;;6929:16:0;;;6921:67;;;;-1:-1:-1;;;6921:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7027:6;-1:-1:-1;;;;;7018:15:0;:6;-1:-1:-1;;;;;7018:15:0;;:53;;7056:6;7064;7018:53;;;7037:6;7045;7018:53;6999:72;;-1:-1:-1;6999:72:0;-1:-1:-1;;;;;;7090:20:0;;7082:64;;;;;-1:-1:-1;;;7082:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6803:351;;;;;:::o;17452:442::-;17610:14;17670:40;;:::i;:::-;17713:112;;;;;;;;17802:11;17778:20;17757:18;:41;17756:57;;;;;;-1:-1:-1;;;;;17713:112:0;;;17670:155;-1:-1:-1;17848:38:0;:26;17670:155;17865:8;17848:16;:26::i;:::-;:36;:38::i;:::-;17836:50;;;17452:442;-1:-1:-1;;;;;;17452:442:0:o;4884:123::-;4973:25;:15;:25;;4884:123::o;4132:246::-;4213:16;;:::i;:::-;4264:1;4250:11;-1:-1:-1;;;;;4250:15:0;;4242:51;;;;;-1:-1:-1;;;4242:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4311:59;;;;;;;;;;-1:-1:-1;;;;;4321:48:0;;-1:-1:-1;;;3336:3:0;4322:32;;;;4321:48;;;;;;-1:-1:-1;;;;;4311:59:0;;;;4304:66;;4132:246;;;;:::o;3871:253::-;3938:16;;:::i;:::-;3967:6;3992;;;:54;;-1:-1:-1;;4038:7:0;;-1:-1:-1;;;;;4033:13:0;4007:17;;;;4028:1;4007:17;4028:1;4002:27;;;;;:44;3992:54;3984:102;;;;-1:-1:-1;;;3984:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4104:12;;;;;;;;;;;;;3871:253;-1:-1:-1;;;3871:253:0:o;4677:130::-;4777:7;3336:3;4777:21;;4677:130::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://642ca876423cd6dae9356b7e81a744dbe6abf3be21fcd13b33f08ba7934ec590
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.