ETH Price: $2,238.95 (-8.61%)

Contract

0x96dafCAf00F81599171A059Fef9d9079Ff69211f

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Claim1729773712024-01-22 10:00:27741 days ago1705917627IN
0x96dafCAf...9Ff69211f
0 ETH0.000046240.1
Claim1724808602024-01-20 22:04:45743 days ago1705788285IN
0x96dafCAf...9Ff69211f
0 ETH0.000055430.1
Claim1724807662024-01-20 22:04:20743 days ago1705788260IN
0x96dafCAf...9Ff69211f
0 ETH0.000055430.1
Claim1724807142024-01-20 22:04:07743 days ago1705788247IN
0x96dafCAf...9Ff69211f
0 ETH0.000055430.1
Claim1724806222024-01-20 22:03:43743 days ago1705788223IN
0x96dafCAf...9Ff69211f
0 ETH0.000055430.1
Claim1710930432024-01-16 17:39:51747 days ago1705426791IN
0x96dafCAf...9Ff69211f
0 ETH0.000128420.1
Claim1708401042024-01-15 22:55:39748 days ago1705359339IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708400772024-01-15 22:55:31748 days ago1705359331IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708400332024-01-15 22:55:19748 days ago1705359319IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708394632024-01-15 22:52:36748 days ago1705359156IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708394342024-01-15 22:52:28748 days ago1705359148IN
0x96dafCAf...9Ff69211f
0 ETH0.00007140.1
Claim1708394012024-01-15 22:52:20748 days ago1705359140IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708393692024-01-15 22:52:11748 days ago1705359131IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708393392024-01-15 22:52:03748 days ago1705359123IN
0x96dafCAf...9Ff69211f
0 ETH0.000071410.1
Claim1708390292024-01-15 22:50:43748 days ago1705359043IN
0x96dafCAf...9Ff69211f
0 ETH0.000067350.1
Close Round1706965692024-01-15 12:33:23748 days ago1705322003IN
0x96dafCAf...9Ff69211f
0 ETH0.000049280.1
Claim1706730362024-01-15 10:51:21748 days ago1705315881IN
0x96dafCAf...9Ff69211f
0 ETH0.000057180.1
Claim1706729412024-01-15 10:50:56748 days ago1705315856IN
0x96dafCAf...9Ff69211f
0 ETH0.000057170.1
Claim1706728132024-01-15 10:50:22748 days ago1705315822IN
0x96dafCAf...9Ff69211f
0 ETH0.000057170.1
Claim1706726732024-01-15 10:49:46748 days ago1705315786IN
0x96dafCAf...9Ff69211f
0 ETH0.000057170.1
Claim1706719882024-01-15 10:46:49748 days ago1705315609IN
0x96dafCAf...9Ff69211f
0 ETH0.00006060.1
Claim1706718702024-01-15 10:46:19748 days ago1705315579IN
0x96dafCAf...9Ff69211f
0 ETH0.00006060.1
Claim1706717292024-01-15 10:45:43748 days ago1705315543IN
0x96dafCAf...9Ff69211f
0 ETH0.00006060.1
Claim1706715192024-01-15 10:44:49748 days ago1705315489IN
0x96dafCAf...9Ff69211f
0 ETH0.00006060.1
Claim1706711482024-01-15 10:43:14748 days ago1705315394IN
0x96dafCAf...9Ff69211f
0 ETH0.00006060.1
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PredictionMarket

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
//AETHER
pragma solidity ^0.8.0;
pragma abicoder v2;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title Prediction Market Contract with ERC20 bets and allows for concurrent
 */
contract PredictionMarket is Ownable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    IERC20 public  token; // Prediction token

    address public adminAddress; // address of the admin
    address public operatorAddress; // address of the operator

    uint256 public minBetAmount; // minimum betting amount (denominated in wei)
    uint256 public treasuryFee; // treasury rate (e.g. 200 = 2%, 150 = 1.50%)
    uint256 public treasuryAmount; // treasury amount that was not claimed

    uint256 public currentRound; // current epoch for prediction round

    uint256 public  MAX_TREASURY_FEE = 1000; // 10%

    mapping(uint256 => mapping(address => BetInfo)) public ledger;
    mapping(uint256 => Round) public rounds;
    mapping(address => uint256[]) public userRounds;

    enum Position {
        Bull,
        Bear
    }

    enum Outcome {
        Up,
        Down,
        Draw
       
    }

    struct Round {
        uint256 epoch;
        uint256 startTimestamp;
        uint256 lockTimestamp;
        uint256 closeTimestamp;
        uint256 totalAmount;
        uint256 bullAmount;
        uint256 bearAmount;
        uint256 rewardBaseCalAmount;
        uint256 rewardAmount;
        bool roundClosed;
        Outcome outcome;
    }

    struct BetInfo {
        Position position;
        uint256 amount;
        bool claimed; // default false
    }

    event StartRound(uint256 indexed round);
    event EndRound(uint256 indexed round, Outcome outcome);
    event BetBear(
        address indexed sender,
        uint256 indexed round,
        uint256 amount
    );
    event BetBull(
        address indexed sender,
        uint256 indexed round,
        uint256 amount
    );
    event Claim(address indexed sender, uint256 indexed round, uint256 amount);

    event NewAdminAddress(address admin);
    event NewMinBetAmount(uint256 indexed round, uint256 minBetAmount);
    event NewTreasuryFee(uint256 indexed round, uint256 treasuryFee);
    event NewOperatorAddress(address operator);

    event RewardsCalculated(
        uint256 indexed round,
        uint256 rewardBaseCalAmount,
        uint256 rewardAmount,
        uint256 treasuryAmount
    );

    event TokenRecovery(address indexed token, uint256 amount);
    event TreasuryClaim(uint256 amount);
    event Pause(uint256 indexed round);
    event Unpause(uint256 indexed round);

    modifier onlyAdmin() {
        require(msg.sender == adminAddress, "Not admin");
        _;
    }

    modifier onlyAdminOrOperator() {
        require(
            msg.sender == adminAddress || msg.sender == operatorAddress,
            "Not operator/admin"
        );
        _;
    }

    modifier onlyOperator() {
        require(msg.sender == operatorAddress, "Not operator");
        _;
    }

    modifier notContract() {
        require(!_isContract(msg.sender), "Contract not allowed");
        require(msg.sender == tx.origin, "Proxy contract not allowed");
        _;
    }
    function setRound(uint256 _round) public onlyAdmin {

       currentRound = _round;
    }
    /**
     * @notice Constructor
     * @param _token: prediction token
     * @param _adminAddress: admin address
     * @param _operatorAddress: operator address
     * @param _minBetAmount: minimum bet amounts (in wei)
     * @param _treasuryFee: treasury fee (1000 = 10%)
     */

     
    constructor(
        IERC20 _token,
        address _adminAddress,
        address _operatorAddress,
        uint256 _minBetAmount,
        uint256 _treasuryFee,
        uint256 _round
        
    )
    
     {
        require(_treasuryFee <= MAX_TREASURY_FEE, "Treasury fee too high");
        
        token = _token;
        adminAddress = _adminAddress;
        operatorAddress = _operatorAddress;
        minBetAmount = _minBetAmount;
        treasuryFee = _treasuryFee;
        setRound( _round);
    }

    /**
     * @notice Bet bear position
     * @param epoch: epoch
     */
    function betBear(
        uint256 epoch,
        uint256 _amount
    ) external whenNotPaused nonReentrant notContract {
        //todo update bettable to check that epoch exists and that current timestamp is less than lock timestamp
        require(_bettable(epoch), "Round not bettable");
        require(
            _amount >= minBetAmount,
            "Bet amount must be greater than minBetAmount"
        );
        require(
            ledger[epoch][msg.sender].amount == 0,
            "Can only bet once per round"
        );

        token.safeTransferFrom(msg.sender, address(this), _amount);
        // Update round data
        uint256 amount = _amount;
        Round storage round = rounds[epoch];
        round.totalAmount = round.totalAmount + amount;
        round.bearAmount = round.bearAmount + amount;

        // Update user data
        BetInfo storage betInfo = ledger[epoch][msg.sender];
        betInfo.position = Position.Bear;
        betInfo.amount = amount;
        userRounds[msg.sender].push(epoch);

        emit BetBear(msg.sender, epoch, amount);
    }

    /**
     * @notice Bet bull position
     * @param epoch: epoch
     */
    function betBull(
        uint256 epoch,
        uint256 _amount
    ) external whenNotPaused nonReentrant notContract {
        //todo update bettable to check that epoch exists and that current timestamp is less than lock timestamp,
        require(_bettable(epoch), "Round not bettable");
        require(
            _amount >= minBetAmount,
            "Bet amount must be greater than minBetAmount"
        );
        require(
            ledger[epoch][msg.sender].amount == 0,
            "Can only bet once per round"
        );

        token.safeTransferFrom(msg.sender, address(this), _amount);
        // Update round data
        uint256 amount = _amount;
        Round storage round = rounds[epoch];
        round.totalAmount = round.totalAmount + amount;
        round.bullAmount = round.bullAmount + amount;

        // Update user data
        BetInfo storage betInfo = ledger[epoch][msg.sender];
        betInfo.position = Position.Bull;
        betInfo.amount = amount;
        userRounds[msg.sender].push(epoch);

        emit BetBull(msg.sender, epoch, amount);
    }

    /**
     * @notice Claim reward for an array of epochs
     * @param epochs: array of epochs
     */
   function claim(
    uint256[] calldata epochs
) external nonReentrant notContract {
    uint256 reward = 0; // Initializes reward

    for (uint256 i = 0; i < epochs.length; i++) {
        require(
            rounds[epochs[i]].startTimestamp != 0,
            "Round has not started"
        );
        require(
            block.timestamp > rounds[epochs[i]].closeTimestamp || rounds[epochs[i]].roundClosed == true,
            "Round has not ended"
        );

        uint256 addedReward = 0;

        // Round valid, claim 
        if (rounds[epochs[i]].roundClosed) {
            require(
                claimable(epochs[i], msg.sender),
                "Not eligible for claim"
            );
            
            if (rounds[epochs[i]].outcome == Outcome.Draw) {
                uint256 refund = ledger[epochs[i]][msg.sender].amount;
                uint256 treasuryForUser = (refund * treasuryFee) / 10000;
                addedReward = refund - treasuryForUser;
            } 
            else {
                Round memory round = rounds[epochs[i]];
                addedReward =
                    (ledger[epochs[i]][msg.sender].amount *
                        round.rewardAmount) /
                    round.rewardBaseCalAmount;
            }
        }

        ledger[epochs[i]][msg.sender].claimed = true;
        reward += addedReward;

        emit Claim(msg.sender, epochs[i], addedReward);
    }

    if (reward > 0) {
        token.safeTransfer(msg.sender, reward);
    }
}
    /**
     * @notice Closes round with epoch
     * @param _epochToEnd: the round that is being closed
     * @param _outcome: result of the round
     * @dev Callable by operator
     */
    function closeRound(
        uint256 _epochToEnd,
        Outcome _outcome
    ) external whenNotPaused onlyOperator {
        require(_epochToEnd <= currentRound, "Round does not exist");
        require(
            !rounds[_epochToEnd].roundClosed,
            "Round has already been closed"
        );
        //todo take input for which side won here and send to _safeLockRound or more likely _safeEndRound, since we only have start and finish calls per epoch
        _safeEndRound(_epochToEnd, _outcome);
        _calculateRewards(_epochToEnd);
    }
