Contract 0x78146Be4a46015fB7cfd1f4C1Bfd39Cc134e3DC8

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0xce9143e39ea641bbd9181f422af9420bc38aa649fabae399785eeca30f82be6051552402021-02-24 10:39:367 hrs 18 mins ago0x616a5652951cbe6b62913936ab829ec4f5b011b6 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xed3dd4a78a9355dd8873646193e5e0875db696d852625d25c5a21db3943f9aa051541432021-02-24 9:44:058 hrs 13 mins ago0x51ed2b53d6f6cedb7a81e1e8b0beee9e199a7d25 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x658059eea086d2d59aca66239a3cf2a78bad77c17a2b194272507d9e9aa59f8d51527352021-02-24 8:33:189 hrs 24 mins ago0xf1d05a9206db50225bbab73ea652a284403eb00a IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xaee9064e5fcd207f33cd2b88afbde5f84f8b91626dd8e7472354a0e5a34ba52e51524332021-02-24 8:18:129 hrs 39 mins ago0x79ecea55f5f6422987d6c2573c8293cf973fa0e6 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x9bd0b03c987804fddf9b88116e956e667ba7129ed35c63da910e56ec666ba3cc51499182021-02-24 6:12:1911 hrs 45 mins ago0xc761029dd27c42a100333e58d01b2a749cc1a36c IN  Keep3rb Network: Pancake Oracle0 BNB0.00196269
0x9b1a8f23e080eb9b8c2e8839c9044b1ec1f20302d08ac2e803cf14de8826ea6851362282021-02-23 18:47:2023 hrs 10 mins ago0x34c912c13de7953530dbe4c32f597d1baf77889b IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x777b8b77d8ce5c5bdb38fb812acbe90fa3c8d61b38720fb7893b51c847e12e8551333092021-02-23 16:20:551 day 1 hr ago0x5b65d9b1b1e0f8f438536a5a589d2c76759b8481 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xa7ae24086ba9a3260093944c2bf3ddcdabf46e9e390b58a1538726657abd80e551286752021-02-23 12:27:521 day 5 hrs ago0xf1d05a9206db50225bbab73ea652a284403eb00a IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x3d114790d1888e6e3cdd5ec4ccb642a466ca167b51b7fa86afc7ea3d5af142f351258542021-02-23 10:04:271 day 7 hrs ago0x79ecea55f5f6422987d6c2573c8293cf973fa0e6 IN  Keep3rb Network: Pancake Oracle0 BNB0.00058522
0x6eee6b8707a20b566f7e6bf4dd9562a63216a8719b2b0cdb25a4ef4f76e85b4c51239352021-02-23 8:24:481 day 9 hrs ago0x79ecea55f5f6422987d6c2573c8293cf973fa0e6 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x9a69f2edb07940956c8731afea5e2b4205e63e4e0635ffad30474eaa73f7bfce51085552021-02-22 19:28:291 day 22 hrs ago0xc761029dd27c42a100333e58d01b2a749cc1a36c IN  Keep3rb Network: Pancake Oracle0 BNB0.00196269
0x990075a7e44bc22abd4268bf485bc2443de143ecd9f4a16d574acb577d2d13c751076802021-02-22 18:44:341 day 23 hrs ago0x34c912c13de7953530dbe4c32f597d1baf77889b IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x543d4de8a97fc862b14bd1d11b86e04b65d587dbad63c6c8561c8ba61328a24d51070892021-02-22 18:15:001 day 23 hrs ago0x8dc82ddbf1efb4befcb577b1c0a6efb812a0c562 IN  Keep3rb Network: Pancake Oracle0 BNB0.00166768
0xc407ae2bc82cfe401ee029532191844e6b79c578472533b30edf143099d57fc851070762021-02-22 18:14:211 day 23 hrs ago0x8dc82ddbf1efb4befcb577b1c0a6efb812a0c562 IN  Keep3rb Network: Pancake Oracle0 BNB0.00063019
0xb0bb04d710f806d4022bb6f5ba5b8217bcce12eb71a69223dc18f637f73ecd7a50966792021-02-22 9:29:242 days 8 hrs ago0x52e02971df7e5fd74ef1a6c2e3cc38e127433d90 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196269
0x08228afc8e0c71e46e17c9a3394201e2bffd5852f6f95f285f5ae2fba027e2dc50956092021-02-22 8:35:232 days 9 hrs ago0x79ecea55f5f6422987d6c2573c8293cf973fa0e6 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x49c8202536bf8ef3cb8713b1ba381ddb3a6cda8f2366ba1593e0a6090126792450950162021-02-22 8:05:042 days 9 hrs ago0x79ecea55f5f6422987d6c2573c8293cf973fa0e6 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x1ed29a16748f687ddef600918918de3a1068391cee9b24a6de2efad59b9c45d350901822021-02-22 4:01:262 days 13 hrs ago0x5b65d9b1b1e0f8f438536a5a589d2c76759b8481 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x3898375c3dde9f7934bc27ae8a10be30d8577097f830458ceb92c2edf2da349c50879992021-02-22 2:11:272 days 15 hrs ago0xcc6162f76e9f8026f2eddf2ec30c032514abd048 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xe5dc6ab3ed955d49a54bc55315533bcd4f88e3c2b5b7543e7997db26019a7ba450797992021-02-21 19:18:412 days 22 hrs ago0x3be6b547c850815611efb613d42a85aae1b8df76 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x0a10cedd78d689d4960caae7b81333418aade1462716e8f9e9b7f804bd125ba750791142021-02-21 18:44:032 days 23 hrs ago0x34c912c13de7953530dbe4c32f597d1baf77889b IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x702e1197508e741c22bb28d8155dd12e39ddd770ef2a023567b02b5f319c402750768462021-02-21 16:48:003 days 1 hr ago0xc761029dd27c42a100333e58d01b2a749cc1a36c IN  Keep3rb Network: Pancake Oracle0 BNB0.00192069
0xddf512c203a4781366a88afab15f7aae2f7c0bcbf4a80821d407391dd5fca87c50763572021-02-21 16:18:233 days 1 hr ago0x0d89a815935346102c33aba7f2c85942576c827c IN  Keep3rb Network: Pancake Oracle0 BNB0.00137189
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0x1088959fce0ae405a10fff9b5d7eda97fd511587c77337fddea5e114cd5d543751572462021-02-24 12:21:075 hrs 36 mins ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0xe2359ad3f3a8b35140fce885ab18020aa4cfd3b30ab4b73420248cea6f272f7951559882021-02-24 11:18:106 hrs 39 mins ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0xce9143e39ea641bbd9181f422af9420bc38aa649fabae399785eeca30f82be6051552402021-02-24 10:39:367 hrs 18 mins ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0xce9143e39ea641bbd9181f422af9420bc38aa649fabae399785eeca30f82be6051552402021-02-24 10:39:367 hrs 18 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xce9143e39ea641bbd9181f422af9420bc38aa649fabae399785eeca30f82be6051552402021-02-24 10:39:367 hrs 18 mins ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PancakeOracle

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-18
*/

