Contract 0x78146Be4a46015fB7cfd1f4C1Bfd39Cc134e3DC8

 
Txn Hash
Block
From
To
Value [Txn Fee]
0xd40ba9c03887f4d30cf62ae756ed5bf83284d1c201292a7ab887f167783bf42871826402021-05-06 9:34:243 days 22 hrs ago0x801175e0728ef74e83d687117d9f24f4f77a0954 IN  Keep3rb Network: Pancake Oracle0 BNB0.000981475
0x77839af9609ca27fb6b7c85d18f736cf25b65c547f5938aa5644002057e2ff5370420772021-05-01 10:59:168 days 21 hrs ago0xf65d5715a8565921cabcee10ea79f57cfb12c42e IN  Keep3rb Network: Pancake Oracle0 BNB0.00090858
0x406d839d6267b80ce99fbc6ccddb4b5a611fd79db609c458caeeeffa479d9b9070420732021-05-01 10:59:048 days 21 hrs ago0xf65d5715a8565921cabcee10ea79f57cfb12c42e IN  Keep3rb Network: Pancake Oracle0 BNB0.000315095
0x82c74cc40e70508aa86c69c2e75a1df235a0f7a3454afbbf340943f8139af30f65825982021-04-15 8:39:5524 days 23 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: Pancake Oracle0 BNB0.000981605
0x8ec0591aadab291fb58535d3c7799d52ecaa322c28e98b4d4d074ae6428a7eb465060622021-04-12 16:50:3427 days 15 hrs ago0x19535cb55feea22688daf4812bfc30f28b80e175 IN  Keep3rb Network: Pancake Oracle0 BNB0.000981605
0x77b433b26563b59c6468b63a84057b9eeacbfdbf0c1af841e4ed7cae6ba2303464974042021-04-12 9:35:1327 days 22 hrs ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  Keep3rb Network: Pancake Oracle0 BNB0.000981605
0xcb87f515fd41f87851184dda1c64afd1ed4e07cc3fbfee4147b17f54ca29812063382102021-04-06 18:56:3333 days 13 hrs ago0xb0b32bbed89b6564de7a5fc8adea158f94530a44 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0xd270b9a0cde1467def9f84423f0f2fe3c5024fa15d2b59bfd6e22650d7692c2162812212021-04-04 18:29:3635 days 14 hrs ago0xe059d5f7d1e68f0191d1eb9174d95ce2605f04f1 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x206cc3b6bdbb24f011be4a21ecd388a868bea1d6a650cfe0d992a4cc4f6e739762531012021-04-03 18:32:4536 days 13 hrs ago0xf1d05a9206db50225bbab73ea652a284403eb00a IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x837a60e2aef641f6165770efc1a97c0f8ec136de67c384a140e6e324df91a4a762183592021-04-02 13:21:4137 days 19 hrs ago0xe1fc1c15ff0dcd7b348c0fc606ac4f4770426c75 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x17b363824f3b94e5981d3f9af045a9415b664471e6fd86ff4ca80be3dc90f9f661489832021-03-31 3:04:4440 days 5 hrs ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x9102dae7ac863638bfb5535256ece3171c3a58ac79fb9ce2d4dd782b1afa260461366932021-03-30 16:48:3240 days 15 hrs ago0x19535cb55feea22688daf4812bfc30f28b80e175 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x61f6ce261783605b01f0b0bf58c9fdb39409d1498732c42df3cc3793f0e06b2561039282021-03-29 13:24:5041 days 19 hrs ago0xf1d05a9206db50225bbab73ea652a284403eb00a IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xdc76d2968f9bfd21223014927a1578d71bae3f069a40690e50ca9e59d81a536159988342021-03-25 20:51:4045 days 11 hrs ago0xe059d5f7d1e68f0191d1eb9174d95ce2605f04f1 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x40cf09e45c453084ca2131ae74915c76c7130f2a05976c0b2079b4e741ab234c59867312021-03-25 10:40:3445 days 21 hrs ago0xf1d05a9206db50225bbab73ea652a284403eb00a IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x3b645c4020574a994bb428013736703657c787afa12fa39bbb4ccd7e9b4f1ae059070792021-03-22 15:53:3248 days 16 hrs ago0x5d577c1cdaf838b264c7d977449c776ef664d654 IN  Keep3rb Network: Pancake Oracle0 BNB0.00047591
0xeeb3f4b233d25f4a7180561cdd5aa8b00eea13102944c8060028e5f0e72cd7bf59070762021-03-22 15:53:2348 days 16 hrs ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xb27cca0006422f9ce9ebd14328b622495fa7b28b08feb12b6ce42b1484de339958669522021-03-21 6:08:4350 days 2 hrs ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xd3abf782314589d68e508715cade0a8ca81a44b3d484fad892a2f6a7116f6b9758650122021-03-21 4:31:4350 days 3 hrs ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x03cbdf9c90e0f1b6f5927830725d98efccab40667c3e84710514e1450d47205d58434512021-03-20 10:31:2850 days 21 hrs ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x36b2fcbe5cace607727d9d0173dc241cde822555e346ed80226d9e2a41fa0ed458237042021-03-19 18:04:0451 days 14 hrs ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xb0a4d1690a17b9d6d68a3a578880bcff4d7ff19c2e55be0fc9a4d82008abfa9558200742021-03-19 15:02:3451 days 17 hrs ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0xae52065de5f376ea1208919e200be2a0fef9a465dbba63be1135953ef638c2c458180152021-03-19 13:17:4751 days 19 hrs ago0x2e7f15b69ad2d295acf569f560d04761d93f1bda IN  Keep3rb Network: Pancake Oracle0 BNB0.00196321
0x0ee64e7f0da4fbf1cc2a5d16a7ba9260a7acabef0bba8c725d99c57e6b38735758101792021-03-19 6:45:5052 days 1 hr ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
0x2310b0408e61c9a7d1f0a5946249236e1ccda73c90ce5afbe5b9d0b5677549db58078712021-03-19 4:50:2652 days 3 hrs ago0xc8fff0c46824bdcd51950a7e42a33e96d7508806 IN  Keep3rb Network: Pancake Oracle0 BNB0.00196295
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0xa5150ecb061be2b1de81969a040a875b79d912d85b9a0693b69b756b45c4b40d54651032021-03-07 6:48:0664 days 1 hr ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB 40 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: KP3RB-BUSD 20 BNB
0x319824ae758474ad400a1302c213197e381fbda9cff5b13e8bb5b98ae575db7554615432021-03-07 3:49:5664 days 4 hrs ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0x92bbc2c8d4ef47c71b8b3492ccc918b18da44ec7f004362d3308dc4123a54a4454609112021-03-07 3:18:2064 days 5 hrs ago Keep3rb Network: Pancake Oracle Keep3rb Network: KP3RB Token0 BNB
0x92bbc2c8d4ef47c71b8b3492ccc918b18da44ec7f004362d3308dc4123a54a4454609112021-03-07 3:18:2064 days 5 hrs ago Keep3rb Network: Pancake Oracle PancakeSwap: Cake-KP3RB0 BNB
0x92bbc2c8d4ef47c71b8b3492ccc918b18da44ec7f004362d3308dc4123a54a4454609112021-03-07 3:18:2064 days 5 hrs 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.