ETH Price: $3,261.05 (-4.52%)

Contract

0x030eeDE1Fe33Ad61fe01b52438ED19aC8A674538
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Update Pair116067192021-01-07 9:22:071472 days ago1610011327IN
Kp2r Network: Jobs
0 ETH0.0063841101.78571428
Update Pair114524612020-12-14 17:30:101496 days ago1607967010IN
Kp2r Network: Jobs
0 ETH0.0020015231.91154
Update Pair114471492020-12-13 21:48:271496 days ago1607896107IN
Kp2r Network: Jobs
0 ETH0.0019600331.25
Work114469482020-12-13 21:02:371496 days ago1607893357IN
Kp2r Network: Jobs
0 ETH0.0114811455
Update Pair114468742020-12-13 20:42:551496 days ago1607892175IN
Kp2r Network: Jobs
0 ETH0.0031987751
Update Pair114447362020-12-13 12:38:561497 days ago1607863136IN
Kp2r Network: Jobs
0 ETH0.0025422123.6
Update Pair114446922020-12-13 12:30:061497 days ago1607862606IN
Kp2r Network: Jobs
0 ETH0.0014488523.1
Add114445642020-12-13 12:02:031497 days ago1607860923IN
Kp2r Network: Jobs
0 ETH0.0015965422.11000023
Add114445612020-12-13 12:01:491497 days ago1607860909IN
Kp2r Network: Jobs
0 ETH0.0015965422.11000023
Add114445522020-12-13 11:59:101497 days ago1607860750IN
Kp2r Network: Jobs
0 ETH0.0015965422.11000023
Add114445472020-12-13 11:58:081497 days ago1607860688IN
Kp2r Network: Jobs
0 ETH0.0015885922.00000145
Add114445472020-12-13 11:58:081497 days ago1607860688IN
Kp2r Network: Jobs
0 ETH0.0015163821
Add114445302020-12-13 11:54:231497 days ago1607860463IN
Kp2r Network: Jobs
0 ETH0.0015163821
Work114444942020-12-13 11:46:431497 days ago1607860003IN
Kp2r Network: Jobs
0 ETH0.0030443822.0000016
Work114394932020-12-12 17:31:321498 days ago1607794292IN
Kp2r Network: Jobs
0 ETH0.002823119.8
Work114394462020-12-12 17:22:371498 days ago1607793757IN
Kp2r Network: Jobs
0 ETH0.0041348429
Work114373042020-12-12 9:31:281498 days ago1607765488IN
Kp2r Network: Jobs
0 ETH0.0030299721.9000016
Work114299322020-12-11 6:08:591499 days ago1607666939IN
Kp2r Network: Jobs
0 ETH0.0036144825.35500887
Work114292132020-12-11 3:32:221499 days ago1607657542IN
Kp2r Network: Jobs
0 ETH0.0105490774
Work114279572020-12-10 22:44:121499 days ago1607640252IN
Kp2r Network: Jobs
0 ETH0.0047266530
Work114223672020-12-10 1:58:141500 days ago1607565494IN
Kp2r Network: Jobs
0 ETH0.0007553525
Work114206372020-12-09 19:47:121500 days ago1607543232IN
Kp2r Network: Jobs
0 ETH0.002851120
Work114174072020-12-09 7:46:291501 days ago1607499989IN
Kp2r Network: Jobs
0 ETH0.0039395225
Work114084272020-12-07 22:44:331502 days ago1607381073IN
Kp2r Network: Jobs
0 ETH0.003151120
Work114069162020-12-07 17:04:351503 days ago1607360675IN
Kp2r Network: Jobs
0 ETH0.0042539827
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniswapV2Oracle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-05
*/

// SPDX-License-Identifier: MIT


/**
 * KP2R.NETWORK
 * A standard implementation of kp3rv1 protocol
 * Optimized Dapp
 * Scalability
 * Clean & tested code
 */