// SPDX-License-Identifier: MIT


pragma solidity ^0.6.12;

interface IPancakeFactory {
    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 IPancakePair {
    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 PancakeOracleLibrary {
    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 = IPancakePair(pair).price0CumulativeLast();
        price1Cumulative = IPancakePair(pair).price1CumulativeLast();

        // if time has elapsed since the last update on the pair, mock the accumulated price values
        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IPancakePair(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 PancakeLibrary {
    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, 'PancakeLibrary: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'PancakeLibrary: 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'd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66' // init code hash pancake
            ))));
    }

    // 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,) = IPancakePair(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, 'PancakeLibrary: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'PancakeLibrary: 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, 'PancakeLibrary: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'PancakeLibrary: 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, 'PancakeLibrary: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'PancakeLibrary: 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, 'PancakeLibrary: 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, 'PancakeLibrary: 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 PancakeOracle {
    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 = 0xBCfCcbde45cE874adCB698cC183deBcF17952812;
    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 = PancakeLibrary.pairFor(factory, tokenA, tokenB);
        return _update(pair);
    }
    
    function add(address tokenA, address tokenB) external {
        require(msg.sender == governance, "PancakeOracle::add: !gov");
        address pair = PancakeLibrary.pairFor(factory, tokenA, tokenB);
        require(!_known[pair], "known");
        _known[pair] = true;
        _pairs.push(pair);
    }
    
    function work() public upkeep {
        bool worked = _updateAll();
        require(worked, "PancakeOracle: !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,) = PancakeOracleLibrary.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 = PancakeLibrary.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,) = PancakeOracleLibrary.currentCumulativePrices(pair);
        (address token0,) = PancakeLibrary.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"}]

6101006040527fbcfccbde45ce874adcb698cc183debcf1795281200000000000000000000000060805261384060a052600160fb1b60c05261070860e05234801561004957600080fd5b506040516119423803806119428339818101604052602081101561006c57600080fd5b5051600080546001600160a01b03199081163317909155600280546001600160a01b039093169290911691909117905560805160601c60a05160c05160f81c60e05161182f610113600039806109da5280610b995280610e155280610e7552806110c452508061087c5280610e4152806110215280611244525080610915528061097b52806109fe525080610793528061093f5280610c025280610cde525061182f6000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063ab033ea9116100c3578063dbaad32f1161007c578063dbaad32f146103b1578063e4463eb2146103ce578063e8bb6d42146103d6578063f39c38a01461042e578063fd0ca65a14610436578063ffb0a4a01461045c57610158565b8063ab033ea9146102c2578063b4a5ed38146102e8578063bfcc8e421461030e578063c45a015514610358578063c640752d14610360578063c9ff6f4d1461038e57610158565b80635aa6e675116101155780635aa6e6751461022d57806384c6d93514610251578063886d24a9146102745780638a14117a1461027c5780638c86f1e414610284578063983586d9146102ba57610158565b80630a6f93e61461015d5780631b56bbf914610195578063238efcbc146101cf578063322e9f04146101d957806352c28fab146101e1578063556f0dc71461020f575b600080fd5b6101836004803603602081101561017357600080fd5b50356001600160a01b0316610464565b60408051918252519081900360200190f35b6101bb600480360360208110156101ab57600080fd5b50356001600160a01b0316610476565b604080519115158252519081900360200190f35b6101d761053a565b005b6101d76105bd565b6101d7600480360360408110156101f757600080fd5b506001600160a01b038135811691602001351661072d565b61021761087a565b6040805160ff9092168252519081900360200190f35b61023561089e565b604080516001600160a01b039092168252519081900360200190f35b6101bb6004803603604081101561026757600080fd5b50803590602001356108ad565b610235610904565b610183610913565b6101836004803603606081101561029a57600080fd5b506001600160a01b03813581169160208101359160409091013516610937565b6101bb610aca565b6101d7600480360360208110156102d857600080fd5b50356001600160a01b0316610b08565b6101bb600480360360208110156102fe57600080fd5b50356001600160a01b0316610b7f565b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610bc1565b60408051938452602084019290925282820152519081900360600190f35b610235610c00565b6101bb6004803603604081101561037657600080fd5b506001600160a01b0381358116916020013516610c24565b6101bb600480360360408110156103a457600080fd5b5080359060200135610d17565b610217600480360360208110156103c757600080fd5b5035610e10565b610183610e73565b6103de610e97565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561041a578181015183820152602001610402565b505050509050019250505060405180910390f35b610235610f20565b6101d76004803603602081101561044c57600080fd5b50356001600160a01b0316610f2f565b6103de610fa3565b60056020526000908152604090205481565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b1580156104c257600080fd5b505af11580156104d6573d6000803e3d6000fd5b505050506040513d60208110156104ec57600080fd5b50516105295760405162461bcd60e51b81526004018080602001828103825260248152602001806117b36024913960400191505060405180910390fd5b61053282611005565b90505b919050565b6001546001600160a01b03163314610599576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600254604080516335d2155560e11b815233600482015290516001600160a01b0390921691636ba42aaa916024808201926020929091908290030181600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b50516106715760405162461bcd60e51b81526004018080602001828103825260248152602001806117b36024913960400191505060405180910390fd5b600061067b61113e565b9050806106c6576040805162461bcd60e51b815260206004820152601460248201527350616e63616b654f7261636c653a2021776f726b60601b604482015290519081900360640190fd5b50600254604080516317fbade560e21b815233600482015290516001600160a01b0390921691635feeb7949160248082019260009290919082900301818387803b15801561071357600080fd5b505af1158015610727573d6000803e3d6000fd5b50505050565b6000546001600160a01b0316331461078c576040805162461bcd60e51b815260206004820152601860248201527f50616e63616b654f7261636c653a3a6164643a2021676f760000000000000000604482015290519081900360640190fd5b60006107b97f00000000000000000000000000000000000000000000000000000000000000008484611172565b6001600160a01b03811660009081526004602052604090205490915060ff1615610812576040805162461bcd60e51b815260206004820152600560248201526435b737bbb760d91b604482015290519081900360640190fd5b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031681565b60005b818310156108fa576108e2600384815481106108c857fe5b6000918252602090912001546001600160a01b0316610b7f565b156108ef575060016108fe565b6001909201916108b0565b5060005b92915050565b6002546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806109657f00000000000000000000000000000000000000000000000000000000000000008685611172565b9050600061097282611232565b805490915042037f00000000000000000000000000000000000000000000000000000000000000008111156109d85760405162461bcd60e51b81526004018080602001828103825260338152602001806117316033913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006002027f000000000000000000000000000000000000000000000000000000000000000003811015610a5c5760405162461bcd60e51b815260040180806020018281038252602c815260200180611764602c913960400191505060405180910390fd5b600080610a68856112c1565b50915091506000610a798a89611490565b509050896001600160a01b0316816001600160a01b03161415610ab357610aa6856001015484868c61156e565b9650505050505050610ac3565b610aa6856002015483868c61156e565b9392505050565b6000805b600354811015610aff57610ae8600382815481106108c857fe5b15610af7576001915050610b05565b600101610ace565b50600090505b90565b6000546001600160a01b03163314610b5d576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03166000908152600560205260409020547f000000000000000000000000000000000000000000000000000000000000000042919091031190565b60066020528160005260406000208181548110610bda57fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b7f000000000000000000000000000000000000000000000000000000000000000081565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610c7057600080fd5b505af1158015610c84573d6000803e3d6000fd5b505050506040513d6020811015610c9a57600080fd5b5051610cd75760405162461bcd60e51b81526004018080602001828103825260248152602001806117b36024913960400191505060405180910390fd5b6000610d047f00000000000000000000000000000000000000000000000000000000000000008585611172565b9050610d0f81611005565b949350505050565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610d6357600080fd5b505af1158015610d77573d6000803e3d6000fd5b505050506040513d6020811015610d8d57600080fd5b5051610dca5760405162461bcd60e51b81526004018080602001828103825260248152602001806117b36024913960400191505060405180910390fd5b818310156108fe57610dfc60038481548110610de257fe5b6000918252602090912001546001600160a01b0316611005565b15610e05575060015b600190920191610dca565b6000807f00000000000000000000000000000000000000000000000000000000000000008381610e3c57fe5b0490507f000000000000000000000000000000000000000000000000000000000000000060ff168181610e6b57fe5b069392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606000805b600354811015610f1b57610eb7600382815481106108c857fe5b15610f135760038181548110610ec957fe5b600091825260209091200154835160018401936001600160a01b039092169185918110610ef257fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101610e9d565b505090565b6001546001600160a01b031681565b6000546001600160a01b03163314610f81576040805162461bcd60e51b815260206004820152601060248201526f39b2ba25b2b2b819b9311d1010b3b7bb60811b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805480602002602001604051908101604052809291908181526020018280548015610ffb57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fdd575b5050505050905090565b6001600160a01b0381166000908152600660205260408120545b7f000000000000000000000000000000000000000000000000000000000000000060ff16811015611073576001600160a01b038316600090815260066020526040812080546001908101825591520161101f565b50600061107f42610e10565b6001600160a01b03841660009081526006602052604081208054929350909160ff84169081106110ab57fe5b60009182526020909120600390910201805490915042037f0000000000000000000000000000000000000000000000000000000000000000811115611133576000806110f6876112c1565b50428087556001600160a01b038a166000908152600560205260409020556001808701929092556002909501949094555091935061053592505050565b506000949350505050565b6000805b60035481101561116e5761115c60038281548110610de257fe5b1561116657600191505b600101611142565b5090565b60008060006111818585611490565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527fd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60008061123e42610e10565b905060007f000000000000000000000000000000000000000000000000000000000000000060ff168260010160ff168161127457fe5b06905060066000856001600160a01b03166001600160a01b031681526020019081526020016000208160ff16815481106112aa57fe5b906000526020600020906003020192505050919050565b60008060006112ce6115cc565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561130957600080fd5b505afa15801561131d573d6000803e3d6000fd5b505050506040513d602081101561133357600080fd5b505160408051635a3d549360e01b815290519194506001600160a01b03861691635a3d549391600480820192602092909190829003018186803b15801561137957600080fd5b505afa15801561138d573d6000803e3d6000fd5b505050506040513d60208110156113a357600080fd5b505160408051630240bc6b60e21b81529051919350600091829182916001600160a01b03891691630902f1ac916004808301926060929190829003018186803b1580156113ef57600080fd5b505afa158015611403573d6000803e3d6000fd5b505050506040513d606081101561141957600080fd5b5080516020820151604090920151909450909250905063ffffffff808216908516146114865780840363ffffffff811661145384866115d6565b516001600160e01b031602969096019563ffffffff811661147485856115d6565b516001600160e01b0316029590950194505b5050509193909250565b600080826001600160a01b0316846001600160a01b031614156114e45760405162461bcd60e51b81526004018080602001828103825260238152602001806117906023913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611504578284611507565b83835b90925090506001600160a01b038216611567576040805162461bcd60e51b815260206004820152601c60248201527f50616e63616b654c6962726172793a205a45524f5f4144445245535300000000604482015290519081900360640190fd5b9250929050565b600061157861170b565b6040518060200160405280858888038161158e57fe5b046001600160e01b0316905290506115ae6115a98285611686565b611704565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b63ffffffff421690565b6115de61170b565b6000826001600160701b03161161163c576040805162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161167157fe5b046001600160e01b0316815250905092915050565b61168e61171d565b60008215806116b457505082516001600160e01b0316828102908382816116b157fe5b04145b6116ef5760405162461bcd60e51b81526004018080602001828103825260238152602001806117d76023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b60408051602081019091526000815290565b604051806020016040528060008152509056fe536c6964696e6757696e646f774f7261636c653a204d495353494e475f484953544f524943414c5f4f42534552564154494f4e536c6964696e6757696e646f774f7261636c653a20554e45585045435445445f54494d455f454c415053454450616e63616b654c6962726172793a204944454e544943414c5f4144445245535345533a3a69734b65657065723a206b6565706572206973206e6f7420726567697374657265644669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a2646970667358221220d1e850d28d9045f6efe344e50e79e4cb578f52446064b92256db0911ff6c25a564736f6c634300060c00330000000000000000000000005ea29eee799aa7cc379fde5cf370bc24f2ea7c81

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

11146:7768:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12608:43;;;;;;;;;;;;;;;;-1:-1:-1;12608:43:0;-1:-1:-1;;;;;12608:43:0;;:::i;:::-;;;;;;;;;;;;;;;;13786:104;;;;;;;;;;;;;;;;-1:-1:-1;13786:104:0;-1:-1:-1;;;;;13786:104:0;;:::i;:::-;;;;;;;;;;;;;;;;;;11921:170;;;:::i;:::-;;14569:125;;;:::i;14250:307::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14250:307:0;;;;;;;;;;:::i;12432:38::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11672:25;;;:::i;:::-;;;;-1:-1:-1;;;;;11672:25:0;;;;;;;;;;;;;;15837:237;;;;;;;;;;;;;;;;-1:-1:-1;15837:237:0;;;;;;;:::i;12271:21::-;;;:::i;12385:40::-;;;:::i;17838:1073::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17838:1073:0;;;;;;;;;;;;;;;;;:::i;15593:232::-;;;:::i;11743:170::-;;;;;;;;;;;;;;;;-1:-1:-1;11743:170:0;-1:-1:-1;;;;;11743:170:0;;:::i;15444:137::-;;;;;;;;;;;;;;;;-1:-1:-1;15444:137:0;-1:-1:-1;;;;;15444:137:0;;:::i;12760:57::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;12760:57:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;12301:77;;;:::i;14047:191::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14047:191:0;;;;;;;;;;:::i;14930:220::-;;;;;;;;;;;;;;;;-1:-1:-1;14930:220:0;;;;;;;:::i;13032:188::-;;;;;;;;;;;;;;;;-1:-1:-1;13032:188:0;;:::i;12477:39::-;;;:::i;15162:270::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11704:32;;;:::i;12103:156::-;;;;;;;;;;;;;;;;-1:-1:-1;12103:156:0;-1:-1:-1;;;;;12103:156:0;;:::i;12664:90::-;;;:::i;12608:43::-;;;;;;;;;;;;;:::o;13786:104::-;11402:5;;:26;;;-1:-1:-1;;;11402:26:0;;11417:10;11402:26;;;;;;13845:4;;-1:-1:-1;;;;;11402:5:0;;:14;;:26;;;;;;;;;;;;;;13845:4;11402:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11402:26:0;11394:75;;;;-1:-1:-1;;;11394:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13869:13:::1;13877:4;13869:7;:13::i;:::-;13862:20;;11480:1;13786:104:::0;;;:::o;11921:170::-;11991:17;;-1:-1:-1;;;;;11991:17:0;11977:10;:31;11969:73;;;;;-1:-1:-1;;;11969:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12066:17;;;12053:30;;-1:-1:-1;;;;;;12053:30:0;-1:-1:-1;;;;;12066:17:0;;;12053:30;;;;;;11921:170::o;14569:125::-;11538:5;;:26;;;-1:-1:-1;;;11538:26:0;;11553:10;11538:26;;;;;;-1:-1:-1;;;;;11538:5:0;;;;:14;;:26;;;;;;;;;;;;;;;:5;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11538:26:0;11530:75;;;;-1:-1:-1;;;11530:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14610:11:::1;14624:12;:10;:12::i;:::-;14610:26;;14655:6;14647:39;;;::::0;;-1:-1:-1;;;14647:39:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14647:39:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;11628:5:0;;:24;;;-1:-1:-1;;;11628:24:0;;11641:10;11628:24;;;;;;-1:-1:-1;;;;;11628:5:0;;;;:12;;:24;;;;;:5;;:24;;;;;;;;:5;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14569:125::o;14250:307::-;14337:10;;-1:-1:-1;;;;;14337:10:0;14323;:24;14315:61;;;;;-1:-1:-1;;;14315:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14387:12;14402:47;14425:7;14434:6;14442;14402:22;:47::i;:::-;-1:-1:-1;;;;;14469:12:0;;;;;;:6;:12;;;;;;14387:62;;-1:-1:-1;14469:12:0;;14468:13;14460:31;;;;;-1:-1:-1;;;14460:31:0;;;;;;;;;;;;-1:-1:-1;;;14460:31:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;14502:12:0;;;;;:6;:12;;;;;:19;;-1:-1:-1;;14502:19:0;14517:4;14502:19;;;;;;14532:6;:17;;;;;;;;;;;;;;-1:-1:-1;;;;;;14532:17:0;;;;;;-1:-1:-1;;14250:307:0:o;12432:38::-;;;:::o;11672:25::-;;;-1:-1:-1;;;;;11672:25:0;;:::o;15837:237::-;15904:4;15921:123;15932:6;15928:1;:10;15921:123;;;15964:21;15975:6;15982:1;15975:9;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15975:9:0;15964:10;:21::i;:::-;15960:73;;;-1:-1:-1;16013:4:0;16006:11;;15960:73;15940:3;;;;;15921:123;;;-1:-1:-1;16061:5:0;15837:237;;;;;:::o;12271:21::-;;;-1:-1:-1;;;;;12271:21:0;;:::o;12385:40::-;;;:::o;17838:1073::-;17928:14;17955:12;17970:50;17993:7;18002;18011:8;17970:22;:50::i;:::-;17955:65;;18031:36;18070:33;18098:4;18070:27;:33::i;:::-;18153:26;;18031:72;;-1:-1:-1;18135:15:0;:44;18213:10;18198:25;;;18190:89;;;;-1:-1:-1;;;18190:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18359:10;18372:1;18359:14;18346:10;:27;18331:11;:42;;18323:99;;;;-1:-1:-1;;;18323:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18436:21;18459;18485:50;18530:4;18485:44;:50::i;:::-;18435:100;;;;;18547:14;18566:44;18592:7;18601:8;18566:25;:44::i;:::-;18546:64;;;18637:7;-1:-1:-1;;;;;18627:17:0;:6;-1:-1:-1;;;;;18627:17:0;;18623:281;;;18668:92;18685:16;:33;;;18720:16;18738:11;18751:8;18668:16;:92::i;:::-;18661:99;;;;;;;;;;18623:281;18800:92;18817:16;:33;;;18852:16;18870:11;18883:8;18800:16;:92::i;17838:1073::-;;;;;;:::o;15593:232::-;15638:4;;15655:140;15676:6;:13;15672:17;;15655:140;;;15715:21;15726:6;15733:1;15726:9;;;;;;;15715:21;15711:73;;;15764:4;15757:11;;;;;15711:73;15691:3;;15655:140;;;;15812:5;15805:12;;15593:232;;:::o;11743:170::-;11829:10;;-1:-1:-1;;;;;11829:10:0;11815;:24;11807:56;;;;;-1:-1:-1;;;11807:56:0;;;;;;;;;;;;-1:-1:-1;;;11807:56:0;;;;;;;;;;;;;;;11874:17;:31;;-1:-1:-1;;;;;;11874:31:0;-1:-1:-1;;;;;11874:31:0;;;;;;;;;;11743:170::o;15444:137::-;-1:-1:-1;;;;;15542:17:0;15499:4;15542:17;;;:11;:17;;;;;;15563:10;15524:15;:35;;;;15523:50;;15444:137::o;12760:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12760:57:0;;-1:-1:-1;12760:57:0;:::o;12301:77::-;;;:::o;14047:191::-;11402:5;;:26;;;-1:-1:-1;;;11402:26:0;;11417:10;11402:26;;;;;;14120:4;;-1:-1:-1;;;;;11402:5:0;;:14;;:26;;;;;;;;;;;;;;14120:4;11402:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11402:26:0;11394:75;;;;-1:-1:-1;;;11394:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14137:12:::1;14152:47;14175:7;14184:6;14192;14152:22;:47::i;:::-;14137:62;;14217:13;14225:4;14217:7;:13::i;:::-;14210:20:::0;14047:191;-1:-1:-1;;;;14047:191:0:o;14930:220::-;11402:5;;:26;;;-1:-1:-1;;;11402:26:0;;11417:10;11402:26;;;;;;14995:12;;-1:-1:-1;;;;;11402:5:0;;:14;;:26;;;;;;;;;;;;;;14995:12;11402:5;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11402:26:0;11394:75;;;;-1:-1:-1;;;11394:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15031:6:::1;15027:1;:10;15020:123;;;15063:18;15071:6;15078:1;15071:9;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;15071:9:0::1;15063:7;:18::i;:::-;15059:73;;;-1:-1:-1::0;15112:4:0::1;15059:73;15039:3;::::0;;::::1;::::0;15020:123:::1;;13032:188:::0;13097:11;13121:16;13152:10;13140:9;:22;;;;;;13121:41;;13200:11;13186:25;;:11;:25;;;;;;;13032:188;-1:-1:-1;;;13032:188:0:o;12477:39::-;;;:::o;15162:270::-;15211:21;15245:11;15276:6;15271:154;15292:6;:13;15288:17;;15271:154;;;15331:21;15342:6;15349:1;15342:9;;;;;;;15331:21;15327:87;;;15389:6;15396:1;15389:9;;;;;;;;;;;;;;;;;;15372:14;;15389:9;15377:8;;;-1:-1:-1;;;;;15389:9:0;;;;15372:4;;:14;;;;;;;;;;;:26;-1:-1:-1;;;;;15372:26:0;;;-1:-1:-1;;;;;15372:26:0;;;;;15327:87;15307:3;;15271:154;;;;15162:270;;:::o;11704:32::-;;;-1:-1:-1;;;;;11704:32:0;;:::o;12103:156::-;12183:10;;-1:-1:-1;;;;;12183:10:0;12169;:24;12161:53;;;;;-1:-1:-1;;;12161:53:0;;;;;;;;;;;;-1:-1:-1;;;12161:53:0;;;;;;;;;;;;;;;12225:5;:26;;-1:-1:-1;;;;;;12225:26:0;-1:-1:-1;;;;;12225:26:0;;;;;;;;;;12103:156::o;12664:90::-;12704:16;12740:6;12733:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12733:13:0;;;;;;;;;;;;;;;;;;;;;;;12664:90;:::o;16086:1098::-;-1:-1:-1;;;;;16239:22:0;;16135:4;16239:22;;;:16;:22;;;;;:29;16225:123;16274:11;16270:15;;:1;:15;16225:123;;;-1:-1:-1;;;;;16307:22:0;;;;;;:16;:22;;;;;:29;;;;;;;;;;16287:3;16225:123;;;;16415:22;16440:35;16459:15;16440:18;:35::i;:::-;-1:-1:-1;;;;;16520:22:0;;16486:31;16520:22;;;:16;:22;;;;;:40;;16415:60;;-1:-1:-1;16486:31:0;;16520:40;;;;;;;;;;;;;;;;;;;;;;;16701:21;;16520:40;;-1:-1:-1;16683:15:0;:39;16751:10;16737:24;;16733:411;;;16779:21;16802;16828:50;16873:4;16828:44;:50::i;:::-;-1:-1:-1;16917:15:0;16893:39;;;-1:-1:-1;;;;;16947:17:0;;16893:21;16947:17;;;:11;:17;;;;;:35;16997:28;;;;:47;;;;17059:28;;;;:47;;;;-1:-1:-1;16997:28:0;;-1:-1:-1;17121:11:0;;-1:-1:-1;;;17121:11:0;16733:411;-1:-1:-1;17171:5:0;;16086:1098;-1:-1:-1;;;;16086:1098:0:o;14706:212::-;14746:12;;14771:140;14792:6;:13;14788:17;;14771:140;;;14831:18;14839:6;14846:1;14839:9;;;;;;;14831:18;14827:73;;;14880:4;14870:14;;14827:73;14807:3;;14771:140;;;;14706:212;:::o;7219:486::-;7308:12;7334:14;7350;7368:26;7379:6;7387;7368:10;:26::i;:::-;7532:32;;;-1:-1:-1;;7532:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7522:43;;;;;;-1:-1:-1;;;;;;7435:259:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7425:270;;;;;;;;;7219:486;-1:-1:-1;;;;;7219:486:0:o;13344:430::-;13417:36;13466:22;13491:35;13510:15;13491:18;:35::i;:::-;13466:60;;13625:27;13680:11;13655:36;;13656:16;13675:1;13656:20;13655:36;;;;;;;;13625:66;;13721:16;:22;13738:4;-1:-1:-1;;;;;13721:22:0;-1:-1:-1;;;;;13721:22:0;;;;;;;;;;;;13744:21;13721:45;;;;;;;;;;;;;;;;;;;;13702:64;;13344:430;;;;;:::o;5006:1052::-;5092:21;5115;5138;5189:23;:21;:23::i;:::-;5172:40;;5255:4;-1:-1:-1;;;;;5242:39:0;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5242:41:0;5313;;;-1:-1:-1;;;5313:41:0;;;;5242;;-1:-1:-1;;;;;;5313:39:0;;;;;:41;;;;;5242;;5313;;;;;;;;:39;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5313:41:0;5534:32;;;-1:-1:-1;;;5534:32:0;;;;5313:41;;-1:-1:-1;5469:16:0;;;;;;-1:-1:-1;;;;;5534:30:0;;;;;:32;;;;;;;;;;;;;;:30;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5534:32:0;;;;;;;;;;;;;-1:-1:-1;5534:32:0;;-1:-1:-1;5534:32:0;-1:-1:-1;5581:36:0;;;;;;;;5577:474;;5703:35;;;5849:62;;;5854:39;5874:8;5884;5854:19;:39::i;:::-;:42;-1:-1:-1;;;;;5849:48:0;:62;5829:82;;;;;5977:62;;;5982:39;6002:8;6012;5982:19;:39::i;:::-;:42;-1:-1:-1;;;;;5977:48:0;:62;5957:82;;;;;-1:-1:-1;5577:474:0;5006:1052;;;;;;;;:::o;6782:345::-;6857:14;6873;6918:6;-1:-1:-1;;;;;6908:16:0;:6;-1:-1:-1;;;;;6908:16:0;;;6900:64;;;;-1:-1:-1;;;6900:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7003:6;-1:-1:-1;;;;;6994:15:0;:6;-1:-1:-1;;;;;6994:15:0;;:53;;7032:6;7040;6994:53;;;7013:6;7021;6994:53;6975:72;;-1:-1:-1;6975:72:0;-1:-1:-1;;;;;;7066:20:0;;7058:61;;;;;-1:-1:-1;;;7058:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6782:345;;;;;:::o;17388:442::-;17546:14;17606:40;;:::i;:::-;17649:112;;;;;;;;17738:11;17714:20;17693:18;:41;17692:57;;;;;;-1:-1:-1;;;;;17649:112:0;;;17606:155;-1:-1:-1;17784:38:0;:26;17606:155;17801:8;17784:16;:26::i;:::-;:36;:38::i;:::-;17772:50;;;17388:442;-1:-1:-1;;;;;;17388:442:0:o;4875:123::-;4964:25;:15;:25;;4875:123::o;4126:246::-;4207:16;;:::i;:::-;4258:1;4244:11;-1:-1:-1;;;;;4244:15:0;;4236:51;;;;;-1:-1:-1;;;4236:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4305:59;;;;;;;;;;-1:-1:-1;;;;;4315:48:0;;-1:-1:-1;;;3330:3:0;4316:32;;;;4315:48;;;;;;-1:-1:-1;;;;;4305:59:0;;;;4298:66;;4126:246;;;;:::o;3865:253::-;3932:16;;:::i;:::-;3961:6;3986;;;:54;;-1:-1:-1;;4032:7:0;;-1:-1:-1;;;;;4027:13:0;4001:17;;;;4022:1;4001:17;4022:1;3996:27;;;;;:44;3986:54;3978:102;;;;-1:-1:-1;;;3978:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4098:12;;;;;;;;;;;;;3865:253;-1:-1:-1;;;3865:253:0:o;4671:130::-;4771:7;3330:3;4771:21;;4671:130::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

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