ETH Price: $2,229.48 (-5.35%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Match Swap1469400732026-01-27 1:55:237 days ago1769478923IN
0xD6B1E459...a8521695b
0.01292789398845 ETH0.0000000040420.0000048
Swap1469400722026-01-27 1:55:217 days ago1769478921IN
0xD6B1E459...a8521695b
0.000000130584542 ETH0.00000001590.00002436
Match Swap1469400532026-01-27 1:54:437 days ago1769478883IN
0xD6B1E459...a8521695b
0 ETH0.0000000041240.0000048
Swap1469400522026-01-27 1:54:417 days ago1769478881IN
0xD6B1E459...a8521695b
0.010002819918236 ETH0.0000000147220.00002436
Match Swap1469400392026-01-27 1:54:157 days ago1769478855IN
0xD6B1E459...a8521695b
0 ETH0.0000000041260.0000048
Swap1469400392026-01-27 1:54:157 days ago1769478855IN
0xD6B1E459...a8521695b
0.011691837016397 ETH0.0000000147060.00002437
Match Swap1469400272026-01-27 1:53:517 days ago1769478831IN
0xD6B1E459...a8521695b
0.00308884565955 ETH0.0000000040240.0000048
Swap1469400262026-01-27 1:53:497 days ago1769478829IN
0xD6B1E459...a8521695b
0.000000094984509 ETH0.0000000158890.00002437
Match Swap1469400092026-01-27 1:53:157 days ago1769478795IN
0xD6B1E459...a8521695b
0.0061784374743 ETH0.0000000040840.00000481
Swap1469400092026-01-27 1:53:157 days ago1769478795IN
0xD6B1E459...a8521695b
0.00000009489606 ETH0.0000000245710.00003983
Match Swap1469399912026-01-27 1:52:397 days ago1769478759IN
0xD6B1E459...a8521695b
0.0123507426105 ETH0.0000000041110.00000487
Swap1469399902026-01-27 1:52:377 days ago1769478757IN
0xD6B1E459...a8521695b
0.000000125163272 ETH0.0000000256670.00004186
Match Swap1469399712026-01-27 1:51:597 days ago1769478719IN
0xD6B1E459...a8521695b
0 ETH0.0000000041770.00000487
Swap1469399712026-01-27 1:51:597 days ago1769478719IN
0xD6B1E459...a8521695b
0.002797806657954 ETH0.0000000230210.00004097
Match Swap1469399562026-01-27 1:51:297 days ago1769478689IN
0xD6B1E459...a8521695b
0 ETH0.0000000041990.00000485
Swap1469399562026-01-27 1:51:297 days ago1769478689IN
0xD6B1E459...a8521695b
0.005591808638259 ETH0.000000014850.00002441
Match Swap1469399312026-01-27 1:50:397 days ago1769478639IN
0xD6B1E459...a8521695b
0 ETH0.000000004250.00000486
Swap1469399312026-01-27 1:50:397 days ago1769478639IN
0xD6B1E459...a8521695b
0.011180833134859 ETH0.0000000150020.00002442
Match Swap1469399132026-01-27 1:50:037 days ago1769478603IN
0xD6B1E459...a8521695b
0.0041516634579 ETH0.0000000041660.00000489
Swap1469399122026-01-27 1:50:017 days ago1769478601IN
0xD6B1E459...a8521695b
0.000000095014707 ETH0.0000000167790.0000257
Match Swap1469398922026-01-27 1:49:217 days ago1769478561IN
0xD6B1E459...a8521695b
0.00829649349795 ETH0.0000000041030.0000049
Swap1469398922026-01-27 1:49:217 days ago1769478561IN
0xD6B1E459...a8521695b
0.000000094866497 ETH0.0000000189940.00002994
Match Swap1469398642026-01-27 1:48:257 days ago1769478505IN
0xD6B1E459...a8521695b
0 ETH0.0000000041810.00000487
Swap1469398642026-01-27 1:48:257 days ago1769478505IN
0xD6B1E459...a8521695b
0.010500825091053 ETH0.0000000297330.00005443
Match Swap1469375772026-01-27 0:32:117 days ago1769473931IN
0xD6B1E459...a8521695b
0.01367695274085 ETH0.0000000071290.00000973
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1469400762026-01-27 1:55:297 days ago1769478929
0xD6B1E459...a8521695b
0.000614883129362 ETH
1469400762026-01-27 1:55:297 days ago1769478929
0xD6B1E459...a8521695b
0.012313010859087 ETH
1469400732026-01-27 1:55:237 days ago1769478923
0xD6B1E459...a8521695b
0.000000123122799 ETH
1469400732026-01-27 1:55:237 days ago1769478923
0xD6B1E459...a8521695b
0.000000007461742 ETH
1469400562026-01-27 1:54:497 days ago1769478889
0xD6B1E459...a8521695b
0.01 ETH
1469400532026-01-27 1:54:437 days ago1769478883
0xD6B1E459...a8521695b
0.000002712494049 ETH
1469400532026-01-27 1:54:437 days ago1769478883
0xD6B1E459...a8521695b
0.0000001 ETH
1469400532026-01-27 1:54:437 days ago1769478883
0xD6B1E459...a8521695b
0.000000007424186 ETH
1469400492026-01-27 1:54:357 days ago1769478875
0xD6B1E459...a8521695b
0.011689 ETH
1469400392026-01-27 1:54:157 days ago1769478855
0xD6B1E459...a8521695b
0.000002712685685 ETH
1469400392026-01-27 1:54:157 days ago1769478855
0xD6B1E459...a8521695b
0.00000011689 ETH
1469400392026-01-27 1:54:157 days ago1769478855
0xD6B1E459...a8521695b
0.000000007440712 ETH
1469400302026-01-27 1:53:577 days ago1769478837
0xD6B1E459...a8521695b
0.0001473151958 ETH
1469400302026-01-27 1:53:577 days ago1769478837
0xD6B1E459...a8521695b
0.002941530463749 ETH
1469400272026-01-27 1:53:517 days ago1769478831
0xD6B1E459...a8521695b
0.000000087474754 ETH
1469400272026-01-27 1:53:517 days ago1769478831
0xD6B1E459...a8521695b
0.000000007509754 ETH
1469400122026-01-27 1:53:217 days ago1769478801
0xD6B1E459...a8521695b
0.00029636028048 ETH
1469400122026-01-27 1:53:217 days ago1769478801
0xD6B1E459...a8521695b
0.005882077193819 ETH
1469400092026-01-27 1:53:157 days ago1769478795
0xD6B1E459...a8521695b
0.000000087392405 ETH
1469400092026-01-27 1:53:157 days ago1769478795
0xD6B1E459...a8521695b
0.000000007503655 ETH
1469399942026-01-27 1:52:457 days ago1769478765
0xD6B1E459...a8521695b
0.000589200174721 ETH
1469399942026-01-27 1:52:457 days ago1769478765
0xD6B1E459...a8521695b
0.011761542435778 ETH
1469399912026-01-27 1:52:397 days ago1769478759
0xD6B1E459...a8521695b
0.00000011762612 ETH
1469399912026-01-27 1:52:397 days ago1769478759
0xD6B1E459...a8521695b
0.000000007537152 ETH
1469399752026-01-27 1:52:077 days ago1769478727
0xD6B1E459...a8521695b
0.002795 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
openSwap

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 190 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IOpenOracle} from "./interfaces/IOpenOracle.sol";
import {IWETH} from "./interfaces/IWETH.sol";
import {IBountyERC20} from "./interfaces/IBountyERC20.sol";
import {oracleFeeReceiver} from "./oracleFeeReceiver.sol";

interface IOPGrantFaucet {
    function feeRebateEligible() external view returns (bool);
    function openSwapFeeRebate(
        address swapper,
        address sellToken,
        uint256 sellAmt,
        uint256 settlementTime,
        bool timeType,
        uint256 startingFee,
        uint256 maxFee,
        uint256 initLiquidity,
        uint256 toleranceRange,
        uint256 swapFee,
        uint256 protocolFee
    ) external;
}

/**
 * @title openSwap
 * @notice Uses openOracle for swap execution price
           Different from simpleSwapper since there's no choice about whether to fulfill
           simpleSwapper flow is deposit sellToken -> oracle game ends in price -> anyone has choice to swap against that price
           openSwap flow is deposit sellToken -> someone matches with enough buyToken -> oracle game ends in price -> swap executed against price
           This swapping method may open up oracle price manipulation opportunities. We try to cover two manipulation strategies here:
                      https://openprices.gitbook.io/openoracle-docs/contents/considerations#a-stronger-form-of-manipulation
                      https://openprices.gitbook.io/openoracle-docs/contents/considerations#manipulation-without-a-swap-fee
           Biasing the mean settled oracle price seems costly.
           In general, this is a very complex game and we probably need to play it in the real world to be sure about the economics.
 * @author OpenOracle Team
 * @custom:version 0.1.6
 * @custom:documentation https://openprices.gitbook.io/openoracle-docs
 */