function changeToken(address _address) external onlyAdminOrOperator {
token = IERC20(_address);

}

function changeTreasury(uint256 _fee) external onlyAdminOrOperator {
MAX_TREASURY_FEE = _fee;

}
    /**
     * @notice Start genesis round
     * @dev Callable by admin or operator
     */
    function startNewRound(
        uint256 _lockTimestamp,
        uint256 _closeTimestamp
    ) external whenNotPaused onlyOperator {
        //todo review/remove genesis start booleans
        require(
            _lockTimestamp > block.timestamp,
            "lockTimestamp must be greater than current timestamp"
        );
        require(
            _lockTimestamp < _closeTimestamp,
            "lock timestamp must be less than close timestamp"
        );

        currentRound = currentRound + 1;
        Round storage round = rounds[currentRound];
        round.startTimestamp = block.timestamp;
        round.lockTimestamp = _lockTimestamp;
        round.closeTimestamp = _closeTimestamp;
        round.epoch = currentRound;
        round.totalAmount = 0;

        emit StartRound(currentRound);
    }

    /**
    /**
     * @notice called by the admin to pause, triggers stopped state
     * @dev Callable by admin or operator
     */
    function pause() external whenNotPaused onlyAdminOrOperator {
        _pause();

        emit Pause(currentRound);
    }

    /**
     * @notice Claim all rewards in treasury
     * @dev Callable by admin
     */
    function claimTreasury() external nonReentrant onlyAdmin {
        uint256 currentTreasuryAmount = treasuryAmount;
        treasuryAmount = 0;
        token.safeTransfer(adminAddress, currentTreasuryAmount);
        emit TreasuryClaim(currentTreasuryAmount);
    }

    /**
     * @notice called by the admin to unpause, returns to normal state
     * Reset genesis state. Once paused, the rounds would need to be kickstarted by genesis
     * @dev Callable by admin or operator
     */
    function unpause() external whenPaused onlyAdminOrOperator {
        _unpause();

        emit Unpause(currentRound);
    }

    /**
     * @notice Set minBetAmount
     * @dev Callable by admin
     */
    function setMinBetAmount(
        uint256 _minBetAmount
    ) external whenPaused onlyAdmin {
        require(_minBetAmount != 0, "Must be superior to 0");
        minBetAmount = _minBetAmount;

        emit NewMinBetAmount(currentRound, minBetAmount);
    }

    /**
     * @notice Set operator address
     * @dev Callable by admin
     */
    function setOperator(address _operatorAddress) external onlyAdmin {
        require(_operatorAddress != address(0), "Cannot be zero address");
        operatorAddress = _operatorAddress;

        emit NewOperatorAddress(_operatorAddress);
    }

    

    /**
     * @notice Set treasury fee
     * @dev Callable by admin
     */
    function setTreasuryFee(
        uint256 _treasuryFee
    ) external whenPaused onlyAdmin {
        require(_treasuryFee <= MAX_TREASURY_FEE, "Treasury fee too high");
        treasuryFee = _treasuryFee;

        emit NewTreasuryFee(currentRound, treasuryFee);
    }

    /**
     * @notice It allows the owner to recover tokens sent to the contract by mistake
     * @param _token: token address
     * @param _amount: token amount
     * @dev Callable by owner
     */
    function recoverToken(address _token, uint256 _amount) external onlyOwner {
        require(_token != address(token), "Cannot be prediction token address");
        IERC20(_token).safeTransfer(address(msg.sender), _amount);

        emit TokenRecovery(_token, _amount);
    }

    /**
     * @notice Set admin address
     * @dev Callable by owner
     */
    function setAdmin(address _adminAddress) external onlyOwner {
        require(_adminAddress != address(0), "Cannot be zero address");
        adminAddress = _adminAddress;

        emit NewAdminAddress(_adminAddress);
    }

function betBearByProxy(
    uint256 epoch,
    uint256 _amount,
    address userAddress
) external whenNotPaused onlyAdmin nonReentrant notContract {
    require(_bettable(epoch), "Round not bettable");
    require(_amount >= minBetAmount, "Bet amount must be greater than minBetAmount");
    require(ledger[epoch][userAddress].amount == 0, "Can only bet once per round");

    token.safeTransferFrom(msg.sender, address(this), _amount);
    // Update round data
    uint256 amount = _amount;
    Round storage round = rounds[epoch];
    round.totalAmount = round.totalAmount + amount;
    round.bearAmount = round.bearAmount + amount;

    // Update user data
    BetInfo storage betInfo = ledger[epoch][userAddress];
    betInfo.position = Position.Bear;
    betInfo.amount = amount;
    userRounds[userAddress].push(epoch);

    emit BetBear(userAddress, epoch, amount);
}