pragma solidity ^0.6.12;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


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 UniswapV2OracleLibrary {
    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 = IUniswapV2Pair(pair).price0CumulativeLast();
        price1Cumulative = IUniswapV2Pair(pair).price1CumulativeLast();

        // if time has elapsed since the last update on the pair, mock the accumulated price values
        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = IUniswapV2Pair(pair).getReserves();
        if (blockTimestampLast != blockTimestamp) {
            // subtraction overflow is desired
            uint32 timeElapsed = blockTimestamp - blockTimestampLast;
            // addition overflow is desired
            // counterfactual
            price0Cumulative += uint(FixedPoint.fraction(reserve1, reserve0)._x) * timeElapsed;
            // counterfactual
            price1Cumulative += uint(FixedPoint.fraction(reserve0, reserve1)._x) * timeElapsed;
        }
    }
}

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

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 UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

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

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

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

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

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

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

    struct Observation {
        uint timestamp;
        uint price0Cumulative;
        uint price1Cumulative;
    }
    
    modifier keeper() {
        require(KP2R.isKeeper(msg.sender), "::isKeeper: keeper is not registered");
        _;
    }
    
    modifier upkeep() {
        require(KP2R.isKeeper(msg.sender), "::isKeeper: keeper is not registered");
        _;
        KP2R.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 setKeep2r(address _keep2r) external {
        require(msg.sender == governance, "setKeep2r: !gov");
        KP2R = IKeep2r(_keep2r);
    }
    
    IKeep2r public KP2R;

    address public immutable factory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
    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 _keep2r) public {
        governance = msg.sender;
        KP2R = IKeep2r(_keep2r);
    }

    // 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 = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        return _update(pair);
    }
    
    function add(address tokenA, address tokenB) external {
        require(msg.sender == governance, "UniswapV2Oracle::add: !gov");
        address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB);
        require(!_known[pair], "known");
        _known[pair] = true;
        _pairs.push(pair);
    }
    
    function work() public upkeep {
        bool worked = _updateAll();
        require(worked, "UniswapV2Oracle: !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,) = UniswapV2OracleLibrary.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 = UniswapV2Library.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,) = UniswapV2OracleLibrary.currentCumulativePrices(pair);
        (address token0,) = UniswapV2Library.sortTokens(tokenIn, tokenOut);

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_keep2r","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KP2R","outputs":[{"internalType":"contract IKeep2r","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":"_keep2r","type":"address"}],"name":"setKeep2r","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"}]

6101006040527f5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f00000000000000000000000060805261384060a052600160fb1b60c05261070860e05234801561004957600080fd5b506040516119453803806119458339818101604052602081101561006c57600080fd5b5051600080546001600160a01b03199081163317909155600280546001600160a01b039093169290911691909117905560805160601c60a05160c05160f81c60e051611832610113600039806109cd5280610b9b5280610e175280610e7752806110c552508061087e5280610e4352806110225280611245525080610908528061096e52806109f152508061079552806109325280610c045280610ce052506118326000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063aebf67c1116100c3578063dbaad32f1161007c578063dbaad32f146103b1578063e4463eb2146103ce578063e5bafb80146103d6578063e8bb6d42146103fc578063f39c38a014610454578063ffb0a4a01461045c57610158565b8063aebf67c1146102e0578063b4a5ed38146102e8578063bfcc8e421461030e578063c45a015514610358578063c640752d14610360578063c9ff6f4d1461038e57610158565b80635aa6e675116101155780635aa6e6751461022d57806384c6d935146102515780638a14117a146102745780638c86f1e41461027c578063983586d9146102b2578063ab033ea9146102ba57610158565b80630a6f93e61461015d5780631b56bbf914610195578063238efcbc146101cf578063322e9f04146101d957806352c28fab146101e1578063556f0dc71461020f575b600080fd5b6101836004803603602081101561017357600080fd5b50356001600160a01b0316610464565b60408051918252519081900360200190f35b6101bb600480360360208110156101ab57600080fd5b50356001600160a01b0316610476565b604080519115158252519081900360200190f35b6101d761053a565b005b6101d76105bd565b6101d7600480360360408110156101f757600080fd5b506001600160a01b038135811691602001351661072f565b61021761087c565b6040805160ff9092168252519081900360200190f35b6102356108a0565b604080516001600160a01b039092168252519081900360200190f35b6101bb6004803603604081101561026757600080fd5b50803590602001356108af565b610183610906565b6101836004803603606081101561029257600080fd5b506001600160a01b0381358116916020810135916040909101351661092a565b6101bb610abd565b6101d7600480360360208110156102d057600080fd5b50356001600160a01b0316610afb565b610235610b72565b6101bb600480360360208110156102fe57600080fd5b50356001600160a01b0316610b81565b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610bc3565b60408051938452602084019290925282820152519081900360600190f35b610235610c02565b6101bb6004803603604081101561037657600080fd5b506001600160a01b0381358116916020013516610c26565b6101bb600480360360408110156103a457600080fd5b5080359060200135610d19565b610217600480360360208110156103c757600080fd5b5035610e12565b610183610e75565b6101d7600480360360208110156103ec57600080fd5b50356001600160a01b0316610e99565b610404610f0c565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610440578181015183820152602001610428565b505050509050019250505060405180910390f35b610235610f95565b610404610fa4565b60056020526000908152604090205481565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b1580156104c257600080fd5b505af11580156104d6573d6000803e3d6000fd5b505050506040513d60208110156104ec57600080fd5b50516105295760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b61053282611006565b90505b919050565b6001546001600160a01b03163314610599576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600254604080516335d2155560e11b815233600482015290516001600160a01b0390921691636ba42aaa916024808201926020929091908290030181600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b50516106715760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b600061067b61113f565b9050806106c8576040805162461bcd60e51b8152602060048201526016602482015275556e697377617056324f7261636c653a2021776f726b60501b604482015290519081900360640190fd5b50600254604080516317fbade560e21b815233600482015290516001600160a01b0390921691635feeb7949160248082019260009290919082900301818387803b15801561071557600080fd5b505af1158015610729573d6000803e3d6000fd5b50505050565b6000546001600160a01b0316331461078e576040805162461bcd60e51b815260206004820152601a60248201527f556e697377617056324f7261636c653a3a6164643a2021676f76000000000000604482015290519081900360640190fd5b60006107bb7f00000000000000000000000000000000000000000000000000000000000000008484611173565b6001600160a01b03811660009081526004602052604090205490915060ff1615610814576040805162461bcd60e51b815260206004820152600560248201526435b737bbb760d91b604482015290519081900360640190fd5b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031681565b60005b818310156108fc576108e4600384815481106108ca57fe5b6000918252602090912001546001600160a01b0316610b81565b156108f157506001610900565b6001909201916108b2565b5060005b92915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806109587f00000000000000000000000000000000000000000000000000000000000000008685611173565b9050600061096582611233565b805490915042037f00000000000000000000000000000000000000000000000000000000000000008111156109cb5760405162461bcd60e51b81526004018080602001828103825260338152602001806117326033913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006002027f000000000000000000000000000000000000000000000000000000000000000003811015610a4f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611765602c913960400191505060405180910390fd5b600080610a5b856112c2565b50915091506000610a6c8a89611491565b509050896001600160a01b0316816001600160a01b03161415610aa657610a99856001015484868c61156f565b9650505050505050610ab6565b610a99856002015483868c61156f565b9392505050565b6000805b600354811015610af257610adb600382815481106108ca57fe5b15610aea576001915050610af8565b600101610ac1565b50600090505b90565b6000546001600160a01b03163314610b50576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6001600160a01b03166000908152600560205260409020547f000000000000000000000000000000000000000000000000000000000000000042919091031190565b60066020528160005260406000208181548110610bdc57fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b7f000000000000000000000000000000000000000000000000000000000000000081565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b505050506040513d6020811015610c9c57600080fd5b5051610cd95760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b6000610d067f00000000000000000000000000000000000000000000000000000000000000008585611173565b9050610d1181611006565b949350505050565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610d6557600080fd5b505af1158015610d79573d6000803e3d6000fd5b505050506040513d6020811015610d8f57600080fd5b5051610dcc5760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b8183101561090057610dfe60038481548110610de457fe5b6000918252602090912001546001600160a01b0316611006565b15610e07575060015b600190920191610dcc565b6000807f00000000000000000000000000000000000000000000000000000000000000008381610e3e57fe5b0490507f000000000000000000000000000000000000000000000000000000000000000060ff168181610e6d57fe5b069392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03163314610eea576040805162461bcd60e51b815260206004820152600f60248201526e39b2ba25b2b2b819391d1010b3b7bb60891b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60606000805b600354811015610f9057610f2c600382815481106108ca57fe5b15610f885760038181548110610f3e57fe5b600091825260209091200154835160018401936001600160a01b039092169185918110610f6757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101610f12565b505090565b6001546001600160a01b031681565b60606003805480602002602001604051908101604052809291908181526020018280548015610ffc57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fde575b5050505050905090565b6001600160a01b0381166000908152600660205260408120545b7f000000000000000000000000000000000000000000000000000000000000000060ff16811015611074576001600160a01b0383166000908152600660205260408120805460019081018255915201611020565b50600061108042610e12565b6001600160a01b03841660009081526006602052604081208054929350909160ff84169081106110ac57fe5b60009182526020909120600390910201805490915042037f0000000000000000000000000000000000000000000000000000000000000000811115611134576000806110f7876112c2565b50428087556001600160a01b038a166000908152600560205260409020556001808701929092556002909501949094555091935061053592505050565b506000949350505050565b6000805b60035481101561116f5761115d60038281548110610de457fe5b1561116757600191505b600101611143565b5090565b60008060006111828585611491565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60008061123f42610e12565b905060007f000000000000000000000000000000000000000000000000000000000000000060ff168260010160ff168161127557fe5b06905060066000856001600160a01b03166001600160a01b031681526020019081526020016000208160ff16815481106112ab57fe5b906000526020600020906003020192505050919050565b60008060006112cf6115cd565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561130a57600080fd5b505afa15801561131e573d6000803e3d6000fd5b505050506040513d602081101561133457600080fd5b505160408051635a3d549360e01b815290519194506001600160a01b03861691635a3d549391600480820192602092909190829003018186803b15801561137a57600080fd5b505afa15801561138e573d6000803e3d6000fd5b505050506040513d60208110156113a457600080fd5b505160408051630240bc6b60e21b81529051919350600091829182916001600160a01b03891691630902f1ac916004808301926060929190829003018186803b1580156113f057600080fd5b505afa158015611404573d6000803e3d6000fd5b505050506040513d606081101561141a57600080fd5b5080516020820151604090920151909450909250905063ffffffff808216908516146114875780840363ffffffff811661145484866115d7565b516001600160e01b031602969096019563ffffffff811661147585856115d7565b516001600160e01b0316029590950194505b5050509193909250565b600080826001600160a01b0316846001600160a01b031614156114e55760405162461bcd60e51b81526004018080602001828103825260258152602001806117916025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611505578284611508565b83835b90925090506001600160a01b038216611568576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b600061157961170c565b6040518060200160405280858888038161158f57fe5b046001600160e01b0316905290506115af6115aa8285611687565b611705565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b63ffffffff421690565b6115df61170c565b6000826001600160701b03161161163d576040805162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161167257fe5b046001600160e01b0316815250905092915050565b61168f61171e565b60008215806116b557505082516001600160e01b0316828102908382816116b257fe5b04145b6116f05760405162461bcd60e51b81526004018080602001828103825260238152602001806117da6023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b60408051602081019091526000815290565b604051806020016040528060008152509056fe536c6964696e6757696e646f774f7261636c653a204d495353494e475f484953544f524943414c5f4f42534552564154494f4e536c6964696e6757696e646f774f7261636c653a20554e45585045435445445f54494d455f454c4150534544556e697377617056324c6962726172793a204944454e544943414c5f4144445245535345533a3a69734b65657065723a206b6565706572206973206e6f7420726567697374657265644669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a264697066735822122083314b7e7ca3046fc3701fde17815d40a9eb91c949a112aedcad08e2b26fc46364736f6c634300060c00330000000000000000000000009bde098be22658d057c3f1f185e3fd4653e2fbd1

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063aebf67c1116100c3578063dbaad32f1161007c578063dbaad32f146103b1578063e4463eb2146103ce578063e5bafb80146103d6578063e8bb6d42146103fc578063f39c38a014610454578063ffb0a4a01461045c57610158565b8063aebf67c1146102e0578063b4a5ed38146102e8578063bfcc8e421461030e578063c45a015514610358578063c640752d14610360578063c9ff6f4d1461038e57610158565b80635aa6e675116101155780635aa6e6751461022d57806384c6d935146102515780638a14117a146102745780638c86f1e41461027c578063983586d9146102b2578063ab033ea9146102ba57610158565b80630a6f93e61461015d5780631b56bbf914610195578063238efcbc146101cf578063322e9f04146101d957806352c28fab146101e1578063556f0dc71461020f575b600080fd5b6101836004803603602081101561017357600080fd5b50356001600160a01b0316610464565b60408051918252519081900360200190f35b6101bb600480360360208110156101ab57600080fd5b50356001600160a01b0316610476565b604080519115158252519081900360200190f35b6101d761053a565b005b6101d76105bd565b6101d7600480360360408110156101f757600080fd5b506001600160a01b038135811691602001351661072f565b61021761087c565b6040805160ff9092168252519081900360200190f35b6102356108a0565b604080516001600160a01b039092168252519081900360200190f35b6101bb6004803603604081101561026757600080fd5b50803590602001356108af565b610183610906565b6101836004803603606081101561029257600080fd5b506001600160a01b0381358116916020810135916040909101351661092a565b6101bb610abd565b6101d7600480360360208110156102d057600080fd5b50356001600160a01b0316610afb565b610235610b72565b6101bb600480360360208110156102fe57600080fd5b50356001600160a01b0316610b81565b61033a6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610bc3565b60408051938452602084019290925282820152519081900360600190f35b610235610c02565b6101bb6004803603604081101561037657600080fd5b506001600160a01b0381358116916020013516610c26565b6101bb600480360360408110156103a457600080fd5b5080359060200135610d19565b610217600480360360208110156103c757600080fd5b5035610e12565b610183610e75565b6101d7600480360360208110156103ec57600080fd5b50356001600160a01b0316610e99565b610404610f0c565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610440578181015183820152602001610428565b505050509050019250505060405180910390f35b610235610f95565b610404610fa4565b60056020526000908152604090205481565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b1580156104c257600080fd5b505af11580156104d6573d6000803e3d6000fd5b505050506040513d60208110156104ec57600080fd5b50516105295760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b61053282611006565b90505b919050565b6001546001600160a01b03163314610599576040805162461bcd60e51b815260206004820152601d60248201527f616363657074476f7665726e616e63653a202170656e64696e67476f76000000604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600254604080516335d2155560e11b815233600482015290516001600160a01b0390921691636ba42aaa916024808201926020929091908290030181600087803b15801561060a57600080fd5b505af115801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b50516106715760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b600061067b61113f565b9050806106c8576040805162461bcd60e51b8152602060048201526016602482015275556e697377617056324f7261636c653a2021776f726b60501b604482015290519081900360640190fd5b50600254604080516317fbade560e21b815233600482015290516001600160a01b0390921691635feeb7949160248082019260009290919082900301818387803b15801561071557600080fd5b505af1158015610729573d6000803e3d6000fd5b50505050565b6000546001600160a01b0316331461078e576040805162461bcd60e51b815260206004820152601a60248201527f556e697377617056324f7261636c653a3a6164643a2021676f76000000000000604482015290519081900360640190fd5b60006107bb7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8484611173565b6001600160a01b03811660009081526004602052604090205490915060ff1615610814576040805162461bcd60e51b815260206004820152600560248201526435b737bbb760d91b604482015290519081900360640190fd5b6001600160a01b03166000818152600460205260408120805460ff191660019081179091556003805491820181559091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b03191690911790555050565b7f000000000000000000000000000000000000000000000000000000000000000881565b6000546001600160a01b031681565b60005b818310156108fc576108e4600384815481106108ca57fe5b6000918252602090912001546001600160a01b0316610b81565b156108f157506001610900565b6001909201916108b2565b5060005b92915050565b7f000000000000000000000000000000000000000000000000000000000000384081565b6000806109587f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8685611173565b9050600061096582611233565b805490915042037f00000000000000000000000000000000000000000000000000000000000038408111156109cb5760405162461bcd60e51b81526004018080602001828103825260338152602001806117326033913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000007086002027f000000000000000000000000000000000000000000000000000000000000384003811015610a4f5760405162461bcd60e51b815260040180806020018281038252602c815260200180611765602c913960400191505060405180910390fd5b600080610a5b856112c2565b50915091506000610a6c8a89611491565b509050896001600160a01b0316816001600160a01b03161415610aa657610a99856001015484868c61156f565b9650505050505050610ab6565b610a99856002015483868c61156f565b9392505050565b6000805b600354811015610af257610adb600382815481106108ca57fe5b15610aea576001915050610af8565b600101610ac1565b50600090505b90565b6000546001600160a01b03163314610b50576040805162461bcd60e51b815260206004820152601360248201527239b2ba23b7bb32b93730b731b29d1010b3b7bb60691b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6001600160a01b03166000908152600560205260409020547f000000000000000000000000000000000000000000000000000000000000070842919091031190565b60066020528160005260406000208181548110610bdc57fe5b600091825260209091206003909102018054600182015460029092015490935090915083565b7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b505050506040513d6020811015610c9c57600080fd5b5051610cd95760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b6000610d067f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8585611173565b9050610d1181611006565b949350505050565b600254604080516335d2155560e11b815233600482015290516000926001600160a01b031691636ba42aaa91602480830192602092919082900301818787803b158015610d6557600080fd5b505af1158015610d79573d6000803e3d6000fd5b505050506040513d6020811015610d8f57600080fd5b5051610dcc5760405162461bcd60e51b81526004018080602001828103825260248152602001806117b66024913960400191505060405180910390fd5b8183101561090057610dfe60038481548110610de457fe5b6000918252602090912001546001600160a01b0316611006565b15610e07575060015b600190920191610dcc565b6000807f00000000000000000000000000000000000000000000000000000000000007088381610e3e57fe5b0490507f000000000000000000000000000000000000000000000000000000000000000860ff168181610e6d57fe5b069392505050565b7f000000000000000000000000000000000000000000000000000000000000070881565b6000546001600160a01b03163314610eea576040805162461bcd60e51b815260206004820152600f60248201526e39b2ba25b2b2b819391d1010b3b7bb60891b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60606000805b600354811015610f9057610f2c600382815481106108ca57fe5b15610f885760038181548110610f3e57fe5b600091825260209091200154835160018401936001600160a01b039092169185918110610f6757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600101610f12565b505090565b6001546001600160a01b031681565b60606003805480602002602001604051908101604052809291908181526020018280548015610ffc57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fde575b5050505050905090565b6001600160a01b0381166000908152600660205260408120545b7f000000000000000000000000000000000000000000000000000000000000000860ff16811015611074576001600160a01b0383166000908152600660205260408120805460019081018255915201611020565b50600061108042610e12565b6001600160a01b03841660009081526006602052604081208054929350909160ff84169081106110ac57fe5b60009182526020909120600390910201805490915042037f0000000000000000000000000000000000000000000000000000000000000708811115611134576000806110f7876112c2565b50428087556001600160a01b038a166000908152600560205260409020556001808701929092556002909501949094555091935061053592505050565b506000949350505050565b6000805b60035481101561116f5761115d60038281548110610de457fe5b1561116757600191505b600101611143565b5090565b60008060006111828585611491565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b60008061123f42610e12565b905060007f000000000000000000000000000000000000000000000000000000000000000860ff168260010160ff168161127557fe5b06905060066000856001600160a01b03166001600160a01b031681526020019081526020016000208160ff16815481106112ab57fe5b906000526020600020906003020192505050919050565b60008060006112cf6115cd565b9050836001600160a01b0316635909c0d56040518163ffffffff1660e01b815260040160206040518083038186803b15801561130a57600080fd5b505afa15801561131e573d6000803e3d6000fd5b505050506040513d602081101561133457600080fd5b505160408051635a3d549360e01b815290519194506001600160a01b03861691635a3d549391600480820192602092909190829003018186803b15801561137a57600080fd5b505afa15801561138e573d6000803e3d6000fd5b505050506040513d60208110156113a457600080fd5b505160408051630240bc6b60e21b81529051919350600091829182916001600160a01b03891691630902f1ac916004808301926060929190829003018186803b1580156113f057600080fd5b505afa158015611404573d6000803e3d6000fd5b505050506040513d606081101561141a57600080fd5b5080516020820151604090920151909450909250905063ffffffff808216908516146114875780840363ffffffff811661145484866115d7565b516001600160e01b031602969096019563ffffffff811661147585856115d7565b516001600160e01b0316029590950194505b5050509193909250565b600080826001600160a01b0316846001600160a01b031614156114e55760405162461bcd60e51b81526004018080602001828103825260258152602001806117916025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610611505578284611508565b83835b90925090506001600160a01b038216611568576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b600061157961170c565b6040518060200160405280858888038161158f57fe5b046001600160e01b0316905290506115af6115aa8285611687565b611705565b71ffffffffffffffffffffffffffffffffffff169695505050505050565b63ffffffff421690565b6115df61170c565b6000826001600160701b03161161163d576040805162461bcd60e51b815260206004820152601760248201527f4669786564506f696e743a204449565f42595f5a45524f000000000000000000604482015290519081900360640190fd5b6040805160208101909152806001600160701b0384166dffffffffffffffffffffffffffff60701b607087901b168161167257fe5b046001600160e01b0316815250905092915050565b61168f61171e565b60008215806116b557505082516001600160e01b0316828102908382816116b257fe5b04145b6116f05760405162461bcd60e51b81526004018080602001828103825260238152602001806117da6023913960400191505060405180910390fd5b60408051602081019091529081529392505050565b5160701c90565b60408051602081019091526000815290565b604051806020016040528060008152509056fe536c6964696e6757696e646f774f7261636c653a204d495353494e475f484953544f524943414c5f4f42534552564154494f4e536c6964696e6757696e646f774f7261636c653a20554e45585045435445445f54494d455f454c4150534544556e697377617056324c6962726172793a204944454e544943414c5f4144445245535345533a3a69734b65657065723a206b6565706572206973206e6f7420726567697374657265644669786564506f696e743a204d554c5449504c49434154494f4e5f4f564552464c4f57a264697066735822122083314b7e7ca3046fc3701fde17815d40a9eb91c949a112aedcad08e2b26fc46364736f6c634300060c0033

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

0000000000000000000000009bde098be22658d057c3f1f185e3fd4653e2fbd1

-----Decoded View---------------
Arg [0] : _keep2r (address): 0x9BdE098Be22658d057C3F1F185e3Fd4653E2fbD1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009bde098be22658d057c3f1f185e3fd4653e2fbd1


Deployed Bytecode Sourcemap

11312:7771:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12765:43;;;;;;;;;;;;;;;;-1:-1:-1;12765:43:0;-1:-1:-1;;;;;12765:43:0;;:::i;:::-;;;;;;;;;;;;;;;;13939:104;;;;;;;;;;;;;;;;-1:-1:-1;13939:104:0;-1:-1:-1;;;;;13939:104:0;;:::i;:::-;;;;;;;;;;;;;;;;;;12086:170;;;:::i;:::-;;14728:127;;;:::i;14405:311::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14405:311:0;;;;;;;;;;:::i;12589:38::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11837:25;;;:::i;:::-;;;;-1:-1:-1;;;;;11837:25:0;;;;;;;;;;;;;;15998:237;;;;;;;;;;;;;;;;-1:-1:-1;15998:237:0;;;;;;;:::i;12542:40::-;;;:::i;18001:1079::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;18001:1079:0;;;;;;;;;;;;;;;;;:::i;15754:232::-;;;:::i;11908:170::-;;;;;;;;;;;;;;;;-1:-1:-1;11908:170:0;-1:-1:-1;;;;;11908:170:0;;:::i;12430:19::-;;;:::i;15605:137::-;;;;;;;;;;;;;;;;-1:-1:-1;15605:137:0;-1:-1:-1;;;;;15605:137:0;;:::i;12917:57::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;12917:57:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;12458:77;;;:::i;14200:193::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14200:193:0;;;;;;;;;;:::i;15091:220::-;;;;;;;;;;;;;;;;-1:-1:-1;15091:220:0;;;;;;;:::i;13185:188::-;;;;;;;;;;;;;;;;-1:-1:-1;13185:188:0;;:::i;12634:39::-;;;:::i;12268:150::-;;;;;;;;;;;;;;;;-1:-1:-1;12268:150:0;-1:-1:-1;;;;;12268:150:0;;:::i;15323:270::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11869:32;;;:::i;12821:90::-;;;:::i;12765:43::-;;;;;;;;;;;;;:::o;13939:104::-;11570:4;;:25;;;-1:-1:-1;;;11570:25:0;;11584:10;11570:25;;;;;;13998:4;;-1:-1:-1;;;;;11570:4:0;;:13;;:25;;;;;;;;;;;;;;13998:4;11570;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11570:25:0;11562:74;;;;-1:-1:-1;;;11562:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14022:13:::1;14030:4;14022:7;:13::i;:::-;14015:20;;11647:1;13939:104:::0;;;:::o;12086:170::-;12156:17;;-1:-1:-1;;;;;12156:17:0;12142:10;:31;12134:73;;;;;-1:-1:-1;;;12134:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12231:17;;;12218:30;;-1:-1:-1;;;;;;12218:30:0;-1:-1:-1;;;;;12231:17:0;;;12218:30;;;;;;12086:170::o;14728:127::-;11705:4;;:25;;;-1:-1:-1;;;11705:25:0;;11719:10;11705:25;;;;;;-1:-1:-1;;;;;11705:4:0;;;;:13;;:25;;;;;;;;;;;;;;;:4;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11705:25:0;11697:74;;;;-1:-1:-1;;;11697:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14769:11:::1;14783:12;:10;:12::i;:::-;14769:26;;14814:6;14806:41;;;::::0;;-1:-1:-1;;;14806:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14806:41:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;11794:4:0;;:23;;;-1:-1:-1;;;11794:23:0;;11806:10;11794:23;;;;;;-1:-1:-1;;;;;11794:4:0;;;;:11;;:23;;;;;:4;;:23;;;;;;;;:4;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14728:127::o;14405:311::-;14492:10;;-1:-1:-1;;;;;14492:10:0;14478;:24;14470:63;;;;;-1:-1:-1;;;14470:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14544:12;14559:49;14584:7;14593:6;14601;14559:24;:49::i;:::-;-1:-1:-1;;;;;14628:12:0;;;;;;:6;:12;;;;;;14544:64;;-1:-1:-1;14628:12:0;;14627:13;14619:31;;;;;-1:-1:-1;;;14619:31:0;;;;;;;;;;;;-1:-1:-1;;;14619:31:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;14661:12:0;;;;;:6;:12;;;;;:19;;-1:-1:-1;;14661:19:0;14676:4;14661:19;;;;;;14691:6;:17;;;;;;;;;;;;;;-1:-1:-1;;;;;;14691:17:0;;;;;;-1:-1:-1;;14405:311:0:o;12589:38::-;;;:::o;11837:25::-;;;-1:-1:-1;;;;;11837:25:0;;:::o;15998:237::-;16065:4;16082:123;16093:6;16089:1;:10;16082:123;;;16125:21;16136:6;16143:1;16136:9;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16136:9:0;16125:10;:21::i;:::-;16121:73;;;-1:-1:-1;16174:4:0;16167:11;;16121:73;16101:3;;;;;16082:123;;;-1:-1:-1;16222:5:0;15998:237;;;;;:::o;12542:40::-;;;:::o;18001:1079::-;18091:14;18118:12;18133:52;18158:7;18167;18176:8;18133:24;:52::i;:::-;18118:67;;18196:36;18235:33;18263:4;18235:27;:33::i;:::-;18318:26;;18196:72;;-1:-1:-1;18300:15:0;:44;18378:10;18363:25;;;18355:89;;;;-1:-1:-1;;;18355:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18524:10;18537:1;18524:14;18511:10;:27;18496:11;:42;;18488:99;;;;-1:-1:-1;;;18488:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18601:21;18624;18650:52;18697:4;18650:46;:52::i;:::-;18600:102;;;;;18714:14;18733:46;18761:7;18770:8;18733:27;:46::i;:::-;18713:66;;;18806:7;-1:-1:-1;;;;;18796:17:0;:6;-1:-1:-1;;;;;18796:17:0;;18792:281;;;18837:92;18854:16;:33;;;18889:16;18907:11;18920:8;18837:16;:92::i;:::-;18830:99;;;;;;;;;;18792:281;18969:92;18986:16;:33;;;19021:16;19039:11;19052:8;18969:16;:92::i;18001:1079::-;;;;;;:::o;15754:232::-;15799:4;;15816:140;15837:6;:13;15833:17;;15816:140;;;15876:21;15887:6;15894:1;15887:9;;;;;;;15876:21;15872:73;;;15925:4;15918:11;;;;;15872:73;15852:3;;15816:140;;;;15973:5;15966:12;;15754:232;;:::o;11908:170::-;11994:10;;-1:-1:-1;;;;;11994:10:0;11980;:24;11972:56;;;;;-1:-1:-1;;;11972:56:0;;;;;;;;;;;;-1:-1:-1;;;11972:56:0;;;;;;;;;;;;;;;12039:17;:31;;-1:-1:-1;;;;;;12039:31:0;-1:-1:-1;;;;;12039:31:0;;;;;;;;;;11908:170::o;12430:19::-;;;-1:-1:-1;;;;;12430:19:0;;:::o;15605:137::-;-1:-1:-1;;;;;15703:17:0;15660:4;15703:17;;;:11;:17;;;;;;15724:10;15685:15;:35;;;;15684:50;;15605:137::o;12917:57::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12917:57:0;;-1:-1:-1;12917:57:0;:::o;12458:77::-;;;:::o;14200:193::-;11570:4;;:25;;;-1:-1:-1;;;11570:25:0;;11584:10;11570:25;;;;;;14273:4;;-1:-1:-1;;;;;11570:4:0;;:13;;:25;;;;;;;;;;;;;;14273:4;11570;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11570:25:0;11562:74;;;;-1:-1:-1;;;11562:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14290:12:::1;14305:49;14330:7;14339:6;14347;14305:24;:49::i;:::-;14290:64;;14372:13;14380:4;14372:7;:13::i;:::-;14365:20:::0;14200:193;-1:-1:-1;;;;14200:193:0:o;15091:220::-;11570:4;;:25;;;-1:-1:-1;;;11570:25:0;;11584:10;11570:25;;;;;;15156:12;;-1:-1:-1;;;;;11570:4:0;;:13;;:25;;;;;;;;;;;;;;15156:12;11570:4;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11570:25:0;11562:74;;;;-1:-1:-1;;;11562:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15192:6:::1;15188:1;:10;15181:123;;;15224:18;15232:6;15239:1;15232:9;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;15232:9:0::1;15224:7;:18::i;:::-;15220:73;;;-1:-1:-1::0;15273:4:0::1;15220:73;15200:3;::::0;;::::1;::::0;15181:123:::1;;13185:188:::0;13250:11;13274:16;13305:10;13293:9;:22;;;;;;13274:41;;13353:11;13339:25;;:11;:25;;;;;;;13185:188;-1:-1:-1;;;13185:188:0:o;12634:39::-;;;:::o;12268:150::-;12346:10;;-1:-1:-1;;;;;12346:10:0;12332;:24;12324:52;;;;;-1:-1:-1;;;12324:52:0;;;;;;;;;;;;-1:-1:-1;;;12324:52:0;;;;;;;;;;;;;;;12387:4;:23;;-1:-1:-1;;;;;;12387:23:0;-1:-1:-1;;;;;12387:23:0;;;;;;;;;;12268:150::o;15323:270::-;15372:21;15406:11;15437:6;15432:154;15453:6;:13;15449:17;;15432:154;;;15492:21;15503:6;15510:1;15503:9;;;;;;;15492:21;15488:87;;;15550:6;15557:1;15550:9;;;;;;;;;;;;;;;;;;15533:14;;15550:9;15538:8;;;-1:-1:-1;;;;;15550:9:0;;;;15533:4;;:14;;;;;;;;;;;:26;-1:-1:-1;;;;;15533:26:0;;;-1:-1:-1;;;;;15533:26:0;;;;;15488:87;15468:3;;15432:154;;;;15323:270;;:::o;11869:32::-;;;-1:-1:-1;;;;;11869:32:0;;:::o;12821:90::-;12861:16;12897:6;12890:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12890:13:0;;;;;;;;;;;;;;;;;;;;;;;12821:90;:::o;16247:1100::-;-1:-1:-1;;;;;16400:22:0;;16296:4;16400:22;;;:16;:22;;;;;:29;16386:123;16435:11;16431:15;;:1;:15;16386:123;;;-1:-1:-1;;;;;16468:22:0;;;;;;:16;:22;;;;;:29;;;;;;;;;;16448:3;16386:123;;;;16576:22;16601:35;16620:15;16601:18;:35::i;:::-;-1:-1:-1;;;;;16681:22:0;;16647:31;16681:22;;;:16;:22;;;;;:40;;16576:60;;-1:-1:-1;16647:31:0;;16681:40;;;;;;;;;;;;;;;;;;;;;;;16862:21;;16681:40;;-1:-1:-1;16844:15:0;:39;16912:10;16898:24;;16894:413;;;16940:21;16963;16989:52;17036:4;16989:46;:52::i;:::-;-1:-1:-1;17080:15:0;17056:39;;;-1:-1:-1;;;;;17110:17:0;;17056:21;17110:17;;;:11;:17;;;;;:35;17160:28;;;;:47;;;;17222:28;;;;:47;;;;-1:-1:-1;17160:28:0;;-1:-1:-1;17284:11:0;;-1:-1:-1;;;17284:11:0;16894:413;-1:-1:-1;17334:5:0;;16247:1100;-1:-1:-1;;;;16247:1100:0:o;14867:212::-;14907:12;;14932:140;14953:6;:13;14949:17;;14932:140;;;14992:18;15000:6;15007:1;15000:9;;;;;;;14992:18;14988:73;;;15041:4;15031:14;;14988:73;14968:3;;14932:140;;;;14867:212;:::o;7376:478::-;7465:12;7491:14;7507;7525:26;7536:6;7544;7525:10;:26::i;:::-;7689:32;;;-1:-1:-1;;7689:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7679:43;;;;;;-1:-1:-1;;;;;;7592:251:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7582:262;;;;;;;;;7376:478;-1:-1:-1;;;;;7376:478:0:o;13497:430::-;13570:36;13619:22;13644:35;13663:15;13644:18;:35::i;:::-;13619:60;;13778:27;13833:11;13808:36;;13809:16;13828:1;13809:20;13808:36;;;;;;;;13778:66;;13874:16;:22;13891:4;-1:-1:-1;;;;;13874:22:0;-1:-1:-1;;;;;13874:22:0;;;;;;;;;;;;13897:21;13874:45;;;;;;;;;;;;;;;;;;;;13855:64;;13497:430;;;;;:::o;5151:1058::-;5237:21;5260;5283;5334:23;:21;:23::i;:::-;5317:40;;5402:4;-1:-1:-1;;;;;5387:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5387:43:0;5460;;;-1:-1:-1;;;5460:43:0;;;;5387;;-1:-1:-1;;;;;;5460:41:0;;;;;:43;;;;;5387;;5460;;;;;;;;:41;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5460:43:0;5683:34;;;-1:-1:-1;;;5683:34:0;;;;5460:43;;-1:-1:-1;5618:16:0;;;;;;-1:-1:-1;;;;;5683:32:0;;;;;:34;;;;;;;;;;;;;;:32;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5683:34:0;;;;;;;;;;;;;-1:-1:-1;5683:34:0;;-1:-1:-1;5683:34:0;-1:-1:-1;5732:36:0;;;;;;;;5728:474;;5854:35;;;6000:62;;;6005:39;6025:8;6035;6005:19;:39::i;:::-;:42;-1:-1:-1;;;;;6000:48:0;:62;5980:82;;;;;6128:62;;;6133:39;6153:8;6163;6133:19;:39::i;:::-;:42;-1:-1:-1;;;;;6128:48:0;:62;6108:82;;;;;-1:-1:-1;5728:474:0;5151:1058;;;;;;;;:::o;6935:349::-;7010:14;7026;7071:6;-1:-1:-1;;;;;7061:16:0;:6;-1:-1:-1;;;;;7061:16:0;;;7053:66;;;;-1:-1:-1;;;7053:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7158:6;-1:-1:-1;;;;;7149:15:0;:6;-1:-1:-1;;;;;7149:15:0;;:53;;7187:6;7195;7149:53;;;7168:6;7176;7149:53;7130:72;;-1:-1:-1;7130:72:0;-1:-1:-1;;;;;;7221:20:0;;7213:63;;;;;-1:-1:-1;;;7213:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6935:349;;;;;:::o;17551:442::-;17709:14;17769:40;;:::i;:::-;17812:112;;;;;;;;17901:11;17877:20;17856:18;:41;17855:57;;;;;;-1:-1:-1;;;;;17812:112:0;;;17769:155;-1:-1:-1;17947:38:0;:26;17769:155;17964:8;17947:16;:26::i;:::-;:36;:38::i;:::-;17935:50;;;17551:442;-1:-1:-1;;;;;;17551:442:0:o;5020:123::-;5109:25;:15;:25;;5020:123::o;4269:246::-;4350:16;;:::i;:::-;4401:1;4387:11;-1:-1:-1;;;;;4387:15:0;;4379:51;;;;;-1:-1:-1;;;4379:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4448:59;;;;;;;;;;-1:-1:-1;;;;;4458:48:0;;-1:-1:-1;;;3473:3:0;4459:32;;;;4458:48;;;;;;-1:-1:-1;;;;;4448:59:0;;;;4441:66;;4269:246;;;;:::o;4008:253::-;4075:16;;:::i;:::-;4104:6;4129;;;:54;;-1:-1:-1;;4175:7:0;;-1:-1:-1;;;;;4170:13:0;4144:17;;;;4165:1;4144:17;4165:1;4139:27;;;;;:44;4129:54;4121:102;;;;-1:-1:-1;;;4121:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4241:12;;;;;;;;;;;;;4008:253;-1:-1:-1;;;4008:253:0:o;4814:130::-;4914:7;3473:3;4914:21;;4814:130::o;-1:-1:-1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://83314b7e7ca3046fc3701fde17815d40a9eb91c949a112aedcad08e2b26fc463

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Jobs for Earning KP2R

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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