contract openSwap is ReentrancyGuard {
    using SafeERC20 for IERC20;

    IBountyERC20 public immutable bounty;
    IOpenOracle public immutable oracle;
    address public immutable WETH = 0x4200000000000000000000000000000000000006;
    IOPGrantFaucet public immutable OPGrantFaucet;

    error InvalidInput(string);

    constructor(address oracle_, address bounty_, address OPGrantFaucet_) {
        oracle = IOpenOracle(oracle_);
        bounty = IBountyERC20(bounty_);
        OPGrantFaucet = IOPGrantFaucet(OPGrantFaucet_);
    }

    mapping (uint256 => Swap) public swaps;
    uint256 public nextSwapId = 1;

    mapping (uint256 => uint256) public reportIdToSwapId;
    mapping (address => mapping(address => uint256)) public tempHolding;

    struct Swap {
        uint256 sellAmt; // amount of sellToken the swapper is selling
        uint256 minOut; // minimum tokens to swapper of buyToken when finished aside from full refunds
        uint256 minFulfillLiquidity; // minimum amount of buyToken the matcher must put in the contract
        uint256 expiration; // timestamp at which swapper's swap can no longer be matched
        uint256 reportId; // oracle game reportId
        uint256 gasCompensation; // swapper pays matcher this amount of wei to call match
        uint48 start; // timestamp at which order is matched
        uint24 fulfillmentFee; // 1000 = 0.01%, fee paid to matcher
        address sellToken; // address for token swapper is selling
        address buyToken; // address for token swapper wants
        address swapper; // msg.sender of swapper
        address matcher; // msg.sender of matcher
        address feeRecipient; // contract holding protocol fees from oracle game
        bool active; // true means swap created
        bool matched; // true means swap matched by matcher
        bool finished; // true means swap finished
        bool cancelled; // true means swap cancelled by swapper
        OracleParams oracleParams;
        SlippageParams slippageParams;
        FulfillFeeParams fulfillFeeParams;
        BountyParams bountyParams;
    }

    struct OracleParams {
        uint256 settlerReward; // settler reward in oracle game. settle function executes the swap.
        uint256 initialLiquidity; // oracle game initial liquidity in sellToken
        uint256 escalationHalt; // amount of sellToken at which oracle game stops escalating
        uint48 settlementTime; // round length of oracle game. if timeType true, in seconds, if false, blocks
        uint48 latencyBailout; // the swap can be can cancelled and refunded after this number of seconds pass with a matched swap but no oracle game initial report 
        uint48 maxGameTime; // if oracle game takes longer than this time in seconds, refund available. does not respect timeType, i.e., is ALWAYS in seconds
        uint32 blocksPerSecond; // network's blocks per second. 500 means 0.5 blocks per second versus wall clock
        uint24 disputeDelay; // disputes must wait this long after the last report to fire in the oracle game. if timeType true, in seconds, if false, blocks
        uint24 swapFee; // 1000 = 0.01%, swap fee amount paid to prior reporter in oracle game
        uint24 protocolFee; // 1000 = 0.01%, percentage levied of each swap in oracle game for protocolFeeRecipient's benefit.
        uint16 multiplier; // oracle game multiplier, 110 = 1.1x
        bool timeType; // true means oracle game is played in seconds, false for blocks
    }

    struct SlippageParams {
        uint256 priceTolerated; // one of two max slippage inputs. current price at time of swap, formatted as priceTolerated = 225073570923495617630012810 implies (1e30 / priceTolerated) = $4442.99 for WETH/USDC trading (sellToken WETH or ETH and buyToken USDC)
                                //should match oracle game price calculation (respecting PRICE_PRECISION semantics)
        uint24 toleranceRange; // 100000 = 1%, max slippage against priceTolerated
    }

    struct FulfillFeeParams {
        uint48 startFulfillFeeIncrease; // timestamp at which order is created
        uint24 maxFee; // 1000 = 0.01%, max fulfillment fee you can pay
        uint24 startingFee; // 1000 = 0.01%, starting fee level
        uint24 roundLength; // round length in seconds
        uint16 growthRate; // 15000 = 1.5x per round
        uint16 maxRounds; // max rounds of increase
    }

    struct BountyParams {
        uint256 totalAmtDeposited; // max amount of bountyToken paid in the initial report bounty 
        uint256 bountyStartAmt; // starting amount of bountyToken in the initial report bounty
        uint256 roundLength; // length of time, in seconds, for each escalation round
        address bountyToken; // token bounty is paid in. address(0) is for ETH
        uint16 bountyMultiplier; // amount bounty escalate per round from bountyStartAmt. 14000 = 1.4x per round
        uint16 maxRounds; // maximum rounds of escalation
    }

    event SwapCreated(uint256 indexed swapId, address indexed swapper, uint256 sellAmt, address sellToken, uint256 minOut, address buyToken, uint256 minFulfillLiquidity, uint256 expiration, uint256 priceTolerated, uint256 toleranceRange, FulfillFeeParams fulfillFeeParams, uint256 blockTimestamp, OracleParams oracleParams, BountyParams bountyParams, uint256 gasCompensation);
    event SwapCancelled(uint256 swapId);
    event SingleFee(uint256 swapId, uint256 fulfillmentFee);
    event SwapRefunded(uint256 swapId, address indexed swapper, address indexed matcher);
    event SwapExecuted(address indexed swapper, address indexed matcher, uint256 swapId, uint256 sellTokenAmt, uint256 buyTokenAmt);
    event SwapMatched(uint256 swapId, uint256 fulfillmentFee, address indexed matcher, uint256 reportId, address indexed swapper);
    event FeesTransferred(address indexed swapper, address indexed matcher, address buyToken, address sellToken, uint256 feesBuyToken, uint256 feesSellToken, address feeRecipientContract);

    event SlippageBailout(uint256 swapId);
    event ImpliedBlocksPerSecondBailout(uint256 swapId);

    /**
     * @notice Creates a swap, sending sellAmt of sellToken into the contract.
     * @param sellAmt Amount of sellToken to sell
     * @param sellToken Token address to sell
     * @param minOut Minimum amount of buyToken to receive
     * @param buyToken Token address to buy
     * @param minFulfillLiquidity Matcher must supply this amount of buyToken. Should include a buffer above market price to prevent refunds.
     * @param expiration Number of seconds after this transaction lands in a block when swap can no longer be matched.
     * @param oracleParams Oracle game parameters: see OracleParams for comments
     * @param slippageParams Slippage parameters: see SlippageParams for comments
     * @param fulfillFeeParams Fulfillment fee parameters: see FulfillFeeParams for comments
     * @param bountyParams Bounty parameters: see BountyParams for comments
     * @return swapId The final settled price
     */
    function swap(uint256 sellAmt, address sellToken, uint256 minOut, address buyToken, uint256 minFulfillLiquidity, uint256 expiration, uint256 gasCompensation, OracleParams memory oracleParams, SlippageParams memory slippageParams, FulfillFeeParams memory fulfillFeeParams, BountyParams memory bountyParams) external payable nonReentrant returns(uint256 swapId) {
        uint256 settlerReward = oracleParams.settlerReward;
        uint256 extraEth;
        uint256 bountyAmount = bountyParams.totalAmtDeposited;

        if (bountyParams.bountyToken == address(0)){
            extraEth = gasCompensation + bountyAmount + settlerReward + 1;
        } else {
            extraEth = gasCompensation + settlerReward + 1;
        }

        if (sellToken != address(0) && msg.value != extraEth) revert InvalidInput("msg.value wrong");
        if (sellToken == address(0) && msg.value != sellAmt + extraEth) revert InvalidInput("msg.value vs sellAmt mismatch");

        if (sellToken == buyToken) revert InvalidInput("sellToken = buyToken");
        if (sellToken == WETH && buyToken == address(0) || sellToken == address(0) && buyToken == WETH) revert InvalidInput("sellToken = buyToken");

        if (sellAmt == 0 || minOut == 0 || minFulfillLiquidity == 0) revert InvalidInput("zero amounts");
        if (fulfillFeeParams.maxFee >= 1e7) revert InvalidInput("fulfillmentFee");

        if (slippageParams.priceTolerated == 0 || slippageParams.toleranceRange == 0 || slippageParams.toleranceRange > 1e7) revert InvalidInput("slippage");

        if (oracleParams.settlerReward < 100
            || oracleParams.swapFee == 0 
            || oracleParams.settlementTime == 0 
            || oracleParams.initialLiquidity == 0
            || oracleParams.blocksPerSecond == 0
            || oracleParams.disputeDelay >= oracleParams.settlementTime
            || oracleParams.escalationHalt < oracleParams.initialLiquidity
            || oracleParams.settlementTime > 4 * 60 * 60
            || oracleParams.swapFee + oracleParams.protocolFee >= 1e7
            || oracleParams.maxGameTime < oracleParams.settlementTime * 20
            || oracleParams.maxGameTime > 604800
            ) revert InvalidInput("oracleParams");

        if (fulfillFeeParams.maxFee == 0
            || fulfillFeeParams.startingFee == 0
            || fulfillFeeParams.growthRate == 0
            || fulfillFeeParams.maxRounds == 0
            || fulfillFeeParams.roundLength == 0
            || fulfillFeeParams.maxFee < fulfillFeeParams.startingFee
            || fulfillFeeParams.maxFee > 1e7
            ) revert InvalidInput("fulfillFeeParams");

        if (bountyParams.maxRounds == 0 
           || bountyParams.bountyStartAmt == 0 
           || bountyParams.totalAmtDeposited == 0 
           || bountyParams.roundLength == 0
           || bountyParams.bountyStartAmt > bountyParams.totalAmtDeposited
           || bountyParams.maxRounds > 100
           || bountyParams.bountyMultiplier < 10001
           ) revert InvalidInput("bountyParams");

        swapId = nextSwapId++;
        Swap storage s = swaps[swapId];

        s.swapper = msg.sender;
        s.sellAmt = sellAmt;
        s.sellToken = sellToken;
        s.minOut = minOut;
        s.buyToken = buyToken;
        s.minFulfillLiquidity =  minFulfillLiquidity;
        s.expiration = block.timestamp + expiration;
        s.active = true;
        s.oracleParams = oracleParams;
        s.slippageParams = slippageParams;
        s.gasCompensation = gasCompensation;
        s.fulfillFeeParams = fulfillFeeParams;
        s.fulfillFeeParams.startFulfillFeeIncrease = uint48(block.timestamp);
        s.bountyParams = bountyParams;

        if (sellToken != address(0)) {
            IERC20(sellToken).safeTransferFrom(msg.sender, address(this), sellAmt);
        }

        if (bountyParams.bountyToken != address(0)) {
            IERC20(bountyParams.bountyToken).safeTransferFrom(msg.sender, address(this), bountyParams.totalAmtDeposited);
        }

        emit SwapCreated(swapId, s.swapper, sellAmt, sellToken, minOut, buyToken, minFulfillLiquidity, s.expiration, slippageParams.priceTolerated, slippageParams.toleranceRange, s.fulfillFeeParams, block.timestamp, s.oracleParams, s.bountyParams, gasCompensation);
        if (fulfillFeeParams.maxFee == fulfillFeeParams.startingFee && fulfillFeeParams.maxRounds == 1) {
            emit SingleFee(swapId, fulfillFeeParams.maxFee);
        }

    }

    /**
     * @notice Matcher matches swap, sending tokens into contract.
     * @param swapId Unique identifier of swapping instance
     * @param paramHashExpected Hash of Swap struct expected. Helps protect against adversarial RPCs.
                                Checks against keccak256(abi.encode(swaps[swapId]))
    */
    function matchSwap(uint256 swapId, bytes32 paramHashExpected) external payable nonReentrant {
        Swap storage s = swaps[swapId];
        FulfillFeeParams memory f = s.fulfillFeeParams;
        if (paramHashExpected != keccak256(abi.encode(s))) revert InvalidInput("params");

        if (s.buyToken != address(0) && msg.value != 0) revert InvalidInput("msg.value must be 0");
        if (s.buyToken == address(0) && msg.value != s.minFulfillLiquidity) revert InvalidInput("msg.value");

        if (s.cancelled) revert InvalidInput("swap cancelled");
        if (s.matched) revert InvalidInput("swap matched");
        if (!s.active) revert InvalidInput("swap not active");
        if (s.finished) revert InvalidInput("finished");
        if (block.timestamp > s.expiration) revert InvalidInput("expired");

        s.matched = true;
        s.matcher = msg.sender;
        s.start = uint48(block.timestamp);
        s.fulfillmentFee = uint24(calcFee(f.maxFee, f.startingFee, f.growthRate, f.maxRounds, f.startFulfillFeeIncrease, f.roundLength));

        payEth(msg.sender, s.gasCompensation);

        if(s.buyToken != address(0)) {
            IERC20(s.buyToken).safeTransferFrom(msg.sender, address(this), s.minFulfillLiquidity);
        }

        if (s.oracleParams.protocolFee > 0) {
            address sellToken;
            address buyToken;

            s.sellToken == address(0) ? sellToken = WETH : sellToken = s.sellToken;
            s.buyToken == address(0) ? buyToken = WETH : buyToken = s.buyToken;
            oracleFeeReceiver feeReceiver = new oracleFeeReceiver(address(this), swapId, address(oracle), sellToken, buyToken);
            s.feeRecipient = address(feeReceiver);
        }

        uint256 reportId = oracleGame(s);
        uint256 _value;

        if (s.bountyParams.bountyToken == address(0)){
            _value = s.bountyParams.totalAmtDeposited;
        } else {
            _value = 0;
            IERC20(s.bountyParams.bountyToken).forceApprove(address(bounty), s.bountyParams.totalAmtDeposited);
        }

        bounty.createOracleBountyFwd{value: _value} (
            reportId,
            s.bountyParams.bountyStartAmt, // starting bounty
            s.swapper, // bounty creator
            address(this), // bounty editor
            s.bountyParams.bountyMultiplier, // bounty escalation per second
            s.bountyParams.maxRounds, // max seconds of escalation
            true, // timeType, true means timestamp-based (seconds)
            0, // forward start of bounty (0 means immediately)
            s.bountyParams.bountyToken, // bountyToken (address(0) = ETH in bounty contract)
            s.bountyParams.totalAmtDeposited, // max bounty paid
            s.bountyParams.roundLength, // round length of bounty escalation
            false, // remaining bounty returned to creator on initial report (handled in openSwap logic)
            s.oracleParams.latencyBailout
        );

        if (s.bountyParams.bountyToken != address(0)){
            IERC20(s.bountyParams.bountyToken).forceApprove(address(bounty), 0);
        }

        s.reportId = reportId;
        reportIdToSwapId[reportId] = swapId;

        emit SwapMatched(swapId, s.fulfillmentFee, s.matcher, reportId, s.swapper);

    }

    /**
     * @notice Swapper cancels swap, receiving tokens back.
               Must be called prior to match.
     * @param swapId Unique identifier of swapping instance
    */
    function cancelSwap(uint256 swapId) external nonReentrant {
        Swap storage s = swaps[swapId];
        OracleParams memory o = s.oracleParams;

        if (msg.sender != s.swapper) revert InvalidInput("not swapper");
        if (s.matched) revert InvalidInput("already matched");
        if (!s.active) revert InvalidInput("not active");
        if (s.cancelled) revert InvalidInput("cancelled");
        if (s.finished) revert InvalidInput("finished");

        s.cancelled = true;
        if (s.bountyParams.bountyToken == address(0)){
            if (s.sellToken != address(0)) {
                IERC20(s.sellToken).safeTransfer(msg.sender, s.sellAmt);
                payEth(s.swapper, s.gasCompensation + s.bountyParams.totalAmtDeposited + o.settlerReward + 1);
            } else {
                payEth(s.swapper, s.sellAmt + s.gasCompensation + s.bountyParams.totalAmtDeposited + o.settlerReward + 1);
            }
        } else {
            if (s.sellToken != address(0)) {
                IERC20(s.sellToken).safeTransfer(msg.sender, s.sellAmt);
                IERC20(s.bountyParams.bountyToken).safeTransfer(msg.sender, s.bountyParams.totalAmtDeposited);
                payEth(s.swapper, s.gasCompensation + o.settlerReward + 1);
            } else {
                IERC20(s.bountyParams.bountyToken).safeTransfer(msg.sender, s.bountyParams.totalAmtDeposited);
                payEth(s.swapper, s.sellAmt + s.gasCompensation + o.settlerReward + 1);
            }
        }

        emit SwapCancelled(swapId);
    }

    function oracleGame(Swap memory s) internal returns (uint256 reportId) {
        OracleParams memory o = s.oracleParams;
        address token1;
        address token2;

        if (s.sellToken == address(0)){
            token1 = WETH;
            token2 = s.buyToken;
        } else if (s.buyToken == address(0)) {
            token1 = s.sellToken;
            token2 = WETH;
        } else {
            token1 = s.sellToken;
            token2 = s.buyToken;
        }

        IOpenOracle.CreateReportParams memory params = IOpenOracle.CreateReportParams({
            exactToken1Report: o.initialLiquidity,
            escalationHalt: o.escalationHalt,
            settlerReward: o.settlerReward,
            token1Address: token1,
            settlementTime: o.settlementTime,
            disputeDelay: o.disputeDelay,
            protocolFee: o.protocolFee,
            token2Address: token2,
            callbackGasLimit: 1000000,
            feePercentage: o.swapFee,
            multiplier: o.multiplier,
            timeType: o.timeType,
            trackDisputes: false,
            keepFee: true,
            callbackContract: address(this),
            callbackSelector: this.onSettle.selector,
            protocolFeeRecipient: s.feeRecipient
        });

        /* ------------ create report instance ------------ */
        reportId = oracle.createReportInstance{value: o.settlerReward + 1}(params);
        return reportId;

    }

    /* -------- oracle callback -------- */
    function onSettle(uint256 id, uint256 price, uint256, address, address)
        external
        payable
        nonReentrant
    {
        if (msg.sender != address(oracle)) revert InvalidInput("invalid sender");
        uint256 swapId = reportIdToSwapId[id];
        Swap storage s = swaps[swapId];
        if (id != s.reportId) revert InvalidInput("wrong reportId");
        if (s.finished) revert InvalidInput("finished");
        s.finished = true;

        IOpenOracle.ReportStatus memory rs = oracle.reportStatus(id);
        uint256 oracleAmount1 = rs.currentAmount1;
        uint256 oracleAmount2 = rs.currentAmount2;
        uint256 fulfillAmt = (s.sellAmt * oracleAmount2) / oracleAmount1;
        fulfillAmt -= fulfillAmt * s.fulfillmentFee / 1e7;
        bool slippageOk = toleranceCheck(price, s.slippageParams.priceTolerated, s.slippageParams.toleranceRange);
        bool blocksPerSecondOk = impliedBlocksPerSecond(s.oracleParams.timeType, rs.reportTimestamp, rs.lastReportOppoTime, s.oracleParams.blocksPerSecond);

        if (fulfillAmt > s.minFulfillLiquidity || fulfillAmt < s.minOut || !slippageOk) emit SlippageBailout(swapId);
        if (!blocksPerSecondOk) emit ImpliedBlocksPerSecondBailout(swapId);

        if (fulfillAmt > s.minFulfillLiquidity || fulfillAmt < s.minOut || !slippageOk || !blocksPerSecondOk) {
            refund(s.sellToken, s.sellAmt, s.swapper, s.buyToken, s.minFulfillLiquidity, s.matcher);
            emit SwapRefunded(swapId, s.swapper, s.matcher);
        } else {
            //complete swap
            if (s.buyToken != address(0)){
                _transferTokens(s.buyToken, address(this), s.swapper, fulfillAmt);
                _transferTokens(s.buyToken, address(this), s.matcher, s.minFulfillLiquidity - fulfillAmt);
                if (s.sellToken != address(0)) {
                    _transferTokens(s.sellToken, address(this), s.matcher, s.sellAmt);
                } else {
                    payEth(s.matcher, s.sellAmt);
                }
            } else {
                payEth(s.swapper, fulfillAmt);
                payEth(s.matcher, s.minFulfillLiquidity - fulfillAmt);
                _transferTokens(s.sellToken, address(this), s.matcher, s.sellAmt);
            }

            bool rebateAvailable;
            try OPGrantFaucet.feeRebateEligible() returns (bool ok) {
                rebateAvailable = ok;
            } catch {
                rebateAvailable = false;
            }

            if (rebateAvailable){
                try OPGrantFaucet.openSwapFeeRebate(
                s.swapper,
                s.sellToken, 
                s.sellAmt, 
                s.oracleParams.settlementTime, 
                s.oracleParams.timeType, 
                s.fulfillFeeParams.startingFee, 
                s.fulfillFeeParams.maxFee, 
                s.oracleParams.initialLiquidity, 
                s.slippageParams.toleranceRange, 
                s.oracleParams.swapFee, 
                s.oracleParams.protocolFee) {
                } catch {
                    // swallow
                } 
            }

            emit SwapExecuted(s.swapper, s.matcher, swapId, s.sellAmt, fulfillAmt);

        }

        if (s.oracleParams.protocolFee > 0) {
            grabOracleGameFees(s);
        }

        // maxRounds > 0 checks if bounty exists for this reportId
        IBountyERC20.Bounties memory b = bounty.Bounty(id);
        if (b.maxRounds > 0 && !b.recalled) {
            try bounty.recallBounty(id) {} catch {}
        }

    }

    /**
     * @notice Lets users bail out of a swapId and both swapper and matcher receive tokens back.
               Anyone-can-call.
               Three bail out conditions:
                    1. reportId distributed but swapId not finished
                    2. latencyBailout time in seconds has passed without an oracle initial report since oracle game started
                    3. maxGameTime has passed since oracle game started 
     * @param swapId Unique identifier of swapping instance
    */
    function bailOut(uint256 swapId) external nonReentrant {
        Swap storage s = swaps[swapId];
        IOpenOracle.ReportStatus memory rs = oracle.reportStatus(s.reportId);

        if (s.finished) revert InvalidInput("finished");
        if (!s.active) revert InvalidInput("not active");
        if (!s.matched) revert InvalidInput("not matched");
        if (s.cancelled) revert InvalidInput("cancelled");
        if (s.reportId == 0) revert InvalidInput("doesnt exist");

        bool isLatent;
        uint256 latency = s.oracleParams.latencyBailout;

        isLatent = block.timestamp > s.start + latency;
        isLatent = isLatent && (rs.reportTimestamp == 0);

        bool isGameTooLong = block.timestamp - s.start > s.oracleParams.maxGameTime;

        if (rs.isDistributed && !s.finished || isLatent || isGameTooLong){
            s.finished = true;

            IBountyERC20.Bounties memory b = bounty.Bounty(s.reportId);
            if (b.maxRounds > 0 && !b.recalled) {
                try bounty.recallBounty(s.reportId) {} catch {}
            }

            refund(s.sellToken, s.sellAmt, s.swapper, s.buyToken, s.minFulfillLiquidity, s.matcher);
            emit SwapRefunded(swapId, s.swapper, s.matcher);
        }

        if (!s.finished) revert InvalidInput("can't bail out yet");

    }

    /**
     * @notice Anyone can distribute protocol fees from a given feeRecipient contract.
               Eventual oracle game callback should always clear these tokens out anyways.
     * @param swapId Unique identification number of swapping instance
     */
    function grabOracleGameFeesAny(uint256 swapId) external nonReentrant {
        Swap storage s = swaps[swapId];
        address feeRecipient = s.feeRecipient;
        if (s.feeRecipient == address(0)) revert InvalidInput("no fee recipient");
        if (oracleFeeReceiver(feeRecipient).gameId() != swapId) revert InvalidInput("feeRecipient not for swapId");
        if (s.oracleParams.protocolFee == 0) revert InvalidInput("0 protocol fee");
        if (!s.matched) revert InvalidInput("not matched");

        grabOracleGameFees(s);
    }

    /**
     * @notice Withdraws temp holdings for a specific token
     * @param tokenToGet The token address to withdraw tokens for
     */
    function getTempHolding(address tokenToGet, address _to) external nonReentrant {
        uint256 amount = tempHolding[_to][tokenToGet];
        if (amount > 0) {
            tempHolding[_to][tokenToGet] = 0;
            _transferTokens(tokenToGet, address(this), _to, amount);
        }
    }

    function payEth(address _to, uint256 _amount) internal {
        (bool ok,) = payable(_to).call{value: _amount, gas: 40000}("");
        if (!ok) {
            IWETH(WETH).deposit{value: _amount}();
            IERC20(WETH).safeTransfer(_to, _amount);
        }
    }

    /**
     * @dev Internal function to handle token transfers.                
     */
    function _transferTokens(address token, address from, address to, uint256 amount) internal {
        if (amount == 0) return; // Gas optimization: skip zero transfers

        if (from == address(this)) {

            (bool success, bytes memory returndata) = token.call(
                    abi.encodeWithSelector(IERC20.transfer.selector, to, amount)
                );

            if (success && ((returndata.length > 0 && abi.decode(returndata, (bool))) || 
                (returndata.length == 0 && address(token).code.length > 0))) {
               return;
            }

            tempHolding[to][token] += amount;

        } else {
            IERC20(token).safeTransferFrom(from, to, amount);
        }
    }

    function refund(address sellToken, uint256 sellAmt, address swapper, address buyToken, uint256 buyAmt, address matcher) internal {
        if (sellToken != address(0)){
            _transferTokens(sellToken, address(this), swapper, sellAmt);
            if (buyToken != address(0)){
                _transferTokens(buyToken, address(this), matcher, buyAmt);
            } else {
                payEth(matcher, buyAmt);
            }
        } else {
            payEth(swapper, sellAmt);
            _transferTokens(buyToken, address(this), matcher, buyAmt);
        }

    }

    function calcFee(uint256 maxFee, uint256 startingFee, uint256 growthRate, uint256 maxRounds, uint256 startFulfillFeeIncrease, uint256 roundLength) internal view returns (uint256) {
        uint256 timeDelta = block.timestamp - startFulfillFeeIncrease;
        
        timeDelta = timeDelta / roundLength;
        if (timeDelta > maxRounds) {
            timeDelta = maxRounds;
        }

        uint256 currentFee = startingFee;

        for (uint256 i = 0; i < timeDelta; i++) {
            currentFee = (currentFee * growthRate) / 10000;
            if (currentFee >= maxFee) {
                return maxFee;
            }
        }
        
        return currentFee;
    }

    function toleranceCheck(uint256 price, uint256 priceTolerated, uint24 toleranceRange)
        internal
        pure
        returns (bool)
    {
        uint256 tr = uint256(toleranceRange);
        uint256 upper = (priceTolerated * (1e7 + tr)) / 1e7;
        uint256 lower = (priceTolerated * 1e7) / (1e7 + tr);

        return price >= lower && price <= upper;

    }

    function impliedBlocksPerSecond(bool timeType, uint48 _time, uint48 _timeOppo, uint48 blocksPerSecond) internal view returns (bool) {
        uint48 _timeChangeTrue;
        uint48 _timeChangeBlock;
        uint48 expectedBlocks;
        uint48 _blocksPerSecond = blocksPerSecond;

        if (timeType) {
            _timeChangeTrue = uint48(block.timestamp) - _time;
            _timeChangeBlock = uint48(block.number) - _timeOppo;
        } else {
            _timeChangeTrue = uint48(block.timestamp) - _timeOppo;
            _timeChangeBlock = uint48(block.number) - _time;
        }

        expectedBlocks = _timeChangeTrue * _blocksPerSecond;

        if (
            1000 * _timeChangeBlock > expectedBlocks + 2 * _blocksPerSecond
                || 1000 * _timeChangeBlock + 2 * _blocksPerSecond < expectedBlocks
        ) {
            return false;
        } else {
            return true;
        }
    }

    function grabOracleGameFees(Swap storage s) internal {
        address feeRecipient = s.feeRecipient;
        oracleFeeReceiver feeReceiver = oracleFeeReceiver(feeRecipient);
        address sellToken;
        address buyToken;

        s.sellToken == address(0) ? sellToken = WETH : sellToken = s.sellToken; 
        s.buyToken == address(0) ? buyToken = WETH : buyToken = s.buyToken; 

        try feeReceiver.collect() {} catch{}

        uint256 sellBalanceStart = IERC20(sellToken).balanceOf(address(this));
        try feeReceiver.sweep(sellToken) {} catch{}
        uint256 sellBalanceEnd = IERC20(sellToken).balanceOf(address(this));
        uint256 feesSellToken = sellBalanceEnd > sellBalanceStart ? sellBalanceEnd - sellBalanceStart : 0;

        uint256 buyBalanceStart = IERC20(buyToken).balanceOf(address(this));
        try feeReceiver.sweep(buyToken) {} catch{}
        uint256 buyBalanceEnd = IERC20(buyToken).balanceOf(address(this));
        uint256 feesBuyToken = buyBalanceEnd > buyBalanceStart ? buyBalanceEnd - buyBalanceStart : 0;

        uint256 swapperSellFeePiece = feesSellToken / 2;
        uint256 matcherSellFeePiece = feesSellToken - swapperSellFeePiece;

        _transferTokens(sellToken, address(this), s.swapper, swapperSellFeePiece);
        _transferTokens(sellToken, address(this), s.matcher, matcherSellFeePiece);

        uint256 swapperBuyFeePiece = feesBuyToken / 2;
        uint256 matcherBuyFeePiece = feesBuyToken - swapperBuyFeePiece;

        _transferTokens(buyToken, address(this), s.swapper, swapperBuyFeePiece);
        _transferTokens(buyToken, address(this), s.matcher, matcherBuyFeePiece);

        emit FeesTransferred(s.swapper, s.matcher, buyToken, sellToken, feesBuyToken, feesSellToken, s.feeRecipient);

    }

    /* -------- VIEW FUNCTIONS -------- */

    /**
     * @notice Returns the full Swap struct for a given swapId
     * @param swapId Unique identifier of swapping instance
     */
    function getSwap(uint256 swapId) external view returns (Swap memory) {
        return swaps[swapId];
    }

    /**
     * @notice Returns oracle parameters for a given swapId
     * @param swapId Unique identifier of swapping instance
     */
    function getOracleParams(uint256 swapId) external view returns (OracleParams memory) {
        return swaps[swapId].oracleParams;
    }

    /**
     * @notice Returns slippage parameters for a given swapId
     * @param swapId Unique identifier of swapping instance
     */
    function getSlippageParams(uint256 swapId) external view returns (SlippageParams memory) {
        return swaps[swapId].slippageParams;
    }

    /**
     * @notice Returns fulfillment fee parameters for a given swapId
     * @param swapId Unique identifier of swapping instance
     */
    function getFulfillmentFeeParams(uint256 swapId) external view returns (FulfillFeeParams memory) {
        return swaps[swapId].fulfillFeeParams;
    }

    /**
     * @notice Returns the current fulfillment fee for a given swapId based on time elapsed
     * @dev Returns 0 if swap is already matched, otherwise calculates current fee
     * @param swapId Unique identifier of swapping instance
     */
    function getCurrentFulfillmentFee(uint256 swapId) external view returns (uint256) {
        Swap storage s = swaps[swapId];

        if (s.matched) {
            return 0;
        }

        FulfillFeeParams memory f = s.fulfillFeeParams;
        return calcFee(f.maxFee, f.startingFee, f.growthRate, f.maxRounds, f.startFulfillFeeIncrease, f.roundLength);
    }

    /**
     * @notice Returns the keccak256 hash of a Swap struct for optional matcher verification
     * @dev Risky if trusting an RPC - a malicious RPC can return false data. Use your own node or construct yourself with expected parameters for protection.
     * @param swapId Unique identifier of swapping instance
     */
    function getSwapHash(uint256 swapId) external view returns (bytes32) {
        return keccak256(abi.encode(swaps[swapId]));
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 3 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 4 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

interface IBountyERC20 {
    struct Bounties {
        uint256 totalAmtDeposited;
        uint256 bountyStartAmt;
        uint256 bountyClaimed;
        uint256 start;
        uint256 forwardStartTime;
        uint256 roundLength;
        uint256 recallUnlockAt;
        address payable creator;
        address editor;
        address bountyToken;
        uint16 bountyMultiplier;
        uint16 maxRounds;
        bool claimed;
        bool recalled;
        bool timeType;
        bool recallOnClaim;
    }

    struct oracleParams {
        uint256 exactToken1Report;
        uint256 escalationHalt;
        uint256 fee;
        uint256 settlerReward;
        address token1;
        uint48 settlementTime;
        address token2;
        bool timeType;
        uint24 feePercentage;
        uint24 protocolFee;
        uint16 multiplier;
        uint24 disputeDelay;//reportMeta end
        uint256 currentAmount1;
        uint256 currentAmount2;//reportStatus end
        uint32 callbackGasLimit;
        address protocolFeeRecipient;
        bool keepFee; //extraData end
    }

    event BountyInitialReportSubmitted(uint256 indexed reportId, uint256 bountyPaid, address bountyToken);
    event BountyRecalled(uint256 indexed reportId, uint256 amt, address bountyToken);
    event BountyCreated(
        uint256 indexed reportId,
        uint256 totalAmtDeposited,
        uint256 bountyStartAmt,
        uint256 maxRounds,
        uint256 bountyMultiplier,
        uint256 blockTimestamp,
        bool timeType,
        uint256 startTime,
        uint256 roundLength,
        address bountyToken
    );
    event BountyRetargeted(
        uint256 indexed newReportId,
        uint256 oldReportId,
        uint256 totalAmtDeposited,
        uint256 bountyStartAmt,
        uint256 maxRounds,
        uint256 bountyMultiplier,
        uint256 blockTimestamp,
        bool timeType,
        uint256 startTime,
        uint256 roundLength,
        address bountyToken
    );

    error InvalidInput(string parameter);

    function Bounty(uint256 id) external view returns (Bounties memory);

    function createOracleBounty(
        uint256 reportId,
        uint256 bountyStartAmt,
        address creator,
        address editor,
        uint16 bountyMultiplier,
        uint16 maxRounds,
        bool timeType,
        uint256 start,
        address bountyToken,
        uint256 maxAmount,
        uint256 roundLength,
        bool recallOnClaim,
        uint48 recallDelay
    ) external payable;

    function createOracleBounty(
        uint256 reportId,
        uint256 bountyStartAmt,
        address creator,
        address editor,
        uint16 bountyMultiplier,
        uint16 maxRounds,
        bool timeType,
        address bountyToken,
        uint256 maxAmount,
        uint256 roundLength,
        bool recallOnClaim,
        uint48 recallDelay
    ) external payable;

    function createOracleBountyFwd(
        uint256 reportId,
        uint256 bountyStartAmt,
        address creator,
        address editor,
        uint16 bountyMultiplier,
        uint16 maxRounds,
        bool timeType,
        uint256 forwardStartTime,
        address bountyToken,
        uint256 maxAmount,
        uint256 roundLength,
        bool recallOnClaim,
        uint48 recallDelay
    ) external payable;

    function recallBounty(uint256 reportId) external;

    function editBounty(uint256 reportId, uint256 newReportId) external;

    function submitInitialReport(uint256 reportId, uint256 amount1, uint256 amount2, bytes32 stateHash, address reporter) external;

    function submitInitialReport(uint256 reportId, uint256 amount1, uint256 amount2, bytes32 stateHash) external;

	function submitInitialReport(
	        uint256 reportId, 
	        oracleParams calldata p, 
	        uint256 amount1, 
	        uint256 amount2, 
	        bytes32 stateHash, 
	        uint256 timestamp, 
	        uint256 blockNumber, 
	        uint256 timestampBound, 
	        uint256 blockNumberBound
	    ) external;

	function submitInitialReport(
	        uint256 reportId, 
	        oracleParams calldata p, 
	        uint256 amount1, 
	        uint256 amount2, 
	        bytes32 stateHash, 
	        address reporter, 
	        uint256 timestamp, 
	        uint256 blockNumber, 
	        uint256 timestampBound, 
	        uint256 blockNumberBound
	    ) external;

	function getTempHolding(address tokenToGet, address _to) external;

}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

interface IOpenOracle {
    struct disputeRecord {
        uint256 amount1;
        uint256 amount2;
        address tokenToSwap;
        uint48 reportTimestamp;
    }

    struct extraReportData {
        bytes32 stateHash;
        address callbackContract;
        uint32 numReports;
        uint32 callbackGasLimit;
        bytes4 callbackSelector;
        address protocolFeeRecipient;
        bool trackDisputes;
        bool keepFee;
    }

    struct ReportMeta {
        uint256 exactToken1Report;
        uint256 escalationHalt;
        uint256 fee;
        uint256 settlerReward;
        address token1;
        uint48 settlementTime;
        address token2;
        bool timeType;
        uint24 feePercentage;
        uint24 protocolFee;
        uint16 multiplier;
        uint24 disputeDelay;
    }

    struct ReportStatus {
        uint256 currentAmount1;
        uint256 currentAmount2;
        uint256 price;
        address payable currentReporter;
        uint48 reportTimestamp;
        uint48 settlementTimestamp;
        address payable initialReporter;
        uint48 lastReportOppoTime;
        bool disputeOccurred;
        bool isDistributed;
    }

    struct CreateReportParams {
        uint256 exactToken1Report;
        uint256 escalationHalt;
        uint256 settlerReward;
        address token1Address;
        uint48 settlementTime;
        uint24 disputeDelay;
        uint24 protocolFee;
        address token2Address;
        uint32 callbackGasLimit;
        uint24 feePercentage;
        uint16 multiplier;
        bool timeType;
        bool trackDisputes;
        bool keepFee;
        address callbackContract;
        bytes4 callbackSelector;
        address protocolFeeRecipient;
    }

    function createReportInstance(CreateReportParams calldata params) external payable returns (uint256 reportId);

    /* initial report overload with reporter */
    function submitInitialReport(
        uint256 reportId,
        uint256 amount1,
        uint256 amount2,
        bytes32 stateHash,
        address reporter
    ) external;

    function disputeAndSwap(
        uint256 reportId,
        address tokenToSwap,
        uint256 newAmount1,
        uint256 newAmount2,
        address disputer,
        uint256 amt2Expected,
        bytes32 stateHash
    ) external;

    function getProtocolFees(
        address tokenToGet
    ) external;

    function settle(uint256 id) external returns (uint256 price, uint256 settlementTimestamp);

    function nextReportId() external view returns (uint256);

    function reportMeta(uint256 id) external view returns (ReportMeta memory);

    function reportStatus(uint256 id) external view returns (ReportStatus memory);

    function extraData(uint256 id) external view returns (extraReportData memory);
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

interface IWETH {
    function deposit() external payable;
    function withdraw(uint256) external;
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import {IOpenOracle} from "./interfaces/IOpenOracle.sol";
import {IERC20}      from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {SafeERC20}   from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

/* ------------ Oracle Fee Receiver ------------ */

contract oracleFeeReceiver is ReentrancyGuard {
    using SafeERC20 for IERC20;
    address public immutable owner;
    uint256 public immutable gameId;
    IOpenOracle public immutable oracle;
    address public token1;
    address public token2;

    constructor(address _owner, uint256 _gameId, address _oracle, address _token1, address _token2) {
        owner = _owner;
        gameId = _gameId;
        oracle = IOpenOracle(_oracle);
        token1 = _token1;
        token2 = _token2;
    }

    function sweep(address token) external nonReentrant returns(uint256) {
        if (msg.sender != owner) revert("not owner");
        uint256 bal = IERC20(token).balanceOf(address(this));
        if (bal > 0) {
            IERC20(token).safeTransfer(msg.sender, bal);
        }

        return bal;
    }

    function collect() external nonReentrant {
        oracle.getProtocolFees(token1);
        oracle.getProtocolFees(token2);
    }
}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 190
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"oracle_","type":"address"},{"internalType":"address","name":"bounty_","type":"address"},{"internalType":"address","name":"OPGrantFaucet_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"swapper","type":"address"},{"indexed":true,"internalType":"address","name":"matcher","type":"address"},{"indexed":false,"internalType":"address","name":"buyToken","type":"address"},{"indexed":false,"internalType":"address","name":"sellToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"feesBuyToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesSellToken","type":"uint256"},{"indexed":false,"internalType":"address","name":"feeRecipientContract","type":"address"}],"name":"FeesTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"ImpliedBlocksPerSecondBailout","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fulfillmentFee","type":"uint256"}],"name":"SingleFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"SlippageBailout","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"SwapCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":true,"internalType":"address","name":"swapper","type":"address"},{"indexed":false,"internalType":"uint256","name":"sellAmt","type":"uint256"},{"indexed":false,"internalType":"address","name":"sellToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"address","name":"buyToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"minFulfillLiquidity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"priceTolerated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toleranceRange","type":"uint256"},{"components":[{"internalType":"uint48","name":"startFulfillFeeIncrease","type":"uint48"},{"internalType":"uint24","name":"maxFee","type":"uint24"},{"internalType":"uint24","name":"startingFee","type":"uint24"},{"internalType":"uint24","name":"roundLength","type":"uint24"},{"internalType":"uint16","name":"growthRate","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"indexed":false,"internalType":"struct openSwap.FulfillFeeParams","name":"fulfillFeeParams","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"blockTimestamp","type":"uint256"},{"components":[{"internalType":"uint256","name":"settlerReward","type":"uint256"},{"internalType":"uint256","name":"initialLiquidity","type":"uint256"},{"internalType":"uint256","name":"escalationHalt","type":"uint256"},{"internalType":"uint48","name":"settlementTime","type":"uint48"},{"internalType":"uint48","name":"latencyBailout","type":"uint48"},{"internalType":"uint48","name":"maxGameTime","type":"uint48"},{"internalType":"uint32","name":"blocksPerSecond","type":"uint32"},{"internalType":"uint24","name":"disputeDelay","type":"uint24"},{"internalType":"uint24","name":"swapFee","type":"uint24"},{"internalType":"uint24","name":"protocolFee","type":"uint24"},{"internalType":"uint16","name":"multiplier","type":"uint16"},{"internalType":"bool","name":"timeType","type":"bool"}],"indexed":false,"internalType":"struct openSwap.OracleParams","name":"oracleParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"totalAmtDeposited","type":"uint256"},{"internalType":"uint256","name":"bountyStartAmt","type":"uint256"},{"internalType":"uint256","name":"roundLength","type":"uint256"},{"internalType":"address","name":"bountyToken","type":"address"},{"internalType":"uint16","name":"bountyMultiplier","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"indexed":false,"internalType":"struct openSwap.BountyParams","name":"bountyParams","type":"tuple"},{"indexed":false,"internalType":"uint256","name":"gasCompensation","type":"uint256"}],"name":"SwapCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"swapper","type":"address"},{"indexed":true,"internalType":"address","name":"matcher","type":"address"},{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellTokenAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyTokenAmt","type":"uint256"}],"name":"SwapExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fulfillmentFee","type":"uint256"},{"indexed":true,"internalType":"address","name":"matcher","type":"address"},{"indexed":false,"internalType":"uint256","name":"reportId","type":"uint256"},{"indexed":true,"internalType":"address","name":"swapper","type":"address"}],"name":"SwapMatched","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapId","type":"uint256"},{"indexed":true,"internalType":"address","name":"swapper","type":"address"},{"indexed":true,"internalType":"address","name":"matcher","type":"address"}],"name":"SwapRefunded","type":"event"},{"inputs":[],"name":"OPGrantFaucet","outputs":[{"internalType":"contract IOPGrantFaucet","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"bailOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bounty","outputs":[{"internalType":"contract IBountyERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"cancelSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"getCurrentFulfillmentFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"getFulfillmentFeeParams","outputs":[{"components":[{"internalType":"uint48","name":"startFulfillFeeIncrease","type":"uint48"},{"internalType":"uint24","name":"maxFee","type":"uint24"},{"internalType":"uint24","name":"startingFee","type":"uint24"},{"internalType":"uint24","name":"roundLength","type":"uint24"},{"internalType":"uint16","name":"growthRate","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.FulfillFeeParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"getOracleParams","outputs":[{"components":[{"internalType":"uint256","name":"settlerReward","type":"uint256"},{"internalType":"uint256","name":"initialLiquidity","type":"uint256"},{"internalType":"uint256","name":"escalationHalt","type":"uint256"},{"internalType":"uint48","name":"settlementTime","type":"uint48"},{"internalType":"uint48","name":"latencyBailout","type":"uint48"},{"internalType":"uint48","name":"maxGameTime","type":"uint48"},{"internalType":"uint32","name":"blocksPerSecond","type":"uint32"},{"internalType":"uint24","name":"disputeDelay","type":"uint24"},{"internalType":"uint24","name":"swapFee","type":"uint24"},{"internalType":"uint24","name":"protocolFee","type":"uint24"},{"internalType":"uint16","name":"multiplier","type":"uint16"},{"internalType":"bool","name":"timeType","type":"bool"}],"internalType":"struct openSwap.OracleParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"getSlippageParams","outputs":[{"components":[{"internalType":"uint256","name":"priceTolerated","type":"uint256"},{"internalType":"uint24","name":"toleranceRange","type":"uint24"}],"internalType":"struct openSwap.SlippageParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"getSwap","outputs":[{"components":[{"internalType":"uint256","name":"sellAmt","type":"uint256"},{"internalType":"uint256","name":"minOut","type":"uint256"},{"internalType":"uint256","name":"minFulfillLiquidity","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"reportId","type":"uint256"},{"internalType":"uint256","name":"gasCompensation","type":"uint256"},{"internalType":"uint48","name":"start","type":"uint48"},{"internalType":"uint24","name":"fulfillmentFee","type":"uint24"},{"internalType":"address","name":"sellToken","type":"address"},{"internalType":"address","name":"buyToken","type":"address"},{"internalType":"address","name":"swapper","type":"address"},{"internalType":"address","name":"matcher","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"matched","type":"bool"},{"internalType":"bool","name":"finished","type":"bool"},{"internalType":"bool","name":"cancelled","type":"bool"},{"components":[{"internalType":"uint256","name":"settlerReward","type":"uint256"},{"internalType":"uint256","name":"initialLiquidity","type":"uint256"},{"internalType":"uint256","name":"escalationHalt","type":"uint256"},{"internalType":"uint48","name":"settlementTime","type":"uint48"},{"internalType":"uint48","name":"latencyBailout","type":"uint48"},{"internalType":"uint48","name":"maxGameTime","type":"uint48"},{"internalType":"uint32","name":"blocksPerSecond","type":"uint32"},{"internalType":"uint24","name":"disputeDelay","type":"uint24"},{"internalType":"uint24","name":"swapFee","type":"uint24"},{"internalType":"uint24","name":"protocolFee","type":"uint24"},{"internalType":"uint16","name":"multiplier","type":"uint16"},{"internalType":"bool","name":"timeType","type":"bool"}],"internalType":"struct openSwap.OracleParams","name":"oracleParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"priceTolerated","type":"uint256"},{"internalType":"uint24","name":"toleranceRange","type":"uint24"}],"internalType":"struct openSwap.SlippageParams","name":"slippageParams","type":"tuple"},{"components":[{"internalType":"uint48","name":"startFulfillFeeIncrease","type":"uint48"},{"internalType":"uint24","name":"maxFee","type":"uint24"},{"internalType":"uint24","name":"startingFee","type":"uint24"},{"internalType":"uint24","name":"roundLength","type":"uint24"},{"internalType":"uint16","name":"growthRate","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.FulfillFeeParams","name":"fulfillFeeParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"totalAmtDeposited","type":"uint256"},{"internalType":"uint256","name":"bountyStartAmt","type":"uint256"},{"internalType":"uint256","name":"roundLength","type":"uint256"},{"internalType":"address","name":"bountyToken","type":"address"},{"internalType":"uint16","name":"bountyMultiplier","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.BountyParams","name":"bountyParams","type":"tuple"}],"internalType":"struct openSwap.Swap","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"getSwapHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenToGet","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"getTempHolding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"name":"grabOracleGameFeesAny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapId","type":"uint256"},{"internalType":"bytes32","name":"paramHashExpected","type":"bytes32"}],"name":"matchSwap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nextSwapId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"onSettle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOpenOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reportIdToSwapId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellAmt","type":"uint256"},{"internalType":"address","name":"sellToken","type":"address"},{"internalType":"uint256","name":"minOut","type":"uint256"},{"internalType":"address","name":"buyToken","type":"address"},{"internalType":"uint256","name":"minFulfillLiquidity","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"gasCompensation","type":"uint256"},{"components":[{"internalType":"uint256","name":"settlerReward","type":"uint256"},{"internalType":"uint256","name":"initialLiquidity","type":"uint256"},{"internalType":"uint256","name":"escalationHalt","type":"uint256"},{"internalType":"uint48","name":"settlementTime","type":"uint48"},{"internalType":"uint48","name":"latencyBailout","type":"uint48"},{"internalType":"uint48","name":"maxGameTime","type":"uint48"},{"internalType":"uint32","name":"blocksPerSecond","type":"uint32"},{"internalType":"uint24","name":"disputeDelay","type":"uint24"},{"internalType":"uint24","name":"swapFee","type":"uint24"},{"internalType":"uint24","name":"protocolFee","type":"uint24"},{"internalType":"uint16","name":"multiplier","type":"uint16"},{"internalType":"bool","name":"timeType","type":"bool"}],"internalType":"struct openSwap.OracleParams","name":"oracleParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"priceTolerated","type":"uint256"},{"internalType":"uint24","name":"toleranceRange","type":"uint24"}],"internalType":"struct openSwap.SlippageParams","name":"slippageParams","type":"tuple"},{"components":[{"internalType":"uint48","name":"startFulfillFeeIncrease","type":"uint48"},{"internalType":"uint24","name":"maxFee","type":"uint24"},{"internalType":"uint24","name":"startingFee","type":"uint24"},{"internalType":"uint24","name":"roundLength","type":"uint24"},{"internalType":"uint16","name":"growthRate","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.FulfillFeeParams","name":"fulfillFeeParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"totalAmtDeposited","type":"uint256"},{"internalType":"uint256","name":"bountyStartAmt","type":"uint256"},{"internalType":"uint256","name":"roundLength","type":"uint256"},{"internalType":"address","name":"bountyToken","type":"address"},{"internalType":"uint16","name":"bountyMultiplier","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.BountyParams","name":"bountyParams","type":"tuple"}],"name":"swap","outputs":[{"internalType":"uint256","name":"swapId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"swaps","outputs":[{"internalType":"uint256","name":"sellAmt","type":"uint256"},{"internalType":"uint256","name":"minOut","type":"uint256"},{"internalType":"uint256","name":"minFulfillLiquidity","type":"uint256"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"reportId","type":"uint256"},{"internalType":"uint256","name":"gasCompensation","type":"uint256"},{"internalType":"uint48","name":"start","type":"uint48"},{"internalType":"uint24","name":"fulfillmentFee","type":"uint24"},{"internalType":"address","name":"sellToken","type":"address"},{"internalType":"address","name":"buyToken","type":"address"},{"internalType":"address","name":"swapper","type":"address"},{"internalType":"address","name":"matcher","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"matched","type":"bool"},{"internalType":"bool","name":"finished","type":"bool"},{"internalType":"bool","name":"cancelled","type":"bool"},{"components":[{"internalType":"uint256","name":"settlerReward","type":"uint256"},{"internalType":"uint256","name":"initialLiquidity","type":"uint256"},{"internalType":"uint256","name":"escalationHalt","type":"uint256"},{"internalType":"uint48","name":"settlementTime","type":"uint48"},{"internalType":"uint48","name":"latencyBailout","type":"uint48"},{"internalType":"uint48","name":"maxGameTime","type":"uint48"},{"internalType":"uint32","name":"blocksPerSecond","type":"uint32"},{"internalType":"uint24","name":"disputeDelay","type":"uint24"},{"internalType":"uint24","name":"swapFee","type":"uint24"},{"internalType":"uint24","name":"protocolFee","type":"uint24"},{"internalType":"uint16","name":"multiplier","type":"uint16"},{"internalType":"bool","name":"timeType","type":"bool"}],"internalType":"struct openSwap.OracleParams","name":"oracleParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"priceTolerated","type":"uint256"},{"internalType":"uint24","name":"toleranceRange","type":"uint24"}],"internalType":"struct openSwap.SlippageParams","name":"slippageParams","type":"tuple"},{"components":[{"internalType":"uint48","name":"startFulfillFeeIncrease","type":"uint48"},{"internalType":"uint24","name":"maxFee","type":"uint24"},{"internalType":"uint24","name":"startingFee","type":"uint24"},{"internalType":"uint24","name":"roundLength","type":"uint24"},{"internalType":"uint16","name":"growthRate","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.FulfillFeeParams","name":"fulfillFeeParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"totalAmtDeposited","type":"uint256"},{"internalType":"uint256","name":"bountyStartAmt","type":"uint256"},{"internalType":"uint256","name":"roundLength","type":"uint256"},{"internalType":"address","name":"bountyToken","type":"address"},{"internalType":"uint16","name":"bountyMultiplier","type":"uint16"},{"internalType":"uint16","name":"maxRounds","type":"uint16"}],"internalType":"struct openSwap.BountyParams","name":"bountyParams","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"tempHolding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6101003461014557601f614dd338819003918201601f19168301916001600160401b0383118484101761014a578084926060946040528339810103126101455761004881610160565b90610061604061005a60208401610160565b9201610160565b6001600081905573420000000000000000000000000000000000000660c0526002556001600160a01b0392831660a0529082166080521660e052604051614c5e9081610175823960805181818161062a01528181610c2e015281816110d8015281816113430152612d6d015260a0518181816103bc0152818161107d01528181611559015281816117d50152612c1d015260c051818181610be901528181610e3701528181611481015281816114c5015281816114f80152818161210401528181613dae01528181613de5015261441d015260e0518181816107e501526117900152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036101455756fe6080604052600436101561001257600080fd5b6000803560e01c8063127fa21c146130a1578063195a1dea1461300b578063298842fb14612fbe5780632f437b7414612bcf578063490e646914611e2157806349d5fdad14611dcc5780634a0d89ba14611b9657806354d6a2b714611866578063553670051461182257806368eb5155146118045780637dc0d1d0146117bf5780637e2d0ebe1461177a5780638f4083c114610c5d578063943dfef114610c18578063ad5c464814610bd3578063b0e2bcc81461038c578063c802fd3114610362578063d0782e0714610312578063e2bc7bfe146102cd578063eb42d739146102a65763f09c58291461010457600080fd5b346102a35760203660031901126102a3576004358152600160205260409020805460018201549160028101546003820154600483015460058401546006850154600160a01b60019003600787015416600160a01b6001900360088801541691600160a01b6001900360098901541693600a89015495600b8a0161018690613469565b9761019360108c01613518565b996101a060128d0161353b565b9b6013016101ad90613599565b9c6040519e8f91825260208201526040015260608d015260808c015260a08b015265ffffffffffff811660c08b01528060301c62ffffff1660e08b0152600160a01b600190039060481c166101008a0152610120890152610140880152610160870152600160a01b6001900381166101808701528060a01c60ff1615156101a08701528060a81c60ff1615156101c08701528060b01c60ff1615156101e087015260b81c60ff161515610200860152610220850161026a91613324565b80516103a08501526020015162ffffff166103c08401526103e0830161028f916133d1565b6104a0820161029d91613425565b61056090f35b80fd5b50346102a35760203660031901126102a35760206102c5600435613ced565b604051908152f35b50346102a35760203660031901126102a3576103036012604060c0936102f1613b4c565b5060043581526001602052200161353b565b61031060405180926133d1565bf35b50346102a35760203660031901126102a357610347601060408093610335613b33565b50600435815260016020522001613518565b6103108251809262ffffff6020809280518552015116910152565b50346102a35760203660031901126102a35760406020916004358152600383522054604051908152f35b5060a03660031901126102a357602435906004356103a861324e565b506103b1613264565b506103ba613d63565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633819003610b9c5781835260036020526040832054938484526001602052604084209160048301548403610b6557600a83019081549060ff8260b01c16610b345760ff60b01b19909116600160b01b17909155604051635ddf502960e11b8152600481018590529061014090829060249082905afa908115610b29578591610afa575b50610481815161047c60208401518654613cba565b613ccd565b956104a86006850197629896806104a162ffffff8b5460301c1683613cba565b0490613968565b92601085015497601186019462ffffff8654166298968001998a6298968011610ae657629896806104d98c83613cba565b049062989680810290808204629896801490151715610ad2578a9b6104fd91613ccd565b8410159384610ac7575b5050600f87019561054360ff885460101c1665ffffffffffff60e08160808b01511699015116600e8b019863ffffffff8a5460901c1692614543565b9360028901948554841191829183159384610aba575b8015610ab2575b610a83575b159182610a54575b92610a46575b8215610a3d575b508115610a35575b501561072f5750505485546008870180546007890154945460098a01805462ffffff9a5090967f6bb0fa0c59004b7cff24fd5aeec270d26ed3de586653a8fe91822f95de566844966020966105ef956001600160a01b039485169594938416939081169260481c16614312565b5492546040519485526001600160a01b0390811694931692a35b5460e01c16610720575b506040516380bc150d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316919061020081602481865afa9081156107155784916106e6575b5061ffff61016082015116151590816106d8575b5061068e575b826001815580f35b813b156106d4578291602483926040519485938492633404227b60e21b845260048401525af16106bf575b80610686565b816106c991613302565b6102a35780386106b9565b5050fd5b6101a0915001511538610680565b61070891506102003d811161070e575b6107008183613302565b810190613984565b3861066c565b503d6106f6565b6040513d86823e3d90fd5b61072990613d85565b38610613565b60078801805495979295929491926001600160a01b0316156109d557805460088a015461079d92916107719189916001600160a01b03918216913091166141f2565b5460098a018054935490936001600160a01b03928316921690610795908990613968565b9130906141f2565b825460481c6001600160a01b0316156109bb578254905488546107d69290916001600160a01b0390811691309160489190911c166141f2565b604051631e81bacf60e31b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169190602081600481865afa8b918161097b575b506109765750895b61088d575b5050505062ffffff927f28c738dbec11a1bed94ba127a3712d54bcd39cf4ae95b6ebd671aaf10fd0287b606060018060a01b036008880154169260018060a01b0360098901541694885460405192835260208301526040820152a3610609565b60018060a01b036008890154169260018060a01b03905460481c169088549360ff8854965460101c1660128b01549462ffffff600c8d015494541695813b15610972578e9889976101649662ffffff80948b976040519d8e9c8d9b63e2cb061360e01b8d5260048d015260248c015260448b015265ffffffffffff861660648b0152151560848a0152818160481c1660a48a015260301c1660c488015260e4870152610104860152818160c81c1661012486015260e01c166101448401525af1610959575b808061082d565b8161096391613302565b61096e578538610952565b8580fd5b8e80fd5b610828565b9091506020813d6020116109b3575b8161099760209383613302565b810103126109af576109a890613876565b9038610820565b8b80fd5b3d915061098a565b5487546109d0916001600160a01b03166143ee565b6107d6565b5060088801546109d091906109f49087906001600160a01b03166143ee565b610a1760098a0191610a118860018060a01b038554169254613968565b906143ee565b835490548954916001600160a01b0391821691309160481c166141f2565b905038610582565b1591503861057a565b60018b015485109250610573565b7f0d7588aed4e3a34fe5a68f90d8140374f667a941c661261b6c8f994948fa819d60206040518b8152a161056d565b7f34fbc8a950948a7d9440764afead2606f6a9dbc03a077f21b44840bf3de706b760206040518b8152a1610565565b508115610560565b5060018c01548610610559565b111592503880610507565b634e487b7160e01b8b52601160045260248bfd5b634e487b7160e01b8a52601160045260248afd5b610b1c91506101403d8111610b22575b610b148183613302565b810190613883565b38610467565b503d610b0a565b6040513d87823e3d90fd5b60405163d647364f60e01b8152602060048201526008602482015267199a5b9a5cda195960c21b6044820152606490fd5b60405163d647364f60e01b815260206004820152600e60248201526d1ddc9bdb99c81c995c1bdc9d125960921b6044820152606490fd5b60405163d647364f60e01b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b6044820152606490fd5b50346102a357806003193601126102a3576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346102a357806003193601126102a3576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5060403660031901126102a357610c72613d63565b6004358152600160205260408120610c8c6012820161353b565b6040516020810190610c9e828561371c565b6105608152610caf61058082613302565b5190206024350361174b576007820180546001600160a01b031615801580611742575b61170657806116f8575b6116c657600a83019182549060ff8260b81c1661168f5760ff8260a81c1661165a5760ff8260a01c16156116225760ff8260b01c16610b3457600385015442116115f25760ff60a81b19909116600160a81b1783556009840180546001600160a01b0319163317905560068401805465ffffffffffff19164265ffffffffffff9081169190911790915560208201516040830151608084015160a08501518551606090960151610dcd9662ffffff96610daa969288169591169361ffff9384169316919087169087166144a0565b16600685019062ffffff60301b82549160301b169062ffffff60301b1916179055565b610ddb6005840154336143ee565b80546001600160a01b0316806115da575b5062ffffff600e84015460e01c166114ac575b5050610e0a81613b7d565b6102208101516101008201516001600160a01b03168061146a57506101208201516001600160a01b0316917f0000000000000000000000000000000000000000000000000000000000000000905b60208301519360408401519284519165ffffffffffff60608701511662ffffff60e08801511662ffffff610120890151169162ffffff6101008a0151169461ffff6101408b015116966101608b015115159861018060018060a01b0391015116996040519c8d67ffffffffffffffff610220828181011092011117611455576102208e016040528d5260208d015260408c015260018060a01b031660608b015260808a015260a089015260c088015260018060a01b031660e0870152620f42406101008701526101208601526101408501526101608401528461018084015260016101a0840152306101c084015263161c579960e31b6101e084015261020083015251906001820182116114415760408051631d6329ab60e11b815282516004820152602083810151602483015291830151604482015260608301516001600160a01b039081166064830152608084015165ffffffffffff16608483015260a084015162ffffff90811660a484015260c0850151811660c484015260e0850151821660e484015261010085015163ffffffff166101048401526101208501511661012483015261014084015161ffff16610144830152610160840151151561016483015261018084015115156101848301526101a084015115156101a48301526101c084015181166101c48301526101e08401516001600160e01b0319166101e4830152610200909301518316610204820152939290918491610224918391600101907f0000000000000000000000000000000000000000000000000000000000000000165af19182156114365783926113fd575b50601681018054909160138101916001600160a01b03168061132457508154925b8560018060a01b037f00000000000000000000000000000000000000000000000000000000000000001693601484015495600885019660018060a01b0388541692855490549060158801549365ffffffffffff600e8a015460301c168a3b156113205787956101a4948e94604051998a98899763b64783e760e01b895260048901526024880152604487015230606487015261ffff8160a01c16608487015261ffff8160b01c1660a4870152600160c48701528860e487015260018060a01b031661010486015261012485015261014484015285610164840152610184830152895af18015611315576112fc575b5050547f08718d9f0e810107a141828034c9fda59cd0fef0313fe600633b0a5d09ba929a92606092916001600160a01b03168061124e575b50508460048201558486526003602052600435604087205562ffffff600682015460301c1690600960018060a01b03910154169360018060a01b039054169460405191600435835260208301526040820152a36001815580f35b6040519060208981840163095ea7b360e01b81528560248601528160448601526044855261127d606486613302565b84519082855af189513d826112e0575b50501561129b575b506111f4565b6112d36112d8936040519063095ea7b360e01b602083015260248201528a6044820152604481526112cd606482613302565b8261461e565b61461e565b388080611295565b9091506112f45750803b15155b388061128d565b6001146112ed565b8161130991949394613302565b61096e579085386111bc565b6040513d84823e3d90fd5b8780fd5b825460405163095ea7b360e01b60208083019182526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660248401819052604480850195909552938352899794918890611387606486613302565b84519082855af189513d826113e1575b5050156113a7575b5050506110ce565b6112d36113d9936040519063095ea7b360e01b602083015260248201528a6044820152604481526112cd606482613302565b38808061139f565b9091506113f55750803b15155b3880611397565b6001146113ee565b9091506020813d60201161142e575b8161141960209383613302565b81010312611429575190386110ad565b600080fd5b3d915061140c565b6040513d85823e3d90fd5b634e487b7160e01b84526011600452602484fd5b50634e487b7160e01b8f52604160045260248ffd5b6101208301516001600160a01b0316806114a657507f000000000000000000000000000000000000000000000000000000000000000092610e58565b92610e58565b600683015460481c6001600160a01b0316806115d457507f0000000000000000000000000000000000000000000000000000000000000000905b546001600160a01b0316806115ce57507f0000000000000000000000000000000000000000000000000000000000000000905b604051916105a3918284019284841067ffffffffffffffff8511176115ba579160a093918593614686853930835260043560208401526001851b600019017f000000000000000000000000000000000000000000000000000000000000000081166040850152908116606084015216608082015203019084f080156114365781546001600160a01b0319166001600160a01b03919091161790553880610dff565b634e487b7160e01b88526041600452602488fd5b90611519565b906114e6565b60028401546115ec913090339061436e565b38610dec565b60405163d647364f60e01b8152602060048201526007602482015266195e1c1a5c995960ca1b6044820152606490fd5b60405163d647364f60e01b815260206004820152600f60248201526e73776170206e6f742061637469766560881b6044820152606490fd5b60405163d647364f60e01b815260206004820152600c60248201526b1cddd85c081b585d18da195960a21b6044820152606490fd5b60405163d647364f60e01b815260206004820152600e60248201526d1cddd85c0818d85b98d95b1b195960921b6044820152606490fd5b60405163d647364f60e01b81526020600482015260096024820152686d73672e76616c756560b81b6044820152606490fd5b506002830154341415610cdc565b60405163d647364f60e01b815260206004820152601360248201527206d73672e76616c7565206d757374206265203606c1b6044820152606490fd5b50341515610cd2565b60405163d647364f60e01b8152602060048201526006602482015265706172616d7360d01b6044820152606490fd5b50346102a357806003193601126102a3576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346102a357806003193601126102a3576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346102a357806003193601126102a3576020600254604051908152f35b50346102a35760203660031901126102a357611859600b604061018093611847613ada565b50600435815260016020522001613469565b6103106040518092613324565b50346102a35760203660031901126102a357600435611883613d63565b80825260016020526040822061189b600b8201613469565b6008820180549091906001600160a01b03163303611b6257600a8301805460ff8160a81c16611b2a5760ff8160a01c1615611af75760ff8160b81c16611ac55760ff8160b01c16610b345760ff60b81b1916600160b81b179055601683018054601385019391906001600160a01b031680611a2357505060068401805460481c6001600160a01b0316156119b8575484546119709461196893909260059261195091339060481c6001600160a01b03166143b2565b5495015490546001600160a01b039095169490613945565b905190613945565b906001820180921161144157916119aa6020927ff6b6b4f7a13f02512c1b3aa8dcc4a07d7775a6a4becbd439efcbd37c5408e67f946143ee565b604051908152a16001815580f35b506119e4926119dc6119689260018060a01b03905416956005815491015490613945565b905490613945565b90600182018092116114415791611a1e6020927ff6b6b4f7a13f02512c1b3aa8dcc4a07d7775a6a4becbd439efcbd37c5408e67f946143ee565b6119aa565b60068601805493959390919060481c6001600160a01b031615611a9357506005926119e49592611a67611a7b9360018060a01b03905460481c1689549033906143b2565b5490549033906001600160a01b03166143b2565b5493015490516001600160a01b039093169290613945565b6119e4959250611aab915061196893549033906143b2565b5484546005909501546001600160a01b0390911694613945565b60405163d647364f60e01b815260206004820152600960248201526818d85b98d95b1b195960ba1b6044820152606490fd5b60405163d647364f60e01b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606490fd5b60405163d647364f60e01b815260206004820152600f60248201526e185b1c9958591e481b585d18da1959608a1b6044820152606490fd5b60405163d647364f60e01b815260206004820152600b60248201526a3737ba1039bbb0b83832b960a91b6044820152606490fd5b50346102a35760203660031901126102a357611c7d6040610560928151611bbc816132e5565b81815281602082015281838201528160608201528160808201528160a08201528160c08201528160e08201528161010082015281610120820152816101408201528161016082015281610180820152816101a0820152816101c0820152816101e082015281610200820152611c2f613ada565b6102208201528251611c40816132ad565b6000815260006020820152610240820152611c59613b4c565b610260820152610280611c6a613b4c565b9101526004358152600160205220613b7d565b61031061028060405192805184526020810151602085015260408101516040850152606081015160608501526080810151608085015260a081015160a085015265ffffffffffff60c08201511660c085015262ffffff60e08201511660e085015260018060a01b036101008201511661010085015260018060a01b036101208201511661012085015260018060a01b036101408201511661014085015260018060a01b036101608201511661016085015260018060a01b03610180820151166101808501526101a081015115156101a08501526101c081015115156101c08501526101e081015115156101e08501526102008101511515610200850152611d8e610220820151610220860190613324565b61024081015180516103a08601526020015162ffffff166103c0850152611dbf6102608201516103e08601906133d1565b01516104a0830190613425565b50346102a35760403660031901126102a3576040611de8613222565b91611df1613238565b9260018060a01b031681526004602052209060018060a01b03166000526020526020604060002054604051908152f35b506104203660031901126102a357611e37613238565b611e3f61324e565b906101803660e3190112612bcb5760405190611e5a8261327a565b60e43582526101043560208301526101243560408301526101443565ffffffffffff81168103612bc35760608301526101643565ffffffffffff81168103612bc35760808301526101843565ffffffffffff81168103612bc35760a08301526101a43563ffffffff81168103612bc35760c08301526101c43562ffffff81168103612bc35760e08301526101e43562ffffff81168103612bc3576101008301526102043562ffffff81168103612bc3576101208301526102243561ffff81168103612bc3576101408301526102443515156102443503612bc75761024435610160830152604036610263190112612bc75760405190611f58826132ad565b6102643582526102843562ffffff8116810361096e57602083015260c0366102a3190112612bc35760405192611f8d846132c9565b6102a43565ffffffffffff81168103612bbf5784526102c43562ffffff81168103612bbf5760208501526102e43562ffffff81168103612bbf5760408501526103043562ffffff81168103612bbf5760608501526103243561ffff81168103612bbf5760808501526103443561ffff81168103612bbf5760a085015260c03661036319011261096e5760405194612023866132c9565b6103643586526103843560208701526103a43560408701526103c4356001600160a01b03811681036113205760608701526103e43561ffff811681036113205760808701526104043561ffff811681036113205760a0870152612084613d63565b8151865160608801519091906001600160a01b0316612b9f576120ac6120b19260c435613945565b613945565b600181018111612b8b57600101955b6001600160a01b0384161515968780612b81575b612b49576001600160a01b038516159081612b33575b50612aed576001600160a01b0384811690831614612a71577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811690851681149081612adb575b8115612aae575b50612a7157600435158015612a67575b8015612a5d575b612a28576298968062ffffff60208801511610156129f15784511580156129e0575b80156129cb575b61299a5760648351108015612988575b8015612974575b8015612968575b8015612956575b8015612937575b8015612926575b801561290f575b80156128dc575b80156128a7575b801561288f575b61285a5762ffffff6020870151168015908115612848575b8115612837575b8115612826575b8115612814575b8115612801575b81156127f4575b506127bb5761ffff60a08201511680159081156127ae575b81156127a4575b8115612797575b8115612788575b811561277d575b50801561276a575b612735576002549660001988146127215760018881016002908155898b52602082815260408c206008810180546001600160a01b031990811633179091556004358255600682018054600160481b600160e81b03191660488c901b600160481b600160e81b0316179055604435828601556007820180549091166001600160a01b038916179055608435928101929092559a91989197919691958a957fe21af1913a28643a249b87ab5aeb7f79764da7bfb01c87df404d924234714fa49561044095612673949361231a60a43542613945565b6003860155600a85018e60a01b60ff60a01b198254161790558051600b8601558f810151600c8601556040810151600d860155600e850165ffffffffffff806060840151161665ffffffffffff198254161781556080820151815465ffffffffffff60601b60a085015160601b169163ffffffff60901b60c086015160901b169062ffffff60b01b60e087015160b01b169162ffffff60c81b61010088015160c81b169362ffffff60e01b61012089015160e01b169562ffffff60e01b199362ffffff60c81b19926bffffffffffff00000000000062ffffff60b01b199260301b169075ffffffffffffffffffffffffffffffff00000000000019161716171617161717179055600f85019061ffff6101408201511662ff00006101608454930151151560101b169162ffffff19161717905589516010850155601184018f62ffffff908c01511662ffffff1982541617905560c435600585015565ffffffffffff808c51161665ffffffffffff196012860154161760128501556124c48f62ffffff908d015116601286019062ffffff60301b82549160301b169062ffffff60301b1916179055565b60408b01518b60128601549162ffffff60601b606083015160601b169061ffff60781b608084015160781b169260a061ffff60881b91015160881b169361ffff60881b199162ffffff60481b9060481b169067ffffffffffffffff60481b19161716171717601285015565ffffffffffff8042161665ffffffffffff19601286015416176012850155815160138501558e820151601485015560408201516015850155601684018d8060a01b038e8060a01b03606085015116166bffffffffffffffffffffffff60a01b8254161781556080830151815461ffff60b01b60a086015160b01b169161ffff60a01b9060a01b169063ffffffff60a01b191617179055612707575b8b8060a01b03606082015116806126f1575b50508a8060a01b0360088301541697600383015462ffffff8f835193015116926040519660043588528e8060a01b0316602088015260443560408801528d8060a01b03166060870152608435608087015260a086015260c085015260e084015261264d61010084016012830161368a565b426101c08401526126656101e08401600b83016135e9565b6013610360840191016136da565b60c435610420820152a362ffffff85820151169062ffffff604082015116821490816126df575b506126aa575b5055604051908152f35b60407f568f0eaf9db9a061f5c62822514631a144ec5a048dfb466df131ef12d46e87469181519086825287820152a1386126a0565b60a0015161ffff16841490503861269a565b6127009151903090339061436e565b38806125dc565b61271c60043530338f8060a01b03891661436e565b6125ca565b634e487b7160e01b89526011600452602489fd5b60405163d647364f60e01b815260206004820152600c60248201526b626f756e7479506172616d7360a01b6044820152606490fd5b5061271161ffff60808301511610612247565b60649150113861223f565b60208301518351109150612238565b6040830151159150612231565b825115915061222a565b6020830151159150612223565b60405163d647364f60e01b815260206004820152601060248201526f66756c66696c6c466565506172616d7360801b6044820152606490fd5b629896809150113861220b565b604088015162ffffff1681109150612204565b606088015162ffffff161591506121fd565b60a088015161ffff161591506121f6565b608088015161ffff161591506121ef565b604088015162ffffff161591506121e8565b60405163d647364f60e01b815260206004820152600c60248201526b6f7261636c65506172616d7360a01b6044820152606490fd5b5062093a8065ffffffffffff60a085015116116121d0565b5065ffffffffffff60a084015116601465ffffffffffff606086015116029065ffffffffffff8216918203610ae657106121c9565b5062ffffff6101008401511662ffffff610120850151160162ffffff81116127215762ffffff62989680911610156121c2565b5061384065ffffffffffff606085015116116121bb565b5060408301516020840151116121b4565b5062ffffff60e08401511665ffffffffffff60608501511611156121ad565b5063ffffffff60c084015116156121a6565b5060208301511561219f565b5065ffffffffffff60608401511615612198565b5062ffffff6101008401511615612191565b60405163d647364f60e01b8152602060048201526008602482015267736c69707061676560c01b6044820152606490fd5b506298968062ffffff60208701511611612181565b5062ffffff6020860151161561217a565b60405163d647364f60e01b815260206004820152600e60248201526d66756c66696c6c6d656e7446656560901b6044820152606490fd5b60405163d647364f60e01b815260206004820152600c60248201526b7a65726f20616d6f756e747360a01b6044820152606490fd5b5060843515612158565b5060443515612151565b60405163d647364f60e01b815260206004820152601460248201527339b2b6362a37b5b2b7101e90313abcaa37b5b2b760611b6044820152606490fd5b6001600160a01b03861615915081612ac8575b5038612141565b6001600160a01b03841614905038612ac1565b6001600160a01b03841615915061213a565b60405163d647364f60e01b815260206004820152601d60248201527f6d73672e76616c75652076732073656c6c416d74206d69736d617463680000006044820152606490fd5b612b409150600435613945565b341415386120ea565b60405163d647364f60e01b815260206004820152600f60248201526e6d73672e76616c75652077726f6e6760881b6044820152606490fd5b50803414156120d4565b634e487b7160e01b88526011600452602488fd5b612bac915060c435613945565b600181018111612b8b57600101956120c0565b8680fd5b8480fd5b8380fd5b8280fd5b50346102a35760203660031901126102a35760043590612bed613d63565b818152600160205260408082206004808201549251635ddf502960e11b81529081018390529390610140856024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa948515610715578495612f9d575b50600a810192835460ff8160b01c16610b345760ff8160a01c1615611af75760ff8160a81c1615612f695760ff8160b81c16611ac5578115612f3457600e830154600684019765ffffffffffff89541691612cbb65ffffffffffff8260301c1684613945565b42119283612f1f575b612cd16101209142613968565b92015115159283612f16575b8315612f0e575b508215612ef9575b5050612d48575b5050505060ff9192505460b01c1615612d0d576001815580f35b60405163d647364f60e01b815260206004820152601260248201527118d85b89dd0818985a5b081bdd5d081e595d60721b6044820152606490fd5b60ff60b01b1916600160b01b1784556040516380bc150d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316919061020081602481865afa908115612eee578791612ecf575b5061ffff6101608201511615159081612ec1575b50612e58575b5050935484546008860180546007880154600289015460099099018054989960ff9991967f6bb0fa0c59004b7cff24fd5aeec270d26ed3de586653a8fe91822f95de5668449660209695612e35956001600160a01b039586169590811693918116929160481c16614312565b5492546040519485526001600160a01b0390811694931692a38291388080612cf3565b813b1561096e578591602483926040519485938492633404227b60e21b845260048401525af1612e89575b80612dc9565b602085612eb960ff977f6bb0fa0c59004b7cff24fd5aeec270d26ed3de586653a8fe91822f95de56684494613302565b955050612e83565b6101a0915001511538612dc3565b612ee891506102003d811161070e576107008183613302565b38612daf565b6040513d89823e3d90fd5b60601c65ffffffffffff161090503880612cec565b925038612ce4565b60019350612cdd565b608083015165ffffffffffff16159350612cc4565b60405163d647364f60e01b815260206004820152600c60248201526b191bd95cdb9d08195e1a5cdd60a21b6044820152606490fd5b60405163d647364f60e01b815260206004820152600b60248201526a1b9bdd081b585d18da195960aa1b6044820152606490fd5b612fb79195506101403d8111610b2257610b148183613302565b9338612c55565b50346102a35760203660031901126102a357604060209160043581526001835220604051612fef838201809361371c565b610560815261300061058082613302565b519020604051908152f35b50346102a35760403660031901126102a357613025613222565b61302d613238565b90613036613d63565b6001600160a01b03828116808552600460209081526040808720938516875292905290842054909290918261306e575b846001815580f35b61309893855260046020526040852060018060a01b038216865260205284604081205530906141f2565b38808080613066565b50346102a35760203660031901126102a3576004356130be613d63565b808252600160205260408220600a81015490916001600160a01b03821680156131e95760206004916040519283809263d7c81b5560e01b82525afa908115610b295785916131b7575b50036131715762ffffff600e83015460e01c161561313a5760a81c60ff1615612f695761313390613d85565b6001815580f35b60405163d647364f60e01b815260206004820152600e60248201526d302070726f746f636f6c2066656560901b6044820152606490fd5b60405163d647364f60e01b815260206004820152601b60248201527f666565526563697069656e74206e6f7420666f722073776170496400000000006044820152606490fd5b90506020813d6020116131e1575b816131d260209383613302565b81010312612bc3575138613107565b3d91506131c5565b60405163d647364f60e01b815260206004820152601060248201526f1b9bc8199959481c9958da5c1a595b9d60821b6044820152606490fd5b600435906001600160a01b038216820361142957565b602435906001600160a01b038216820361142957565b606435906001600160a01b038216820361142957565b608435906001600160a01b038216820361142957565b610180810190811067ffffffffffffffff82111761329757604052565b634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff82111761329757604052565b60c0810190811067ffffffffffffffff82111761329757604052565b6102a0810190811067ffffffffffffffff82111761329757604052565b90601f8019910116810190811067ffffffffffffffff82111761329757604052565b610160809180518452602081015160208501526040810151604085015265ffffffffffff606082015116606085015265ffffffffffff608082015116608085015265ffffffffffff60a08201511660a085015263ffffffff60c08201511660c085015262ffffff60e08201511660e085015262ffffff6101008201511661010085015262ffffff6101208201511661012085015261ffff6101408201511661014085015201511515910152565b61ffff60a0809265ffffffffffff815116855262ffffff602082015116602086015262ffffff604082015116604086015262ffffff6060820151166060860152826080820151166080860152015116910152565b61ffff60a08092805185526020810151602086015260408101516040860152600180831b036060820151166060860152826080820151166080860152015116910152565b906040516134768161327a565b61016060ff6004839580548552600181015460208601526002810154604086015262ffffff600382015465ffffffffffff8116606088015265ffffffffffff8160301c16608088015265ffffffffffff8160601c1660a088015263ffffffff8160901c1660c0880152818160b01c1660e0880152818160c81c1661010088015260e01c16610120860152015461ffff811661014085015260101c161515910152565b90604051613525816132ad565b602062ffffff6001839580548552015416910152565b90604051613548816132c9565b60a061ffff82945465ffffffffffff8116845262ffffff8160301c16602085015262ffffff8160481c16604085015262ffffff8160601c166060850152818160781c16608085015260881c16910152565b906040516135a6816132c9565b60a061ffff600383958054855260018101546020860152600281015460408601520154600180841b03811660608501528181841c16608085015260b01c16910152565b60ff60046101609280548552600181015460208601526002810154604086015262ffffff600382015465ffffffffffff8116606088015265ffffffffffff8160301c16608088015265ffffffffffff8160601c1660a088015263ffffffff8160901c1660c0880152818160b01c1660e0880152818160c81c1661010088015260e01c16610120860152015461ffff811661014085015260101c161515910152565b61ffff60a0915465ffffffffffff8116845262ffffff8160301c16602085015262ffffff8160481c16604085015262ffffff8160601c166060850152818160781c16608085015260881c16910152565b61ffff600360a0928054855260018101546020860152600281015460408601520154600180841b03811660608501528181841c16608085015260b01c16910152565b8054825260018101546020830152600281015460408301526003810154606083015260048101546080830152600581015460a080840191909152600682015465ffffffffffff811660c085015262ffffff603082901c1660e08501526001600160a01b0360489190911c8116610100850152600783015481166101208501526008830154811661014085015260098301548116610160850152600a83015490811661018085015260ff9181901c821615156101a085015260a881901c821615156101c085015260b081901c821615156101e085015260b81c16151561020083015261384d916013906104a0906138196102208201600b86016135e9565b60108401546103a082015262ffffff6011850154166103c08201526138456103e082016012860161368a565b0191016136da565b565b51906001600160a01b038216820361142957565b519065ffffffffffff8216820361142957565b5190811515820361142957565b90816101409103126114295760405190610140820182811067ffffffffffffffff8211176132975761393c91610120916040528051845260208101516020850152604081015160408501526138da6060820161384f565b60608501526138eb60808201613863565b60808501526138fc60a08201613863565b60a085015261390d60c0820161384f565b60c085015261391e60e08201613863565b60e08501526139306101008201613876565b61010085015201613876565b61012082015290565b9190820180921161395257565b634e487b7160e01b600052601160045260246000fd5b9190820391821161395257565b519061ffff8216820361142957565b90816102009103126114295760405190610200820182811067ffffffffffffffff82111761329757613a93916101e091604052805184526020810151602085015260408101516040850152606081015160608501526080810151608085015260a081015160a085015260c081015160c0850152613a0360e0820161384f565b60e0850152613a15610100820161384f565b610100850152613a28610120820161384f565b610120850152613a3b6101408201613975565b610140850152613a4e6101608201613975565b610160850152613a616101808201613876565b610180850152613a746101a08201613876565b6101a0850152613a876101c08201613876565b6101c085015201613876565b6101e082015290565b65ffffffffffff166103e8029065ffffffffffff821691820361395257565b60011b906601fffffffffffe65fffffffffffe83169216820361395257565b60405190613ae78261327a565b6000610160838281528260208201528260408201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201520152565b60405190613b40826132ad565b60006020838281520152565b60405190613b59826132c9565b600060a0838281528260208201528260408201528260608201528260808201520152565b90604051613b8a816132e5565b8254815260018301546020820152600283015460408201526003830154606082015260048301546080820152600583015460a080830191909152600684015465ffffffffffff811660c084015262ffffff603082901c1660e08401526001600160a01b0360489190911c8116610100840152600785015481166101208401526008850154811661014084015260098501548116610160840152600a85015490811661018084015260ff9181901c821615156101a084015260a881901c821615156101c084015260b081901c821615156101e084015260b81c16151561020082015291829061028090613cb590601390613c85600b8201613469565b610220860152613c9760108201613518565b610240860152613ca96012820161353b565b61026086015201613599565b910152565b8181029291811591840414171561395257565b8115613cd7570490565b634e487b7160e01b600052601260045260246000fd5b6000526001602052604060002060ff600a82015460a81c16613d5d57613d186012613d5a920161353b565b62ffffff6020820151169062ffffff60408201511661ffff60808301511661ffff60a0840151169162ffffff606065ffffffffffff86511695015116946144a0565b90565b50600090565b600260005414613d74576002600055565b633ee5aeb560e01b60005260046000fd5b600a8101805460068301549192916000916001600160a01b039081169160481c16806141ac57507f0000000000000000000000000000000000000000000000000000000000000000925b60078101546001600160a01b0316806141a657507f0000000000000000000000000000000000000000000000000000000000000000925b823b156102a35760405163e522538160e01b815281808260048183895af1614196575b50506040516370a0823160e01b81523060048201526001600160a01b0386169290602081602481875afa908115611436578391614164575b5060405162b40d3160e11b815260048101859052602081602481878a5af1614135575b506040516370a0823160e01b815230600482015290602082602481885afa918215610715578492614101575b50808211156140f957613ec291613968565b915b6040516370a0823160e01b81523060048201526001600160a01b038716956020826024818a5afa9182156114365790839182936140c1575b5060209060246040518094819362b40d3160e11b83528c60048401525af1614092575b506040516370a0823160e01b81523060048201526020816024818a5afa90811561143657908392918a949161404d575b5097613fd98361400d937f37d4cc64749a918cd3164e59bcc5a1dc7fe5e54dbbca204bdb1926e18ac2b1439b60a09b9a999897965081811160001461404557613f989250613968565b945b60098760011c91613fc6613fae848b613968565b93600883019860018f81901b038a54169030906141f2565b019b6001808c1b038d54169030906141f2565b8360011c90613ffc613feb8387613968565b926001808c1b0386541630846141f2565b6001808a1b038b54169030906141f2565b54965497546040805195865260208601949094529284015260608301526001831b6000190190811660808301529485169490931692a3565b505094613f9a565b979695949350506020873d60201161408a575b8161406d60209383613302565b810103126114295795519495939492939192889290613fd9613f4f565b3d9150614060565b6020813d6020116140b9575b816140ab60209383613302565b810103126114295751613f1f565b3d915061409e565b915091506020813d6020116140f1575b816140de60209383613302565b8101031261142957519082906020613efc565b3d91506140d1565b505081613ec4565b9091506020813d60201161412d575b8161411d60209383613302565b8101031261142957519038613eb0565b3d9150614110565b6020813d60201161415c575b8161414e60209383613302565b810103126114295751613e84565b3d9150614141565b90506020813d60201161418e575b8161417f60209383613302565b81010312611429575138613e61565b3d9150614172565b61419f91613302565b3881613e29565b92613e06565b92613dcf565b3d156141ed573d9067ffffffffffffffff821161329757604051916141e1601f8201601f191660200184613302565b82523d6000602084013e565b606090565b9190831561430c576001600160a01b03811630036142f9575060405163a9059cbb60e01b602082019081526001600160a01b038316602483015260448083018690528252600091829190614247606482613302565b519082865af16142556141b2565b8161429d575b506142985760018060a01b0316600052600460205260406000209060018060a01b03166000526020526142946040600020918254613945565b9055565b505050565b80518015801593509190836142d5575b505081156142bd575b503861425b565b9050806142cb575b386142b6565b50813b15156142c5565b8192935090602091810103126114295760206142f19101613876565b9038806142ad565b61384d93926001600160a01b031661436e565b50505050565b9294929091906001600160a01b038116156143585790614334929130906141f2565b6001600160a01b0383161561434e5761384d9230906141f2565b61384d92506143ee565b5061384d9491614367916143ee565b30906141f2565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815261384d916112d3608483613302565b60405163a9059cbb60e01b60208201526001600160a01b0392909216602483015260448083019390935291815261384d916112d3606483613302565b600092919083808080856001600160a01b038616619c40f161440e6141b2565b501561441b575b50509050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316803b15612bc357604051630d0e30db60e41b815294808660048187865af19586156144935761447b9596614483575b50506143b2565b803880614415565b8161448d91613302565b38614474565b50604051903d90823e3d90fd5b92939461047c6144b292939642613968565b928084116144ff575b509291906000925b8284106144d1575050505090565b909192936144e28261271092613cba565b0493828510156144f7576001019291906144c3565b505091505090565b9250386144bb565b9065ffffffffffff8091169116039065ffffffffffff821161395257565b9065ffffffffffff8091169116019065ffffffffffff821161395257565b919291156146025761456061456f9165ffffffffffff4216614507565b9265ffffffffffff4316614507565b915b65ffffffffffff8083169116029065ffffffffffff82169182036139525761459883613a9c565b65ffffffffffff806145b26145ac85613abb565b86614525565b169116119283156145d2575b5050506000146145cd57600090565b600190565b65ffffffffffff929350906145f26145ec6145f893613a9c565b91613abb565b90614525565b16103880806145be565b916145606146189165ffffffffffff4216614507565b91614571565b906000602091828151910182855af115614679576000513d61467057506001600160a01b0381163b155b61464f5750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b60011415614648565b6040513d6000823e3d90fdfe60e0346100ec57601f6105a338819003918201601f19168301916001600160401b038311848410176100f15780849260a0946040528339810103126100ec5761004781610107565b90602081015161005960408301610107565b90610072608061006b60608601610107565b9401610107565b6001600081905560809590955260a0919091526001600160a01b0391821660c05283549282166001600160a01b03199384161790935560028054919093169116179055604051610487908161011c82396080518181816101e001526102af015260a0518161017e015260c051818181608f01526102250152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036100ec5756fe6080604052600436101561001257600080fd5b6000803560e01c806301681a621461027d57806325be124e146102545780637dc0d1d01461020f5780638da5cb5b146101ca578063d21220a7146101a1578063d7c81b55146101665763e52253811461006a57600080fd5b3461014057806003193601126101405761008261042f565b6001546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116929116823b15610162576040519063f27dd8ab60e01b82526004820152818160248183875af1801561014357610152575b50600254909182916001600160a01b0316813b1561014e57829160248392604051948593849263f27dd8ab60e01b845260048401525af180156101435761012b575b506001905580f35b81610135916103f7565b610140578038610123565b80fd5b6040513d84823e3d90fd5b5050fd5b8161015c916103f7565b386100e1565b5080fd5b503461014057806003193601126101405760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346101405780600319360112610140576001546040516001600160a01b039091168152602090f35b50346101405780600319360112610140576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101405780600319360112610140576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101405780600319360112610140576002546040516001600160a01b039091168152602090f35b5034610140576020366003190112610140576004356001600160a01b0381169190829003610140576102ad61042f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036103c6576040516370a0823160e01b815230600482015291602083602481845afa928315610143578293610392575b508261031e575b60208360018455604051908152f35b6020826040518281019063a9059cbb60e01b82523360248201528660448201526044815261034d6064826103f7565b519082855af1156103855781513d61037c5750803b155b1561030f57635274afe760e01b825260045260249150fd5b60011415610364565b50604051903d90823e3d90fd5b9092506020813d6020116103be575b816103ae602093836103f7565b8101031261016257519138610308565b3d91506103a1565b60405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606490fd5b90601f8019910116810190811067ffffffffffffffff82111761041957604052565b634e487b7160e01b600052604160045260246000fd5b600260005414610440576002600055565b633ee5aeb560e01b60005260046000fdfea264697066735822122016c59d4bf2e0b1c39b7440267203c28379fa4daf76eda653d182be3c2c8ff89e64736f6c634300081c0033a2646970667358221220a525a53cb78ab647ec52d5b4658a53df86acb8121fcbf1ec42e8719ad23a639464736f6c634300081c0033000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c000000000000000000000000737969510e37a6f8a5408de2a08b57df6d0f1d48

Deployed Bytecode

0x6080604052600436101561001257600080fd5b6000803560e01c8063127fa21c146130a1578063195a1dea1461300b578063298842fb14612fbe5780632f437b7414612bcf578063490e646914611e2157806349d5fdad14611dcc5780634a0d89ba14611b9657806354d6a2b714611866578063553670051461182257806368eb5155146118045780637dc0d1d0146117bf5780637e2d0ebe1461177a5780638f4083c114610c5d578063943dfef114610c18578063ad5c464814610bd3578063b0e2bcc81461038c578063c802fd3114610362578063d0782e0714610312578063e2bc7bfe146102cd578063eb42d739146102a65763f09c58291461010457600080fd5b346102a35760203660031901126102a3576004358152600160205260409020805460018201549160028101546003820154600483015460058401546006850154600160a01b60019003600787015416600160a01b6001900360088801541691600160a01b6001900360098901541693600a89015495600b8a0161018690613469565b9761019360108c01613518565b996101a060128d0161353b565b9b6013016101ad90613599565b9c6040519e8f91825260208201526040015260608d015260808c015260a08b015265ffffffffffff811660c08b01528060301c62ffffff1660e08b0152600160a01b600190039060481c166101008a0152610120890152610140880152610160870152600160a01b6001900381166101808701528060a01c60ff1615156101a08701528060a81c60ff1615156101c08701528060b01c60ff1615156101e087015260b81c60ff161515610200860152610220850161026a91613324565b80516103a08501526020015162ffffff166103c08401526103e0830161028f916133d1565b6104a0820161029d91613425565b61056090f35b80fd5b50346102a35760203660031901126102a35760206102c5600435613ced565b604051908152f35b50346102a35760203660031901126102a3576103036012604060c0936102f1613b4c565b5060043581526001602052200161353b565b61031060405180926133d1565bf35b50346102a35760203660031901126102a357610347601060408093610335613b33565b50600435815260016020522001613518565b6103108251809262ffffff6020809280518552015116910152565b50346102a35760203660031901126102a35760406020916004358152600383522054604051908152f35b5060a03660031901126102a357602435906004356103a861324e565b506103b1613264565b506103ba613d63565b7f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b031633819003610b9c5781835260036020526040832054938484526001602052604084209160048301548403610b6557600a83019081549060ff8260b01c16610b345760ff60b01b19909116600160b01b17909155604051635ddf502960e11b8152600481018590529061014090829060249082905afa908115610b29578591610afa575b50610481815161047c60208401518654613cba565b613ccd565b956104a86006850197629896806104a162ffffff8b5460301c1683613cba565b0490613968565b92601085015497601186019462ffffff8654166298968001998a6298968011610ae657629896806104d98c83613cba565b049062989680810290808204629896801490151715610ad2578a9b6104fd91613ccd565b8410159384610ac7575b5050600f87019561054360ff885460101c1665ffffffffffff60e08160808b01511699015116600e8b019863ffffffff8a5460901c1692614543565b9360028901948554841191829183159384610aba575b8015610ab2575b610a83575b159182610a54575b92610a46575b8215610a3d575b508115610a35575b501561072f5750505485546008870180546007890154945460098a01805462ffffff9a5090967f6bb0fa0c59004b7cff24fd5aeec270d26ed3de586653a8fe91822f95de566844966020966105ef956001600160a01b039485169594938416939081169260481c16614312565b5492546040519485526001600160a01b0390811694931692a35b5460e01c16610720575b506040516380bc150d60e01b8152600481018290527f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c6001600160a01b0316919061020081602481865afa9081156107155784916106e6575b5061ffff61016082015116151590816106d8575b5061068e575b826001815580f35b813b156106d4578291602483926040519485938492633404227b60e21b845260048401525af16106bf575b80610686565b816106c991613302565b6102a35780386106b9565b5050fd5b6101a0915001511538610680565b61070891506102003d811161070e575b6107008183613302565b810190613984565b3861066c565b503d6106f6565b6040513d86823e3d90fd5b61072990613d85565b38610613565b60078801805495979295929491926001600160a01b0316156109d557805460088a015461079d92916107719189916001600160a01b03918216913091166141f2565b5460098a018054935490936001600160a01b03928316921690610795908990613968565b9130906141f2565b825460481c6001600160a01b0316156109bb578254905488546107d69290916001600160a01b0390811691309160489190911c166141f2565b604051631e81bacf60e31b81527f000000000000000000000000737969510e37a6f8a5408de2a08b57df6d0f1d486001600160a01b03169190602081600481865afa8b918161097b575b506109765750895b61088d575b5050505062ffffff927f28c738dbec11a1bed94ba127a3712d54bcd39cf4ae95b6ebd671aaf10fd0287b606060018060a01b036008880154169260018060a01b0360098901541694885460405192835260208301526040820152a3610609565b60018060a01b036008890154169260018060a01b03905460481c169088549360ff8854965460101c1660128b01549462ffffff600c8d015494541695813b15610972578e9889976101649662ffffff80948b976040519d8e9c8d9b63e2cb061360e01b8d5260048d015260248c015260448b015265ffffffffffff861660648b0152151560848a0152818160481c1660a48a015260301c1660c488015260e4870152610104860152818160c81c1661012486015260e01c166101448401525af1610959575b808061082d565b8161096391613302565b61096e578538610952565b8580fd5b8e80fd5b610828565b9091506020813d6020116109b3575b8161099760209383613302565b810103126109af576109a890613876565b9038610820565b8b80fd5b3d915061098a565b5487546109d0916001600160a01b03166143ee565b6107d6565b5060088801546109d091906109f49087906001600160a01b03166143ee565b610a1760098a0191610a118860018060a01b038554169254613968565b906143ee565b835490548954916001600160a01b0391821691309160481c166141f2565b905038610582565b1591503861057a565b60018b015485109250610573565b7f0d7588aed4e3a34fe5a68f90d8140374f667a941c661261b6c8f994948fa819d60206040518b8152a161056d565b7f34fbc8a950948a7d9440764afead2606f6a9dbc03a077f21b44840bf3de706b760206040518b8152a1610565565b508115610560565b5060018c01548610610559565b111592503880610507565b634e487b7160e01b8b52601160045260248bfd5b634e487b7160e01b8a52601160045260248afd5b610b1c91506101403d8111610b22575b610b148183613302565b810190613883565b38610467565b503d610b0a565b6040513d87823e3d90fd5b60405163d647364f60e01b8152602060048201526008602482015267199a5b9a5cda195960c21b6044820152606490fd5b60405163d647364f60e01b815260206004820152600e60248201526d1ddc9bdb99c81c995c1bdc9d125960921b6044820152606490fd5b60405163d647364f60e01b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b6044820152606490fd5b50346102a357806003193601126102a3576040517f00000000000000000000000042000000000000000000000000000000000000066001600160a01b03168152602090f35b50346102a357806003193601126102a3576040517f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c6001600160a01b03168152602090f35b5060403660031901126102a357610c72613d63565b6004358152600160205260408120610c8c6012820161353b565b6040516020810190610c9e828561371c565b6105608152610caf61058082613302565b5190206024350361174b576007820180546001600160a01b031615801580611742575b61170657806116f8575b6116c657600a83019182549060ff8260b81c1661168f5760ff8260a81c1661165a5760ff8260a01c16156116225760ff8260b01c16610b3457600385015442116115f25760ff60a81b19909116600160a81b1783556009840180546001600160a01b0319163317905560068401805465ffffffffffff19164265ffffffffffff9081169190911790915560208201516040830151608084015160a08501518551606090960151610dcd9662ffffff96610daa969288169591169361ffff9384169316919087169087166144a0565b16600685019062ffffff60301b82549160301b169062ffffff60301b1916179055565b610ddb6005840154336143ee565b80546001600160a01b0316806115da575b5062ffffff600e84015460e01c166114ac575b5050610e0a81613b7d565b6102208101516101008201516001600160a01b03168061146a57506101208201516001600160a01b0316917f0000000000000000000000004200000000000000000000000000000000000006905b60208301519360408401519284519165ffffffffffff60608701511662ffffff60e08801511662ffffff610120890151169162ffffff6101008a0151169461ffff6101408b015116966101608b015115159861018060018060a01b0391015116996040519c8d67ffffffffffffffff610220828181011092011117611455576102208e016040528d5260208d015260408c015260018060a01b031660608b015260808a015260a089015260c088015260018060a01b031660e0870152620f42406101008701526101208601526101408501526101608401528461018084015260016101a0840152306101c084015263161c579960e31b6101e084015261020083015251906001820182116114415760408051631d6329ab60e11b815282516004820152602083810151602483015291830151604482015260608301516001600160a01b039081166064830152608084015165ffffffffffff16608483015260a084015162ffffff90811660a484015260c0850151811660c484015260e0850151821660e484015261010085015163ffffffff166101048401526101208501511661012483015261014084015161ffff16610144830152610160840151151561016483015261018084015115156101848301526101a084015115156101a48301526101c084015181166101c48301526101e08401516001600160e01b0319166101e4830152610200909301518316610204820152939290918491610224918391600101907f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f165af19182156114365783926113fd575b50601681018054909160138101916001600160a01b03168061132457508154925b8560018060a01b037f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c1693601484015495600885019660018060a01b0388541692855490549060158801549365ffffffffffff600e8a015460301c168a3b156113205787956101a4948e94604051998a98899763b64783e760e01b895260048901526024880152604487015230606487015261ffff8160a01c16608487015261ffff8160b01c1660a4870152600160c48701528860e487015260018060a01b031661010486015261012485015261014484015285610164840152610184830152895af18015611315576112fc575b5050547f08718d9f0e810107a141828034c9fda59cd0fef0313fe600633b0a5d09ba929a92606092916001600160a01b03168061124e575b50508460048201558486526003602052600435604087205562ffffff600682015460301c1690600960018060a01b03910154169360018060a01b039054169460405191600435835260208301526040820152a36001815580f35b6040519060208981840163095ea7b360e01b81528560248601528160448601526044855261127d606486613302565b84519082855af189513d826112e0575b50501561129b575b506111f4565b6112d36112d8936040519063095ea7b360e01b602083015260248201528a6044820152604481526112cd606482613302565b8261461e565b61461e565b388080611295565b9091506112f45750803b15155b388061128d565b6001146112ed565b8161130991949394613302565b61096e579085386111bc565b6040513d84823e3d90fd5b8780fd5b825460405163095ea7b360e01b60208083019182526001600160a01b037f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c1660248401819052604480850195909552938352899794918890611387606486613302565b84519082855af189513d826113e1575b5050156113a7575b5050506110ce565b6112d36113d9936040519063095ea7b360e01b602083015260248201528a6044820152604481526112cd606482613302565b38808061139f565b9091506113f55750803b15155b3880611397565b6001146113ee565b9091506020813d60201161142e575b8161141960209383613302565b81010312611429575190386110ad565b600080fd5b3d915061140c565b6040513d85823e3d90fd5b634e487b7160e01b84526011600452602484fd5b50634e487b7160e01b8f52604160045260248ffd5b6101208301516001600160a01b0316806114a657507f000000000000000000000000420000000000000000000000000000000000000692610e58565b92610e58565b600683015460481c6001600160a01b0316806115d457507f0000000000000000000000004200000000000000000000000000000000000006905b546001600160a01b0316806115ce57507f0000000000000000000000004200000000000000000000000000000000000006905b604051916105a3918284019284841067ffffffffffffffff8511176115ba579160a093918593614686853930835260043560208401526001851b600019017f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f81166040850152908116606084015216608082015203019084f080156114365781546001600160a01b0319166001600160a01b03919091161790553880610dff565b634e487b7160e01b88526041600452602488fd5b90611519565b906114e6565b60028401546115ec913090339061436e565b38610dec565b60405163d647364f60e01b8152602060048201526007602482015266195e1c1a5c995960ca1b6044820152606490fd5b60405163d647364f60e01b815260206004820152600f60248201526e73776170206e6f742061637469766560881b6044820152606490fd5b60405163d647364f60e01b815260206004820152600c60248201526b1cddd85c081b585d18da195960a21b6044820152606490fd5b60405163d647364f60e01b815260206004820152600e60248201526d1cddd85c0818d85b98d95b1b195960921b6044820152606490fd5b60405163d647364f60e01b81526020600482015260096024820152686d73672e76616c756560b81b6044820152606490fd5b506002830154341415610cdc565b60405163d647364f60e01b815260206004820152601360248201527206d73672e76616c7565206d757374206265203606c1b6044820152606490fd5b50341515610cd2565b60405163d647364f60e01b8152602060048201526006602482015265706172616d7360d01b6044820152606490fd5b50346102a357806003193601126102a3576040517f000000000000000000000000737969510e37a6f8a5408de2a08b57df6d0f1d486001600160a01b03168152602090f35b50346102a357806003193601126102a3576040517f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03168152602090f35b50346102a357806003193601126102a3576020600254604051908152f35b50346102a35760203660031901126102a357611859600b604061018093611847613ada565b50600435815260016020522001613469565b6103106040518092613324565b50346102a35760203660031901126102a357600435611883613d63565b80825260016020526040822061189b600b8201613469565b6008820180549091906001600160a01b03163303611b6257600a8301805460ff8160a81c16611b2a5760ff8160a01c1615611af75760ff8160b81c16611ac55760ff8160b01c16610b345760ff60b81b1916600160b81b179055601683018054601385019391906001600160a01b031680611a2357505060068401805460481c6001600160a01b0316156119b8575484546119709461196893909260059261195091339060481c6001600160a01b03166143b2565b5495015490546001600160a01b039095169490613945565b905190613945565b906001820180921161144157916119aa6020927ff6b6b4f7a13f02512c1b3aa8dcc4a07d7775a6a4becbd439efcbd37c5408e67f946143ee565b604051908152a16001815580f35b506119e4926119dc6119689260018060a01b03905416956005815491015490613945565b905490613945565b90600182018092116114415791611a1e6020927ff6b6b4f7a13f02512c1b3aa8dcc4a07d7775a6a4becbd439efcbd37c5408e67f946143ee565b6119aa565b60068601805493959390919060481c6001600160a01b031615611a9357506005926119e49592611a67611a7b9360018060a01b03905460481c1689549033906143b2565b5490549033906001600160a01b03166143b2565b5493015490516001600160a01b039093169290613945565b6119e4959250611aab915061196893549033906143b2565b5484546005909501546001600160a01b0390911694613945565b60405163d647364f60e01b815260206004820152600960248201526818d85b98d95b1b195960ba1b6044820152606490fd5b60405163d647364f60e01b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606490fd5b60405163d647364f60e01b815260206004820152600f60248201526e185b1c9958591e481b585d18da1959608a1b6044820152606490fd5b60405163d647364f60e01b815260206004820152600b60248201526a3737ba1039bbb0b83832b960a91b6044820152606490fd5b50346102a35760203660031901126102a357611c7d6040610560928151611bbc816132e5565b81815281602082015281838201528160608201528160808201528160a08201528160c08201528160e08201528161010082015281610120820152816101408201528161016082015281610180820152816101a0820152816101c0820152816101e082015281610200820152611c2f613ada565b6102208201528251611c40816132ad565b6000815260006020820152610240820152611c59613b4c565b610260820152610280611c6a613b4c565b9101526004358152600160205220613b7d565b61031061028060405192805184526020810151602085015260408101516040850152606081015160608501526080810151608085015260a081015160a085015265ffffffffffff60c08201511660c085015262ffffff60e08201511660e085015260018060a01b036101008201511661010085015260018060a01b036101208201511661012085015260018060a01b036101408201511661014085015260018060a01b036101608201511661016085015260018060a01b03610180820151166101808501526101a081015115156101a08501526101c081015115156101c08501526101e081015115156101e08501526102008101511515610200850152611d8e610220820151610220860190613324565b61024081015180516103a08601526020015162ffffff166103c0850152611dbf6102608201516103e08601906133d1565b01516104a0830190613425565b50346102a35760403660031901126102a3576040611de8613222565b91611df1613238565b9260018060a01b031681526004602052209060018060a01b03166000526020526020604060002054604051908152f35b506104203660031901126102a357611e37613238565b611e3f61324e565b906101803660e3190112612bcb5760405190611e5a8261327a565b60e43582526101043560208301526101243560408301526101443565ffffffffffff81168103612bc35760608301526101643565ffffffffffff81168103612bc35760808301526101843565ffffffffffff81168103612bc35760a08301526101a43563ffffffff81168103612bc35760c08301526101c43562ffffff81168103612bc35760e08301526101e43562ffffff81168103612bc3576101008301526102043562ffffff81168103612bc3576101208301526102243561ffff81168103612bc3576101408301526102443515156102443503612bc75761024435610160830152604036610263190112612bc75760405190611f58826132ad565b6102643582526102843562ffffff8116810361096e57602083015260c0366102a3190112612bc35760405192611f8d846132c9565b6102a43565ffffffffffff81168103612bbf5784526102c43562ffffff81168103612bbf5760208501526102e43562ffffff81168103612bbf5760408501526103043562ffffff81168103612bbf5760608501526103243561ffff81168103612bbf5760808501526103443561ffff81168103612bbf5760a085015260c03661036319011261096e5760405194612023866132c9565b6103643586526103843560208701526103a43560408701526103c4356001600160a01b03811681036113205760608701526103e43561ffff811681036113205760808701526104043561ffff811681036113205760a0870152612084613d63565b8151865160608801519091906001600160a01b0316612b9f576120ac6120b19260c435613945565b613945565b600181018111612b8b57600101955b6001600160a01b0384161515968780612b81575b612b49576001600160a01b038516159081612b33575b50612aed576001600160a01b0384811690831614612a71577f00000000000000000000000042000000000000000000000000000000000000066001600160a01b0390811690851681149081612adb575b8115612aae575b50612a7157600435158015612a67575b8015612a5d575b612a28576298968062ffffff60208801511610156129f15784511580156129e0575b80156129cb575b61299a5760648351108015612988575b8015612974575b8015612968575b8015612956575b8015612937575b8015612926575b801561290f575b80156128dc575b80156128a7575b801561288f575b61285a5762ffffff6020870151168015908115612848575b8115612837575b8115612826575b8115612814575b8115612801575b81156127f4575b506127bb5761ffff60a08201511680159081156127ae575b81156127a4575b8115612797575b8115612788575b811561277d575b50801561276a575b612735576002549660001988146127215760018881016002908155898b52602082815260408c206008810180546001600160a01b031990811633179091556004358255600682018054600160481b600160e81b03191660488c901b600160481b600160e81b0316179055604435828601556007820180549091166001600160a01b038916179055608435928101929092559a91989197919691958a957fe21af1913a28643a249b87ab5aeb7f79764da7bfb01c87df404d924234714fa49561044095612673949361231a60a43542613945565b6003860155600a85018e60a01b60ff60a01b198254161790558051600b8601558f810151600c8601556040810151600d860155600e850165ffffffffffff806060840151161665ffffffffffff198254161781556080820151815465ffffffffffff60601b60a085015160601b169163ffffffff60901b60c086015160901b169062ffffff60b01b60e087015160b01b169162ffffff60c81b61010088015160c81b169362ffffff60e01b61012089015160e01b169562ffffff60e01b199362ffffff60c81b19926bffffffffffff00000000000062ffffff60b01b199260301b169075ffffffffffffffffffffffffffffffff00000000000019161716171617161717179055600f85019061ffff6101408201511662ff00006101608454930151151560101b169162ffffff19161717905589516010850155601184018f62ffffff908c01511662ffffff1982541617905560c435600585015565ffffffffffff808c51161665ffffffffffff196012860154161760128501556124c48f62ffffff908d015116601286019062ffffff60301b82549160301b169062ffffff60301b1916179055565b60408b01518b60128601549162ffffff60601b606083015160601b169061ffff60781b608084015160781b169260a061ffff60881b91015160881b169361ffff60881b199162ffffff60481b9060481b169067ffffffffffffffff60481b19161716171717601285015565ffffffffffff8042161665ffffffffffff19601286015416176012850155815160138501558e820151601485015560408201516015850155601684018d8060a01b038e8060a01b03606085015116166bffffffffffffffffffffffff60a01b8254161781556080830151815461ffff60b01b60a086015160b01b169161ffff60a01b9060a01b169063ffffffff60a01b191617179055612707575b8b8060a01b03606082015116806126f1575b50508a8060a01b0360088301541697600383015462ffffff8f835193015116926040519660043588528e8060a01b0316602088015260443560408801528d8060a01b03166060870152608435608087015260a086015260c085015260e084015261264d61010084016012830161368a565b426101c08401526126656101e08401600b83016135e9565b6013610360840191016136da565b60c435610420820152a362ffffff85820151169062ffffff604082015116821490816126df575b506126aa575b5055604051908152f35b60407f568f0eaf9db9a061f5c62822514631a144ec5a048dfb466df131ef12d46e87469181519086825287820152a1386126a0565b60a0015161ffff16841490503861269a565b6127009151903090339061436e565b38806125dc565b61271c60043530338f8060a01b03891661436e565b6125ca565b634e487b7160e01b89526011600452602489fd5b60405163d647364f60e01b815260206004820152600c60248201526b626f756e7479506172616d7360a01b6044820152606490fd5b5061271161ffff60808301511610612247565b60649150113861223f565b60208301518351109150612238565b6040830151159150612231565b825115915061222a565b6020830151159150612223565b60405163d647364f60e01b815260206004820152601060248201526f66756c66696c6c466565506172616d7360801b6044820152606490fd5b629896809150113861220b565b604088015162ffffff1681109150612204565b606088015162ffffff161591506121fd565b60a088015161ffff161591506121f6565b608088015161ffff161591506121ef565b604088015162ffffff161591506121e8565b60405163d647364f60e01b815260206004820152600c60248201526b6f7261636c65506172616d7360a01b6044820152606490fd5b5062093a8065ffffffffffff60a085015116116121d0565b5065ffffffffffff60a084015116601465ffffffffffff606086015116029065ffffffffffff8216918203610ae657106121c9565b5062ffffff6101008401511662ffffff610120850151160162ffffff81116127215762ffffff62989680911610156121c2565b5061384065ffffffffffff606085015116116121bb565b5060408301516020840151116121b4565b5062ffffff60e08401511665ffffffffffff60608501511611156121ad565b5063ffffffff60c084015116156121a6565b5060208301511561219f565b5065ffffffffffff60608401511615612198565b5062ffffff6101008401511615612191565b60405163d647364f60e01b8152602060048201526008602482015267736c69707061676560c01b6044820152606490fd5b506298968062ffffff60208701511611612181565b5062ffffff6020860151161561217a565b60405163d647364f60e01b815260206004820152600e60248201526d66756c66696c6c6d656e7446656560901b6044820152606490fd5b60405163d647364f60e01b815260206004820152600c60248201526b7a65726f20616d6f756e747360a01b6044820152606490fd5b5060843515612158565b5060443515612151565b60405163d647364f60e01b815260206004820152601460248201527339b2b6362a37b5b2b7101e90313abcaa37b5b2b760611b6044820152606490fd5b6001600160a01b03861615915081612ac8575b5038612141565b6001600160a01b03841614905038612ac1565b6001600160a01b03841615915061213a565b60405163d647364f60e01b815260206004820152601d60248201527f6d73672e76616c75652076732073656c6c416d74206d69736d617463680000006044820152606490fd5b612b409150600435613945565b341415386120ea565b60405163d647364f60e01b815260206004820152600f60248201526e6d73672e76616c75652077726f6e6760881b6044820152606490fd5b50803414156120d4565b634e487b7160e01b88526011600452602488fd5b612bac915060c435613945565b600181018111612b8b57600101956120c0565b8680fd5b8480fd5b8380fd5b8280fd5b50346102a35760203660031901126102a35760043590612bed613d63565b818152600160205260408082206004808201549251635ddf502960e11b81529081018390529390610140856024817f000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f6001600160a01b03165afa948515610715578495612f9d575b50600a810192835460ff8160b01c16610b345760ff8160a01c1615611af75760ff8160a81c1615612f695760ff8160b81c16611ac5578115612f3457600e830154600684019765ffffffffffff89541691612cbb65ffffffffffff8260301c1684613945565b42119283612f1f575b612cd16101209142613968565b92015115159283612f16575b8315612f0e575b508215612ef9575b5050612d48575b5050505060ff9192505460b01c1615612d0d576001815580f35b60405163d647364f60e01b815260206004820152601260248201527118d85b89dd0818985a5b081bdd5d081e595d60721b6044820152606490fd5b60ff60b01b1916600160b01b1784556040516380bc150d60e01b8152600481018290527f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c6001600160a01b0316919061020081602481865afa908115612eee578791612ecf575b5061ffff6101608201511615159081612ec1575b50612e58575b5050935484546008860180546007880154600289015460099099018054989960ff9991967f6bb0fa0c59004b7cff24fd5aeec270d26ed3de586653a8fe91822f95de5668449660209695612e35956001600160a01b039586169590811693918116929160481c16614312565b5492546040519485526001600160a01b0390811694931692a38291388080612cf3565b813b1561096e578591602483926040519485938492633404227b60e21b845260048401525af1612e89575b80612dc9565b602085612eb960ff977f6bb0fa0c59004b7cff24fd5aeec270d26ed3de586653a8fe91822f95de56684494613302565b955050612e83565b6101a0915001511538612dc3565b612ee891506102003d811161070e576107008183613302565b38612daf565b6040513d89823e3d90fd5b60601c65ffffffffffff161090503880612cec565b925038612ce4565b60019350612cdd565b608083015165ffffffffffff16159350612cc4565b60405163d647364f60e01b815260206004820152600c60248201526b191bd95cdb9d08195e1a5cdd60a21b6044820152606490fd5b60405163d647364f60e01b815260206004820152600b60248201526a1b9bdd081b585d18da195960aa1b6044820152606490fd5b612fb79195506101403d8111610b2257610b148183613302565b9338612c55565b50346102a35760203660031901126102a357604060209160043581526001835220604051612fef838201809361371c565b610560815261300061058082613302565b519020604051908152f35b50346102a35760403660031901126102a357613025613222565b61302d613238565b90613036613d63565b6001600160a01b03828116808552600460209081526040808720938516875292905290842054909290918261306e575b846001815580f35b61309893855260046020526040852060018060a01b038216865260205284604081205530906141f2565b38808080613066565b50346102a35760203660031901126102a3576004356130be613d63565b808252600160205260408220600a81015490916001600160a01b03821680156131e95760206004916040519283809263d7c81b5560e01b82525afa908115610b295785916131b7575b50036131715762ffffff600e83015460e01c161561313a5760a81c60ff1615612f695761313390613d85565b6001815580f35b60405163d647364f60e01b815260206004820152600e60248201526d302070726f746f636f6c2066656560901b6044820152606490fd5b60405163d647364f60e01b815260206004820152601b60248201527f666565526563697069656e74206e6f7420666f722073776170496400000000006044820152606490fd5b90506020813d6020116131e1575b816131d260209383613302565b81010312612bc3575138613107565b3d91506131c5565b60405163d647364f60e01b815260206004820152601060248201526f1b9bc8199959481c9958da5c1a595b9d60821b6044820152606490fd5b600435906001600160a01b038216820361142957565b602435906001600160a01b038216820361142957565b606435906001600160a01b038216820361142957565b608435906001600160a01b038216820361142957565b610180810190811067ffffffffffffffff82111761329757604052565b634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff82111761329757604052565b60c0810190811067ffffffffffffffff82111761329757604052565b6102a0810190811067ffffffffffffffff82111761329757604052565b90601f8019910116810190811067ffffffffffffffff82111761329757604052565b610160809180518452602081015160208501526040810151604085015265ffffffffffff606082015116606085015265ffffffffffff608082015116608085015265ffffffffffff60a08201511660a085015263ffffffff60c08201511660c085015262ffffff60e08201511660e085015262ffffff6101008201511661010085015262ffffff6101208201511661012085015261ffff6101408201511661014085015201511515910152565b61ffff60a0809265ffffffffffff815116855262ffffff602082015116602086015262ffffff604082015116604086015262ffffff6060820151166060860152826080820151166080860152015116910152565b61ffff60a08092805185526020810151602086015260408101516040860152600180831b036060820151166060860152826080820151166080860152015116910152565b906040516134768161327a565b61016060ff6004839580548552600181015460208601526002810154604086015262ffffff600382015465ffffffffffff8116606088015265ffffffffffff8160301c16608088015265ffffffffffff8160601c1660a088015263ffffffff8160901c1660c0880152818160b01c1660e0880152818160c81c1661010088015260e01c16610120860152015461ffff811661014085015260101c161515910152565b90604051613525816132ad565b602062ffffff6001839580548552015416910152565b90604051613548816132c9565b60a061ffff82945465ffffffffffff8116845262ffffff8160301c16602085015262ffffff8160481c16604085015262ffffff8160601c166060850152818160781c16608085015260881c16910152565b906040516135a6816132c9565b60a061ffff600383958054855260018101546020860152600281015460408601520154600180841b03811660608501528181841c16608085015260b01c16910152565b60ff60046101609280548552600181015460208601526002810154604086015262ffffff600382015465ffffffffffff8116606088015265ffffffffffff8160301c16608088015265ffffffffffff8160601c1660a088015263ffffffff8160901c1660c0880152818160b01c1660e0880152818160c81c1661010088015260e01c16610120860152015461ffff811661014085015260101c161515910152565b61ffff60a0915465ffffffffffff8116845262ffffff8160301c16602085015262ffffff8160481c16604085015262ffffff8160601c166060850152818160781c16608085015260881c16910152565b61ffff600360a0928054855260018101546020860152600281015460408601520154600180841b03811660608501528181841c16608085015260b01c16910152565b8054825260018101546020830152600281015460408301526003810154606083015260048101546080830152600581015460a080840191909152600682015465ffffffffffff811660c085015262ffffff603082901c1660e08501526001600160a01b0360489190911c8116610100850152600783015481166101208501526008830154811661014085015260098301548116610160850152600a83015490811661018085015260ff9181901c821615156101a085015260a881901c821615156101c085015260b081901c821615156101e085015260b81c16151561020083015261384d916013906104a0906138196102208201600b86016135e9565b60108401546103a082015262ffffff6011850154166103c08201526138456103e082016012860161368a565b0191016136da565b565b51906001600160a01b038216820361142957565b519065ffffffffffff8216820361142957565b5190811515820361142957565b90816101409103126114295760405190610140820182811067ffffffffffffffff8211176132975761393c91610120916040528051845260208101516020850152604081015160408501526138da6060820161384f565b60608501526138eb60808201613863565b60808501526138fc60a08201613863565b60a085015261390d60c0820161384f565b60c085015261391e60e08201613863565b60e08501526139306101008201613876565b61010085015201613876565b61012082015290565b9190820180921161395257565b634e487b7160e01b600052601160045260246000fd5b9190820391821161395257565b519061ffff8216820361142957565b90816102009103126114295760405190610200820182811067ffffffffffffffff82111761329757613a93916101e091604052805184526020810151602085015260408101516040850152606081015160608501526080810151608085015260a081015160a085015260c081015160c0850152613a0360e0820161384f565b60e0850152613a15610100820161384f565b610100850152613a28610120820161384f565b610120850152613a3b6101408201613975565b610140850152613a4e6101608201613975565b610160850152613a616101808201613876565b610180850152613a746101a08201613876565b6101a0850152613a876101c08201613876565b6101c085015201613876565b6101e082015290565b65ffffffffffff166103e8029065ffffffffffff821691820361395257565b60011b906601fffffffffffe65fffffffffffe83169216820361395257565b60405190613ae78261327a565b6000610160838281528260208201528260408201528260608201528260808201528260a08201528260c08201528260e08201528261010082015282610120820152826101408201520152565b60405190613b40826132ad565b60006020838281520152565b60405190613b59826132c9565b600060a0838281528260208201528260408201528260608201528260808201520152565b90604051613b8a816132e5565b8254815260018301546020820152600283015460408201526003830154606082015260048301546080820152600583015460a080830191909152600684015465ffffffffffff811660c084015262ffffff603082901c1660e08401526001600160a01b0360489190911c8116610100840152600785015481166101208401526008850154811661014084015260098501548116610160840152600a85015490811661018084015260ff9181901c821615156101a084015260a881901c821615156101c084015260b081901c821615156101e084015260b81c16151561020082015291829061028090613cb590601390613c85600b8201613469565b610220860152613c9760108201613518565b610240860152613ca96012820161353b565b61026086015201613599565b910152565b8181029291811591840414171561395257565b8115613cd7570490565b634e487b7160e01b600052601260045260246000fd5b6000526001602052604060002060ff600a82015460a81c16613d5d57613d186012613d5a920161353b565b62ffffff6020820151169062ffffff60408201511661ffff60808301511661ffff60a0840151169162ffffff606065ffffffffffff86511695015116946144a0565b90565b50600090565b600260005414613d74576002600055565b633ee5aeb560e01b60005260046000fd5b600a8101805460068301549192916000916001600160a01b039081169160481c16806141ac57507f0000000000000000000000004200000000000000000000000000000000000006925b60078101546001600160a01b0316806141a657507f0000000000000000000000004200000000000000000000000000000000000006925b823b156102a35760405163e522538160e01b815281808260048183895af1614196575b50506040516370a0823160e01b81523060048201526001600160a01b0386169290602081602481875afa908115611436578391614164575b5060405162b40d3160e11b815260048101859052602081602481878a5af1614135575b506040516370a0823160e01b815230600482015290602082602481885afa918215610715578492614101575b50808211156140f957613ec291613968565b915b6040516370a0823160e01b81523060048201526001600160a01b038716956020826024818a5afa9182156114365790839182936140c1575b5060209060246040518094819362b40d3160e11b83528c60048401525af1614092575b506040516370a0823160e01b81523060048201526020816024818a5afa90811561143657908392918a949161404d575b5097613fd98361400d937f37d4cc64749a918cd3164e59bcc5a1dc7fe5e54dbbca204bdb1926e18ac2b1439b60a09b9a999897965081811160001461404557613f989250613968565b945b60098760011c91613fc6613fae848b613968565b93600883019860018f81901b038a54169030906141f2565b019b6001808c1b038d54169030906141f2565b8360011c90613ffc613feb8387613968565b926001808c1b0386541630846141f2565b6001808a1b038b54169030906141f2565b54965497546040805195865260208601949094529284015260608301526001831b6000190190811660808301529485169490931692a3565b505094613f9a565b979695949350506020873d60201161408a575b8161406d60209383613302565b810103126114295795519495939492939192889290613fd9613f4f565b3d9150614060565b6020813d6020116140b9575b816140ab60209383613302565b810103126114295751613f1f565b3d915061409e565b915091506020813d6020116140f1575b816140de60209383613302565b8101031261142957519082906020613efc565b3d91506140d1565b505081613ec4565b9091506020813d60201161412d575b8161411d60209383613302565b8101031261142957519038613eb0565b3d9150614110565b6020813d60201161415c575b8161414e60209383613302565b810103126114295751613e84565b3d9150614141565b90506020813d60201161418e575b8161417f60209383613302565b81010312611429575138613e61565b3d9150614172565b61419f91613302565b3881613e29565b92613e06565b92613dcf565b3d156141ed573d9067ffffffffffffffff821161329757604051916141e1601f8201601f191660200184613302565b82523d6000602084013e565b606090565b9190831561430c576001600160a01b03811630036142f9575060405163a9059cbb60e01b602082019081526001600160a01b038316602483015260448083018690528252600091829190614247606482613302565b519082865af16142556141b2565b8161429d575b506142985760018060a01b0316600052600460205260406000209060018060a01b03166000526020526142946040600020918254613945565b9055565b505050565b80518015801593509190836142d5575b505081156142bd575b503861425b565b9050806142cb575b386142b6565b50813b15156142c5565b8192935090602091810103126114295760206142f19101613876565b9038806142ad565b61384d93926001600160a01b031661436e565b50505050565b9294929091906001600160a01b038116156143585790614334929130906141f2565b6001600160a01b0383161561434e5761384d9230906141f2565b61384d92506143ee565b5061384d9491614367916143ee565b30906141f2565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815261384d916112d3608483613302565b60405163a9059cbb60e01b60208201526001600160a01b0392909216602483015260448083019390935291815261384d916112d3606483613302565b600092919083808080856001600160a01b038616619c40f161440e6141b2565b501561441b575b50509050565b7f00000000000000000000000042000000000000000000000000000000000000066001600160a01b0316803b15612bc357604051630d0e30db60e41b815294808660048187865af19586156144935761447b9596614483575b50506143b2565b803880614415565b8161448d91613302565b38614474565b50604051903d90823e3d90fd5b92939461047c6144b292939642613968565b928084116144ff575b509291906000925b8284106144d1575050505090565b909192936144e28261271092613cba565b0493828510156144f7576001019291906144c3565b505091505090565b9250386144bb565b9065ffffffffffff8091169116039065ffffffffffff821161395257565b9065ffffffffffff8091169116019065ffffffffffff821161395257565b919291156146025761456061456f9165ffffffffffff4216614507565b9265ffffffffffff4316614507565b915b65ffffffffffff8083169116029065ffffffffffff82169182036139525761459883613a9c565b65ffffffffffff806145b26145ac85613abb565b86614525565b169116119283156145d2575b5050506000146145cd57600090565b600190565b65ffffffffffff929350906145f26145ec6145f893613a9c565b91613abb565b90614525565b16103880806145be565b916145606146189165ffffffffffff4216614507565b91614571565b906000602091828151910182855af115614679576000513d61467057506001600160a01b0381163b155b61464f5750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b60011415614648565b6040513d6000823e3d90fdfe60e0346100ec57601f6105a338819003918201601f19168301916001600160401b038311848410176100f15780849260a0946040528339810103126100ec5761004781610107565b90602081015161005960408301610107565b90610072608061006b60608601610107565b9401610107565b6001600081905560809590955260a0919091526001600160a01b0391821660c05283549282166001600160a01b03199384161790935560028054919093169116179055604051610487908161011c82396080518181816101e001526102af015260a0518161017e015260c051818181608f01526102250152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036100ec5756fe6080604052600436101561001257600080fd5b6000803560e01c806301681a621461027d57806325be124e146102545780637dc0d1d01461020f5780638da5cb5b146101ca578063d21220a7146101a1578063d7c81b55146101665763e52253811461006a57600080fd5b3461014057806003193601126101405761008261042f565b6001546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116929116823b15610162576040519063f27dd8ab60e01b82526004820152818160248183875af1801561014357610152575b50600254909182916001600160a01b0316813b1561014e57829160248392604051948593849263f27dd8ab60e01b845260048401525af180156101435761012b575b506001905580f35b81610135916103f7565b610140578038610123565b80fd5b6040513d84823e3d90fd5b5050fd5b8161015c916103f7565b386100e1565b5080fd5b503461014057806003193601126101405760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346101405780600319360112610140576001546040516001600160a01b039091168152602090f35b50346101405780600319360112610140576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101405780600319360112610140576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101405780600319360112610140576002546040516001600160a01b039091168152602090f35b5034610140576020366003190112610140576004356001600160a01b0381169190829003610140576102ad61042f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036103c6576040516370a0823160e01b815230600482015291602083602481845afa928315610143578293610392575b508261031e575b60208360018455604051908152f35b6020826040518281019063a9059cbb60e01b82523360248201528660448201526044815261034d6064826103f7565b519082855af1156103855781513d61037c5750803b155b1561030f57635274afe760e01b825260045260249150fd5b60011415610364565b50604051903d90823e3d90fd5b9092506020813d6020116103be575b816103ae602093836103f7565b8101031261016257519138610308565b3d91506103a1565b60405162461bcd60e51b81526020600482015260096024820152683737ba1037bbb732b960b91b6044820152606490fd5b90601f8019910116810190811067ffffffffffffffff82111761041957604052565b634e487b7160e01b600052604160045260246000fd5b600260005414610440576002600055565b633ee5aeb560e01b60005260046000fdfea264697066735822122016c59d4bf2e0b1c39b7440267203c28379fa4daf76eda653d182be3c2c8ff89e64736f6c634300081c0033a2646970667358221220a525a53cb78ab647ec52d5b4658a53df86acb8121fcbf1ec42e8719ad23a639464736f6c634300081c0033

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

000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c000000000000000000000000737969510e37a6f8a5408de2a08b57df6d0f1d48

-----Decoded View---------------
Arg [0] : oracle_ (address): 0xf3CCE3274c32f1F344Ba48336D5EFF34dc6E145f
Arg [1] : bounty_ (address): 0xF07c087414c2285f25eAde0FA6e2Dde0bE8Ce98c
Arg [2] : OPGrantFaucet_ (address): 0x737969510e37A6f8a5408De2a08b57df6D0F1d48

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3cce3274c32f1f344ba48336d5eff34dc6e145f
Arg [1] : 000000000000000000000000f07c087414c2285f25eade0fa6e2dde0be8ce98c
Arg [2] : 000000000000000000000000737969510e37a6f8a5408de2a08b57df6d0f1d48


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.