function betBullByProxy(
    uint256 epoch,
    uint256 _amount,
    address userAddress
) external whenNotPaused nonReentrant notContract {
    require(_bettable(epoch), "Round not bettable");
    require(_amount >= minBetAmount, "Bet amount must be greater than minBetAmount");
    require(ledger[epoch][userAddress].amount == 0, "Can only bet once per round");

    token.safeTransferFrom(msg.sender, address(this), _amount);
    // Update round data
    uint256 amount = _amount;
    Round storage round = rounds[epoch];
    round.totalAmount = round.totalAmount + amount;
    round.bullAmount = round.bullAmount + amount;

    // Update user data
    BetInfo storage betInfo = ledger[epoch][userAddress];
    betInfo.position = Position.Bull;
    betInfo.amount = amount;
    userRounds[userAddress].push(epoch);

    emit BetBull(userAddress, epoch, amount);
}
    /**
     * @notice Returns round epochs and bet information for a user that has participated
     * @param user: user address
     * @param cursor: cursor
     * @param size: size
     */


     
    function getUserRounds(
        address user,
        uint256 cursor,
        uint256 size
    ) external view returns (uint256[] memory, BetInfo[] memory, uint256) {
        uint256 length = size;

        if (length > userRounds[user].length - cursor) {
            length = userRounds[user].length - cursor;
        }

        uint256[] memory values = new uint256[](length);
        BetInfo[] memory betInfo = new BetInfo[](length);

        for (uint256 i = 0; i < length; i++) {
            values[i] = userRounds[user][cursor + i];
            betInfo[i] = ledger[values[i]][user];
        }

        return (values, betInfo, cursor + length);
    }

    /**
     * @notice Returns round epochs length
     * @param user: user address
     */
    function getUserRoundsLength(address user) external view returns (uint256) {
        return userRounds[user].length;
    }

    /**
     * @notice Get the claimable stats of specific epoch and user account
     * @param epoch: epoch
     * @param user: user address
     */
    function claimable(uint256 epoch, address user) public view returns (bool) {
        BetInfo memory betInfo = ledger[epoch][user];
        Round memory round = rounds[epoch];

        if (round.outcome == Outcome.Draw && !betInfo.claimed &&  betInfo.amount != 0 ) {
            return true;
        }
        return
            round.roundClosed &&
            betInfo.amount != 0 &&
            !betInfo.claimed &&
            ((round.outcome == Outcome.Up &&
                betInfo.position == Position.Bull) ||
                (round.outcome == Outcome.Down &&
                    betInfo.position == Position.Bear));
    }

    /**
     * @notice Calculate rewards for round
     * @param epoch: epoch
     */
    function _calculateRewards(uint256 epoch) internal {
    require(
        rounds[epoch].rewardBaseCalAmount == 0 &&
            rounds[epoch].rewardAmount == 0,
        "Rewards calculated"
    );
    Round storage round = rounds[epoch];
    uint256 rewardBaseCalAmount;
    uint256 treasuryAmt;
    uint256 rewardAmount;

    if (round.outcome == Outcome.Up) {
        // Bull wins
        rewardBaseCalAmount = round.bullAmount;
        treasuryAmt = (round.totalAmount * treasuryFee) / 10000;
        rewardAmount = round.totalAmount - treasuryAmt;
    } else if (round.outcome == Outcome.Down) {
        // Bear wins
        rewardBaseCalAmount = round.bearAmount;
        treasuryAmt = (round.totalAmount * treasuryFee) / 10000;
        rewardAmount = round.totalAmount - treasuryAmt;
    } else if (round.outcome == Outcome.Draw) {
        // Draw
        uint256 totalTreasuryFee = (round.totalAmount * treasuryFee) / 10000; // Total treasury fees from all bets
        uint256 totalRefunds = round.totalAmount - totalTreasuryFee; // Total amount to be refunded to users
        treasuryAmt = round.totalAmount - totalRefunds; // What's left after refunds
        rewardAmount = 0; // No rewards to distribute
        rewardBaseCalAmount = 0; // No base amount for reward calculation
    }

    round.rewardBaseCalAmount = rewardBaseCalAmount;
    round.rewardAmount = rewardAmount;

    // Add to treasury
    treasuryAmount += treasuryAmt;

    emit RewardsCalculated(
        epoch,
        rewardBaseCalAmount,
        rewardAmount,
        treasuryAmt
    );
}

    /**
     * @notice End round
     * @param epoch: epoch
     * @param _outcome: winning side of the round
     */
    function _safeEndRound(uint256 epoch, Outcome _outcome) internal {
     
        Round storage round = rounds[epoch];
        round.outcome = _outcome;
        round.roundClosed = true;

        emit EndRound(epoch, round.outcome);
    }

    /**
     * @notice Determine if a round is valid for receiving bets
     * Round must have started and not be locked
     * Current timestamp must be within startTimestamp and closeTimestamp
     */
    function _bettable(uint256 epoch) internal view returns (bool) {
    return
        rounds[epoch].startTimestamp != 0 &&
        rounds[epoch].lockTimestamp != 0 &&
        block.timestamp > rounds[epoch].startTimestamp &&
        block.timestamp < rounds[epoch].lockTimestamp &&
        !rounds[epoch].roundClosed; // Ensure the round is not closed
}
    /**
     * @notice Returns true if `account` is a contract.
     * @param account: account address
     */
    function _isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @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 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;

    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
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // 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
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount) external returns (bool);
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 {
    using Address for address;

    /**
     * @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 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.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @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.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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 silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_adminAddress","type":"address"},{"internalType":"address","name":"_operatorAddress","type":"address"},{"internalType":"uint256","name":"_minBetAmount","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"},{"internalType":"uint256","name":"_round","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BetBear","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BetBull","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"enum PredictionMarket.Outcome","name":"outcome","type":"uint8"}],"name":"EndRound","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"NewAdminAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minBetAmount","type":"uint256"}],"name":"NewMinBetAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"}],"name":"NewOperatorAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryFee","type":"uint256"}],"name":"NewTreasuryFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"}],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardBaseCalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"treasuryAmount","type":"uint256"}],"name":"RewardsCalculated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"}],"name":"StartRound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TreasuryClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"}],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TREASURY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"betBear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"}],"name":"betBearByProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"betBull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"}],"name":"betBullByProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"changeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"changeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"epochs","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"claimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_epochToEnd","type":"uint256"},{"internalType":"enum PredictionMarket.Outcome","name":"_outcome","type":"uint8"}],"name":"closeRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"cursor","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getUserRounds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"components":[{"internalType":"enum PredictionMarket.Position","name":"position","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct PredictionMarket.BetInfo[]","name":"","type":"tuple[]"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserRoundsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"ledger","outputs":[{"internalType":"enum PredictionMarket.Position","name":"position","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBetAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rounds","outputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"lockTimestamp","type":"uint256"},{"internalType":"uint256","name":"closeTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"bullAmount","type":"uint256"},{"internalType":"uint256","name":"bearAmount","type":"uint256"},{"internalType":"uint256","name":"rewardBaseCalAmount","type":"uint256"},{"internalType":"uint256","name":"rewardAmount","type":"uint256"},{"internalType":"bool","name":"roundClosed","type":"bool"},{"internalType":"enum PredictionMarket.Outcome","name":"outcome","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_adminAddress","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBetAmount","type":"uint256"}],"name":"setMinBetAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operatorAddress","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_round","type":"uint256"}],"name":"setRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockTimestamp","type":"uint256"},{"internalType":"uint256","name":"_closeTimestamp","type":"uint256"}],"name":"startNewRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526103e86009553480156200001757600080fd5b5060405162005e6338038062005e6383398181016040528101906200003d919062000407565b6200005d62000051620001b460201b60201c565b620001bc60201b60201c565b60008060146101000a81548160ff02191690831515021790555060018081905550600954821115620000c6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000bd9062000504565b60405180910390fd5b85600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260058190555081600681905550620001a8816200028060201b60201c565b50505050505062000598565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161462000313576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200030a9062000576565b60405180910390fd5b8060088190555050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200034f8262000322565b9050919050565b6000620003638262000342565b9050919050565b620003758162000356565b81146200038157600080fd5b50565b60008151905062000395816200036a565b92915050565b620003a68162000342565b8114620003b257600080fd5b50565b600081519050620003c6816200039b565b92915050565b6000819050919050565b620003e181620003cc565b8114620003ed57600080fd5b50565b6000815190506200040181620003d6565b92915050565b60008060008060008060c087890312156200042757620004266200031d565b5b60006200043789828a0162000384565b96505060206200044a89828a01620003b5565b95505060406200045d89828a01620003b5565b94505060606200047089828a01620003f0565b93505060806200048389828a01620003f0565b92505060a06200049689828a01620003f0565b9150509295509295509295565b600082825260208201905092915050565b7f54726561737572792066656520746f6f20686967680000000000000000000000600082015250565b6000620004ec601583620004a3565b9150620004f982620004b4565b602082019050919050565b600060208201905081810360008301526200051f81620004dd565b9050919050565b7f4e6f742061646d696e0000000000000000000000000000000000000000000000600082015250565b60006200055e600983620004a3565b91506200056b8262000526565b602082019050919050565b6000602082019050818103600083015262000591816200054f565b9050919050565b6158bb80620005a86000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80638a19c8bc11610125578063bb8f2c56116100ad578063f2b3c8091161007c578063f2b3c809146105ce578063f2fde38b146105ec578063fa968eea14610608578063fc0c546a14610626578063fc6f9468146106445761021b565b8063bb8f2c5614610548578063c89c1a8914610564578063cc32d17614610580578063dd1f75961461059e5761021b565b80639b624e7b116100f45780639b624e7b146104a8578063a0c7f71c146104c4578063a18f080a146104f4578063b29a814014610510578063b3ab15fb1461052c5761021b565b80638a19c8bc146104005780638c65c81f1461041e5780638da5cb5b14610458578063951fd600146104765761021b565b806366829b16116101a8578063715018a611610177578063715018a6146103825780637285c58b1461038c57806373d01505146103be57806377e741c7146103da5780638456cb59146103f65761021b565b806366829b16146103125780636ba4c1381461032e5780636c1885931461034a578063704b6c02146103665761021b565b8063273867d4116101ef578063273867d414610280578063368acb09146102b05780633923e1b4146102ce5780633f4ba83a146102ea5780635c975abb146102f45761021b565b80623bdc7414610220578063040ae2591461022a5780630e89e5a414610246578063127effb214610262575b600080fd5b610228610662565b005b610244600480360381019061023f9190613fc5565b6107ba565b005b610260600480360381019061025b9190613fc5565b610968565b005b61026a610d3b565b6040516102779190614046565b60405180910390f35b61029a6004803603810190610295919061408d565b610d61565b6040516102a791906140c9565b60405180910390f35b6102b8610dad565b6040516102c591906140c9565b60405180910390f35b6102e860048036038101906102e39190613fc5565b610db3565b005b6102f2611186565b005b6102fc6112af565b60405161030991906140ff565b60405180910390f35b61032c6004803603810190610327919061408d565b6112c5565b005b6103486004803603810190610343919061417f565b6113f1565b005b610364600480360381019061035f91906141cc565b611a90565b005b610380600480360381019061037b919061408d565b611bb1565b005b61038a611ca3565b005b6103a660048036038101906103a191906141f9565b611cb7565b6040516103b5939291906142b0565b60405180910390f35b6103d860048036038101906103d391906142e7565b611d08565b005b6103f460048036038101906103ef91906141cc565b6120dc565b005b6103fe6121ff565b005b610408612328565b60405161041591906140c9565b60405180910390f35b610438600480360381019061043391906141cc565b61232e565b60405161044f9b9a99989796959493929190614382565b60405180910390f35b6104606123a2565b60405161046d9190614046565b60405180910390f35b610490600480360381019061048b919061442d565b6123cb565b60405161049f9392919061464d565b60405180910390f35b6104c260048036038101906104bd91906141cc565b6126d7565b005b6104de60048036038101906104d991906141f9565b612771565b6040516104eb91906140ff565b60405180910390f35b61050e600480360381019061050991906141cc565b612a5f565b005b61052a60048036038101906105259190614692565b612b51565b005b6105466004803603810190610541919061408d565b612c66565b005b610562600480360381019061055d91906142e7565b612de0565b005b61057e600480360381019061057991906146f7565b613244565b005b61058861339c565b60405161059591906140c9565b60405180910390f35b6105b860048036038101906105b39190614692565b6133a2565b6040516105c591906140c9565b60405180910390f35b6105d66133d3565b6040516105e391906140c9565b60405180910390f35b6106066004803603810190610601919061408d565b6133d9565b005b61061061345c565b60405161061d91906140c9565b60405180910390f35b61062e613462565b60405161063b9190614796565b60405180910390f35b61064c613488565b6040516106599190614046565b60405180910390f35b61066a6134ae565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f19061480e565b60405180910390fd5b600060075490506000600781905550610778600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134fd9092919063ffffffff16565b7fb9197c6b8e21274bd1e2d9c956a88af5cfee510f630fab3f046300f88b422361816040516107a791906140c9565b60405180910390a1506107b8613583565b565b6107c261358c565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610852576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108499061487a565b60405180910390fd5b428211610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b9061490c565b60405180910390fd5b8082106108d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cd9061499e565b60405180910390fd5b60016008546108e591906149ed565b6008819055506000600b6000600854815260200190815260200160002090504281600101819055508281600201819055508181600301819055506008548160000181905550600081600401819055506008547f939f42374aa9bf1d8d8cd56d8a9110cb040cd8dfeae44080c6fcf2645e51b45260405160405180910390a2505050565b61097061358c565b6109786134ae565b610981336135d6565b156109c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b890614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2690614ad9565b60405180910390fd5b610a38826135e9565b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90614b45565b60405180910390fd5b600554811015610abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab390614bd7565b60405180910390fd5b6000600a600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4990614c43565b60405180910390fd5b610ba1333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008190506000600b60008581526020019081526020016000209050818160040154610bcd91906149ed565b8160040181905550818160060154610be591906149ed565b81600601819055506000600a600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160006101000a81548160ff02191690836001811115610c6957610c68614239565b5b0217905550828160010181905550600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190915055843373ffffffffffffffffffffffffffffffffffffffff167f0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d85604051610d2491906140c9565b60405180910390a3505050610d37613583565b5050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b60075481565b610dbb61358c565b610dc36134ae565b610dcc336135d6565b15610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0390614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7190614ad9565b60405180910390fd5b610e83826135e9565b610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990614b45565b60405180910390fd5b600554811015610f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efe90614bd7565b60405180910390fd5b6000600a600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414610f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9490614c43565b60405180910390fd5b610fec333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008190506000600b6000858152602001908152602001600020905081816004015461101891906149ed565b816004018190555081816005015461103091906149ed565b81600501819055506000600a600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000160006101000a81548160ff021916908360018111156110b4576110b3614239565b5b0217905550828160010181905550600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190915055843373ffffffffffffffffffffffffffffffffffffffff167f438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c128560405161116f91906140c9565b60405180910390a3505050611182613583565b5050565b61118e613727565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112375750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126d90614caf565b60405180910390fd5b61127e613770565b6008547faaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab760405160405180910390a2565b60008060149054906101000a900460ff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061136e5750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a490614caf565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6113f96134ae565b611402336135d6565b15611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a790614ad9565b60405180910390fd5b6000805b83839050811015611a2b576000600b60008686858181106114d8576114d7614ccf565b5b9050602002013581526020019081526020016000206001015403611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890614d4a565b60405180910390fd5b600b600085858481811061154857611547614ccf565b5b905060200201358152602001908152602001600020600301544211806115ae575060011515600b600086868581811061158457611583614ccf565b5b90506020020135815260200190815260200160002060090160009054906101000a900460ff161515145b6115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490614db6565b60405180910390fd5b6000600b600086868581811061160657611605614ccf565b5b90506020020135815260200190815260200160002060090160009054906101000a900460ff161561191c5761165485858481811061164757611646614ccf565b5b9050602002013533612771565b611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90614e22565b60405180910390fd5b6002808111156116a6576116a5614239565b5b600b60008787868181106116bd576116bc614ccf565b5b90506020020135815260200190815260200160002060090160019054906101000a900460ff1660028111156116f5576116f4614239565b5b0361179f576000600a600087878681811061171357611712614ccf565b5b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154905060006127106006548361177e9190614e42565b6117889190614eb3565b905080826117969190614ee4565b9250505061191b565b6000600b60008787868181106117b8576117b7614ccf565b5b905060200201358152602001908152602001600020604051806101600160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481526020016009820160009054906101000a900460ff161515151581526020016009820160019054906101000a900460ff16600281111561187357611872614239565b5b600281111561188557611884614239565b5b8152505090508060e00151816101000151600a60008989888181106118ad576118ac614ccf565b5b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015461190d9190614e42565b6119179190614eb3565b9150505b5b6001600a600087878681811061193557611934614ccf565b5b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160006101000a81548160ff02191690831515021790555080836119ad91906149ed565b92508484838181106119c2576119c1614ccf565b5b905060200201353373ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf783604051611a0f91906140c9565b60405180910390a3508080611a2390614f18565b9150506114b4565b506000811115611a8357611a823382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134fd9092919063ffffffff16565b5b50611a8c613583565b5050565b611a98613727565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1f9061480e565b60405180910390fd5b60008103611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6290614fac565b60405180910390fd5b806005819055506008547f90eb87c560a0213754ceb3a7fa3012f01acab0a35602c1e1995adf69dabc9d50600554604051611ba691906140c9565b60405180910390a250565b611bb96137d2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1f90615018565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f137b621413925496477d46e5055ac0d56178bdd724ba8bf843afceef18268ba381604051611c989190614046565b60405180910390a150565b611cab6137d2565b611cb56000613850565b565b600a602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900460ff16908060010154908060020160009054906101000a900460ff16905083565b611d1061358c565b611d186134ae565b611d21336135d6565b15611d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5890614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc690614ad9565b60405180910390fd5b611dd8836135e9565b611e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0e90614b45565b60405180910390fd5b600554821015611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5390614bd7565b60405180910390fd5b6000600a600085815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414611ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee990614c43565b60405180910390fd5b611f41333084600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008290506000600b60008681526020019081526020016000209050818160040154611f6d91906149ed565b8160040181905550818160050154611f8591906149ed565b81600501819055506000600a600087815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000160006101000a81548160ff0219169083600181111561200957612008614239565b5b0217905550828160010181905550600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020869080600181540180825580915050600190039060005260206000200160009091909190915055858473ffffffffffffffffffffffffffffffffffffffff167f438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c12856040516120c491906140c9565b60405180910390a35050506120d7613583565b505050565b6120e4613727565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216b9061480e565b60405180910390fd5b6009548111156121b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b090615084565b60405180910390fd5b806006819055506008547fb1c4ee38d35556741133da7ff9b6f7ab0fa88d0406133126ff128f635490a8576006546040516121f491906140c9565b60405180910390a250565b61220761358c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806122b05750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e690614caf565b60405180910390fd5b6122f7613914565b6008547f68b095021b1f40fe513109f513c66692f0b3219aee674a69f4efc57badb8201d60405160405180910390a2565b60085481565b600b6020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080154908060090160009054906101000a900460ff16908060090160019054906101000a900460ff1690508b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608060008084905085600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506124229190614ee4565b81111561247a5785600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506124779190614ee4565b90505b60008167ffffffffffffffff811115612496576124956150a4565b5b6040519080825280602002602001820160405280156124c45781602001602082028036833780820191505090505b50905060008267ffffffffffffffff8111156124e3576124e26150a4565b5b60405190808252806020026020018201604052801561251c57816020015b612509613f50565b8152602001906001900390816125015790505b50905060005b838110156126b657600c60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020818a61257591906149ed565b8154811061258657612585614ccf565b5b90600052602060002001548382815181106125a4576125a3614ccf565b5b602002602001018181525050600a60008483815181106125c7576125c6614ccf565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900460ff16600181111561264a57612649614239565b5b600181111561265c5761265b614239565b5b8152602001600182015481526020016002820160009054906101000a900460ff16151515158152505082828151811061269857612697614ccf565b5b602002602001018190525080806126ae90614f18565b915050612522565b508181848a6126c591906149ed565b95509550955050505093509350939050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275e9061480e565b60405180910390fd5b8060088190555050565b600080600a600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900460ff1660018111156127f4576127f3614239565b5b600181111561280657612805614239565b5b8152602001600182015481526020016002820160009054906101000a900460ff16151515158152505090506000600b6000868152602001908152602001600020604051806101600160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481526020016009820160009054906101000a900460ff161515151581526020016009820160019054906101000a900460ff1660028111156128ec576128eb614239565b5b60028111156128fe576128fd614239565b5b81525050905060028081111561291757612916614239565b5b816101400151600281111561292f5761292e614239565b5b14801561293e57508160400151155b801561294f57506000826020015114155b1561295f57600192505050612a59565b806101200151801561297657506000826020015114155b801561298457508160400151155b8015612a5457506000600281111561299f5761299e614239565b5b81610140015160028111156129b7576129b6614239565b5b1480156129ec5750600060018111156129d3576129d2614239565b5b826000015160018111156129ea576129e9614239565b5b145b80612a53575060016002811115612a0657612a05614239565b5b8161014001516002811115612a1e57612a1d614239565b5b148015612a525750600180811115612a3957612a38614239565b5b82600001516001811115612a5057612a4f614239565b5b145b5b5b925050505b92915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612b085750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612b47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3e90614caf565b60405180910390fd5b8060098190555050565b612b596137d2565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be090615145565b60405180910390fd5b612c1433828473ffffffffffffffffffffffffffffffffffffffff166134fd9092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051612c5a91906140c9565b60405180910390a25050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ced9061480e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5c90615018565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc47d127c07bdd56c5ccba00463ce3bd3c1bca71b4670eea6e5d0c02e4aa156e281604051612dd59190614046565b60405180910390a150565b612de861358c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6f9061480e565b60405180910390fd5b612e806134ae565b612e89336135d6565b15612ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec090614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2e90614ad9565b60405180910390fd5b612f40836135e9565b612f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7690614b45565b60405180910390fd5b600554821015612fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbb90614bd7565b60405180910390fd5b6000600a600085815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541461305a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305190614c43565b60405180910390fd5b6130a9333084600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008290506000600b600086815260200190815260200160002090508181600401546130d591906149ed565b81600401819055508181600601546130ed91906149ed565b81600601819055506000600a600087815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160006101000a81548160ff0219169083600181111561317157613170614239565b5b0217905550828160010181905550600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020869080600181540180825580915050600190039060005260206000200160009091909190915055858473ffffffffffffffffffffffffffffffffffffffff167f0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d8560405161322c91906140c9565b60405180910390a350505061323f613583565b505050565b61324c61358c565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146132dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d39061487a565b60405180910390fd5b600854821115613321576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613318906151b1565b60405180910390fd5b600b600083815260200190815260200160002060090160009054906101000a900460ff1615613385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337c9061521d565b60405180910390fd5b61338f8282613977565b61339882613a25565b5050565b60065481565b600c60205281600052604060002081815481106133be57600080fd5b90600052602060002001600091509150505481565b60095481565b6133e16137d2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613450576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613447906152af565b60405180910390fd5b61345981613850565b50565b60055481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600154036134f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ea9061531b565b60405180910390fd5b6002600181905550565b61357e8363a9059cbb60e01b848460405160240161351c92919061533b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613cb3565b505050565b60018081905550565b6135946112af565b156135d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cb906153b0565b60405180910390fd5b565b600080823b905060008111915050919050565b600080600b6000848152602001908152602001600020600101541415801561362857506000600b60008481526020019081526020016000206002015414155b80156136495750600b60008381526020019081526020016000206001015442115b801561366a5750600b60008381526020019081526020016000206002015442105b80156136975750600b600083815260200190815260200160002060090160009054906101000a900460ff16155b9050919050565b613721846323b872dd60e01b8585856040516024016136bf939291906153d0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613cb3565b50505050565b61372f6112af565b61376e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376590615453565b60405180910390fd5b565b613778613727565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6137bb613d7b565b6040516137c89190614046565b60405180910390a1565b6137da613d7b565b73ffffffffffffffffffffffffffffffffffffffff166137f86123a2565b73ffffffffffffffffffffffffffffffffffffffff161461384e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613845906154bf565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61391c61358c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613960613d7b565b60405161396d9190614046565b60405180910390a1565b6000600b60008481526020019081526020016000209050818160090160016101000a81548160ff021916908360028111156139b5576139b4614239565b5b021790555060018160090160006101000a81548160ff021916908315150217905550827fd91cafda889a8123e29d543803c1e45746936ddae8d882ec23c5b0e8d394aecd8260090160019054906101000a900460ff16604051613a1891906154df565b60405180910390a2505050565b6000600b600083815260200190815260200160002060070154148015613a6157506000600b600083815260200190815260200160002060080154145b613aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9790615546565b60405180910390fd5b6000600b600083815260200190815260200160002090506000806000806002811115613acf57613ace614239565b5b8460090160019054906101000a900460ff166002811115613af357613af2614239565b5b03613b3757836005015492506127106006548560040154613b149190614e42565b613b1e9190614eb3565b9150818460040154613b309190614ee4565b9050613c45565b60016002811115613b4b57613b4a614239565b5b8460090160019054906101000a900460ff166002811115613b6f57613b6e614239565b5b03613bb357836006015492506127106006548560040154613b909190614e42565b613b9a9190614eb3565b9150818460040154613bac9190614ee4565b9050613c44565b600280811115613bc657613bc5614239565b5b8460090160019054906101000a900460ff166002811115613bea57613be9614239565b5b03613c435760006127106006548660040154613c069190614e42565b613c109190614eb3565b90506000818660040154613c249190614ee4565b9050808660040154613c369190614ee4565b9350600092506000945050505b5b5b8284600701819055508084600801819055508160076000828254613c6991906149ed565b92505081905550847f6dfdfcb09c8804d0058826cd2539f1acfbe3cb887c9be03d928035bce0f1a58d848385604051613ca493929190615566565b60405180910390a25050505050565b6000613d15826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613d839092919063ffffffff16565b9050600081511480613d37575080806020019051810190613d3691906155c9565b5b613d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6d90615668565b60405180910390fd5b505050565b600033905090565b6060613d928484600085613d9b565b90509392505050565b606082471015613de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dd7906156fa565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613e09919061578b565b60006040518083038185875af1925050503d8060008114613e46576040519150601f19603f3d011682016040523d82523d6000602084013e613e4b565b606091505b5091509150613e5c87838387613e68565b92505050949350505050565b60608315613eca576000835103613ec257613e8285613edd565b613ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eb8906157ee565b60405180910390fd5b5b829050613ed5565b613ed48383613f00565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115613f135781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f479190615863565b60405180910390fd5b604051806060016040528060006001811115613f6f57613f6e614239565b5b8152602001600081526020016000151581525090565b600080fd5b600080fd5b6000819050919050565b613fa281613f8f565b8114613fad57600080fd5b50565b600081359050613fbf81613f99565b92915050565b60008060408385031215613fdc57613fdb613f85565b5b6000613fea85828601613fb0565b9250506020613ffb85828601613fb0565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061403082614005565b9050919050565b61404081614025565b82525050565b600060208201905061405b6000830184614037565b92915050565b61406a81614025565b811461407557600080fd5b50565b60008135905061408781614061565b92915050565b6000602082840312156140a3576140a2613f85565b5b60006140b184828501614078565b91505092915050565b6140c381613f8f565b82525050565b60006020820190506140de60008301846140ba565b92915050565b60008115159050919050565b6140f9816140e4565b82525050565b600060208201905061411460008301846140f0565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261413f5761413e61411a565b5b8235905067ffffffffffffffff81111561415c5761415b61411f565b5b60208301915083602082028301111561417857614177614124565b5b9250929050565b6000806020838503121561419657614195613f85565b5b600083013567ffffffffffffffff8111156141b4576141b3613f8a565b5b6141c085828601614129565b92509250509250929050565b6000602082840312156141e2576141e1613f85565b5b60006141f084828501613fb0565b91505092915050565b600080604083850312156142105761420f613f85565b5b600061421e85828601613fb0565b925050602061422f85828601614078565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061427957614278614239565b5b50565b600081905061428a82614268565b919050565b600061429a8261427c565b9050919050565b6142aa8161428f565b82525050565b60006060820190506142c560008301866142a1565b6142d260208301856140ba565b6142df60408301846140f0565b949350505050565b600080600060608486031215614300576142ff613f85565b5b600061430e86828701613fb0565b935050602061431f86828701613fb0565b925050604061433086828701614078565b9150509250925092565b6003811061434b5761434a614239565b5b50565b600081905061435c8261433a565b919050565b600061436c8261434e565b9050919050565b61437c81614361565b82525050565b600061016082019050614398600083018e6140ba565b6143a5602083018d6140ba565b6143b2604083018c6140ba565b6143bf606083018b6140ba565b6143cc608083018a6140ba565b6143d960a08301896140ba565b6143e660c08301886140ba565b6143f360e08301876140ba565b6144016101008301866140ba565b61440f6101208301856140f0565b61441d610140830184614373565b9c9b505050505050505050505050565b60008060006060848603121561444657614445613f85565b5b600061445486828701614078565b935050602061446586828701613fb0565b925050604061447686828701613fb0565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144b581613f8f565b82525050565b60006144c783836144ac565b60208301905092915050565b6000602082019050919050565b60006144eb82614480565b6144f5818561448b565b93506145008361449c565b8060005b8381101561453157815161451888826144bb565b9750614523836144d3565b925050600181019050614504565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6145738161428f565b82525050565b614582816140e4565b82525050565b60608201600082015161459e600085018261456a565b5060208201516145b160208501826144ac565b5060408201516145c46040850182614579565b50505050565b60006145d68383614588565b60608301905092915050565b6000602082019050919050565b60006145fa8261453e565b6146048185614549565b935061460f8361455a565b8060005b8381101561464057815161462788826145ca565b9750614632836145e2565b925050600181019050614613565b5085935050505092915050565b6000606082019050818103600083015261466781866144e0565b9050818103602083015261467b81856145ef565b905061468a60408301846140ba565b949350505050565b600080604083850312156146a9576146a8613f85565b5b60006146b785828601614078565b92505060206146c885828601613fb0565b9150509250929050565b600381106146df57600080fd5b50565b6000813590506146f1816146d2565b92915050565b6000806040838503121561470e5761470d613f85565b5b600061471c85828601613fb0565b925050602061472d858286016146e2565b9150509250929050565b6000819050919050565b600061475c61475761475284614005565b614737565b614005565b9050919050565b600061476e82614741565b9050919050565b600061478082614763565b9050919050565b61479081614775565b82525050565b60006020820190506147ab6000830184614787565b92915050565b600082825260208201905092915050565b7f4e6f742061646d696e0000000000000000000000000000000000000000000000600082015250565b60006147f86009836147b1565b9150614803826147c2565b602082019050919050565b60006020820190508181036000830152614827816147eb565b9050919050565b7f4e6f74206f70657261746f720000000000000000000000000000000000000000600082015250565b6000614864600c836147b1565b915061486f8261482e565b602082019050919050565b6000602082019050818103600083015261489381614857565b9050919050565b7f6c6f636b54696d657374616d70206d757374206265206772656174657220746860008201527f616e2063757272656e742074696d657374616d70000000000000000000000000602082015250565b60006148f66034836147b1565b91506149018261489a565b604082019050919050565b60006020820190508181036000830152614925816148e9565b9050919050565b7f6c6f636b2074696d657374616d70206d757374206265206c657373207468616e60008201527f20636c6f73652074696d657374616d7000000000000000000000000000000000602082015250565b60006149886030836147b1565b91506149938261492c565b604082019050919050565b600060208201905081810360008301526149b78161497b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149f882613f8f565b9150614a0383613f8f565b9250828201905080821115614a1b57614a1a6149be565b5b92915050565b7f436f6e7472616374206e6f7420616c6c6f776564000000000000000000000000600082015250565b6000614a576014836147b1565b9150614a6282614a21565b602082019050919050565b60006020820190508181036000830152614a8681614a4a565b9050919050565b7f50726f787920636f6e7472616374206e6f7420616c6c6f776564000000000000600082015250565b6000614ac3601a836147b1565b9150614ace82614a8d565b602082019050919050565b60006020820190508181036000830152614af281614ab6565b9050919050565b7f526f756e64206e6f74206265747461626c650000000000000000000000000000600082015250565b6000614b2f6012836147b1565b9150614b3a82614af9565b602082019050919050565b60006020820190508181036000830152614b5e81614b22565b9050919050565b7f42657420616d6f756e74206d7573742062652067726561746572207468616e2060008201527f6d696e426574416d6f756e740000000000000000000000000000000000000000602082015250565b6000614bc1602c836147b1565b9150614bcc82614b65565b604082019050919050565b60006020820190508181036000830152614bf081614bb4565b9050919050565b7f43616e206f6e6c7920626574206f6e63652070657220726f756e640000000000600082015250565b6000614c2d601b836147b1565b9150614c3882614bf7565b602082019050919050565b60006020820190508181036000830152614c5c81614c20565b9050919050565b7f4e6f74206f70657261746f722f61646d696e0000000000000000000000000000600082015250565b6000614c996012836147b1565b9150614ca482614c63565b602082019050919050565b60006020820190508181036000830152614cc881614c8c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f526f756e6420686173206e6f7420737461727465640000000000000000000000600082015250565b6000614d346015836147b1565b9150614d3f82614cfe565b602082019050919050565b60006020820190508181036000830152614d6381614d27565b9050919050565b7f526f756e6420686173206e6f7420656e64656400000000000000000000000000600082015250565b6000614da06013836147b1565b9150614dab82614d6a565b602082019050919050565b60006020820190508181036000830152614dcf81614d93565b9050919050565b7f4e6f7420656c696769626c6520666f7220636c61696d00000000000000000000600082015250565b6000614e0c6016836147b1565b9150614e1782614dd6565b602082019050919050565b60006020820190508181036000830152614e3b81614dff565b9050919050565b6000614e4d82613f8f565b9150614e5883613f8f565b9250828202614e6681613f8f565b91508282048414831517614e7d57614e7c6149be565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614ebe82613f8f565b9150614ec983613f8f565b925082614ed957614ed8614e84565b5b828204905092915050565b6000614eef82613f8f565b9150614efa83613f8f565b9250828203905081811115614f1257614f116149be565b5b92915050565b6000614f2382613f8f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f5557614f546149be565b5b600182019050919050565b7f4d757374206265207375706572696f7220746f20300000000000000000000000600082015250565b6000614f966015836147b1565b9150614fa182614f60565b602082019050919050565b60006020820190508181036000830152614fc581614f89565b9050919050565b7f43616e6e6f74206265207a65726f206164647265737300000000000000000000600082015250565b60006150026016836147b1565b915061500d82614fcc565b602082019050919050565b6000602082019050818103600083015261503181614ff5565b9050919050565b7f54726561737572792066656520746f6f20686967680000000000000000000000600082015250565b600061506e6015836147b1565b915061507982615038565b602082019050919050565b6000602082019050818103600083015261509d81615061565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f43616e6e6f742062652070726564696374696f6e20746f6b656e20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061512f6022836147b1565b915061513a826150d3565b604082019050919050565b6000602082019050818103600083015261515e81615122565b9050919050565b7f526f756e6420646f6573206e6f74206578697374000000000000000000000000600082015250565b600061519b6014836147b1565b91506151a682615165565b602082019050919050565b600060208201905081810360008301526151ca8161518e565b9050919050565b7f526f756e642068617320616c7265616479206265656e20636c6f736564000000600082015250565b6000615207601d836147b1565b9150615212826151d1565b602082019050919050565b60006020820190508181036000830152615236816151fa565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152996026836147b1565b91506152a48261523d565b604082019050919050565b600060208201905081810360008301526152c88161528c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615305601f836147b1565b9150615310826152cf565b602082019050919050565b60006020820190508181036000830152615334816152f8565b9050919050565b60006040820190506153506000830185614037565b61535d60208301846140ba565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061539a6010836147b1565b91506153a582615364565b602082019050919050565b600060208201905081810360008301526153c98161538d565b9050919050565b60006060820190506153e56000830186614037565b6153f26020830185614037565b6153ff60408301846140ba565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061543d6014836147b1565b915061544882615407565b602082019050919050565b6000602082019050818103600083015261546c81615430565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154a96020836147b1565b91506154b482615473565b602082019050919050565b600060208201905081810360008301526154d88161549c565b9050919050565b60006020820190506154f46000830184614373565b92915050565b7f526577617264732063616c63756c617465640000000000000000000000000000600082015250565b60006155306012836147b1565b915061553b826154fa565b602082019050919050565b6000602082019050818103600083015261555f81615523565b9050919050565b600060608201905061557b60008301866140ba565b61558860208301856140ba565b61559560408301846140ba565b949350505050565b6155a6816140e4565b81146155b157600080fd5b50565b6000815190506155c38161559d565b92915050565b6000602082840312156155df576155de613f85565b5b60006155ed848285016155b4565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615652602a836147b1565b915061565d826155f6565b604082019050919050565b6000602082019050818103600083015261568181615645565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006156e46026836147b1565b91506156ef82615688565b604082019050919050565b60006020820190508181036000830152615713816156d7565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561574e578082015181840152602081019050615733565b60008484015250505050565b60006157658261571a565b61576f8185615725565b935061577f818560208601615730565b80840191505092915050565b6000615797828461575a565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006157d8601d836147b1565b91506157e3826157a2565b602082019050919050565b60006020820190508181036000830152615807816157cb565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006158358261580e565b61583f81856147b1565b935061584f818560208601615730565b61585881615819565b840191505092915050565b6000602082019050818103600083015261587d818461582a565b90509291505056fea2646970667358221220abaa50ca5f0751f7228a27f6963dcd9b1dea088c3398902b5c0adbbde0e3a5da64736f6c63430008120033000000000000000000000000295b54994cce4b156970377724469a6d16e238bc000000000000000000000000882f81f8eac1b3c66de05daba195525711388eab000000000000000000000000882f81f8eac1b3c66de05daba195525711388eab0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000007e

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021b5760003560e01c80638a19c8bc11610125578063bb8f2c56116100ad578063f2b3c8091161007c578063f2b3c809146105ce578063f2fde38b146105ec578063fa968eea14610608578063fc0c546a14610626578063fc6f9468146106445761021b565b8063bb8f2c5614610548578063c89c1a8914610564578063cc32d17614610580578063dd1f75961461059e5761021b565b80639b624e7b116100f45780639b624e7b146104a8578063a0c7f71c146104c4578063a18f080a146104f4578063b29a814014610510578063b3ab15fb1461052c5761021b565b80638a19c8bc146104005780638c65c81f1461041e5780638da5cb5b14610458578063951fd600146104765761021b565b806366829b16116101a8578063715018a611610177578063715018a6146103825780637285c58b1461038c57806373d01505146103be57806377e741c7146103da5780638456cb59146103f65761021b565b806366829b16146103125780636ba4c1381461032e5780636c1885931461034a578063704b6c02146103665761021b565b8063273867d4116101ef578063273867d414610280578063368acb09146102b05780633923e1b4146102ce5780633f4ba83a146102ea5780635c975abb146102f45761021b565b80623bdc7414610220578063040ae2591461022a5780630e89e5a414610246578063127effb214610262575b600080fd5b610228610662565b005b610244600480360381019061023f9190613fc5565b6107ba565b005b610260600480360381019061025b9190613fc5565b610968565b005b61026a610d3b565b6040516102779190614046565b60405180910390f35b61029a6004803603810190610295919061408d565b610d61565b6040516102a791906140c9565b60405180910390f35b6102b8610dad565b6040516102c591906140c9565b60405180910390f35b6102e860048036038101906102e39190613fc5565b610db3565b005b6102f2611186565b005b6102fc6112af565b60405161030991906140ff565b60405180910390f35b61032c6004803603810190610327919061408d565b6112c5565b005b6103486004803603810190610343919061417f565b6113f1565b005b610364600480360381019061035f91906141cc565b611a90565b005b610380600480360381019061037b919061408d565b611bb1565b005b61038a611ca3565b005b6103a660048036038101906103a191906141f9565b611cb7565b6040516103b5939291906142b0565b60405180910390f35b6103d860048036038101906103d391906142e7565b611d08565b005b6103f460048036038101906103ef91906141cc565b6120dc565b005b6103fe6121ff565b005b610408612328565b60405161041591906140c9565b60405180910390f35b610438600480360381019061043391906141cc565b61232e565b60405161044f9b9a99989796959493929190614382565b60405180910390f35b6104606123a2565b60405161046d9190614046565b60405180910390f35b610490600480360381019061048b919061442d565b6123cb565b60405161049f9392919061464d565b60405180910390f35b6104c260048036038101906104bd91906141cc565b6126d7565b005b6104de60048036038101906104d991906141f9565b612771565b6040516104eb91906140ff565b60405180910390f35b61050e600480360381019061050991906141cc565b612a5f565b005b61052a60048036038101906105259190614692565b612b51565b005b6105466004803603810190610541919061408d565b612c66565b005b610562600480360381019061055d91906142e7565b612de0565b005b61057e600480360381019061057991906146f7565b613244565b005b61058861339c565b60405161059591906140c9565b60405180910390f35b6105b860048036038101906105b39190614692565b6133a2565b6040516105c591906140c9565b60405180910390f35b6105d66133d3565b6040516105e391906140c9565b60405180910390f35b6106066004803603810190610601919061408d565b6133d9565b005b61061061345c565b60405161061d91906140c9565b60405180910390f35b61062e613462565b60405161063b9190614796565b60405180910390f35b61064c613488565b6040516106599190614046565b60405180910390f35b61066a6134ae565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f19061480e565b60405180910390fd5b600060075490506000600781905550610778600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134fd9092919063ffffffff16565b7fb9197c6b8e21274bd1e2d9c956a88af5cfee510f630fab3f046300f88b422361816040516107a791906140c9565b60405180910390a1506107b8613583565b565b6107c261358c565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610852576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108499061487a565b60405180910390fd5b428211610894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088b9061490c565b60405180910390fd5b8082106108d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108cd9061499e565b60405180910390fd5b60016008546108e591906149ed565b6008819055506000600b6000600854815260200190815260200160002090504281600101819055508281600201819055508181600301819055506008548160000181905550600081600401819055506008547f939f42374aa9bf1d8d8cd56d8a9110cb040cd8dfeae44080c6fcf2645e51b45260405160405180910390a2505050565b61097061358c565b6109786134ae565b610981336135d6565b156109c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b890614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2690614ad9565b60405180910390fd5b610a38826135e9565b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90614b45565b60405180910390fd5b600554811015610abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab390614bd7565b60405180910390fd5b6000600a600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414610b52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4990614c43565b60405180910390fd5b610ba1333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008190506000600b60008581526020019081526020016000209050818160040154610bcd91906149ed565b8160040181905550818160060154610be591906149ed565b81600601819055506000600a600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160006101000a81548160ff02191690836001811115610c6957610c68614239565b5b0217905550828160010181905550600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190915055843373ffffffffffffffffffffffffffffffffffffffff167f0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d85604051610d2491906140c9565b60405180910390a3505050610d37613583565b5050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b60075481565b610dbb61358c565b610dc36134ae565b610dcc336135d6565b15610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0390614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7190614ad9565b60405180910390fd5b610e83826135e9565b610ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb990614b45565b60405180910390fd5b600554811015610f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efe90614bd7565b60405180910390fd5b6000600a600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414610f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9490614c43565b60405180910390fd5b610fec333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008190506000600b6000858152602001908152602001600020905081816004015461101891906149ed565b816004018190555081816005015461103091906149ed565b81600501819055506000600a600086815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000160006101000a81548160ff021916908360018111156110b4576110b3614239565b5b0217905550828160010181905550600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020859080600181540180825580915050600190039060005260206000200160009091909190915055843373ffffffffffffffffffffffffffffffffffffffff167f438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c128560405161116f91906140c9565b60405180910390a3505050611182613583565b5050565b61118e613727565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112375750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126d90614caf565b60405180910390fd5b61127e613770565b6008547faaa520fdd7d2c83061d632fa017b0432407e798818af63ea908589fceda39ab760405160405180910390a2565b60008060149054906101000a900460ff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061136e5750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a490614caf565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6113f96134ae565b611402336135d6565b15611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a790614ad9565b60405180910390fd5b6000805b83839050811015611a2b576000600b60008686858181106114d8576114d7614ccf565b5b9050602002013581526020019081526020016000206001015403611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890614d4a565b60405180910390fd5b600b600085858481811061154857611547614ccf565b5b905060200201358152602001908152602001600020600301544211806115ae575060011515600b600086868581811061158457611583614ccf565b5b90506020020135815260200190815260200160002060090160009054906101000a900460ff161515145b6115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e490614db6565b60405180910390fd5b6000600b600086868581811061160657611605614ccf565b5b90506020020135815260200190815260200160002060090160009054906101000a900460ff161561191c5761165485858481811061164757611646614ccf565b5b9050602002013533612771565b611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90614e22565b60405180910390fd5b6002808111156116a6576116a5614239565b5b600b60008787868181106116bd576116bc614ccf565b5b90506020020135815260200190815260200160002060090160019054906101000a900460ff1660028111156116f5576116f4614239565b5b0361179f576000600a600087878681811061171357611712614ccf565b5b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154905060006127106006548361177e9190614e42565b6117889190614eb3565b905080826117969190614ee4565b9250505061191b565b6000600b60008787868181106117b8576117b7614ccf565b5b905060200201358152602001908152602001600020604051806101600160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481526020016009820160009054906101000a900460ff161515151581526020016009820160019054906101000a900460ff16600281111561187357611872614239565b5b600281111561188557611884614239565b5b8152505090508060e00151816101000151600a60008989888181106118ad576118ac614ccf565b5b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015461190d9190614e42565b6119179190614eb3565b9150505b5b6001600a600087878681811061193557611934614ccf565b5b90506020020135815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160006101000a81548160ff02191690831515021790555080836119ad91906149ed565b92508484838181106119c2576119c1614ccf565b5b905060200201353373ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf783604051611a0f91906140c9565b60405180910390a3508080611a2390614f18565b9150506114b4565b506000811115611a8357611a823382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134fd9092919063ffffffff16565b5b50611a8c613583565b5050565b611a98613727565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1f9061480e565b60405180910390fd5b60008103611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6290614fac565b60405180910390fd5b806005819055506008547f90eb87c560a0213754ceb3a7fa3012f01acab0a35602c1e1995adf69dabc9d50600554604051611ba691906140c9565b60405180910390a250565b611bb96137d2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1f90615018565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f137b621413925496477d46e5055ac0d56178bdd724ba8bf843afceef18268ba381604051611c989190614046565b60405180910390a150565b611cab6137d2565b611cb56000613850565b565b600a602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900460ff16908060010154908060020160009054906101000a900460ff16905083565b611d1061358c565b611d186134ae565b611d21336135d6565b15611d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5890614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc690614ad9565b60405180910390fd5b611dd8836135e9565b611e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0e90614b45565b60405180910390fd5b600554821015611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5390614bd7565b60405180910390fd5b6000600a600085815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414611ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee990614c43565b60405180910390fd5b611f41333084600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008290506000600b60008681526020019081526020016000209050818160040154611f6d91906149ed565b8160040181905550818160050154611f8591906149ed565b81600501819055506000600a600087815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000160006101000a81548160ff0219169083600181111561200957612008614239565b5b0217905550828160010181905550600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020869080600181540180825580915050600190039060005260206000200160009091909190915055858473ffffffffffffffffffffffffffffffffffffffff167f438122d8cff518d18388099a5181f0d17a12b4f1b55faedf6e4a6acee0060c12856040516120c491906140c9565b60405180910390a35050506120d7613583565b505050565b6120e4613727565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216b9061480e565b60405180910390fd5b6009548111156121b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b090615084565b60405180910390fd5b806006819055506008547fb1c4ee38d35556741133da7ff9b6f7ab0fa88d0406133126ff128f635490a8576006546040516121f491906140c9565b60405180910390a250565b61220761358c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806122b05750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e690614caf565b60405180910390fd5b6122f7613914565b6008547f68b095021b1f40fe513109f513c66692f0b3219aee674a69f4efc57badb8201d60405160405180910390a2565b60085481565b600b6020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080154908060090160009054906101000a900460ff16908060090160019054906101000a900460ff1690508b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608060008084905085600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506124229190614ee4565b81111561247a5785600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506124779190614ee4565b90505b60008167ffffffffffffffff811115612496576124956150a4565b5b6040519080825280602002602001820160405280156124c45781602001602082028036833780820191505090505b50905060008267ffffffffffffffff8111156124e3576124e26150a4565b5b60405190808252806020026020018201604052801561251c57816020015b612509613f50565b8152602001906001900390816125015790505b50905060005b838110156126b657600c60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020818a61257591906149ed565b8154811061258657612585614ccf565b5b90600052602060002001548382815181106125a4576125a3614ccf565b5b602002602001018181525050600a60008483815181106125c7576125c6614ccf565b5b6020026020010151815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900460ff16600181111561264a57612649614239565b5b600181111561265c5761265b614239565b5b8152602001600182015481526020016002820160009054906101000a900460ff16151515158152505082828151811061269857612697614ccf565b5b602002602001018190525080806126ae90614f18565b915050612522565b508181848a6126c591906149ed565b95509550955050505093509350939050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275e9061480e565b60405180910390fd5b8060088190555050565b600080600a600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900460ff1660018111156127f4576127f3614239565b5b600181111561280657612805614239565b5b8152602001600182015481526020016002820160009054906101000a900460ff16151515158152505090506000600b6000868152602001908152602001600020604051806101600160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481526020016009820160009054906101000a900460ff161515151581526020016009820160019054906101000a900460ff1660028111156128ec576128eb614239565b5b60028111156128fe576128fd614239565b5b81525050905060028081111561291757612916614239565b5b816101400151600281111561292f5761292e614239565b5b14801561293e57508160400151155b801561294f57506000826020015114155b1561295f57600192505050612a59565b806101200151801561297657506000826020015114155b801561298457508160400151155b8015612a5457506000600281111561299f5761299e614239565b5b81610140015160028111156129b7576129b6614239565b5b1480156129ec5750600060018111156129d3576129d2614239565b5b826000015160018111156129ea576129e9614239565b5b145b80612a53575060016002811115612a0657612a05614239565b5b8161014001516002811115612a1e57612a1d614239565b5b148015612a525750600180811115612a3957612a38614239565b5b82600001516001811115612a5057612a4f614239565b5b145b5b5b925050505b92915050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612b085750600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612b47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3e90614caf565b60405180910390fd5b8060098190555050565b612b596137d2565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be090615145565b60405180910390fd5b612c1433828473ffffffffffffffffffffffffffffffffffffffff166134fd9092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051612c5a91906140c9565b60405180910390a25050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ced9061480e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5c90615018565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc47d127c07bdd56c5ccba00463ce3bd3c1bca71b4670eea6e5d0c02e4aa156e281604051612dd59190614046565b60405180910390a150565b612de861358c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6f9061480e565b60405180910390fd5b612e806134ae565b612e89336135d6565b15612ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec090614a6d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2e90614ad9565b60405180910390fd5b612f40836135e9565b612f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7690614b45565b60405180910390fd5b600554821015612fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbb90614bd7565b60405180910390fd5b6000600a600085815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541461305a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305190614c43565b60405180910390fd5b6130a9333084600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661369e909392919063ffffffff16565b60008290506000600b600086815260200190815260200160002090508181600401546130d591906149ed565b81600401819055508181600601546130ed91906149ed565b81600601819055506000600a600087815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160006101000a81548160ff0219169083600181111561317157613170614239565b5b0217905550828160010181905550600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020869080600181540180825580915050600190039060005260206000200160009091909190915055858473ffffffffffffffffffffffffffffffffffffffff167f0d8c1fe3e67ab767116a81f122b83c2557a8c2564019cb7c4f83de1aeb1f1f0d8560405161322c91906140c9565b60405180910390a350505061323f613583565b505050565b61324c61358c565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146132dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d39061487a565b60405180910390fd5b600854821115613321576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613318906151b1565b60405180910390fd5b600b600083815260200190815260200160002060090160009054906101000a900460ff1615613385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337c9061521d565b60405180910390fd5b61338f8282613977565b61339882613a25565b5050565b60065481565b600c60205281600052604060002081815481106133be57600080fd5b90600052602060002001600091509150505481565b60095481565b6133e16137d2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613450576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613447906152af565b60405180910390fd5b61345981613850565b50565b60055481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600154036134f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ea9061531b565b60405180910390fd5b6002600181905550565b61357e8363a9059cbb60e01b848460405160240161351c92919061533b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613cb3565b505050565b60018081905550565b6135946112af565b156135d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cb906153b0565b60405180910390fd5b565b600080823b905060008111915050919050565b600080600b6000848152602001908152602001600020600101541415801561362857506000600b60008481526020019081526020016000206002015414155b80156136495750600b60008381526020019081526020016000206001015442115b801561366a5750600b60008381526020019081526020016000206002015442105b80156136975750600b600083815260200190815260200160002060090160009054906101000a900460ff16155b9050919050565b613721846323b872dd60e01b8585856040516024016136bf939291906153d0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613cb3565b50505050565b61372f6112af565b61376e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376590615453565b60405180910390fd5b565b613778613727565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6137bb613d7b565b6040516137c89190614046565b60405180910390a1565b6137da613d7b565b73ffffffffffffffffffffffffffffffffffffffff166137f86123a2565b73ffffffffffffffffffffffffffffffffffffffff161461384e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613845906154bf565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61391c61358c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613960613d7b565b60405161396d9190614046565b60405180910390a1565b6000600b60008481526020019081526020016000209050818160090160016101000a81548160ff021916908360028111156139b5576139b4614239565b5b021790555060018160090160006101000a81548160ff021916908315150217905550827fd91cafda889a8123e29d543803c1e45746936ddae8d882ec23c5b0e8d394aecd8260090160019054906101000a900460ff16604051613a1891906154df565b60405180910390a2505050565b6000600b600083815260200190815260200160002060070154148015613a6157506000600b600083815260200190815260200160002060080154145b613aa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9790615546565b60405180910390fd5b6000600b600083815260200190815260200160002090506000806000806002811115613acf57613ace614239565b5b8460090160019054906101000a900460ff166002811115613af357613af2614239565b5b03613b3757836005015492506127106006548560040154613b149190614e42565b613b1e9190614eb3565b9150818460040154613b309190614ee4565b9050613c45565b60016002811115613b4b57613b4a614239565b5b8460090160019054906101000a900460ff166002811115613b6f57613b6e614239565b5b03613bb357836006015492506127106006548560040154613b909190614e42565b613b9a9190614eb3565b9150818460040154613bac9190614ee4565b9050613c44565b600280811115613bc657613bc5614239565b5b8460090160019054906101000a900460ff166002811115613bea57613be9614239565b5b03613c435760006127106006548660040154613c069190614e42565b613c109190614eb3565b90506000818660040154613c249190614ee4565b9050808660040154613c369190614ee4565b9350600092506000945050505b5b5b8284600701819055508084600801819055508160076000828254613c6991906149ed565b92505081905550847f6dfdfcb09c8804d0058826cd2539f1acfbe3cb887c9be03d928035bce0f1a58d848385604051613ca493929190615566565b60405180910390a25050505050565b6000613d15826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613d839092919063ffffffff16565b9050600081511480613d37575080806020019051810190613d3691906155c9565b5b613d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6d90615668565b60405180910390fd5b505050565b600033905090565b6060613d928484600085613d9b565b90509392505050565b606082471015613de0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dd7906156fa565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613e09919061578b565b60006040518083038185875af1925050503d8060008114613e46576040519150601f19603f3d011682016040523d82523d6000602084013e613e4b565b606091505b5091509150613e5c87838387613e68565b92505050949350505050565b60608315613eca576000835103613ec257613e8285613edd565b613ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eb8906157ee565b60405180910390fd5b5b829050613ed5565b613ed48383613f00565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115613f135781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613f479190615863565b60405180910390fd5b604051806060016040528060006001811115613f6f57613f6e614239565b5b8152602001600081526020016000151581525090565b600080fd5b600080fd5b6000819050919050565b613fa281613f8f565b8114613fad57600080fd5b50565b600081359050613fbf81613f99565b92915050565b60008060408385031215613fdc57613fdb613f85565b5b6000613fea85828601613fb0565b9250506020613ffb85828601613fb0565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061403082614005565b9050919050565b61404081614025565b82525050565b600060208201905061405b6000830184614037565b92915050565b61406a81614025565b811461407557600080fd5b50565b60008135905061408781614061565b92915050565b6000602082840312156140a3576140a2613f85565b5b60006140b184828501614078565b91505092915050565b6140c381613f8f565b82525050565b60006020820190506140de60008301846140ba565b92915050565b60008115159050919050565b6140f9816140e4565b82525050565b600060208201905061411460008301846140f0565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261413f5761413e61411a565b5b8235905067ffffffffffffffff81111561415c5761415b61411f565b5b60208301915083602082028301111561417857614177614124565b5b9250929050565b6000806020838503121561419657614195613f85565b5b600083013567ffffffffffffffff8111156141b4576141b3613f8a565b5b6141c085828601614129565b92509250509250929050565b6000602082840312156141e2576141e1613f85565b5b60006141f084828501613fb0565b91505092915050565b600080604083850312156142105761420f613f85565b5b600061421e85828601613fb0565b925050602061422f85828601614078565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061427957614278614239565b5b50565b600081905061428a82614268565b919050565b600061429a8261427c565b9050919050565b6142aa8161428f565b82525050565b60006060820190506142c560008301866142a1565b6142d260208301856140ba565b6142df60408301846140f0565b949350505050565b600080600060608486031215614300576142ff613f85565b5b600061430e86828701613fb0565b935050602061431f86828701613fb0565b925050604061433086828701614078565b9150509250925092565b6003811061434b5761434a614239565b5b50565b600081905061435c8261433a565b919050565b600061436c8261434e565b9050919050565b61437c81614361565b82525050565b600061016082019050614398600083018e6140ba565b6143a5602083018d6140ba565b6143b2604083018c6140ba565b6143bf606083018b6140ba565b6143cc608083018a6140ba565b6143d960a08301896140ba565b6143e660c08301886140ba565b6143f360e08301876140ba565b6144016101008301866140ba565b61440f6101208301856140f0565b61441d610140830184614373565b9c9b505050505050505050505050565b60008060006060848603121561444657614445613f85565b5b600061445486828701614078565b935050602061446586828701613fb0565b925050604061447686828701613fb0565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6144b581613f8f565b82525050565b60006144c783836144ac565b60208301905092915050565b6000602082019050919050565b60006144eb82614480565b6144f5818561448b565b93506145008361449c565b8060005b8381101561453157815161451888826144bb565b9750614523836144d3565b925050600181019050614504565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6145738161428f565b82525050565b614582816140e4565b82525050565b60608201600082015161459e600085018261456a565b5060208201516145b160208501826144ac565b5060408201516145c46040850182614579565b50505050565b60006145d68383614588565b60608301905092915050565b6000602082019050919050565b60006145fa8261453e565b6146048185614549565b935061460f8361455a565b8060005b8381101561464057815161462788826145ca565b9750614632836145e2565b925050600181019050614613565b5085935050505092915050565b6000606082019050818103600083015261466781866144e0565b9050818103602083015261467b81856145ef565b905061468a60408301846140ba565b949350505050565b600080604083850312156146a9576146a8613f85565b5b60006146b785828601614078565b92505060206146c885828601613fb0565b9150509250929050565b600381106146df57600080fd5b50565b6000813590506146f1816146d2565b92915050565b6000806040838503121561470e5761470d613f85565b5b600061471c85828601613fb0565b925050602061472d858286016146e2565b9150509250929050565b6000819050919050565b600061475c61475761475284614005565b614737565b614005565b9050919050565b600061476e82614741565b9050919050565b600061478082614763565b9050919050565b61479081614775565b82525050565b60006020820190506147ab6000830184614787565b92915050565b600082825260208201905092915050565b7f4e6f742061646d696e0000000000000000000000000000000000000000000000600082015250565b60006147f86009836147b1565b9150614803826147c2565b602082019050919050565b60006020820190508181036000830152614827816147eb565b9050919050565b7f4e6f74206f70657261746f720000000000000000000000000000000000000000600082015250565b6000614864600c836147b1565b915061486f8261482e565b602082019050919050565b6000602082019050818103600083015261489381614857565b9050919050565b7f6c6f636b54696d657374616d70206d757374206265206772656174657220746860008201527f616e2063757272656e742074696d657374616d70000000000000000000000000602082015250565b60006148f66034836147b1565b91506149018261489a565b604082019050919050565b60006020820190508181036000830152614925816148e9565b9050919050565b7f6c6f636b2074696d657374616d70206d757374206265206c657373207468616e60008201527f20636c6f73652074696d657374616d7000000000000000000000000000000000602082015250565b60006149886030836147b1565b91506149938261492c565b604082019050919050565b600060208201905081810360008301526149b78161497b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149f882613f8f565b9150614a0383613f8f565b9250828201905080821115614a1b57614a1a6149be565b5b92915050565b7f436f6e7472616374206e6f7420616c6c6f776564000000000000000000000000600082015250565b6000614a576014836147b1565b9150614a6282614a21565b602082019050919050565b60006020820190508181036000830152614a8681614a4a565b9050919050565b7f50726f787920636f6e7472616374206e6f7420616c6c6f776564000000000000600082015250565b6000614ac3601a836147b1565b9150614ace82614a8d565b602082019050919050565b60006020820190508181036000830152614af281614ab6565b9050919050565b7f526f756e64206e6f74206265747461626c650000000000000000000000000000600082015250565b6000614b2f6012836147b1565b9150614b3a82614af9565b602082019050919050565b60006020820190508181036000830152614b5e81614b22565b9050919050565b7f42657420616d6f756e74206d7573742062652067726561746572207468616e2060008201527f6d696e426574416d6f756e740000000000000000000000000000000000000000602082015250565b6000614bc1602c836147b1565b9150614bcc82614b65565b604082019050919050565b60006020820190508181036000830152614bf081614bb4565b9050919050565b7f43616e206f6e6c7920626574206f6e63652070657220726f756e640000000000600082015250565b6000614c2d601b836147b1565b9150614c3882614bf7565b602082019050919050565b60006020820190508181036000830152614c5c81614c20565b9050919050565b7f4e6f74206f70657261746f722f61646d696e0000000000000000000000000000600082015250565b6000614c996012836147b1565b9150614ca482614c63565b602082019050919050565b60006020820190508181036000830152614cc881614c8c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f526f756e6420686173206e6f7420737461727465640000000000000000000000600082015250565b6000614d346015836147b1565b9150614d3f82614cfe565b602082019050919050565b60006020820190508181036000830152614d6381614d27565b9050919050565b7f526f756e6420686173206e6f7420656e64656400000000000000000000000000600082015250565b6000614da06013836147b1565b9150614dab82614d6a565b602082019050919050565b60006020820190508181036000830152614dcf81614d93565b9050919050565b7f4e6f7420656c696769626c6520666f7220636c61696d00000000000000000000600082015250565b6000614e0c6016836147b1565b9150614e1782614dd6565b602082019050919050565b60006020820190508181036000830152614e3b81614dff565b9050919050565b6000614e4d82613f8f565b9150614e5883613f8f565b9250828202614e6681613f8f565b91508282048414831517614e7d57614e7c6149be565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614ebe82613f8f565b9150614ec983613f8f565b925082614ed957614ed8614e84565b5b828204905092915050565b6000614eef82613f8f565b9150614efa83613f8f565b9250828203905081811115614f1257614f116149be565b5b92915050565b6000614f2382613f8f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f5557614f546149be565b5b600182019050919050565b7f4d757374206265207375706572696f7220746f20300000000000000000000000600082015250565b6000614f966015836147b1565b9150614fa182614f60565b602082019050919050565b60006020820190508181036000830152614fc581614f89565b9050919050565b7f43616e6e6f74206265207a65726f206164647265737300000000000000000000600082015250565b60006150026016836147b1565b915061500d82614fcc565b602082019050919050565b6000602082019050818103600083015261503181614ff5565b9050919050565b7f54726561737572792066656520746f6f20686967680000000000000000000000600082015250565b600061506e6015836147b1565b915061507982615038565b602082019050919050565b6000602082019050818103600083015261509d81615061565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f43616e6e6f742062652070726564696374696f6e20746f6b656e20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061512f6022836147b1565b915061513a826150d3565b604082019050919050565b6000602082019050818103600083015261515e81615122565b9050919050565b7f526f756e6420646f6573206e6f74206578697374000000000000000000000000600082015250565b600061519b6014836147b1565b91506151a682615165565b602082019050919050565b600060208201905081810360008301526151ca8161518e565b9050919050565b7f526f756e642068617320616c7265616479206265656e20636c6f736564000000600082015250565b6000615207601d836147b1565b9150615212826151d1565b602082019050919050565b60006020820190508181036000830152615236816151fa565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152996026836147b1565b91506152a48261523d565b604082019050919050565b600060208201905081810360008301526152c88161528c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615305601f836147b1565b9150615310826152cf565b602082019050919050565b60006020820190508181036000830152615334816152f8565b9050919050565b60006040820190506153506000830185614037565b61535d60208301846140ba565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061539a6010836147b1565b91506153a582615364565b602082019050919050565b600060208201905081810360008301526153c98161538d565b9050919050565b60006060820190506153e56000830186614037565b6153f26020830185614037565b6153ff60408301846140ba565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061543d6014836147b1565b915061544882615407565b602082019050919050565b6000602082019050818103600083015261546c81615430565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154a96020836147b1565b91506154b482615473565b602082019050919050565b600060208201905081810360008301526154d88161549c565b9050919050565b60006020820190506154f46000830184614373565b92915050565b7f526577617264732063616c63756c617465640000000000000000000000000000600082015250565b60006155306012836147b1565b915061553b826154fa565b602082019050919050565b6000602082019050818103600083015261555f81615523565b9050919050565b600060608201905061557b60008301866140ba565b61558860208301856140ba565b61559560408301846140ba565b949350505050565b6155a6816140e4565b81146155b157600080fd5b50565b6000815190506155c38161559d565b92915050565b6000602082840312156155df576155de613f85565b5b60006155ed848285016155b4565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615652602a836147b1565b915061565d826155f6565b604082019050919050565b6000602082019050818103600083015261568181615645565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006156e46026836147b1565b91506156ef82615688565b604082019050919050565b60006020820190508181036000830152615713816156d7565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561574e578082015181840152602081019050615733565b60008484015250505050565b60006157658261571a565b61576f8185615725565b935061577f818560208601615730565b80840191505092915050565b6000615797828461575a565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006157d8601d836147b1565b91506157e3826157a2565b602082019050919050565b60006020820190508181036000830152615807816157cb565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006158358261580e565b61583f81856147b1565b935061584f818560208601615730565b61585881615819565b840191505092915050565b6000602082019050818103600083015261587d818461582a565b90509291505056fea2646970667358221220abaa50ca5f0751f7228a27f6963dcd9b1dea088c3398902b5c0adbbde0e3a5da64736f6c63430008120033

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

000000000000000000000000295b54994cce4b156970377724469a6d16e238bc000000000000000000000000882f81f8eac1b3c66de05daba195525711388eab000000000000000000000000882f81f8eac1b3c66de05daba195525711388eab0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000007e

-----Decoded View---------------
Arg [0] : _token (address): 0x295b54994CCE4B156970377724469A6d16E238BC
Arg [1] : _adminAddress (address): 0x882F81f8EaC1b3C66de05daBA195525711388eab
Arg [2] : _operatorAddress (address): 0x882F81f8EaC1b3C66de05daBA195525711388eab
Arg [3] : _minBetAmount (uint256): 1000000000000000000
Arg [4] : _treasuryFee (uint256): 100
Arg [5] : _round (uint256): 126

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000295b54994cce4b156970377724469a6d16e238bc
Arg [1] : 000000000000000000000000882f81f8eac1b3c66de05daba195525711388eab
Arg [2] : 000000000000000000000000882f81f8eac1b3c66de05daba195525711388eab
Arg [3] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [5] : 000000000000000000000000000000000000000000000000000000000000007e


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  ]

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.