false
true
0

Contract Address Details

0x7663e79E09d78142e3F6e4dca19FAf604159842D

Token
DaiX (DaiX)
Creator
0x4ba673–f1c7f0 at 0x35e248–6d906b
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
3,519 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25941271
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
DaiX




Optimization enabled
true
Compiler version
v0.8.22+commit.4fc1097e




Optimization runs
1000000
EVM Version
paris




Verified at
2023-11-14T21:47:03.773131Z

Constructor Arguments

0x000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d9000000000000000000000000efd766ccb38eaf1dfd701853bfce31359239f305000000000000000000000000fb7103d7011dfa60c18c6961c5a38038d8048fe000000000000000000000000043f11890f3d8ee704595eba88f52ee7d983b6907

Arg [0] (address) : 0x165c3410fc91ef562c50559f7d2289febed552d9
Arg [1] (address) : 0xefd766ccb38eaf1dfd701853bfce31359239f305
Arg [2] (address) : 0xfb7103d7011dfa60c18c6961c5a38038d8048fe0
Arg [3] (address) : 0x43f11890f3d8ee704595eba88f52ee7d983b6907

              

contracts/DaiX.sol

/*
 * @title TknX - Earn reflections in RWD tokens
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 * It's deflationary, burns portion of the fees, reflects rest of the fees in RWD tokens
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * Tokenomics (initial fees):
 *          Buy      Sell     Transfer
 * Rfi      1.50%    2.50%    0.00%
 * Burn     0.50%    0.00%    0.00%
 *
 * Growth 0.1% (or 2.5% of reflection at conversion)
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.22;

import "./@openzeppelin/access/AccessControl.sol";
import "./@openzeppelin/access/Ownable.sol";
import "./@openzeppelin/token/ERC20/ERC20.sol";
import "./@openzeppelin/token/ERC20/utils/SafeERC20.sol";
import "./@uniswap/v2-core/interfaces/IUniswapV2Factory.sol";
import "./@uniswap/v2-core/interfaces/IUniswapV2Pair.sol";
import "./@uniswap/v2-periphery/interfaces/IUniswapV2Router02.sol";
import "./lib/Utils.sol";

contract DaiX is ERC20, Ownable, Utils, AccessControl {
    using SafeERC20 for IERC20;

    enum Fees {
        BuyRfiFee,
        BuyBurnFee,
        SellRfiFee,
        SellBurnFee,
        GrowthFee
    }

    struct WalletInfo {
        uint256 share;
        uint256 rewardDebt;
        uint256 rewardPaid;
    }

    IERC20 public RWD;
    IUniswapV2Pair[] public eligibleLPs;

    IUniswapV2Pair public mainV2LP;

    IUniswapV2Router02 public dexRouter;

    address public constant burnAddr = address(0x369);
    address private growthFeeAddr1;
    address private growthFeeAddr2;
    address[] public wallets;

    bool private _swapping;
    bool private _allLPsAllowConversion = true;
    bool public payoutEnabled = true;
    bool public swapEnabled = true;

    bytes32 public constant GOVERN_ROLE = keccak256("GOVERN_ROLE");

    mapping(address => WalletInfo) public walletInfo;
    mapping(address => bool) public isAMMPair;
    mapping(address => bool) public noFee;
    mapping(address => bool) public noRfi;
    mapping(address => uint256) public walletClaimTS;
    mapping(address => uint256) public walletIndex;

    uint256 private constant _BIPS = 10000;
    uint256 private constant _MAX_FEE = 500;
    uint256 private constant _REWARDX = 10e27;
    uint256 public currIndex;
    uint256 public lpRewardBips = 20000;
    uint256 public maxGas = 300000;
    uint256 public minReward = 1e18;
    uint256 public minWaitSec = 3600;
    uint256 public shareRewardRay;
    uint256 public swapFactor = 1e5;
    uint256 public totalPaid;
    uint256 public totalRfi;
    uint256 public totalShares;
    uint256[] public fees = new uint256[](uint256(type(Fees).max) + 1);

    event FeesUpdated(
        uint256 buyRfiFee,
        uint256 buyBurnFee,
        uint256 sellRfiFee,
        uint256 sellBurnFee,
        uint256 growthFee
    );
    event PayoutPolicyChanged(uint256 minWait, uint256 minReward);
    event SwapFactorUpdated(uint256 newFactor);

    constructor(
        address dexRouter_,
        address rwd_,
        address grwthFeeAddr1_,
        address grwthFeeAddr2_
    ) ERC20("DaiX", "DaiX") {
        growthFeeAddr1 = grwthFeeAddr1_;
        growthFeeAddr2 = grwthFeeAddr2_;
        RWD = IERC20(rwd_);
        dexRouter = IUniswapV2Router02(dexRouter_);
        address plsLPAddr = IUniswapV2Factory(dexRouter.factory()).createPair(
            address(this),
            dexRouter.WPLS()
        );
        mainV2LP = IUniswapV2Pair(plsLPAddr);
        eligibleLPs.push(mainV2LP);

        fees[uint256(Fees.BuyRfiFee)] = 150;
        fees[uint256(Fees.BuyBurnFee)] = 50;
        fees[uint256(Fees.SellRfiFee)] = 250;
        fees[uint256(Fees.SellBurnFee)] = 0;
        fees[uint256(Fees.GrowthFee)] = 250;

        noFee[address(this)] = true;
        noFee[_msgSender()] = true;
        noFee[dexRouter_] = true;

        noRfi[address(this)] = true;
        noRfi[burnAddr] = true;
        noRfi[plsLPAddr] = true;
        noRfi[address(0)] = true;

        isAMMPair[plsLPAddr] = true;

        _mint(_msgSender(), 1e27); // 1 billion

        _grantRole(GOVERN_ROLE, _msgSender());
    }

    receive() external payable {}

    function _calcShares(
        address target_
    ) private view returns (uint256 shares) {
        uint256 lpBal = 0;
        for (uint256 index = 0; index < eligibleLPs.length; index++) {
            lpBal += eligibleLPs[index].balanceOf(target_);
        }
        return balanceOf(target_) + (lpRewardBips * lpBal) / _BIPS;
    }

    function _checkIfAMMPair(address target_) private {
        if (target_.code.length == 0) return;
        if (!isAMMPair[target_]) {
            (address token0, address token1) = Utils._getTokens(target_);
            if (token0 != address(0) && token1 != address(0)) {
                isAMMPair[target_] = true;
                noRfi[target_] = true;
            }
        }
    }

    function _disableRewards(address wallet_) private {
        uint256 index = walletIndex[wallet_];

        if (index < wallets.length - 1) {
            address lastWallet = wallets[wallets.length - 1];
            wallets[index] = lastWallet;
            walletIndex[lastWallet] = index;
        }

        wallets.pop();
        delete walletIndex[wallet_];
    }

    function _enableRewards(address wallet_) private {
        uint256 index = wallets.length;
        walletIndex[wallet_] = index;
        wallets.push(wallet_);
    }

    function _payout(uint256 gas_) private {
        uint256 walletCount = wallets.length;

        if (walletCount == 0) {
            return;
        }

        uint256 gasUsed = 0;
        uint256 gasLeft = gasleft();
        uint256 iterations = 0;

        while (gasUsed < gas_ && iterations < walletCount) {
            if (currIndex >= walletCount) {
                currIndex = 0;
            }

            address wallet = wallets[currIndex];
            uint256 share = _calcShares(wallet);

            bool paidRewards = _setShare(wallet, share);

            if (!paidRewards && isPayEligible(wallet)) {
                payRewards(wallet);
            }

            currIndex++;
            iterations++;
            gasUsed = gasUsed + (gasLeft - gasleft());
            gasLeft = gasleft();
        }
    }

    function _setShare(
        address wallet_,
        uint256 share_
    ) private returns (bool paidRewards) {
        WalletInfo storage wallet = walletInfo[wallet_];
        uint256 shareOld = wallet.share;

        if (share_ != shareOld) {
            if (shareOld > 0) {
                payRewards(wallet_);
                paidRewards = true;
            }

            if (share_ == 0) {
                _disableRewards(wallet_);
            } else if (shareOld == 0) {
                _enableRewards(wallet_);
            }

            totalShares = totalShares - shareOld + share_;
            wallet.share = share_;
            wallet.rewardDebt = getCummRewards(share_);
        }

        return paidRewards;
    }

    function _swapTokensForRWD(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = dexRouter.WPLS();
        path[2] = address(RWD);

        uint256 rwdBalBefore = RWD.balanceOf(address(this));

        _approve(address(this), address(dexRouter), tknAmt_);
        dexRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            tknAmt_,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 rwdFromSwap;
        uint256 rwdBalAfter = RWD.balanceOf(address(this));
        if (rwdBalAfter > rwdBalBefore) {
            rwdFromSwap = rwdBalAfter - rwdBalBefore;
        }

        if (rwdFromSwap > 0) {
            uint256 growthFee = (rwdFromSwap * fees[uint256(Fees.GrowthFee)]) /
                2 /
                _BIPS;
            RWD.transfer(growthFeeAddr1, growthFee);
            RWD.transfer(growthFeeAddr2, growthFee);

            rwdFromSwap -= (growthFee * 2);

            totalRfi = totalRfi + rwdFromSwap;
            shareRewardRay =
                shareRewardRay +
                (_REWARDX * rwdFromSwap) /
                totalShares;
        }
    }

    function _transfer(
        address from_,
        address to_,
        uint256 amt_
    ) internal override(ERC20) {
        _checkIfAMMPair(from_);
        _checkIfAMMPair(to_);

        uint256 rfiTknBal = balanceOf(address(this));
        uint256 swapAmt = (totalSupply() / swapFactor);
        bool isSelling;

        if (_allLPsAllowConversion) {
            isSelling = isAMMPair[to_];
        } else {
            isSelling = (to_ == address(mainV2LP));
        }

        // Sell transaction when _swapping is enabled and _swapping is not in progress
        if (swapEnabled && (rfiTknBal >= swapAmt) && !_swapping && isSelling) {
            _swapping = true;
            _swapTokensForRWD(swapAmt);
            _swapping = false;
        }

        if (noFee[from_] || noFee[to_]) {
            super._transfer(from_, to_, amt_);
        } else {
            (uint256 burnFee, uint256 rfiFee) = calcFees(
                amt_,
                isAMMPair[from_],
                isAMMPair[to_]
            );

            if (burnFee > 0) {
                super._transfer(from_, address(burnAddr), burnFee);
            }

            if (rfiFee > 0) {
                super._transfer(from_, address(this), rfiFee);
            }

            super._transfer(from_, to_, amt_ - burnFee - rfiFee);
        }

        if (!noRfi[from_]) {
            _setShare(from_, _calcShares(from_));
        }

        if (!noRfi[to_]) {
            _setShare(to_, _calcShares(to_));
        }

        if (payoutEnabled) {
            _payout(maxGas);
        }
    }

    function addEligibleLP(address lpAddr_) external onlyRole(GOVERN_ROLE) {
        if (lpAddr_ != address(0)) {
            eligibleLPs.push(IUniswapV2Pair(lpAddr_));
        }
    }

    function calcFees(
        uint256 amt_,
        bool isFromAMM_,
        bool isToAMM_
    ) private view returns (uint256 burnFee, uint256 rfiFee) {
        if (isToAMM_) {
            // Selling
            burnFee = (amt_ * fees[uint256(Fees.SellBurnFee)]) / _BIPS;
            rfiFee = (amt_ * fees[uint256(Fees.SellRfiFee)]) / _BIPS;
        } else {
            if (isFromAMM_) {
                // Buying
                burnFee = (amt_ * fees[uint256(Fees.BuyBurnFee)]) / _BIPS;
                rfiFee = (amt_ * fees[uint256(Fees.BuyRfiFee)]) / _BIPS;
            }
        }

        return (burnFee, rfiFee);
    }

    function claimReflection() external {
        address sender = _msgSender();

        if (isPayEligible(sender)) {
            payRewards(sender);
        }
    }

    function getCummRewards(uint256 share_) private view returns (uint256) {
        return (share_ * shareRewardRay) / _REWARDX;
    }

    function getUnpaidRewards(address wallet_) public view returns (uint256) {
        WalletInfo storage wallet = walletInfo[wallet_];
        uint256 share = wallet.share;

        if (share == 0) {
            return 0;
        }

        uint256 totalRewards = getCummRewards(share);
        uint256 walletRewardDebt = wallet.rewardDebt;

        if (totalRewards <= walletRewardDebt) {
            return 0;
        }

        return totalRewards - walletRewardDebt;
    }

    function isPayEligible(address wallet_) private view returns (bool) {
        return
            (walletClaimTS[wallet_] + minWaitSec) < block.timestamp &&
            getUnpaidRewards(wallet_) > minReward;
    }

    function payRewards(address wallet_) private {
        WalletInfo storage wallet = walletInfo[wallet_];
        uint256 share = wallet.share;

        if (share == 0) {
            return;
        }

        uint256 amt = getUnpaidRewards(wallet_);

        if (amt > 0) {
            RWD.safeTransfer(wallet_, amt);

            totalPaid = totalPaid + amt;
            walletClaimTS[wallet_] = block.timestamp;
            wallet.rewardPaid += amt;
            wallet.rewardDebt = getCummRewards(share);
        }
    }

    function removeEligibleLP(address lpAddr_) external onlyRole(GOVERN_ROLE) {
        for (uint256 index = 0; index < eligibleLPs.length; index++) {
            if (address(eligibleLPs[index]) == lpAddr_) {
                if (index < eligibleLPs.length - 1) {
                    eligibleLPs[index] = eligibleLPs[eligibleLPs.length - 1];
                }
                eligibleLPs.pop();
            }
        }
    }

    function setFees(
        uint256 buyRfiFee_,
        uint256 buyBurnFee_,
        uint256 sellRfiFee_,
        uint256 sellBurnFee_,
        uint256 growthFee_
    ) external onlyRole(GOVERN_ROLE) {
        require(
            buyRfiFee_ <= _MAX_FEE &&
                buyBurnFee_ <= _MAX_FEE &&
                sellRfiFee_ <= _MAX_FEE &&
                sellBurnFee_ <= _MAX_FEE &&
                growthFee_ <= _MAX_FEE,
            "Fee > MAX_FEE"
        );

        fees[uint256(Fees.BuyRfiFee)] = buyRfiFee_;
        fees[uint256(Fees.BuyBurnFee)] = buyBurnFee_;
        fees[uint256(Fees.SellRfiFee)] = sellRfiFee_;
        fees[uint256(Fees.SellBurnFee)] = sellBurnFee_;
        fees[uint256(Fees.GrowthFee)] = growthFee_;

        emit FeesUpdated(
            buyRfiFee_,
            buyBurnFee_,
            sellRfiFee_,
            sellBurnFee_,
            growthFee_
        );
    }

    function setAllLPsAllowConversion(
        bool enabled_
    ) external onlyRole(GOVERN_ROLE) {
        _allLPsAllowConversion = enabled_;
    }

    function setGrowthFeeAddrs(
        address grwthFeeAddr1_,
        address grwthFeeAddr2_
    ) external onlyRole(GOVERN_ROLE) {
        if (grwthFeeAddr1_ != address(0)) {
            growthFeeAddr1 = grwthFeeAddr1_;
        }

        if (grwthFeeAddr2_ != address(0)) {
            growthFeeAddr2 = grwthFeeAddr2_;
        }
    }

    function setLPRewardBips(
        uint256 newLPRewardBips_
    ) external onlyRole(GOVERN_ROLE) {
        lpRewardBips = newLPRewardBips_;
    }

    function setMaxGas(uint256 gas_) external onlyRole(GOVERN_ROLE) {
        maxGas = gas_;
    }

    function setNoFee(
        address wallet_,
        bool flag_
    ) external onlyRole(GOVERN_ROLE) {
        require(noFee[wallet_] != flag_, "Already OK");

        noFee[wallet_] = flag_;
    }

    // Administrative function to prevent unwanted reflections to
    // some contracts, if needed
    function setNoRfi(
        address wallet_,
        bool flag_
    ) external onlyRole(GOVERN_ROLE) {
        noRfi[wallet_] = flag_;
        if (flag_) {
            _setShare(wallet_, 0);
        } else {
            _setShare(wallet_, _calcShares(wallet_));
        }
    }

    function setPayoutEnabled(bool enabled_) external onlyRole(GOVERN_ROLE) {
        payoutEnabled = enabled_;
    }

    function setPayoutPolicy(
        uint256 minDurSec_,
        uint256 minReward_
    ) external onlyRole(GOVERN_ROLE) {
        minWaitSec = minDurSec_;
        minReward = minReward_;
        emit PayoutPolicyChanged(minWaitSec, minReward);
    }

    function setSwapFactor(
        bool swapEnabled_,
        uint256 newFac_
    ) external onlyRole(GOVERN_ROLE) {
        swapEnabled = swapEnabled_;
        if (swapEnabled_) {
            require(newFac_ <= 1e12, "Too Big");
            require(newFac_ >= 1e2, "Too Small");

            swapFactor = newFac_;
            emit SwapFactorUpdated(newFac_);
        }
    }
}
        

contracts/@openzeppelin/access/AccessControl.sol

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override returns (bool) {
        return
            interfaceId == type(IAccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(
        bytes32 role,
        address account
    ) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(
        bytes32 role
    ) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(
        bytes32 role,
        address account
    ) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(
        bytes32 role,
        address account
    ) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(
        bytes32 role,
        address account
    ) public virtual override {
        require(
            account == _msgSender(),
            "AccessControl: can only renounce roles for self"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}
          

contracts/@uniswap/v2-core/interfaces/IUniswapV2Pair.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}
          

contracts/@uniswap/v2-periphery/interfaces/IUniswapV2Router01.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    // function WETH() external pure returns (address);
    function WPLS() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
          

contracts/@openzeppelin/access/IAccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}
          

contracts/@openzeppelin/access/Ownable.sol

// 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);
    }
}
          

contracts/@openzeppelin/token/ERC20/ERC20.sol

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public pure virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(
        address account
    ) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(
        address owner,
        address spender
    ) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(
        address spender,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(
            currentAllowance >= subtractedValue,
            "ERC20: decreased allowance below zero"
        );
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (to == address(0x369)) {
            _burn(from, amount);
        } else {
            _beforeTokenTransfer(from, to, amount);

            uint256 fromBalance = _balances[from];
            require(
                fromBalance >= amount,
                "ERC20: transfer amount exceeds balance"
            );
            unchecked {
                _balances[from] = fromBalance - amount;
                // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
                // decrementing then incrementing.
                _balances[to] += amount;
            }

            emit Transfer(from, to, amount);

            _afterTokenTransfer(from, to, amount);
        }
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0x369), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0x369), amount);

        _afterTokenTransfer(account, address(0x369), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: insufficient allowance"
            );
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}
          

contracts/@openzeppelin/token/ERC20/IERC20.sol

// 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);
}
          

contracts/@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

contracts/@openzeppelin/token/ERC20/extensions/IERC20Permit.sol

// 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);
}
          

contracts/@openzeppelin/token/ERC20/utils/SafeERC20.sol

// 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));
    }
}
          

contracts/@openzeppelin/utils/Address.sol

// 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);
        }
    }
}
          

contracts/@openzeppelin/utils/Context.sol

// 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;
    }
}
          

contracts/@openzeppelin/utils/Strings.sol

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

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}
          

contracts/@openzeppelin/utils/introspection/ERC165.sol

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
          

contracts/@openzeppelin/utils/introspection/IERC165.sol

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

pragma solidity ^0.8.0;

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

contracts/@openzeppelin/utils/math/Math.sol

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}
          

contracts/@openzeppelin/utils/math/SignedMath.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}
          

contracts/@uniswap/v2-core/interfaces/IUniswapV2Factory.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.5.0;

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

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

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

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

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

contracts/@uniswap/v2-periphery/interfaces/IUniswapV2Router02.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
          

contracts/lib/Utils.sol

/*
 * SPDX-License-Identifier: MIT
 */
pragma solidity 0.8.22;

contract Utils {

    function _getAddress(
        address token_,
        bytes4 selector_
    ) internal view returns (address) {
        (bool success, bytes memory data) = token_.staticcall(
            abi.encodeWithSelector(selector_)
        );

        if (!success || data.length == 0) {
            return address(0);
        }

        if (data.length == 32) {
            return abi.decode(data, (address));
        }

        return address(0);
    }

    function _getTokens( address target_) internal view returns (address token0, address token1){
         token0 = _getAddress(target_, hex"0dfe1681");

         if (token0 != address(0)) {
            token1 = _getAddress(target_, hex"d21220a7");
         }

        return (token0, token1);
    }
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":1000000,"enabled":true},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"dexRouter_","internalType":"address"},{"type":"address","name":"rwd_","internalType":"address"},{"type":"address","name":"grwthFeeAddr1_","internalType":"address"},{"type":"address","name":"grwthFeeAddr2_","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"FeesUpdated","inputs":[{"type":"uint256","name":"buyRfiFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"buyBurnFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"sellRfiFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"sellBurnFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"growthFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PayoutPolicyChanged","inputs":[{"type":"uint256","name":"minWait","internalType":"uint256","indexed":false},{"type":"uint256","name":"minReward","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapFactorUpdated","inputs":[{"type":"uint256","name":"newFactor","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"GOVERN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"RWD","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addEligibleLP","inputs":[{"type":"address","name":"lpAddr_","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"burnAddr","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimReflection","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currIndex","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"dexRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}],"name":"eligibleLPs","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"fees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUnpaidRewards","inputs":[{"type":"address","name":"wallet_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAMMPair","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lpRewardBips","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}],"name":"mainV2LP","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxGas","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minWaitSec","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"noFee","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"noRfi","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"payoutEnabled","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeEligibleLP","inputs":[{"type":"address","name":"lpAddr_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAllLPsAllowConversion","inputs":[{"type":"bool","name":"enabled_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFees","inputs":[{"type":"uint256","name":"buyRfiFee_","internalType":"uint256"},{"type":"uint256","name":"buyBurnFee_","internalType":"uint256"},{"type":"uint256","name":"sellRfiFee_","internalType":"uint256"},{"type":"uint256","name":"sellBurnFee_","internalType":"uint256"},{"type":"uint256","name":"growthFee_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setGrowthFeeAddrs","inputs":[{"type":"address","name":"grwthFeeAddr1_","internalType":"address"},{"type":"address","name":"grwthFeeAddr2_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLPRewardBips","inputs":[{"type":"uint256","name":"newLPRewardBips_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxGas","inputs":[{"type":"uint256","name":"gas_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoFee","inputs":[{"type":"address","name":"wallet_","internalType":"address"},{"type":"bool","name":"flag_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoRfi","inputs":[{"type":"address","name":"wallet_","internalType":"address"},{"type":"bool","name":"flag_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPayoutEnabled","inputs":[{"type":"bool","name":"enabled_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPayoutPolicy","inputs":[{"type":"uint256","name":"minDurSec_","internalType":"uint256"},{"type":"uint256","name":"minReward_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapFactor","inputs":[{"type":"bool","name":"swapEnabled_","internalType":"bool"},{"type":"uint256","name":"newFac_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"shareRewardRay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapFactor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalPaid","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalRfi","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalShares","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"walletClaimTS","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"walletIndex","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"share","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"},{"type":"uint256","name":"rewardPaid","internalType":"uint256"}],"name":"walletInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"wallets","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x6080604052600e805463ffffff0019166301010100179055614e20601655620493e0601755670de0b6b3a7640000601855610e10601955620186a0601b5560046200004c9060016200078f565b6001600160401b03811115620000665762000066620007b1565b60405190808252806020026020018201604052801562000090578160200160208202803683370190505b508051620000a791601f9160209091019062000728565b50348015620000b557600080fd5b5060405162004df438038062004df4833981016040819052620000d891620007e4565b604080518082018252600480825263088c2d2b60e31b6020808401829052845180860190955291845290830152906003620001148382620008d1565b506004620001238282620008d1565b505050620001406200013a6200054f60201b60201c565b62000553565b6200014d600033620005a5565b600b80546001600160a01b038085166001600160a01b031992831617909255600c805484841690831617905560078054868416908316179055600a805492871692909116821790556040805163c45a015560e01b815290516000929163c45a01559160048281019260209291908290030181865afa158015620001d4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001fa91906200099d565b6001600160a01b031663c9c6539630600a60009054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200025d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200028391906200099d565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002d1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f791906200099d565b600980546001600160a01b0383166001600160a01b031991821681179092556008805460018101825560009182527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180549092169092179055909150609690601f90815481106200036d576200036d620009c2565b6000918252602090912001556032601f600181548110620003925762000392620009c2565b60009182526020909120015560fa601f600281548110620003b757620003b7620009c2565b6000918252602082200191909155601f600381548110620003dc57620003dc620009c2565b60009182526020909120015560fa601f600481548110620004015762000401620009c2565b600091825260208083209091019290925530815260119182905260408120805460ff191660019081179091559190620004373390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790558982168152601184528281208054861660019081179091553082526012855283822080548716821790557f5c1e27bf42415d9095f847f730cec6e78e17b8ba6787f624129d7a1b67b2dfa58054871682179055918616815282812080548616831790557f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b805486168317905560109093529120805490921617905562000518336b033b2e3c9fd0803ce800000062000630565b620005447f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e33620005a5565b5050505050620009d8565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620005b18282620006f6565b6200062c5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620005eb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6001600160a01b0382166200068b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200069f91906200078f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b505050565b82805482825590600052602060002090810192821562000766579160200282015b828111156200076657825182559160200191906001019062000749565b506200077492915062000778565b5090565b5b8082111562000774576000815560010162000779565b808201808211156200071d57634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620007df57600080fd5b919050565b60008060008060808587031215620007fb57600080fd5b6200080685620007c7565b93506200081660208601620007c7565b92506200082660408601620007c7565b91506200083660608601620007c7565b905092959194509250565b600181811c908216806200085657607f821691505b6020821081036200087757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000723576000816000526020600020601f850160051c81016020861015620008a85750805b601f850160051c820191505b81811015620008c957828155600101620008b4565b505050505050565b81516001600160401b03811115620008ed57620008ed620007b1565b6200090581620008fe845462000841565b846200087d565b602080601f8311600181146200093d5760008415620009245750858301515b600019600386901b1c1916600185901b178555620008c9565b600085815260208120601f198616915b828110156200096e578886015182559484019460019091019084016200094d565b50858210156200098d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620009b057600080fd5b620009bb82620007c7565b9392505050565b634e487b7160e01b600052603260045260246000fd5b61440c80620009e86000396000f3fe6080604052600436106103a55760003560e01c80634b0432f2116101e7578063a217fddf1161010d578063ba16d600116100a0578063dd62ed3e1161006f578063dd62ed3e14610bb2578063e7b0f66614610c05578063f2fde38b14610c1b578063fe8f254e14610c3b57600080fd5b8063ba16d60014610b46578063cbd06a2b14610b5c578063d246d41114610b7c578063d547741f14610b9257600080fd5b8063aada9c38116100dc578063aada9c3814610ab6578063ae2e9bcb14610ad6578063b0249cc614610af6578063b58ca5e914610b2657600080fd5b8063a217fddf14610a41578063a35346c114610a56578063a457c2d714610a76578063a9059cbb14610a9657600080fd5b80637d7bfa751161018557806395d89b411161015457806395d89b41146109bc5780639d8cedd8146109d1578063a146a55b146109fe578063a1fb098e14610a1457600080fd5b80637d7bfa75146108fe5780638da5cb5b1461091e5780638e9280761461094957806391d148541461096957600080fd5b80636ddd1713116101c15780636ddd17131461086557806370a0823114610886578063715018a6146108c95780637ad71f72146108de57600080fd5b80634b0432f2146107e2578063500e68e9146107f8578063501d815c1461084f57600080fd5b8063256addfb116102cc57806338b7f4461161026a5780633d78d410116102395780633d78d410146107455780633f9645c11461077257806342701a8e146107a25780634acc79ed146107c257600080fd5b806338b7f446146106c557806339509351146106f95780633a98ef39146107195780633c5d3b5a1461072f57600080fd5b80632f2ff15d116102a65780632f2ff15d14610654578063313ce5671461067457806336568abe1461069057806337563293146106b057600080fd5b8063256addfb146105f45780632a8d9c14146106145780632d7db8e21461063457600080fd5b806310acfb9b116103445780631cc3785e116103135780631cc3785e1461056e5780631eaa614f1461058457806323b872dd146105a4578063248a9ca3146105c457600080fd5b806310acfb9b146104ec578063180094d51461051957806318160ddd146105395780631a6611811461055857600080fd5b806304a66b481161038057806304a66b481461043857806306fdde03146104585780630758d9241461047a578063095ea7b3146104cc57600080fd5b80622a2050146103b157806301ffc9a7146103f657806303f21e011461041657600080fd5b366103ac57005b600080fd5b3480156103bd57600080fd5b506103e16103cc366004613dd9565b60116020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561040257600080fd5b506103e1610411366004613df6565b610c51565b34801561042257600080fd5b50610436610431366004613e46565b610cea565b005b34801561044457600080fd5b50610436610453366004613e63565b610d4d565b34801561046457600080fd5b5061046d610f1e565b6040516103ed9190613ec2565b34801561048657600080fd5b50600a546104a79073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103ed565b3480156104d857600080fd5b506103e16104e7366004613f13565b610fb0565b3480156104f857600080fd5b506007546104a79073ffffffffffffffffffffffffffffffffffffffff1681565b34801561052557600080fd5b50610436610534366004613f3f565b610fc8565b34801561054557600080fd5b506002545b6040519081526020016103ed565b34801561056457600080fd5b5061054a601d5481565b34801561057a57600080fd5b5061054a60165481565b34801561059057600080fd5b5061043661059f366004613f78565b6110b1565b3480156105b057600080fd5b506103e16105bf366004613f9a565b611124565b3480156105d057600080fd5b5061054a6105df366004613fdb565b60009081526006602052604090206001015490565b34801561060057600080fd5b5061043661060f366004613dd9565b611148565b34801561062057600080fd5b5061043661062f366004613dd9565b6112fa565b34801561064057600080fd5b5061043661064f366004613fdb565b6113b5565b34801561066057600080fd5b5061043661066f366004613ff4565b6113e5565b34801561068057600080fd5b50604051601281526020016103ed565b34801561069c57600080fd5b506104366106ab366004613ff4565b61140a565b3480156106bc57600080fd5b506104366114b9565b3480156106d157600080fd5b5061054a7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e81565b34801561070557600080fd5b506103e1610714366004613f13565b6114d4565b34801561072557600080fd5b5061054a601e5481565b34801561073b57600080fd5b5061054a601b5481565b34801561075157600080fd5b5061054a610760366004613dd9565b60146020526000908152604090205481565b34801561077e57600080fd5b506103e161078d366004613dd9565b60126020526000908152604090205460ff1681565b3480156107ae57600080fd5b506104366107bd366004614019565b611520565b3480156107ce57600080fd5b5061054a6107dd366004613fdb565b611638565b3480156107ee57600080fd5b5061054a60195481565b34801561080457600080fd5b50610834610813366004613dd9565b600f6020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103ed565b34801561085b57600080fd5b5061054a60175481565b34801561087157600080fd5b50600e546103e1906301000000900460ff1681565b34801561089257600080fd5b5061054a6108a1366004613dd9565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156108d557600080fd5b50610436611659565b3480156108ea57600080fd5b506104a76108f9366004613fdb565b61166d565b34801561090a57600080fd5b50610436610919366004613e46565b6116a4565b34801561092a57600080fd5b5060055473ffffffffffffffffffffffffffffffffffffffff166104a7565b34801561095557600080fd5b50610436610964366004613fdb565b611706565b34801561097557600080fd5b506103e1610984366004613ff4565b600091825260066020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156109c857600080fd5b5061046d611736565b3480156109dd57600080fd5b506009546104a79073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a0a57600080fd5b5061054a60155481565b348015610a2057600080fd5b5061054a610a2f366004613dd9565b60136020526000908152604090205481565b348015610a4d57600080fd5b5061054a600081565b348015610a6257600080fd5b50610436610a71366004614019565b611745565b348015610a8257600080fd5b506103e1610a91366004613f13565b6117ea565b348015610aa257600080fd5b506103e1610ab1366004613f13565b6118bb565b348015610ac257600080fd5b5061054a610ad1366004613dd9565b6118c9565b348015610ae257600080fd5b50600e546103e19062010000900460ff1681565b348015610b0257600080fd5b506103e1610b11366004613dd9565b60106020526000908152604090205460ff1681565b348015610b3257600080fd5b506104a7610b41366004613fdb565b61193b565b348015610b5257600080fd5b5061054a60185481565b348015610b6857600080fd5b50610436610b77366004614047565b61194b565b348015610b8857600080fd5b506104a761036981565b348015610b9e57600080fd5b50610436610bad366004613ff4565b611ac1565b348015610bbe57600080fd5b5061054a610bcd366004613f3f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b348015610c1157600080fd5b5061054a601c5481565b348015610c2757600080fd5b50610436610c36366004613dd9565b611ae6565b348015610c4757600080fd5b5061054a601a5481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610ce457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610d1481611b9a565b50600e805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610d7781611b9a565b6101f48611158015610d8b57506101f48511155b8015610d9957506101f48411155b8015610da757506101f48311155b8015610db557506101f48211155b610e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f466565203e204d41585f4645450000000000000000000000000000000000000060448201526064015b60405180910390fd5b85601f600081548110610e3557610e35614065565b60009182526020909120015584601f600181548110610e5657610e56614065565b60009182526020909120015583601f600281548110610e7757610e77614065565b60009182526020909120015582601f600381548110610e9857610e98614065565b60009182526020909120015581601f600481548110610eb957610eb9614065565b6000918252602091829020019190915560408051888152918201879052810185905260608101849052608081018390527f96b67df2c4648b38ada47da86f80d0a256df93150752a7b365ca487cab934e649060a00160405180910390a1505050505050565b606060038054610f2d90614094565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5990614094565b8015610fa65780601f10610f7b57610100808354040283529160200191610fa6565b820191906000526020600020905b815481529060010190602001808311610f8957829003601f168201915b5050505050905090565b600033610fbe818585611ba4565b5060019392505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610ff281611b9a565b73ffffffffffffffffffffffffffffffffffffffff83161561104f57600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555b73ffffffffffffffffffffffffffffffffffffffff8216156110ac57600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6110db81611b9a565b6019839055601882905560408051848152602081018490527f8e912126cff24393f67ad5e722cc158fe78433df9a3530fccbfea4f82f948b0891015b60405180910390a1505050565b600033611132858285611d57565b61113d858585611e28565b506001949350505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61117281611b9a565b60005b6008548110156110ac578273ffffffffffffffffffffffffffffffffffffffff16600882815481106111a9576111a9614065565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16036112f2576008546111df90600190614116565b81101561128857600880546111f690600190614116565b8154811061120657611206614065565b6000918252602090912001546008805473ffffffffffffffffffffffffffffffffffffffff909216918390811061123f5761123f614065565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600880548061129957611299614129565b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b600101611175565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61132481611b9a565b73ffffffffffffffffffffffffffffffffffffffff8216156113b157600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b5050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6113df81611b9a565b50601655565b60008281526006602052604090206001015461140081611b9a565b6110ac83836120f0565b73ffffffffffffffffffffffffffffffffffffffff811633146114af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610e17565b6113b182826121e4565b336114c38161229f565b156114d1576114d1816122f1565b50565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610fbe908290869061151b908790614158565b611ba4565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61154a81611b9a565b73ffffffffffffffffffffffffffffffffffffffff831660009081526011602052604090205482151560ff9091161515036115e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f416c7265616479204f4b000000000000000000000000000000000000000000006044820152606401610e17565b5073ffffffffffffffffffffffffffffffffffffffff91909116600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b601f818154811061164857600080fd5b600091825260209091200154905081565b6116616123c4565b61166b6000612445565b565b600d818154811061167d57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6116ce81611b9a565b50600e8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61173081611b9a565b50601755565b606060048054610f2d90614094565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61176f81611b9a565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001683158015919091179091556117d8576117d28360006124bc565b50505050565b6117d2836117e5856125d4565b6124bc565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156118ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610e17565b61113d8286868403611ba4565b600033610fbe818585611e28565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604081208054808303611901575060009392505050565b600061190c826126fa565b60018401549091508082116119275750600095945050505050565b6119318183614116565b9695505050505050565b6008818154811061167d57600080fd5b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61197581611b9a565b600e8054841580156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff909216919091179091556110ac5764e8d4a51000821115611a21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f546f6f20426967000000000000000000000000000000000000000000000000006044820152606401610e17565b6064821015611a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f546f6f20536d616c6c00000000000000000000000000000000000000000000006044820152606401610e17565b601b8290556040518281527fb6fc85abfd64ed22db8c9aae4dd40127d9f18b2acb64f8120f3f2e32184e26af90602001611117565b600082815260066020526040902060010154611adc81611b9a565b6110ac83836121e4565b611aee6123c4565b73ffffffffffffffffffffffffffffffffffffffff8116611b91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e17565b6114d181612445565b6114d18133612721565b73ffffffffffffffffffffffffffffffffffffffff8316611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff8216611ce9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146117d25781811015611e1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e17565b6117d28484848403611ba4565b611e31836127db565b611e3a826127db565b30600090815260208190526040812054601b54600254919291611e5d919061416b565b600e54909150600090610100900460ff1615611ea2575073ffffffffffffffffffffffffffffffffffffffff841660009081526010602052604090205460ff16611ec2565b5060095473ffffffffffffffffffffffffffffffffffffffff8581169116145b600e546301000000900460ff168015611edb5750818310155b8015611eea5750600e5460ff16155b8015611ef35750805b15611f5557600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611f2c826128e3565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b73ffffffffffffffffffffffffffffffffffffffff861660009081526011602052604090205460ff1680611fae575073ffffffffffffffffffffffffffffffffffffffff851660009081526011602052604090205460ff165b15611fc357611fbe868686612e15565b612054565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152601060205260408082205492881682528120549091829161200991889160ff91821691166130cb565b90925090508115612021576120218861036984612e15565b801561203257612032883083612e15565b612051888883612042868b614116565b61204c9190614116565b612e15565b50505b73ffffffffffffffffffffffffffffffffffffffff861660009081526012602052604090205460ff166120905761208e866117e5886125d4565b505b73ffffffffffffffffffffffffffffffffffffffff851660009081526012602052604090205460ff166120cc576120ca856117e5876125d4565b505b600e5462010000900460ff16156120e8576120e86017546131cc565b505050505050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166113b157600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556121863390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156113b157600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60195473ffffffffffffffffffffffffffffffffffffffff8216600090815260136020526040812054909142916122d69190614158565b108015610ce457506018546122ea836118c9565b1192915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604081208054909181900361232657505050565b6000612331846118c9565b905080156117d25760075461235d9073ffffffffffffffffffffffffffffffffffffffff1685836132bf565b80601c5461236b9190614158565b601c5573ffffffffffffffffffffffffffffffffffffffff841660009081526013602052604081204290556002840180548392906123aa908490614158565b909155506123b99050826126fa565b600184015550505050565b60055473ffffffffffffffffffffffffffffffffffffffff16331461166b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e17565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f6020526040812080548381146125cc5780156124fe576124f9856122f1565b600192505b836000036125145761250f8561334c565b61259e565b8060000361259e57600d805473ffffffffffffffffffffffffffffffffffffffff87166000818152601460205260408120839055600183018455929092527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381601e546125ad9190614116565b6125b79190614158565b601e558382556125c6846126fa565b60018301555b505092915050565b600080805b6008548110156126a757600881815481106125f6576125f6614065565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152909116906370a0823190602401602060405180830381865afa15801561266f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269391906141a6565b61269d9083614158565b91506001016125d9565b50612710816016546126b991906141bf565b6126c3919061416b565b73ffffffffffffffffffffffffffffffffffffffff84166000908152602081905260409020546126f39190614158565b9392505050565b60006b204fce5e3e25026110000000601a548361271791906141bf565b610ce4919061416b565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166113b157612761816134dd565b61276c8360206134fc565b60405160200161277d9291906141d6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610e1791600401613ec2565b8073ffffffffffffffffffffffffffffffffffffffff163b6000036127fd5750565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff166114d1576000806128368361373f565b909250905073ffffffffffffffffffffffffffffffffffffffff821615801590612875575073ffffffffffffffffffffffffffffffffffffffff811615155b156110ac57505073ffffffffffffffffffffffffffffffffffffffff166000908152601060209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556012909352922080549091169091179055565b806000036128ee5750565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061292557612925614065565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600a54604080517fef8ef56f0000000000000000000000000000000000000000000000000000000081529051919093169263ef8ef56f9260048083019391928290030181865afa1580156129a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c89190614286565b816001815181106129db576129db614065565b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092010152600754825191169082906002908110612a1957612a19614065565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526007546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009291909116906370a0823190602401602060405180830381865afa158015612a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612abd91906141a6565b600a54909150612ae590309073ffffffffffffffffffffffffffffffffffffffff1685611ba4565b600a546040517f5c11d79500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690635c11d79590612b449086906000908790309042906004016142a3565b600060405180830381600087803b158015612b5e57600080fd5b505af1158015612b72573d6000803e3d6000fd5b50506007546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000935083925073ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015612be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0d91906141a6565b905082811115612c2457612c218382614116565b91505b8115612e0e5760006127106002601f600481548110612c4557612c45614065565b906000526020600020015485612c5b91906141bf565b612c65919061416b565b612c6f919061416b565b600754600b546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af1158015612cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d109190614330565b50600754600c546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015612d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612db09190614330565b50612dbc8160026141bf565b612dc69084614116565b925082601d54612dd69190614158565b601d55601e54612df2846b204fce5e3e250261100000006141bf565b612dfc919061416b565b601a54612e099190614158565b601a55505b5050505050565b73ffffffffffffffffffffffffffffffffffffffff8316612eb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff8216612f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610e17565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9773ffffffffffffffffffffffffffffffffffffffff831601612fa2576110ac83826137bc565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015613058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36117d2565b600080821561314b57612710601f6003815481106130eb576130eb614065565b90600052602060002001548661310191906141bf565b61310b919061416b565b9150612710601f60028154811061312457613124614065565b90600052602060002001548661313a91906141bf565b613144919061416b565b90506131c4565b83156131c457612710601f60018154811061316857613168614065565b90600052602060002001548661317e91906141bf565b613188919061416b565b9150612710601f6000815481106131a1576131a1614065565b9060005260206000200154866131b791906141bf565b6131c1919061416b565b90505b935093915050565b600d5460008190036131dc575050565b6000805a905060005b84831080156131f357508381105b15612e0e5783601554106132075760006015555b6000600d6015548154811061321e5761321e614065565b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff16915061324a826125d4565b9050600061325883836124bc565b90508015801561326c575061326c8361229f565b1561327a5761327a836122f1565b6015805490600061328a8361434d565b9190505550838061329a9061434d565b9450505a6132a89086614116565b6132b29087614158565b95505a94505050506131e5565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526110ac908490613984565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260146020526040902054600d5461338190600190614116565b81101561344857600d80546000919061339c90600190614116565b815481106133ac576133ac614065565b600091825260209091200154600d805473ffffffffffffffffffffffffffffffffffffffff90921692508291849081106133e8576133e8614065565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526014909152604090208190555b600d80548061345957613459614129565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff9390931681526014909252506040812055565b6060610ce473ffffffffffffffffffffffffffffffffffffffff831660145b6060600061350b8360026141bf565b613516906002614158565b67ffffffffffffffff81111561352e5761352e614257565b6040519080825280601f01601f191660200182016040528015613558576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061358f5761358f614065565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135f2576135f2614065565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061362e8460026141bf565b613639906001614158565b90505b60018111156136d6577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061367a5761367a614065565b1a60f81b82828151811061369057613690614065565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936136cf81614385565b905061363c565b5083156126f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e17565b60008061376c837f0dfe168100000000000000000000000000000000000000000000000000000000613a93565b915073ffffffffffffffffffffffffffffffffffffffff8216156137b7576137b4837fd21220a700000000000000000000000000000000000000000000000000000000613a93565b90505b915091565b73ffffffffffffffffffffffffffffffffffffffff821661385f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015613915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260208181526040918290208585039055600280548690039055905184815261036992917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60006139e6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613ba89092919063ffffffff16565b9050805160001480613a07575080806020019051810190613a079190614330565b6110ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610e17565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290516000918291829173ffffffffffffffffffffffffffffffffffffffff871691613b1691906143ba565b600060405180830381855afa9150503d8060008114613b51576040519150601f19603f3d011682016040523d82523d6000602084013e613b56565b606091505b5091509150811580613b6757508051155b15613b7757600092505050610ce4565b8051602003613b9d5780806020019051810190613b949190614286565b92505050610ce4565b506000949350505050565b6060613bb78484600085613bbf565b949350505050565b606082471015613c51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610e17565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613c7a91906143ba565b60006040518083038185875af1925050503d8060008114613cb7576040519150601f19603f3d011682016040523d82523d6000602084013e613cbc565b606091505b5091509150613ccd87838387613cd8565b979650505050505050565b60608315613d6e578251600003613d675773ffffffffffffffffffffffffffffffffffffffff85163b613d67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e17565b5081613bb7565b613bb78383815115613d835781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e179190613ec2565b73ffffffffffffffffffffffffffffffffffffffff811681146114d157600080fd5b600060208284031215613deb57600080fd5b81356126f381613db7565b600060208284031215613e0857600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146126f357600080fd5b80151581146114d157600080fd5b600060208284031215613e5857600080fd5b81356126f381613e38565b600080600080600060a08688031215613e7b57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b83811015613eb9578181015183820152602001613ea1565b50506000910152565b6020815260008251806020840152613ee1816040850160208701613e9e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008060408385031215613f2657600080fd5b8235613f3181613db7565b946020939093013593505050565b60008060408385031215613f5257600080fd5b8235613f5d81613db7565b91506020830135613f6d81613db7565b809150509250929050565b60008060408385031215613f8b57600080fd5b50508035926020909101359150565b600080600060608486031215613faf57600080fd5b8335613fba81613db7565b92506020840135613fca81613db7565b929592945050506040919091013590565b600060208284031215613fed57600080fd5b5035919050565b6000806040838503121561400757600080fd5b823591506020830135613f6d81613db7565b6000806040838503121561402c57600080fd5b823561403781613db7565b91506020830135613f6d81613e38565b6000806040838503121561405a57600080fd5b8235613f3181613e38565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c908216806140a857607f821691505b6020821081036140e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610ce457610ce46140e7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b80820180821115610ce457610ce46140e7565b6000826141a1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156141b857600080fd5b5051919050565b8082028115828204841417610ce457610ce46140e7565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161420e816017850160208801613e9e565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161424b816028840160208801613e9e565b01602801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561429857600080fd5b81516126f381613db7565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b8181101561430257845173ffffffffffffffffffffffffffffffffffffffff16835293830193918301916001016142d0565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b60006020828403121561434257600080fd5b81516126f381613e38565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361437e5761437e6140e7565b5060010190565b600081614394576143946140e7565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600082516143cc818460208701613e9e565b919091019291505056fea264697066735822122095c33aeb863984bc4338ea61f9f23013e761a7b2ba04f6b480661b82aac20fa164736f6c63430008160033000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d9000000000000000000000000efd766ccb38eaf1dfd701853bfce31359239f305000000000000000000000000fb7103d7011dfa60c18c6961c5a38038d8048fe000000000000000000000000043f11890f3d8ee704595eba88f52ee7d983b6907

Deployed ByteCode

0x6080604052600436106103a55760003560e01c80634b0432f2116101e7578063a217fddf1161010d578063ba16d600116100a0578063dd62ed3e1161006f578063dd62ed3e14610bb2578063e7b0f66614610c05578063f2fde38b14610c1b578063fe8f254e14610c3b57600080fd5b8063ba16d60014610b46578063cbd06a2b14610b5c578063d246d41114610b7c578063d547741f14610b9257600080fd5b8063aada9c38116100dc578063aada9c3814610ab6578063ae2e9bcb14610ad6578063b0249cc614610af6578063b58ca5e914610b2657600080fd5b8063a217fddf14610a41578063a35346c114610a56578063a457c2d714610a76578063a9059cbb14610a9657600080fd5b80637d7bfa751161018557806395d89b411161015457806395d89b41146109bc5780639d8cedd8146109d1578063a146a55b146109fe578063a1fb098e14610a1457600080fd5b80637d7bfa75146108fe5780638da5cb5b1461091e5780638e9280761461094957806391d148541461096957600080fd5b80636ddd1713116101c15780636ddd17131461086557806370a0823114610886578063715018a6146108c95780637ad71f72146108de57600080fd5b80634b0432f2146107e2578063500e68e9146107f8578063501d815c1461084f57600080fd5b8063256addfb116102cc57806338b7f4461161026a5780633d78d410116102395780633d78d410146107455780633f9645c11461077257806342701a8e146107a25780634acc79ed146107c257600080fd5b806338b7f446146106c557806339509351146106f95780633a98ef39146107195780633c5d3b5a1461072f57600080fd5b80632f2ff15d116102a65780632f2ff15d14610654578063313ce5671461067457806336568abe1461069057806337563293146106b057600080fd5b8063256addfb146105f45780632a8d9c14146106145780632d7db8e21461063457600080fd5b806310acfb9b116103445780631cc3785e116103135780631cc3785e1461056e5780631eaa614f1461058457806323b872dd146105a4578063248a9ca3146105c457600080fd5b806310acfb9b146104ec578063180094d51461051957806318160ddd146105395780631a6611811461055857600080fd5b806304a66b481161038057806304a66b481461043857806306fdde03146104585780630758d9241461047a578063095ea7b3146104cc57600080fd5b80622a2050146103b157806301ffc9a7146103f657806303f21e011461041657600080fd5b366103ac57005b600080fd5b3480156103bd57600080fd5b506103e16103cc366004613dd9565b60116020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561040257600080fd5b506103e1610411366004613df6565b610c51565b34801561042257600080fd5b50610436610431366004613e46565b610cea565b005b34801561044457600080fd5b50610436610453366004613e63565b610d4d565b34801561046457600080fd5b5061046d610f1e565b6040516103ed9190613ec2565b34801561048657600080fd5b50600a546104a79073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103ed565b3480156104d857600080fd5b506103e16104e7366004613f13565b610fb0565b3480156104f857600080fd5b506007546104a79073ffffffffffffffffffffffffffffffffffffffff1681565b34801561052557600080fd5b50610436610534366004613f3f565b610fc8565b34801561054557600080fd5b506002545b6040519081526020016103ed565b34801561056457600080fd5b5061054a601d5481565b34801561057a57600080fd5b5061054a60165481565b34801561059057600080fd5b5061043661059f366004613f78565b6110b1565b3480156105b057600080fd5b506103e16105bf366004613f9a565b611124565b3480156105d057600080fd5b5061054a6105df366004613fdb565b60009081526006602052604090206001015490565b34801561060057600080fd5b5061043661060f366004613dd9565b611148565b34801561062057600080fd5b5061043661062f366004613dd9565b6112fa565b34801561064057600080fd5b5061043661064f366004613fdb565b6113b5565b34801561066057600080fd5b5061043661066f366004613ff4565b6113e5565b34801561068057600080fd5b50604051601281526020016103ed565b34801561069c57600080fd5b506104366106ab366004613ff4565b61140a565b3480156106bc57600080fd5b506104366114b9565b3480156106d157600080fd5b5061054a7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e81565b34801561070557600080fd5b506103e1610714366004613f13565b6114d4565b34801561072557600080fd5b5061054a601e5481565b34801561073b57600080fd5b5061054a601b5481565b34801561075157600080fd5b5061054a610760366004613dd9565b60146020526000908152604090205481565b34801561077e57600080fd5b506103e161078d366004613dd9565b60126020526000908152604090205460ff1681565b3480156107ae57600080fd5b506104366107bd366004614019565b611520565b3480156107ce57600080fd5b5061054a6107dd366004613fdb565b611638565b3480156107ee57600080fd5b5061054a60195481565b34801561080457600080fd5b50610834610813366004613dd9565b600f6020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103ed565b34801561085b57600080fd5b5061054a60175481565b34801561087157600080fd5b50600e546103e1906301000000900460ff1681565b34801561089257600080fd5b5061054a6108a1366004613dd9565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3480156108d557600080fd5b50610436611659565b3480156108ea57600080fd5b506104a76108f9366004613fdb565b61166d565b34801561090a57600080fd5b50610436610919366004613e46565b6116a4565b34801561092a57600080fd5b5060055473ffffffffffffffffffffffffffffffffffffffff166104a7565b34801561095557600080fd5b50610436610964366004613fdb565b611706565b34801561097557600080fd5b506103e1610984366004613ff4565b600091825260066020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156109c857600080fd5b5061046d611736565b3480156109dd57600080fd5b506009546104a79073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a0a57600080fd5b5061054a60155481565b348015610a2057600080fd5b5061054a610a2f366004613dd9565b60136020526000908152604090205481565b348015610a4d57600080fd5b5061054a600081565b348015610a6257600080fd5b50610436610a71366004614019565b611745565b348015610a8257600080fd5b506103e1610a91366004613f13565b6117ea565b348015610aa257600080fd5b506103e1610ab1366004613f13565b6118bb565b348015610ac257600080fd5b5061054a610ad1366004613dd9565b6118c9565b348015610ae257600080fd5b50600e546103e19062010000900460ff1681565b348015610b0257600080fd5b506103e1610b11366004613dd9565b60106020526000908152604090205460ff1681565b348015610b3257600080fd5b506104a7610b41366004613fdb565b61193b565b348015610b5257600080fd5b5061054a60185481565b348015610b6857600080fd5b50610436610b77366004614047565b61194b565b348015610b8857600080fd5b506104a761036981565b348015610b9e57600080fd5b50610436610bad366004613ff4565b611ac1565b348015610bbe57600080fd5b5061054a610bcd366004613f3f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b348015610c1157600080fd5b5061054a601c5481565b348015610c2757600080fd5b50610436610c36366004613dd9565b611ae6565b348015610c4757600080fd5b5061054a601a5481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610ce457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610d1481611b9a565b50600e805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610d7781611b9a565b6101f48611158015610d8b57506101f48511155b8015610d9957506101f48411155b8015610da757506101f48311155b8015610db557506101f48211155b610e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f466565203e204d41585f4645450000000000000000000000000000000000000060448201526064015b60405180910390fd5b85601f600081548110610e3557610e35614065565b60009182526020909120015584601f600181548110610e5657610e56614065565b60009182526020909120015583601f600281548110610e7757610e77614065565b60009182526020909120015582601f600381548110610e9857610e98614065565b60009182526020909120015581601f600481548110610eb957610eb9614065565b6000918252602091829020019190915560408051888152918201879052810185905260608101849052608081018390527f96b67df2c4648b38ada47da86f80d0a256df93150752a7b365ca487cab934e649060a00160405180910390a1505050505050565b606060038054610f2d90614094565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5990614094565b8015610fa65780601f10610f7b57610100808354040283529160200191610fa6565b820191906000526020600020905b815481529060010190602001808311610f8957829003601f168201915b5050505050905090565b600033610fbe818585611ba4565b5060019392505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e610ff281611b9a565b73ffffffffffffffffffffffffffffffffffffffff83161561104f57600b80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555b73ffffffffffffffffffffffffffffffffffffffff8216156110ac57600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6110db81611b9a565b6019839055601882905560408051848152602081018490527f8e912126cff24393f67ad5e722cc158fe78433df9a3530fccbfea4f82f948b0891015b60405180910390a1505050565b600033611132858285611d57565b61113d858585611e28565b506001949350505050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61117281611b9a565b60005b6008548110156110ac578273ffffffffffffffffffffffffffffffffffffffff16600882815481106111a9576111a9614065565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16036112f2576008546111df90600190614116565b81101561128857600880546111f690600190614116565b8154811061120657611206614065565b6000918252602090912001546008805473ffffffffffffffffffffffffffffffffffffffff909216918390811061123f5761123f614065565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600880548061129957611299614129565b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b600101611175565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61132481611b9a565b73ffffffffffffffffffffffffffffffffffffffff8216156113b157600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b5050565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6113df81611b9a565b50601655565b60008281526006602052604090206001015461140081611b9a565b6110ac83836120f0565b73ffffffffffffffffffffffffffffffffffffffff811633146114af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610e17565b6113b182826121e4565b336114c38161229f565b156114d1576114d1816122f1565b50565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610fbe908290869061151b908790614158565b611ba4565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61154a81611b9a565b73ffffffffffffffffffffffffffffffffffffffff831660009081526011602052604090205482151560ff9091161515036115e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f416c7265616479204f4b000000000000000000000000000000000000000000006044820152606401610e17565b5073ffffffffffffffffffffffffffffffffffffffff91909116600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b601f818154811061164857600080fd5b600091825260209091200154905081565b6116616123c4565b61166b6000612445565b565b600d818154811061167d57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e6116ce81611b9a565b50600e8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61173081611b9a565b50601755565b606060048054610f2d90614094565b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61176f81611b9a565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001683158015919091179091556117d8576117d28360006124bc565b50505050565b6117d2836117e5856125d4565b6124bc565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156118ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610e17565b61113d8286868403611ba4565b600033610fbe818585611e28565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604081208054808303611901575060009392505050565b600061190c826126fa565b60018401549091508082116119275750600095945050505050565b6119318183614116565b9695505050505050565b6008818154811061167d57600080fd5b7f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e61197581611b9a565b600e8054841580156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff909216919091179091556110ac5764e8d4a51000821115611a21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f546f6f20426967000000000000000000000000000000000000000000000000006044820152606401610e17565b6064821015611a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f546f6f20536d616c6c00000000000000000000000000000000000000000000006044820152606401610e17565b601b8290556040518281527fb6fc85abfd64ed22db8c9aae4dd40127d9f18b2acb64f8120f3f2e32184e26af90602001611117565b600082815260066020526040902060010154611adc81611b9a565b6110ac83836121e4565b611aee6123c4565b73ffffffffffffffffffffffffffffffffffffffff8116611b91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e17565b6114d181612445565b6114d18133612721565b73ffffffffffffffffffffffffffffffffffffffff8316611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff8216611ce9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146117d25781811015611e1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e17565b6117d28484848403611ba4565b611e31836127db565b611e3a826127db565b30600090815260208190526040812054601b54600254919291611e5d919061416b565b600e54909150600090610100900460ff1615611ea2575073ffffffffffffffffffffffffffffffffffffffff841660009081526010602052604090205460ff16611ec2565b5060095473ffffffffffffffffffffffffffffffffffffffff8581169116145b600e546301000000900460ff168015611edb5750818310155b8015611eea5750600e5460ff16155b8015611ef35750805b15611f5557600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611f2c826128e3565b600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b73ffffffffffffffffffffffffffffffffffffffff861660009081526011602052604090205460ff1680611fae575073ffffffffffffffffffffffffffffffffffffffff851660009081526011602052604090205460ff165b15611fc357611fbe868686612e15565b612054565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152601060205260408082205492881682528120549091829161200991889160ff91821691166130cb565b90925090508115612021576120218861036984612e15565b801561203257612032883083612e15565b612051888883612042868b614116565b61204c9190614116565b612e15565b50505b73ffffffffffffffffffffffffffffffffffffffff861660009081526012602052604090205460ff166120905761208e866117e5886125d4565b505b73ffffffffffffffffffffffffffffffffffffffff851660009081526012602052604090205460ff166120cc576120ca856117e5876125d4565b505b600e5462010000900460ff16156120e8576120e86017546131cc565b505050505050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166113b157600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556121863390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156113b157600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60195473ffffffffffffffffffffffffffffffffffffffff8216600090815260136020526040812054909142916122d69190614158565b108015610ce457506018546122ea836118c9565b1192915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604081208054909181900361232657505050565b6000612331846118c9565b905080156117d25760075461235d9073ffffffffffffffffffffffffffffffffffffffff1685836132bf565b80601c5461236b9190614158565b601c5573ffffffffffffffffffffffffffffffffffffffff841660009081526013602052604081204290556002840180548392906123aa908490614158565b909155506123b99050826126fa565b600184015550505050565b60055473ffffffffffffffffffffffffffffffffffffffff16331461166b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e17565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f6020526040812080548381146125cc5780156124fe576124f9856122f1565b600192505b836000036125145761250f8561334c565b61259e565b8060000361259e57600d805473ffffffffffffffffffffffffffffffffffffffff87166000818152601460205260408120839055600183018455929092527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381601e546125ad9190614116565b6125b79190614158565b601e558382556125c6846126fa565b60018301555b505092915050565b600080805b6008548110156126a757600881815481106125f6576125f6614065565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152909116906370a0823190602401602060405180830381865afa15801561266f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269391906141a6565b61269d9083614158565b91506001016125d9565b50612710816016546126b991906141bf565b6126c3919061416b565b73ffffffffffffffffffffffffffffffffffffffff84166000908152602081905260409020546126f39190614158565b9392505050565b60006b204fce5e3e25026110000000601a548361271791906141bf565b610ce4919061416b565b600082815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166113b157612761816134dd565b61276c8360206134fc565b60405160200161277d9291906141d6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610e1791600401613ec2565b8073ffffffffffffffffffffffffffffffffffffffff163b6000036127fd5750565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff166114d1576000806128368361373f565b909250905073ffffffffffffffffffffffffffffffffffffffff821615801590612875575073ffffffffffffffffffffffffffffffffffffffff811615155b156110ac57505073ffffffffffffffffffffffffffffffffffffffff166000908152601060209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091821681179092556012909352922080549091169091179055565b806000036128ee5750565b6040805160038082526080820190925260009160208201606080368337019050509050308160008151811061292557612925614065565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600a54604080517fef8ef56f0000000000000000000000000000000000000000000000000000000081529051919093169263ef8ef56f9260048083019391928290030181865afa1580156129a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129c89190614286565b816001815181106129db576129db614065565b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092010152600754825191169082906002908110612a1957612a19614065565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526007546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009291909116906370a0823190602401602060405180830381865afa158015612a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612abd91906141a6565b600a54909150612ae590309073ffffffffffffffffffffffffffffffffffffffff1685611ba4565b600a546040517f5c11d79500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690635c11d79590612b449086906000908790309042906004016142a3565b600060405180830381600087803b158015612b5e57600080fd5b505af1158015612b72573d6000803e3d6000fd5b50506007546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000935083925073ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015612be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0d91906141a6565b905082811115612c2457612c218382614116565b91505b8115612e0e5760006127106002601f600481548110612c4557612c45614065565b906000526020600020015485612c5b91906141bf565b612c65919061416b565b612c6f919061416b565b600754600b546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af1158015612cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d109190614330565b50600754600c546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015612d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612db09190614330565b50612dbc8160026141bf565b612dc69084614116565b925082601d54612dd69190614158565b601d55601e54612df2846b204fce5e3e250261100000006141bf565b612dfc919061416b565b601a54612e099190614158565b601a55505b5050505050565b73ffffffffffffffffffffffffffffffffffffffff8316612eb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff8216612f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610e17565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9773ffffffffffffffffffffffffffffffffffffffff831601612fa2576110ac83826137bc565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015613058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36117d2565b600080821561314b57612710601f6003815481106130eb576130eb614065565b90600052602060002001548661310191906141bf565b61310b919061416b565b9150612710601f60028154811061312457613124614065565b90600052602060002001548661313a91906141bf565b613144919061416b565b90506131c4565b83156131c457612710601f60018154811061316857613168614065565b90600052602060002001548661317e91906141bf565b613188919061416b565b9150612710601f6000815481106131a1576131a1614065565b9060005260206000200154866131b791906141bf565b6131c1919061416b565b90505b935093915050565b600d5460008190036131dc575050565b6000805a905060005b84831080156131f357508381105b15612e0e5783601554106132075760006015555b6000600d6015548154811061321e5761321e614065565b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff16915061324a826125d4565b9050600061325883836124bc565b90508015801561326c575061326c8361229f565b1561327a5761327a836122f1565b6015805490600061328a8361434d565b9190505550838061329a9061434d565b9450505a6132a89086614116565b6132b29087614158565b95505a94505050506131e5565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526110ac908490613984565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260146020526040902054600d5461338190600190614116565b81101561344857600d80546000919061339c90600190614116565b815481106133ac576133ac614065565b600091825260209091200154600d805473ffffffffffffffffffffffffffffffffffffffff90921692508291849081106133e8576133e8614065565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526014909152604090208190555b600d80548061345957613459614129565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff9390931681526014909252506040812055565b6060610ce473ffffffffffffffffffffffffffffffffffffffff831660145b6060600061350b8360026141bf565b613516906002614158565b67ffffffffffffffff81111561352e5761352e614257565b6040519080825280601f01601f191660200182016040528015613558576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061358f5761358f614065565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135f2576135f2614065565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061362e8460026141bf565b613639906001614158565b90505b60018111156136d6577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061367a5761367a614065565b1a60f81b82828151811061369057613690614065565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936136cf81614385565b905061363c565b5083156126f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e17565b60008061376c837f0dfe168100000000000000000000000000000000000000000000000000000000613a93565b915073ffffffffffffffffffffffffffffffffffffffff8216156137b7576137b4837fd21220a700000000000000000000000000000000000000000000000000000000613a93565b90505b915091565b73ffffffffffffffffffffffffffffffffffffffff821661385f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015613915576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610e17565b73ffffffffffffffffffffffffffffffffffffffff8316600081815260208181526040918290208585039055600280548690039055905184815261036992917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60006139e6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613ba89092919063ffffffff16565b9050805160001480613a07575080806020019051810190613a079190614330565b6110ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610e17565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290516000918291829173ffffffffffffffffffffffffffffffffffffffff871691613b1691906143ba565b600060405180830381855afa9150503d8060008114613b51576040519150601f19603f3d011682016040523d82523d6000602084013e613b56565b606091505b5091509150811580613b6757508051155b15613b7757600092505050610ce4565b8051602003613b9d5780806020019051810190613b949190614286565b92505050610ce4565b506000949350505050565b6060613bb78484600085613bbf565b949350505050565b606082471015613c51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610e17565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613c7a91906143ba565b60006040518083038185875af1925050503d8060008114613cb7576040519150601f19603f3d011682016040523d82523d6000602084013e613cbc565b606091505b5091509150613ccd87838387613cd8565b979650505050505050565b60608315613d6e578251600003613d675773ffffffffffffffffffffffffffffffffffffffff85163b613d67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e17565b5081613bb7565b613bb78383815115613d835781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e179190613ec2565b73ffffffffffffffffffffffffffffffffffffffff811681146114d157600080fd5b600060208284031215613deb57600080fd5b81356126f381613db7565b600060208284031215613e0857600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146126f357600080fd5b80151581146114d157600080fd5b600060208284031215613e5857600080fd5b81356126f381613e38565b600080600080600060a08688031215613e7b57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60005b83811015613eb9578181015183820152602001613ea1565b50506000910152565b6020815260008251806020840152613ee1816040850160208701613e9e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008060408385031215613f2657600080fd5b8235613f3181613db7565b946020939093013593505050565b60008060408385031215613f5257600080fd5b8235613f5d81613db7565b91506020830135613f6d81613db7565b809150509250929050565b60008060408385031215613f8b57600080fd5b50508035926020909101359150565b600080600060608486031215613faf57600080fd5b8335613fba81613db7565b92506020840135613fca81613db7565b929592945050506040919091013590565b600060208284031215613fed57600080fd5b5035919050565b6000806040838503121561400757600080fd5b823591506020830135613f6d81613db7565b6000806040838503121561402c57600080fd5b823561403781613db7565b91506020830135613f6d81613e38565b6000806040838503121561405a57600080fd5b8235613f3181613e38565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c908216806140a857607f821691505b6020821081036140e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610ce457610ce46140e7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b80820180821115610ce457610ce46140e7565b6000826141a1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000602082840312156141b857600080fd5b5051919050565b8082028115828204841417610ce457610ce46140e7565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161420e816017850160208801613e9e565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161424b816028840160208801613e9e565b01602801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561429857600080fd5b81516126f381613db7565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b8181101561430257845173ffffffffffffffffffffffffffffffffffffffff16835293830193918301916001016142d0565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b60006020828403121561434257600080fd5b81516126f381613e38565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361437e5761437e6140e7565b5060010190565b600081614394576143946140e7565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600082516143cc818460208701613e9e565b919091019291505056fea264697066735822122095c33aeb863984bc4338ea61f9f23013e761a7b2ba04f6b480661b82aac20fa164736f6c63430008160033