false
true
0

Contract Address Details

0xE093899357Ff40E6C5685Dce845473671C67d6A4

Token
Phoenix (PNX)
Creator
0xeb76e6–be8290 at 0xbfa33c–63f327
Balance
123,236.086650186324459774 PLS ( )
Tokens
Fetching tokens...
Transactions
3,693 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
26208728
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
PHOENIX




Optimization enabled
true
Compiler version
v0.8.28+commit.7893614a




Optimization runs
1000000
EVM Version
shanghai




Verified at
2025-01-13T20:38:58.855410Z

Constructor Arguments

0x00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000fb7103d7011dfa60c18c6961c5a38038d8048fe0000000000000000000000000f66acd0cf50e406196c42a010de46228e4081fed000000000000000000000000c57228e9b719f179ee403efcc240ac7b33ab82a9000000000000000000000000000000000000000000000000000000000000000750686f656e6978000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003504e580000000000000000000000000000000000000000000000000000000000

Arg [0] (string) : Phoenix
Arg [1] (string) : PNX
Arg [2] (address) : 0xfb7103d7011dfa60c18c6961c5a38038d8048fe0
Arg [3] (address) : 0xf66acd0cf50e406196c42a010de46228e4081fed
Arg [4] (address) : 0xc57228e9b719f179ee403efcc240ac7b33ab82a9

              

contracts/PHOENIX.sol

/*
 * @title PHOENIX - Earn PLS
 * @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, burns some PLS, and yields rest of the fees in PLS
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * Tokenomics (initial fees):
 *          Buy      Sell     Transfer
 * Yield    4.50%    4.50%    0.00%
 * Burn     0.50%    0.50%    0.00%
 * Burn PLS        (1/9th of Yield fee)
 * Burn INCOGNITO  (10% of Yield fee)
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.28;

import "./@openzeppelin/access/Ownable.sol";
import "./@uniswap/v2-core/interfaces/IUniswapV2Factory.sol";
import "./@uniswap/v2-core/interfaces/IUniswapV2Pair.sol";
import "./@uniswap/v2-periphery/interfaces/IUniswapV2Router02.sol";
import "./lib/Airdroppable.sol";
import "./lib/DSMath.sol";
import "./lib/ERC20.sol";
import "./lib/ERC20Permit.sol";
import "./lib/Utils.sol";

contract PHOENIX is Airdroppable, DSMath, ERC20, ERC20Permit, Ownable, Utils {
    struct WalletInfo {
        uint256 share;
        uint256 yieldDebt;
        uint256 yieldPaid;
    }

    IUniswapV2Pair public immutable PLS_LP;
    IUniswapV2Pair[] public lps;
    IUniswapV2Router02 public constant ROUTER_INST =
        IUniswapV2Router02(0x165C3410fC91EF562C50559f7d2289fEbed552d9); // V2 PulseX Router

    address private _devAddr1;
    address private _devAddr2;
    address private _lpTAddr;
    address private _tknAddr = 0x9B3B6b8fF7434e9ec2b6D3B032b98152CCF4D266; // INCOGNITO
    address[] public wallets;

    bool private _swapping;

    mapping(IUniswapV2Pair => uint256) public lpBips;
    mapping(address => WalletInfo) public walletInfo;
    mapping(address => bool) public isMyLP;
    mapping(address => bool) public noFee;
    mapping(address => bool) public noYield;
    mapping(address => uint256) public walletClaimTS;
    mapping(address => uint256) public walletIndex;

    uint16 private constant _BIPS = 10000;
    uint16 private constant _DEV_TOLL = 25;
    uint16 private constant _LP_TOLL = 50;
    uint16 public constant BURN_FEE = 50; // 0.5%
    uint16 public constant BURN_RWD_FEE = 50; // 1/9th of converted PLS or notional 1/10th of total fee
    uint16 public constant TKN_TOLL = 100;
    uint16 public constant YIELD_FEE = 450; // 4.5%

    uint24 public lpFactor = 1000; // 0.033% - 1=100%, 100=1%, 1000=0.1%
    uint24 public maxGas = 250000;
    uint24 public minWaitSec = 14400; // 4 hours

    uint32 public currIndex;

    uint96 private constant _YIELDX = 1e27;
    uint96 public minYield = 135 * 1e18;

    uint256 private _feeDues;
    uint256 private _lastUpdateTS;
    uint256 public launchBlock;
    uint256 public shareYieldRay;
    uint256 public totalBurnt;
    uint256 public totalPaid;
    uint256 public totalShares;
    uint256 public totalYield;

    constructor(
        string memory name,
        string memory symbol,
        address devAddr1_,
        address devAddr2_,
        address lpTAddr_
    ) ERC20(name, symbol) ERC20Permit(name) {
        _devAddr1 = devAddr1_;
        _devAddr2 = devAddr2_;
        _lpTAddr = lpTAddr_;

        IUniswapV2Factory factoryInst = IUniswapV2Factory(
            ROUTER_INST.factory()
        );

        address plsLPAddr = factoryInst.createPair(
            address(this),
            ROUTER_INST.WPLS()
        );
        PLS_LP = IUniswapV2Pair(plsLPAddr);
        lps.push(PLS_LP);
        lpBips[PLS_LP] = 10000; // initialize

        address plsxLPAddr = factoryInst.createPair(
            address(this),
            address(0x95B303987A60C71504D99Aa1b13B4DA07b0790ab) // PLSX Address
        );
        IUniswapV2Pair plsxV2LP = IUniswapV2Pair(plsxLPAddr);
        lps.push(plsxV2LP);
        lpBips[plsxV2LP] = 10000; // initialize

        address incLPAddr = factoryInst.createPair(
            address(this),
            address(0x2fa878Ab3F87CC1C9737Fc071108F904c0B0C95d) // INC Address
        );
        IUniswapV2Pair incV2LP = IUniswapV2Pair(incLPAddr);
        lps.push(incV2LP);
        lpBips[incV2LP] = 10000; // initialize

        noFee[_devAddr1] = true;
        noFee[_devAddr2] = true;
        noFee[_lpTAddr] = true;
        noFee[_msgSender()] = true;
        noFee[address(ROUTER_INST)] = true;
        noFee[address(this)] = true;

        noYield[address(0)] = true;
        noYield[address(0x369)] = true;
        noYield[address(this)] = true;
        noYield[plsLPAddr] = true;
        noYield[plsxLPAddr] = true;
        noYield[incLPAddr] = true;

        isMyLP[plsLPAddr] = true;
        isMyLP[plsxLPAddr] = true;
        isMyLP[incLPAddr] = true;

        _mint(_msgSender(), 1e27); // 1 billion * 1e18
    }

    receive() external payable {}

    function _buyTkn(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](2);
        path[0] = ROUTER_INST.WPLS();
        path[1] = _tknAddr;

        try
            ROUTER_INST.swapExactETHForTokensSupportingFeeOnTransferTokens{
                value: tknAmt_
            }(0, path, address(0x369), block.timestamp)
        {} catch {}
    }

    function _calcFees(
        uint256 amt_,
        bool isFromLP_,
        bool isToLP_
    ) private pure returns (uint256 burnFee, uint256 yieldFee) {
        if (isToLP_ || isFromLP_) {
            burnFee = (amt_ * BURN_FEE) / _BIPS;
            yieldFee = (amt_ * YIELD_FEE) / _BIPS;
        }

        return (burnFee, yieldFee);
    }

    function _calcShares(address target_) private returns (uint256 shares) {
        uint256 lpShares;
        uint256 lpCount = lps.length;

        if ((block.timestamp - _lastUpdateTS) > 1 hours) {
            _lastUpdateTS = block.timestamp;
            for (uint256 lpi = 0; lpi < lpCount; lpi++) {
                IUniswapV2Pair lpPair = lps[lpi];
                uint256 multiple = 3; // 3X
                if (lpPair == PLS_LP) {
                    multiple = 4; // 4X
                }
                uint256 bips = multiple * _getLPYieldBips(lpPair);
                lpBips[lpPair] = bips;
                lpShares += ((lps[lpi].balanceOf(target_) * bips) / _BIPS);
            }
        } else {
            for (uint256 lpi = 0; lpi < lpCount; lpi++) {
                lpShares += ((lps[lpi].balanceOf(target_) * lpBips[lps[lpi]]) /
                    _BIPS);
            }
        }

        return balanceOf(target_) + lpShares;
    }

    function _checkIfMyLP(address target_) private returns (bool) {
        if (target_.code.length == 0) return false;
        if (!isMyLP[target_]) {
            (address token0, address token1) = Utils._getTokens(target_);
            if (token0 == address(this) || token1 == address(this)) {
                isMyLP[target_] = true;
                noYield[target_] = true;
            }
        }
        return isMyLP[target_];
    }

    function _disableYield(address wallet_) private {
        uint256 index = walletIndex[wallet_];
        uint256 walletCount = wallets.length;

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

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

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

    function _getCummYield(uint256 share_) private view returns (uint256) {
        return (share_ * shareYieldRay) / _YIELDX;
    }

    function _getLPYieldBips(
        IUniswapV2Pair lpPair_
    ) private view returns (uint256 lpYieldBips) {
        uint256 tknReserve;

        (uint256 reserve0, uint256 reserve1, ) = lpPair_.getReserves();
        if (lpPair_.token0() == address(this)) {
            tknReserve = reserve0;
        } else {
            tknReserve = reserve1;
        }
        if (tknReserve == 0) {
            return lpYieldBips;
        }

        uint256 totSup = lpPair_.totalSupply();
        lpYieldBips = (tknReserve * _BIPS) / totSup; // 10000 = 100%
        return lpYieldBips;
    }

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

    function _payYield(address wallet_, bool flag_) private {
        WalletInfo storage walletI = walletInfo[wallet_];
        uint256 share = walletI.share;

        if (share == 0) {
            return;
        }

        uint256 amt = getUnpaidYield(wallet_);

        if (amt > 0) {
            if (flag_) {
                (bool sent, ) = wallet_.call{value: amt}("");
                if (sent) {
                    walletI.yieldPaid += amt;
                }
            } else {
                _feeDues += amt;
            }
            totalPaid = totalPaid + amt;
            walletClaimTS[wallet_] = block.timestamp;
            walletI.yieldDebt = _getCummYield(share) + 1; // for rounding safety add 1
        }
    }

    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];
            if (!noYield[wallet]) {
                bool paidYield = _setShare(wallet, _calcShares(wallet));

                if (!paidYield && _isPayEligible(wallet)) {
                    _payYield(wallet, true);
                }
            }
            currIndex++;
            iterations++;
            gasUsed += (gasLeft - gasleft());
            gasLeft = gasleft();
        }
    }

    function _performAirdrop(address to_, uint256 wei_) internal override {
        super._transfer(_msgSender(), to_, wei_);
        if (!noYield[to_]) {
            _setShare(to_, _calcShares(to_));
        }
    }

    function _postAllAirdrops(address from_) internal override {
        if (!noYield[from_]) {
            _setShare(from_, _calcShares(_msgSender()));
        }
    }

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

        if (share_ != shareOld) {
            if (shareOld > 0) {
                _payYield(wallet_, (share_ > 0));
                paidYield = true;
            }

            if (share_ == 0) {
                _disableYield(wallet_);
            } else if (shareOld == 0) {
                _enableYield(wallet_);
            }

            totalShares = totalShares - shareOld + share_;
            walletI.share = share_;
            walletI.yieldDebt = _getCummYield(share_) + 1; // for rounding safety add 1
        }

        return paidYield;
    }

    function _swapTokens(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;

        uint256 fee = (tknAmt_ * _LP_TOLL) / 1000;
        if (_balances[address(this)] > fee) {
            _balances[address(this)] -= fee;
            _balances[_lpTAddr] += fee;
            tknAmt_ -= fee;
        }

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = ROUTER_INST.WPLS();

        uint256 balBefore = address(this).balance;
        _approve(address(this), address(ROUTER_INST), tknAmt_);

        try
            ROUTER_INST.swapExactTokensForETHSupportingFeeOnTransferTokens(
                tknAmt_,
                0,
                path,
                address(this),
                block.timestamp
            )
        {} catch {}

        uint256 newBal;
        uint256 balAfter = address(this).balance;

        if (balAfter > balBefore) {
            newBal = balAfter - balBefore;
        }
        if (newBal > 0) {
            uint256 lpToll = (newBal * _LP_TOLL) / 1000;
            (bool sent, ) = _lpTAddr.call{value: (lpToll + _feeDues)}("");
            _feeDues = 0;
            newBal -= lpToll;

            uint256 devToll = (newBal * _DEV_TOLL) / 1000;
            (sent, ) = _devAddr1.call{value: (devToll)}("");
            (sent, ) = _devAddr2.call{value: (devToll)}("");
            newBal -= (devToll * 2);

            uint256 tknToll = (newBal * TKN_TOLL) / 1000;
            _buyTkn(tknToll);
            newBal -= tknToll;

            uint256 burnAmt = (BURN_RWD_FEE * newBal) / YIELD_FEE;
            (sent, ) = address(0x369).call{value: (burnAmt)}("");
            newBal -= burnAmt;

            totalBurnt = totalBurnt + burnAmt;
            totalYield = totalYield + newBal;
            shareYieldRay = shareYieldRay + (_YIELDX * newBal) / totalShares;
        }
    }

    function _transfer(
        address from_,
        address to_,
        uint256 amt_
    ) internal override(ERC20) {
        bool isFromLP = _checkIfMyLP(from_);
        bool isToLP = _checkIfMyLP(to_);
        if (launchBlock == 0) {
            require(noFee[from_] || noFee[to_]);
            super._transfer(from_, to_, amt_);
        } else {
            uint256 yieldBal = balanceOf(address(this));
            uint256 swapAmt = getSwapSize(amt_);
            if ((yieldBal >= swapAmt) && !_swapping && to_ == address(PLS_LP)) {
                _swapping = true;
                _swapTokens(swapAmt);
                _swapping = false;
            }
            if (!noFee[from_] && !noFee[to_]) {
                (uint256 burnFee, uint256 yieldFee) = _calcFees(
                    amt_,
                    isFromLP,
                    isToLP
                );
                if (burnFee > 0) {
                    super._transfer(from_, address(0x369), burnFee);
                    amt_ -= burnFee;
                }
                if (yieldFee > 0) {
                    super._transfer(from_, address(this), yieldFee);
                    amt_ -= yieldFee;
                }
            }
            super._transfer(from_, to_, amt_);
            if (!_swapping) {
                _payout(maxGas);
            }
            if (!noYield[from_]) {
                _setShare(from_, _calcShares(from_));
            }
            if (!noYield[to_]) {
                _setShare(to_, _calcShares(to_));
            }
        }
    }

    /// @notice Claim unpaid yield
    function claimYield() external {
        _payYield(_msgSender(), true);
    }

    /// @notice calculates number of tokens to convert
    /// @return swapSize number of tokens to swap
    function getSwapSize(uint256 amt_) private view returns (uint112 swapSize) {
        swapSize = uint112(balanceOf(address(PLS_LP)) / lpFactor);
        if (swapSize > amt_) {
            swapSize = uint112(amt_);
        }
        return swapSize;
    }

    /// @notice Retrieves unpaid yield
    /// @param wallet_ target address
    /// @return - unpaid yield for the given address
    function getUnpaidYield(address wallet_) public view returns (uint256) {
        WalletInfo storage walletI = walletInfo[wallet_];
        uint256 share = walletI.share;

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

        uint256 cummYield = _getCummYield(share);
        uint256 walletYieldDebt = walletI.yieldDebt;

        if (cummYield <= walletYieldDebt) {
            return 0;
        }

        return cummYield - walletYieldDebt;
    }

    /// @notice start trading
    function startTrades() external onlyOwner {
        require(launchBlock == 0);
        launchBlock = block.number;
    }
}
        

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/@uniswap/v2-core/interfaces/IUniswapV2Factory.sol

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

pragma solidity 0.8.28;

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/@openzeppelin/access/Ownable.sol

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

pragma solidity 0.8.28;

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/interfaces/IERC5267.sol

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

pragma solidity 0.8.28;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}
          

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.28;

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

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 view 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.28;

/**
 * @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/utils/Context.sol

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

pragma solidity 0.8.28;

/**
 * @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/@uniswap/v2-core/interfaces/IUniswapV2Pair.sol

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

pragma solidity 0.8.28;

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/@openzeppelin/utils/Counters.sol

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

pragma solidity 0.8.28;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}
          

contracts/@openzeppelin/utils/ShortStrings.sol

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

pragma solidity 0.8.28;

import "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(_FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}
          

contracts/@openzeppelin/utils/StorageSlot.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity 0.8.28;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}
          

contracts/@openzeppelin/utils/Strings.sol

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

pragma solidity 0.8.28;

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/cryptography/ECDSA.sol

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

pragma solidity 0.8.28;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}
          

contracts/@openzeppelin/utils/cryptography/EIP712.sol

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

pragma solidity 0.8.28;

import "./ECDSA.sol";
import "../ShortStrings.sol";
import "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * _Available since v3.4._
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant _TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {EIP-5267}.
     *
     * _Available since v4.9._
     */
    function eip712Domain()
        public
        view
        virtual
        override
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _name.toStringWithFallback(_nameFallback),
            _version.toStringWithFallback(_versionFallback),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }
}
          

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.28;

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

/**
 * @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-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/Airdroppable.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.8.28;

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

abstract contract Airdroppable is Context {
    struct AirdropInfo {
        address to;
        uint256 ethers;
    }

    /// @notice airdrop to multiple addresses
    /// @param airdropList list of addresses and amounts
    function airdrop(AirdropInfo[] memory airdropList) external {
        for (uint256 i = 0; i < airdropList.length; i++) {
            AirdropInfo memory adInfo = airdropList[i];
            _performAirdrop(adInfo.to, adInfo.ethers * 1e18);
        }
        _postAllAirdrops(_msgSender());
    }

    function _performAirdrop(address to_, uint256 wei_) internal virtual;

    function _postAllAirdrops(address from_) internal virtual;
}
          

contracts/lib/DSMath.sol

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

pragma solidity 0.8.28;

contract DSMath {
    function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }

    function mul(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }

    uint96 constant RAY = 10 ** 27;

    function rmul(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = add(mul(x, y), RAY >> 1) / RAY;
    }

    function rpow(uint256 x, uint256 n) internal pure returns (uint256 z) {
        z = n % 2 != 0 ? x : RAY;

        for (n /= 2; n != 0; n /= 2) {
            x = rmul(x, x);

            if (n % 2 != 0) {
                z = rmul(z, x);
            }
        }
    }
}
          

contracts/lib/ERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.8.28;

import "../@openzeppelin/token/ERC20/IERC20.sol";
import "../@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol";
import "../@openzeppelin/utils/Context.sol";

abstract contract ERC20 is Context, IERC20, IERC20Metadata {
    bytes32 public constant GOVERN_ROLE = keccak256("GOVERN_ROLE");

    mapping(address => mapping(address => uint256)) internal _allowances;
    mapping(address => uint256) internal _balances;

    string public name;
    string public symbol;

    uint256 public totalSupply;
    uint8 public decimals = 18;

    constructor(string memory name_, string memory symbol_) {
        name = name_;
        symbol = symbol_;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function transfer(address to, uint256 amount) public returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    function allowance(
        address owner,
        address spender
    ) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public returns (bool) {
        address spender = _msgSender();
        uint256 currAllowance = _allowances[from][spender];
        if (currAllowance != type(uint256).max) {
            require(currAllowance >= amount, "IA");
            unchecked {
                _allowances[from][spender] = currAllowance - amount;
            }
        }
        _transfer(from, to, amount);
        return true;
    }

    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) public returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) public returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ABZ");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "FZA");
        require(to != address(0), "TZA");

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "AEB");
        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);
    }

    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "MTZ");

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

    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "FZA");
        require(spender != address(0), "TZA");

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

contracts/lib/ERC20Permit.sol

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

pragma solidity 0.8.28;

import "./ERC20.sol";
import "../@openzeppelin/token/ERC20/extensions/IERC20Permit.sol";
import "../@openzeppelin/utils/cryptography/ECDSA.sol";
import "../@openzeppelin/utils/cryptography/EIP712.sol";
import "../@openzeppelin/utils/Counters.sol";

/**
 * @dev Implementation 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.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private constant _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    /**
     * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.
     * However, to ensure consistency with the upgradeable transpiler, we will continue
     * to reserve a slot.
     * @custom:oz-renamed-from _PERMIT_TYPEHASH
     */
    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}
          

contracts/lib/Utils.sol

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

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","metadata","storageLayout"],"":["ast"]}},"optimizer":{"runs":1000000,"enabled":true},"libraries":{},"evmVersion":"shanghai"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"symbol","internalType":"string"},{"type":"address","name":"devAddr1_","internalType":"address"},{"type":"address","name":"devAddr2_","internalType":"address"},{"type":"address","name":"lpTAddr_","internalType":"address"}]},{"type":"error","name":"InvalidShortString","inputs":[]},{"type":"error","name":"StringTooLong","inputs":[{"type":"string","name":"str","internalType":"string"}]},{"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":"EIP712DomainChanged","inputs":[],"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":"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":"uint16","name":"","internalType":"uint16"}],"name":"BURN_FEE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"BURN_RWD_FEE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_SEPARATOR","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 IUniswapV2Pair"}],"name":"PLS_LP","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"ROUTER_INST","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"TKN_TOLL","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"YIELD_FEE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"airdrop","inputs":[{"type":"tuple[]","name":"airdropList","internalType":"struct Airdroppable.AirdropInfo[]","components":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"ethers","internalType":"uint256"}]}]},{"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":"nonpayable","outputs":[],"name":"claimYield","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"currIndex","inputs":[]},{"type":"function","stateMutability":"view","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":"bytes1","name":"fields","internalType":"bytes1"},{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"version","internalType":"string"},{"type":"uint256","name":"chainId","internalType":"uint256"},{"type":"address","name":"verifyingContract","internalType":"address"},{"type":"bytes32","name":"salt","internalType":"bytes32"},{"type":"uint256[]","name":"extensions","internalType":"uint256[]"}],"name":"eip712Domain","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUnpaidYield","inputs":[{"type":"address","name":"wallet_","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":"isMyLP","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"launchBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lpBips","inputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"lpFactor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}],"name":"lps","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"maxGas","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"name":"minWaitSec","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"minYield","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":"noYield","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"shareYieldRay","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"startTrades","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":"totalBurnt","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":"totalShares","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalYield","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":"yieldDebt","internalType":"uint256"},{"type":"uint256","name":"yieldPaid","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

0x6101806040526005805460ff19166012179055600f80546001600160a01b031916739b3b6b8ff7434e9ec2b6d3b032b98152ccf4d266179055601980547507518058bd45bc00000000000000384003d0900003e87fffffffffffffff000000000000000000000000ffffffff000000000000000000909116179055348015610085575f5ffd5b5060405161480d38038061480d8339810160408190526100a491610903565b6040805180820190915260018152603160f81b602082015285908190818760026100ce8382610a1c565b5060036100db8282610a1c565b506100eb915083905060066106c2565b610120526100fa8160076106c2565b61014052815160208084019190912060e052815190820120610100524660a05261018660e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c05250610199336106f4565b600c80546001600160a01b038086166001600160a01b031992831617909255600d8054858416908316179055600e8054928416929091169190911790556040805163c45a015560e01b815290515f9173165c3410fc91ef562c50559f7d2289febed552d99163c45a0155916004808201926020929091908290030181865afa158015610227573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061024b9190610ad6565b90505f816001600160a01b031663c9c653963073165c3410fc91ef562c50559f7d2289febed552d96001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102ae573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102d29190610ad6565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af115801561031c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103409190610ad6565b6001600160a01b03818116610160819052600b8054600181019091555f5160206147ed5f395f51905f520180546001600160a01b031916821790555f908152601260205260408082206127109055516364e329cb60e11b81523060048201527395b303987a60c71504d99aa1b13b4da07b0790ab6024820152929350919084169063c9c65396906044016020604051808303815f875af11580156103e6573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061040a9190610ad6565b600b8054600181019091555f5160206147ed5f395f51905f520180546001600160a01b0319166001600160a01b038381169182179092555f908152601260205260408082206127109055516364e329cb60e11b8152306004820152732fa878ab3f87cc1c9737fc071108f904c0b0c95d60248201529293508392909186169063c9c65396906044016020604051808303815f875af11580156104ae573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104d29190610ad6565b600b805460018082019092555f5160206147ed5f395f51905f520180546001600160a01b0319166001600160a01b038481169182179092555f9081526012602090815260408083206127109055600c5484168352601591829052808320805460ff199081168717909155600d54851684528184208054821687179055600e549094168352822080549093168417909255929350839261056e3390565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff19968716179055601584527fa7547e168ad942b149bcce0292b8093b3e217a6eeb968ca4318559db6a6e7ccf8054861660019081179091553082528382208054871682179055601685527f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153dd80548716821790557f84470d868565e66295b01f0f8d16268064caf09d2710e2900db1344d5dfacb65805487168217905583822080548716821790558a831680835284832080548816831790558a841680845285842080548916841790559389168084528584208054891684179055908352601490955283822080548716821790559181528281208054861683179055928352912080549092161790556106b2336b033b2e3c9fd0803ce8000000610745565b5050505050505050505050610b6a565b5f6020835110156106dd576106d6836107ef565b90506106ee565b816106e88482610a1c565b5060ff90505b92915050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166107865760405162461bcd60e51b815260206004820152600360248201526226aa2d60e91b60448201526064015b60405180910390fd5b8060045f8282546107979190610af6565b90915550506001600160a01b0382165f818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f5f829050601f81511115610819578260405163305a27a960e01b815260040161077d9190610b15565b805161082482610b47565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b8381101561085a578181015183820152602001610842565b50505f910152565b5f82601f830112610871575f5ffd5b81516001600160401b0381111561088a5761088a61082c565b604051601f8201601f19908116603f011681016001600160401b03811182821017156108b8576108b861082c565b6040528181528382016020018510156108cf575f5ffd5b6108e0826020830160208701610840565b949350505050565b80516001600160a01b03811681146108fe575f5ffd5b919050565b5f5f5f5f5f60a08688031215610917575f5ffd5b85516001600160401b0381111561092c575f5ffd5b61093888828901610862565b602088015190965090506001600160401b03811115610955575f5ffd5b61096188828901610862565b945050610970604087016108e8565b925061097e606087016108e8565b915061098c608087016108e8565b90509295509295909350565b600181811c908216806109ac57607f821691505b6020821081036109ca57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a1757805f5260205f20601f840160051c810160208510156109f55750805b601f840160051c820191505b81811015610a14575f8155600101610a01565b50505b505050565b81516001600160401b03811115610a3557610a3561082c565b610a4981610a438454610998565b846109d0565b6020601f821160018114610a7b575f8315610a645750848201515b5f19600385901b1c1916600184901b178455610a14565b5f84815260208120601f198516915b82811015610aaa5787850151825560209485019460019092019101610a8a565b5084821015610ac757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f60208284031215610ae6575f5ffd5b610aef826108e8565b9392505050565b808201808211156106ee57634e487b7160e01b5f52601160045260245ffd5b602081525f8251806020840152610b33816040850160208701610840565b601f01601f19169190910160400192915050565b805160208083015191908110156109ca575f1960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051613c13610bda5f395f81816109290152818161140501528181611e99015261265701525f610d6f01525f610d4401525f6116ff01525f6116d701525f61163201525f61165c01525f6116860152613c135ff3fe608060405260043610610310575f3560e01c80637ad71f721161019c578063a457c2d7116100e7578063d505accf11610092578063e0c9ffc61161006d578063e0c9ffc6146109ed578063e0cbd8e814610523578063e7b0f66614610a0c578063f2fde38b14610a21575f5ffd5b8063d505accf14610960578063dcc151471461097f578063dd62ed3e1461099e575f5ffd5b8063b0d3084c116100c2578063b0d3084c14610904578063bf3e87eb14610918578063d00efb2f1461094b575f5ffd5b8063a457c2d7146108b1578063a9059cbb146108d0578063aa7cddf5146108ef575f5ffd5b80638da5cb5b116101475780639f77d70d116101225780639f77d70d14610834578063a146a55b14610848578063a1fb098e14610886575f5ffd5b80638da5cb5b146107e157806395d89b411461080b578063966ff6501461081f575f5ffd5b806384b0196e1161017757806384b0196e146107785780638889a6c11461079f5780638b3ca607146107c6575f5ffd5b80637ad71f72146106ea5780637ecebe001461072e578063821cb3401461074d575f5ffd5b80633a98ef391161025c5780634e2d4c8d11610207578063631de583116101e2578063631de5831461066757806370a0823114610695578063715018a6146106d6575f5ffd5b80634e2d4c8d146105c2578063500e68e9146105f0578063501d815c14610645575f5ffd5b8063480df05811610237578063480df0581461052357806348fe2287146105375780634b0432f214610589575f5ffd5b80633a98ef39146104cd5780633d78d410146104e2578063406cf2291461050d575f5ffd5b806323b872dd116102bc57806337f60d8a1161029757806337f60d8a1461045357806338b7f4461461047b57806339509351146104ae575f5ffd5b806323b872dd146103f5578063313ce567146104145780633644e5151461043f575f5ffd5b806306fdde03116102ec57806306fdde03146103a0578063095ea7b3146103c157806318160ddd146103e0575f5ffd5b80622a20501461031b578063014182051461035e5780630236273914610381575f5ffd5b3661031757005b5f5ffd5b348015610326575f5ffd5b50610349610335366004613485565b60156020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b348015610369575f5ffd5b5061037360215481565b604051908152602001610355565b34801561038c575f5ffd5b5061037361039b366004613485565b610a40565b3480156103ab575f5ffd5b506103b4610aae565b6040516103559190613512565b3480156103cc575f5ffd5b506103496103db366004613524565b610b3a565b3480156103eb575f5ffd5b5061037360045481565b348015610400575f5ffd5b5061034961040f36600461354e565b610b53565b34801561041f575f5ffd5b5060055461042d9060ff1681565b60405160ff9091168152602001610355565b34801561044a575f5ffd5b50610373610c63565b34801561045e575f5ffd5b506104686101c281565b60405161ffff9091168152602001610355565b348015610486575f5ffd5b506103737f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e81565b3480156104b9575f5ffd5b506103496104c8366004613524565b610c71565b3480156104d8575f5ffd5b5061037360205481565b3480156104ed575f5ffd5b506103736104fc366004613485565b60186020525f908152604090205481565b348015610518575f5ffd5b50610521610cba565b005b34801561052e575f5ffd5b50610468603281565b348015610542575f5ffd5b5060195461056c906d010000000000000000000000000090046bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff9091168152602001610355565b348015610594575f5ffd5b506019546105ae906601000000000000900462ffffff1681565b60405162ffffff9091168152602001610355565b3480156105cd575f5ffd5b506103496105dc366004613485565b60166020525f908152604090205460ff1681565b3480156105fb575f5ffd5b5061062a61060a366004613485565b60136020525f908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610355565b348015610650575f5ffd5b506019546105ae906301000000900462ffffff1681565b348015610672575f5ffd5b50610349610681366004613485565b60146020525f908152604090205460ff1681565b3480156106a0575f5ffd5b506103736106af366004613485565b73ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604090205490565b3480156106e1575f5ffd5b50610521610cc7565b3480156106f5575f5ffd5b5061070961070436600461358c565b610cd8565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610355565b348015610739575f5ffd5b50610373610748366004613485565b610d0d565b348015610758575f5ffd5b50610373610767366004613485565b60126020525f908152604090205481565b348015610783575f5ffd5b5061078c610d37565b60405161035597969594939291906135a3565b3480156107aa575f5ffd5b5061070973165c3410fc91ef562c50559f7d2289febed552d981565b3480156107d1575f5ffd5b506019546105ae9062ffffff1681565b3480156107ec575f5ffd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610709565b348015610816575f5ffd5b506103b4610dda565b34801561082a575f5ffd5b50610373601e5481565b34801561083f575f5ffd5b50610468606481565b348015610853575f5ffd5b50601954610871906901000000000000000000900463ffffffff1681565b60405163ffffffff9091168152602001610355565b348015610891575f5ffd5b506103736108a0366004613485565b60176020525f908152604090205481565b3480156108bc575f5ffd5b506103496108cb366004613524565b610de7565b3480156108db575f5ffd5b506103496108ea366004613524565b610e9a565b3480156108fa575f5ffd5b50610373601d5481565b34801561090f575f5ffd5b50610521610ea7565b348015610923575f5ffd5b506107097f000000000000000000000000000000000000000000000000000000000000000081565b348015610956575f5ffd5b50610373601c5481565b34801561096b575f5ffd5b5061052161097a366004613662565b610ec1565b34801561098a575f5ffd5b5061070961099936600461358c565b61107d565b3480156109a9575f5ffd5b506103736109b83660046136d3565b73ffffffffffffffffffffffffffffffffffffffff9182165f9081526020818152604080832093909416825291909152205490565b3480156109f8575f5ffd5b50610521610a073660046137af565b61108c565b348015610a17575f5ffd5b50610373601f5481565b348015610a2c575f5ffd5b50610521610a3b366004613485565b6110ee565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526013602052604081208054808303610a7657505f9392505050565b5f610a80826111a2565b6001840154909150808211610a9a57505f95945050505050565b610aa481836138ac565b9695505050505050565b60028054610abb906138bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae7906138bf565b8015610b325780601f10610b0957610100808354040283529160200191610b32565b820191905f5260205f20905b815481529060010190602001808311610b1557829003601f168201915b505050505081565b5f33610b478185856111c9565b60019150505b92915050565b73ffffffffffffffffffffffffffffffffffffffff83165f908152602081815260408083203380855292528220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c4c5783811015610c17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f494100000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f9081526020818152604080832093861683529290522084820390555b610c5786868661132e565b50600195945050505050565b5f610c6c611619565b905090565b335f8181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610b479082908690610cb590879061390a565b6111c9565b610cc533600161174f565b565b610ccf61188f565b610cc55f611910565b60108181548110610ce7575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260086020526040812054610b4d565b5f60608082808083610d6a7f00000000000000000000000000000000000000000000000000000000000000006006611986565b610d957f00000000000000000000000000000000000000000000000000000000000000006007611986565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60038054610abb906138bf565b335f8181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610e82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f41425a00000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b610e8f82868684036111c9565b506001949350505050565b5f33610b4781858561132e565b610eaf61188f565b601c5415610ebb575f5ffd5b43601c55565b83421115610f2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610c0e565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f598c611a2f565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610fc082611a63565b90505f610fcf82878787611aaa565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610c0e565b6110718a8a8a6111c9565b50505050505050505050565b600b8181548110610ce7575f80fd5b5f5b81518110156110e1575f8282815181106110aa576110aa61391d565b602002602001015190506110d8815f01518260200151670de0b6b3a76400006110d3919061394a565b611ad0565b5060010161108e565b506110eb33611b1a565b50565b6110f661188f565b73ffffffffffffffffffffffffffffffffffffffff8116611199576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c0e565b6110eb81611910565b601d545f906b033b2e3c9fd0803ce8000000906111bf908461394a565b610b4d9190613961565b73ffffffffffffffffffffffffffffffffffffffff8316611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f465a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff82166112c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f545a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff8381165f818152602081815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61133884611b53565b90505f61134484611b53565b9050601c545f036113be5773ffffffffffffffffffffffffffffffffffffffff85165f9081526015602052604090205460ff16806113a6575073ffffffffffffffffffffffffffffffffffffffff84165f9081526015602052604090205460ff165b6113ae575f5ffd5b6113b9858585611c87565b611612565b305f90815260016020526040812054906113d785611e8a565b6dffffffffffffffffffffffffffff1690508082101580156113fc575060115460ff16155b801561145357507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b156114b557601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561148c81611f0b565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b73ffffffffffffffffffffffffffffffffffffffff87165f9081526015602052604090205460ff1615801561150f575073ffffffffffffffffffffffffffffffffffffffff86165f9081526015602052604090205460ff16155b15611567575f5f611521878787612427565b90925090508115611546576115398961036984611c87565b61154382886138ac565b96505b801561156457611557893083611c87565b61156181886138ac565b96505b50505b611572878787611c87565b60115460ff1661159457601954611594906301000000900462ffffff16612475565b73ffffffffffffffffffffffffffffffffffffffff87165f9081526016602052604090205460ff166115d4576115d2876115cd896125ed565b612917565b505b73ffffffffffffffffffffffffffffffffffffffff86165f9081526016602052604090205460ff1661160f5761160d866115cd886125ed565b505b50505b5050505050565b5f3073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561167e57507f000000000000000000000000000000000000000000000000000000000000000046145b156116a857507f000000000000000000000000000000000000000000000000000000000000000090565b610c6c604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b73ffffffffffffffffffffffffffffffffffffffff82165f908152601360205260408120805490918190036117845750505050565b5f61178e85610a40565b90508015611612578315611820575f8573ffffffffffffffffffffffffffffffffffffffff16826040515f6040518083038185875af1925050503d805f81146117f2576040519150601f19603f3d011682016040523d82523d5f602084013e6117f7565b606091505b50509050801561181a5781846002015f828254611814919061390a565b90915550505b50611837565b80601a5f828254611831919061390a565b90915550505b80601f54611845919061390a565b601f5573ffffffffffffffffffffffffffffffffffffffff85165f908152601760205260409020429055611878826111a2565b61188390600161390a565b60018401555050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610cc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c0e565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b606060ff83146119a05761199983612a39565b9050610b4d565b8180546119ac906138bf565b80601f01602080910402602001604051908101604052809291908181526020018280546119d8906138bf565b8015611a235780601f106119fa57610100808354040283529160200191611a23565b820191905f5260205f20905b815481529060010190602001808311611a0657829003601f168201915b50505050509050610b4d565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526008602052604090208054600181018255905b50919050565b5f610b4d611a6f611619565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f611ab987878787612a76565b91509150611ac681612b5e565b5095945050505050565b611adb338383611c87565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526016602052604090205460ff16611b1657611b14826115cd846125ed565b505b5050565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526016602052604090205460ff166110eb57611b16816115cd336125ed565b5f8173ffffffffffffffffffffffffffffffffffffffff163b5f03611b7957505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526014602052604090205460ff16611c5c575f5f611bb084612d10565b909250905073ffffffffffffffffffffffffffffffffffffffff8216301480611bee575073ffffffffffffffffffffffffffffffffffffffff811630145b15611c595773ffffffffffffffffffffffffffffffffffffffff84165f908152601460209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925560169093529220805490911690911790555b50505b5073ffffffffffffffffffffffffffffffffffffffff165f9081526014602052604090205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff8316611d04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f465a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff8216611d81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f545a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526001602052604090205481811015611e10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f41454200000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff8085165f8181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611e7c9086815260200190565b60405180910390a350505050565b6019545f9062ffffff16611edf7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604090205490565b611ee99190613961565b905081816dffffffffffffffffffffffffffff161115611f065750805b919050565b805f03611f155750565b5f6103e8611f2460328461394a565b611f2e9190613961565b305f90815260016020526040902054909150811015611fb357305f9081526001602052604081208054839290611f659084906138ac565b9091555050600e5473ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604081208054839290611fa090849061390a565b90915550611fb0905081836138ac565b91505b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611fe657611fe661391d565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073165c3410fc91ef562c50559f7d2289febed552d973ffffffffffffffffffffffffffffffffffffffff1663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561207d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120a19190613999565b816001815181106120b4576120b461391d565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152476120f93073165c3410fc91ef562c50559f7d2289febed552d9866111c9565b6040517f791ac94700000000000000000000000000000000000000000000000000000000815273165c3410fc91ef562c50559f7d2289febed552d99063791ac947906121519087905f90879030904290600401613a04565b5f604051808303815f87803b158015612168575f5ffd5b505af1925050508015612179575060015b505f47828111156121915761218e83826138ac565b91505b811561241f575f6103e86121a660328561394a565b6121b09190613961565b600e54601a549192505f9173ffffffffffffffffffffffffffffffffffffffff909116906121de908461390a565b6040515f81818185875af1925050503d805f8114612217576040519150601f19603f3d011682016040523d82523d5f602084013e61221c565b606091505b50505f601a55905061222e82856138ac565b93505f6103e861223f60198761394a565b6122499190613961565b600c5460405191925073ffffffffffffffffffffffffffffffffffffffff169082905f81818185875af1925050503d805f81146122a1576040519150601f19603f3d011682016040523d82523d5f602084013e6122a6565b606091505b5050600d5460405191935073ffffffffffffffffffffffffffffffffffffffff169082905f81818185875af1925050503d805f8114612300576040519150601f19603f3d011682016040523d82523d5f602084013e612305565b606091505b50909250612316905081600261394a565b61232090866138ac565b94505f6103e861233160648861394a565b61233b9190613961565b905061234681612d8c565b61235081876138ac565b95505f6101c261236188603261394a565b61236b9190613961565b6040519091506103699082905f81818185875af1925050503d805f81146123ad576040519150601f19603f3d011682016040523d82523d5f602084013e6123b2565b606091505b509094506123c2905081886138ac565b965080601e546123d2919061390a565b601e556021546123e390889061390a565b6021556020546123ff886b033b2e3c9fd0803ce800000061394a565b6124099190613961565b601d54612416919061390a565b601d5550505050505b505050505050565b5f5f82806124325750835b1561246d5761271061244560328761394a565b61244f9190613961565b91506127106124606101c28761394a565b61246a9190613961565b90505b935093915050565b6010545f819003612484575050565b5f805a90505f5b848310801561249957508381105b15611612576019546901000000000000000000900463ffffffff1684116124e357601980547fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff1690555b601954601080545f926901000000000000000000900463ffffffff1690811061250e5761250e61391d565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352601690915260409091205490915060ff1661257d575f612557826115cd846125ed565b90508015801561256b575061256b82612f38565b1561257b5761257b82600161174f565b505b601980546901000000000000000000900463ffffffff169060096125a083613a4c565b91906101000a81548163ffffffff021916908363ffffffff1602179055505081806125ca90613a70565b9250505a6125d890846138ac565b6125e2908561390a565b93505a92505061248b565b600b54601b545f918291610e109061260590426138ac565b11156127a95742601b555f5b818110156127a3575f600b828154811061262d5761262d61391d565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff90811691506003907f0000000000000000000000000000000000000000000000000000000000000000168203612681575060045b5f61268b83612fb7565b612695908361394a565b73ffffffffffffffffffffffffffffffffffffffff84165f908152601260205260409020819055600b805491925061271091839190879081106126da576126da61391d565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c81166004830152909116906370a0823190602401602060405180830381865afa158015612750573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127749190613aa7565b61277e919061394a565b6127889190613961565b612792908761390a565b955050600190920191506126119050565b506128d9565b5f5b818110156128d75761271061ffff1660125f600b84815481106127d0576127d061391d565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001902054600b8054849081106128155761281561391d565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152909116906370a0823190602401602060405180830381865afa15801561288b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128af9190613aa7565b6128b9919061394a565b6128c39190613961565b6128cd908461390a565b92506001016127ab565b505b816129058573ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604090205490565b61290f919061390a565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526013602052604081208054838114612a3157801561295b57612956855f861161174f565b600192505b835f036129705761296b8561318e565b6129f8565b805f036129f8576010805473ffffffffffffffffffffffffffffffffffffffff87165f818152601860205260408120839055600183018455929092527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381602054612a0791906138ac565b612a11919061390a565b602055838255612a20846111a2565b612a2b90600161390a565b60018301555b505092915050565b60605f612a4583613315565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612aab57505f90506003612b55565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612afc573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116612b4f575f60019250925050612b55565b91505f90505b94509492505050565b5f816004811115612b7157612b71613abe565b03612b795750565b6001816004811115612b8d57612b8d613abe565b03612bf4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c0e565b6002816004811115612c0857612c08613abe565b03612c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c0e565b6003816004811115612c8357612c83613abe565b036110eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c0e565b5f5f612d3c837f0dfe168100000000000000000000000000000000000000000000000000000000613355565b915073ffffffffffffffffffffffffffffffffffffffff821615612d8757612d84837fd21220a700000000000000000000000000000000000000000000000000000000613355565b90505b915091565b805f03612d965750565b6040805160028082526060820183525f9260208301908036833701905050905073165c3410fc91ef562c50559f7d2289febed552d973ffffffffffffffffffffffffffffffffffffffff1663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612e13573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e379190613999565b815f81518110612e4957612e4961391d565b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092010152600f54825191169082906001908110612e8757612e8761391d565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526040517fb6f9de9500000000000000000000000000000000000000000000000000000000815273165c3410fc91ef562c50559f7d2289febed552d99063b6f9de95908490612f06905f908690610369904290600401613aeb565b5f604051808303818588803b158015612f1d575f5ffd5b505af193505050508015612f2f575060015b15611b16575050565b60195473ffffffffffffffffffffffffffffffffffffffff82165f9081526017602052604081205490914291612f7d916601000000000000900462ffffff169061390a565b108015610b4d57506019546d010000000000000000000000000090046bffffffffffffffffffffffff16612fb083610a40565b1192915050565b5f5f5f5f8473ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015613004573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130289190613b49565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156130ad573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130d19190613999565b73ffffffffffffffffffffffffffffffffffffffff16036130f4578192506130f8565b8092505b825f0361310757505050919050565b5f8573ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613151573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131759190613aa7565b9050806131846127108661394a565b610aa49190613961565b73ffffffffffffffffffffffffffffffffffffffff81165f908152601860205260409020546010546131c16001826138ac565b821015613280575f60106131d66001846138ac565b815481106131e6576131e661391d565b5f918252602090912001546010805473ffffffffffffffffffffffffffffffffffffffff90921692508291859081106132215761322161391d565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526018909152604090208290555b601080548061329157613291613b95565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff949094168152601890935250506040812055565b5f60ff8216601f811115610b4d576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290515f918291829173ffffffffffffffffffffffffffffffffffffffff8716916133d79190613bc2565b5f60405180830381855afa9150503d805f811461340f576040519150601f19603f3d011682016040523d82523d5f602084013e613414565b606091505b509150915081158061342557508051155b15613434575f92505050610b4d565b805160200361345a57808060200190518101906134519190613999565b92505050610b4d565b505f949350505050565b73ffffffffffffffffffffffffffffffffffffffff811681146110eb575f5ffd5b5f60208284031215613495575f5ffd5b81356134a081613464565b9392505050565b5f5b838110156134c15781810151838201526020016134a9565b50505f910152565b5f81518084526134e08160208601602086016134a7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f6134a060208301846134c9565b5f5f60408385031215613535575f5ffd5b823561354081613464565b946020939093013593505050565b5f5f5f60608486031215613560575f5ffd5b833561356b81613464565b9250602084013561357b81613464565b929592945050506040919091013590565b5f6020828403121561359c575f5ffd5b5035919050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6135dd60e08301896134c9565b82810360408401526135ef81896134c9565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015613651578351835260209384019390920191600101613633565b50909b9a5050505050505050505050565b5f5f5f5f5f5f5f60e0888a031215613678575f5ffd5b873561368381613464565b9650602088013561369381613464565b95506040880135945060608801359350608088013560ff811681146136b6575f5ffd5b9699959850939692959460a0840135945060c09093013592915050565b5f5f604083850312156136e4575f5ffd5b82356136ef81613464565b915060208301356136ff81613464565b809150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040805190810167ffffffffffffffff8111828210171561375a5761375a61370a565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156137a7576137a761370a565b604052919050565b5f602082840312156137bf575f5ffd5b813567ffffffffffffffff8111156137d5575f5ffd5b8201601f810184136137e5575f5ffd5b803567ffffffffffffffff8111156137ff576137ff61370a565b61380e60208260051b01613760565b8082825260208201915060208360061b85010192508683111561382f575f5ffd5b6020840193505b82841015610aa4576040848803121561384d575f5ffd5b613855613737565b843561386081613464565b8152602085810135818301529083526040909401939190910190613836565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610b4d57610b4d61387f565b600181811c908216806138d357607f821691505b602082108103611a5d577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b80820180821115610b4d57610b4d61387f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b8082028115828204841417610b4d57610b4d61387f565b5f82613994577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f602082840312156139a9575f5ffd5b81516134a081613464565b5f8151808452602084019350602083015f5b828110156139fa57815173ffffffffffffffffffffffffffffffffffffffff168652602095860195909101906001016139c6565b5093949350505050565b85815284602082015260a060408201525f613a2260a08301866139b4565b73ffffffffffffffffffffffffffffffffffffffff94909416606083015250608001529392505050565b5f63ffffffff821663ffffffff8103613a6757613a6761387f565b60010192915050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613aa057613aa061387f565b5060010190565b5f60208284031215613ab7575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b848152608060208201525f613b0360808301866139b4565b73ffffffffffffffffffffffffffffffffffffffff949094166040830152506060015292915050565b80516dffffffffffffffffffffffffffff81168114611f06575f5ffd5b5f5f5f60608486031215613b5b575f5ffd5b613b6484613b2c565b9250613b7260208501613b2c565b9150604084015163ffffffff81168114613b8a575f5ffd5b809150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f8251613bd38184602087016134a7565b919091019291505056fea2646970667358221220bfe0f10b534454d6c8d14687e083933e8e5879a95de67496e1c0d8d24023f9f864736f6c634300081c00330175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000fb7103d7011dfa60c18c6961c5a38038d8048fe0000000000000000000000000f66acd0cf50e406196c42a010de46228e4081fed000000000000000000000000c57228e9b719f179ee403efcc240ac7b33ab82a9000000000000000000000000000000000000000000000000000000000000000750686f656e6978000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003504e580000000000000000000000000000000000000000000000000000000000

Deployed ByteCode

0x608060405260043610610310575f3560e01c80637ad71f721161019c578063a457c2d7116100e7578063d505accf11610092578063e0c9ffc61161006d578063e0c9ffc6146109ed578063e0cbd8e814610523578063e7b0f66614610a0c578063f2fde38b14610a21575f5ffd5b8063d505accf14610960578063dcc151471461097f578063dd62ed3e1461099e575f5ffd5b8063b0d3084c116100c2578063b0d3084c14610904578063bf3e87eb14610918578063d00efb2f1461094b575f5ffd5b8063a457c2d7146108b1578063a9059cbb146108d0578063aa7cddf5146108ef575f5ffd5b80638da5cb5b116101475780639f77d70d116101225780639f77d70d14610834578063a146a55b14610848578063a1fb098e14610886575f5ffd5b80638da5cb5b146107e157806395d89b411461080b578063966ff6501461081f575f5ffd5b806384b0196e1161017757806384b0196e146107785780638889a6c11461079f5780638b3ca607146107c6575f5ffd5b80637ad71f72146106ea5780637ecebe001461072e578063821cb3401461074d575f5ffd5b80633a98ef391161025c5780634e2d4c8d11610207578063631de583116101e2578063631de5831461066757806370a0823114610695578063715018a6146106d6575f5ffd5b80634e2d4c8d146105c2578063500e68e9146105f0578063501d815c14610645575f5ffd5b8063480df05811610237578063480df0581461052357806348fe2287146105375780634b0432f214610589575f5ffd5b80633a98ef39146104cd5780633d78d410146104e2578063406cf2291461050d575f5ffd5b806323b872dd116102bc57806337f60d8a1161029757806337f60d8a1461045357806338b7f4461461047b57806339509351146104ae575f5ffd5b806323b872dd146103f5578063313ce567146104145780633644e5151461043f575f5ffd5b806306fdde03116102ec57806306fdde03146103a0578063095ea7b3146103c157806318160ddd146103e0575f5ffd5b80622a20501461031b578063014182051461035e5780630236273914610381575f5ffd5b3661031757005b5f5ffd5b348015610326575f5ffd5b50610349610335366004613485565b60156020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b348015610369575f5ffd5b5061037360215481565b604051908152602001610355565b34801561038c575f5ffd5b5061037361039b366004613485565b610a40565b3480156103ab575f5ffd5b506103b4610aae565b6040516103559190613512565b3480156103cc575f5ffd5b506103496103db366004613524565b610b3a565b3480156103eb575f5ffd5b5061037360045481565b348015610400575f5ffd5b5061034961040f36600461354e565b610b53565b34801561041f575f5ffd5b5060055461042d9060ff1681565b60405160ff9091168152602001610355565b34801561044a575f5ffd5b50610373610c63565b34801561045e575f5ffd5b506104686101c281565b60405161ffff9091168152602001610355565b348015610486575f5ffd5b506103737f899bd46557473cb80307a9dabc297131ced39608330a2d29b2d52b660c03923e81565b3480156104b9575f5ffd5b506103496104c8366004613524565b610c71565b3480156104d8575f5ffd5b5061037360205481565b3480156104ed575f5ffd5b506103736104fc366004613485565b60186020525f908152604090205481565b348015610518575f5ffd5b50610521610cba565b005b34801561052e575f5ffd5b50610468603281565b348015610542575f5ffd5b5060195461056c906d010000000000000000000000000090046bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff9091168152602001610355565b348015610594575f5ffd5b506019546105ae906601000000000000900462ffffff1681565b60405162ffffff9091168152602001610355565b3480156105cd575f5ffd5b506103496105dc366004613485565b60166020525f908152604090205460ff1681565b3480156105fb575f5ffd5b5061062a61060a366004613485565b60136020525f908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610355565b348015610650575f5ffd5b506019546105ae906301000000900462ffffff1681565b348015610672575f5ffd5b50610349610681366004613485565b60146020525f908152604090205460ff1681565b3480156106a0575f5ffd5b506103736106af366004613485565b73ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604090205490565b3480156106e1575f5ffd5b50610521610cc7565b3480156106f5575f5ffd5b5061070961070436600461358c565b610cd8565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610355565b348015610739575f5ffd5b50610373610748366004613485565b610d0d565b348015610758575f5ffd5b50610373610767366004613485565b60126020525f908152604090205481565b348015610783575f5ffd5b5061078c610d37565b60405161035597969594939291906135a3565b3480156107aa575f5ffd5b5061070973165c3410fc91ef562c50559f7d2289febed552d981565b3480156107d1575f5ffd5b506019546105ae9062ffffff1681565b3480156107ec575f5ffd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610709565b348015610816575f5ffd5b506103b4610dda565b34801561082a575f5ffd5b50610373601e5481565b34801561083f575f5ffd5b50610468606481565b348015610853575f5ffd5b50601954610871906901000000000000000000900463ffffffff1681565b60405163ffffffff9091168152602001610355565b348015610891575f5ffd5b506103736108a0366004613485565b60176020525f908152604090205481565b3480156108bc575f5ffd5b506103496108cb366004613524565b610de7565b3480156108db575f5ffd5b506103496108ea366004613524565b610e9a565b3480156108fa575f5ffd5b50610373601d5481565b34801561090f575f5ffd5b50610521610ea7565b348015610923575f5ffd5b506107097f000000000000000000000000a5d3f9051afe4cf1a800626fa29e04457e734e2381565b348015610956575f5ffd5b50610373601c5481565b34801561096b575f5ffd5b5061052161097a366004613662565b610ec1565b34801561098a575f5ffd5b5061070961099936600461358c565b61107d565b3480156109a9575f5ffd5b506103736109b83660046136d3565b73ffffffffffffffffffffffffffffffffffffffff9182165f9081526020818152604080832093909416825291909152205490565b3480156109f8575f5ffd5b50610521610a073660046137af565b61108c565b348015610a17575f5ffd5b50610373601f5481565b348015610a2c575f5ffd5b50610521610a3b366004613485565b6110ee565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526013602052604081208054808303610a7657505f9392505050565b5f610a80826111a2565b6001840154909150808211610a9a57505f95945050505050565b610aa481836138ac565b9695505050505050565b60028054610abb906138bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae7906138bf565b8015610b325780601f10610b0957610100808354040283529160200191610b32565b820191905f5260205f20905b815481529060010190602001808311610b1557829003601f168201915b505050505081565b5f33610b478185856111c9565b60019150505b92915050565b73ffffffffffffffffffffffffffffffffffffffff83165f908152602081815260408083203380855292528220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c4c5783811015610c17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f494100000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f9081526020818152604080832093861683529290522084820390555b610c5786868661132e565b50600195945050505050565b5f610c6c611619565b905090565b335f8181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610b479082908690610cb590879061390a565b6111c9565b610cc533600161174f565b565b610ccf61188f565b610cc55f611910565b60108181548110610ce7575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260086020526040812054610b4d565b5f60608082808083610d6a7f50686f656e6978000000000000000000000000000000000000000000000000076006611986565b610d957f31000000000000000000000000000000000000000000000000000000000000016007611986565b604080515f808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60038054610abb906138bf565b335f8181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610e82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f41425a00000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b610e8f82868684036111c9565b506001949350505050565b5f33610b4781858561132e565b610eaf61188f565b601c5415610ebb575f5ffd5b43601c55565b83421115610f2b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610c0e565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610f598c611a2f565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610fc082611a63565b90505f610fcf82878787611aaa565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611066576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610c0e565b6110718a8a8a6111c9565b50505050505050505050565b600b8181548110610ce7575f80fd5b5f5b81518110156110e1575f8282815181106110aa576110aa61391d565b602002602001015190506110d8815f01518260200151670de0b6b3a76400006110d3919061394a565b611ad0565b5060010161108e565b506110eb33611b1a565b50565b6110f661188f565b73ffffffffffffffffffffffffffffffffffffffff8116611199576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c0e565b6110eb81611910565b601d545f906b033b2e3c9fd0803ce8000000906111bf908461394a565b610b4d9190613961565b73ffffffffffffffffffffffffffffffffffffffff8316611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f465a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff82166112c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f545a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff8381165f818152602081815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61133884611b53565b90505f61134484611b53565b9050601c545f036113be5773ffffffffffffffffffffffffffffffffffffffff85165f9081526015602052604090205460ff16806113a6575073ffffffffffffffffffffffffffffffffffffffff84165f9081526015602052604090205460ff165b6113ae575f5ffd5b6113b9858585611c87565b611612565b305f90815260016020526040812054906113d785611e8a565b6dffffffffffffffffffffffffffff1690508082101580156113fc575060115460ff16155b801561145357507f000000000000000000000000a5d3f9051afe4cf1a800626fa29e04457e734e2373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b156114b557601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561148c81611f0b565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b73ffffffffffffffffffffffffffffffffffffffff87165f9081526015602052604090205460ff1615801561150f575073ffffffffffffffffffffffffffffffffffffffff86165f9081526015602052604090205460ff16155b15611567575f5f611521878787612427565b90925090508115611546576115398961036984611c87565b61154382886138ac565b96505b801561156457611557893083611c87565b61156181886138ac565b96505b50505b611572878787611c87565b60115460ff1661159457601954611594906301000000900462ffffff16612475565b73ffffffffffffffffffffffffffffffffffffffff87165f9081526016602052604090205460ff166115d4576115d2876115cd896125ed565b612917565b505b73ffffffffffffffffffffffffffffffffffffffff86165f9081526016602052604090205460ff1661160f5761160d866115cd886125ed565b505b50505b5050505050565b5f3073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e093899357ff40e6c5685dce845473671c67d6a41614801561167e57507f000000000000000000000000000000000000000000000000000000000000017146145b156116a857507fb789376019689ea62ac89ccfe45b324925ba8830139873d42531fcf02ef68bb990565b610c6c604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f33331bda9af1a29e590967a765862b499b7f5a29bd00ad4f34f276fa04825d60918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b73ffffffffffffffffffffffffffffffffffffffff82165f908152601360205260408120805490918190036117845750505050565b5f61178e85610a40565b90508015611612578315611820575f8573ffffffffffffffffffffffffffffffffffffffff16826040515f6040518083038185875af1925050503d805f81146117f2576040519150601f19603f3d011682016040523d82523d5f602084013e6117f7565b606091505b50509050801561181a5781846002015f828254611814919061390a565b90915550505b50611837565b80601a5f828254611831919061390a565b90915550505b80601f54611845919061390a565b601f5573ffffffffffffffffffffffffffffffffffffffff85165f908152601760205260409020429055611878826111a2565b61188390600161390a565b60018401555050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff163314610cc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c0e565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b606060ff83146119a05761199983612a39565b9050610b4d565b8180546119ac906138bf565b80601f01602080910402602001604051908101604052809291908181526020018280546119d8906138bf565b8015611a235780601f106119fa57610100808354040283529160200191611a23565b820191905f5260205f20905b815481529060010190602001808311611a0657829003601f168201915b50505050509050610b4d565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526008602052604090208054600181018255905b50919050565b5f610b4d611a6f611619565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b5f5f5f611ab987878787612a76565b91509150611ac681612b5e565b5095945050505050565b611adb338383611c87565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526016602052604090205460ff16611b1657611b14826115cd846125ed565b505b5050565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526016602052604090205460ff166110eb57611b16816115cd336125ed565b5f8173ffffffffffffffffffffffffffffffffffffffff163b5f03611b7957505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526014602052604090205460ff16611c5c575f5f611bb084612d10565b909250905073ffffffffffffffffffffffffffffffffffffffff8216301480611bee575073ffffffffffffffffffffffffffffffffffffffff811630145b15611c595773ffffffffffffffffffffffffffffffffffffffff84165f908152601460209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925560169093529220805490911690911790555b50505b5073ffffffffffffffffffffffffffffffffffffffff165f9081526014602052604090205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff8316611d04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f465a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff8216611d81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f545a4100000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526001602052604090205481811015611e10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f41454200000000000000000000000000000000000000000000000000000000006044820152606401610c0e565b73ffffffffffffffffffffffffffffffffffffffff8085165f8181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611e7c9086815260200190565b60405180910390a350505050565b6019545f9062ffffff16611edf7f000000000000000000000000a5d3f9051afe4cf1a800626fa29e04457e734e2373ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604090205490565b611ee99190613961565b905081816dffffffffffffffffffffffffffff161115611f065750805b919050565b805f03611f155750565b5f6103e8611f2460328461394a565b611f2e9190613961565b305f90815260016020526040902054909150811015611fb357305f9081526001602052604081208054839290611f659084906138ac565b9091555050600e5473ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604081208054839290611fa090849061390a565b90915550611fb0905081836138ac565b91505b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611fe657611fe661391d565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073165c3410fc91ef562c50559f7d2289febed552d973ffffffffffffffffffffffffffffffffffffffff1663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561207d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120a19190613999565b816001815181106120b4576120b461391d565b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152476120f93073165c3410fc91ef562c50559f7d2289febed552d9866111c9565b6040517f791ac94700000000000000000000000000000000000000000000000000000000815273165c3410fc91ef562c50559f7d2289febed552d99063791ac947906121519087905f90879030904290600401613a04565b5f604051808303815f87803b158015612168575f5ffd5b505af1925050508015612179575060015b505f47828111156121915761218e83826138ac565b91505b811561241f575f6103e86121a660328561394a565b6121b09190613961565b600e54601a549192505f9173ffffffffffffffffffffffffffffffffffffffff909116906121de908461390a565b6040515f81818185875af1925050503d805f8114612217576040519150601f19603f3d011682016040523d82523d5f602084013e61221c565b606091505b50505f601a55905061222e82856138ac565b93505f6103e861223f60198761394a565b6122499190613961565b600c5460405191925073ffffffffffffffffffffffffffffffffffffffff169082905f81818185875af1925050503d805f81146122a1576040519150601f19603f3d011682016040523d82523d5f602084013e6122a6565b606091505b5050600d5460405191935073ffffffffffffffffffffffffffffffffffffffff169082905f81818185875af1925050503d805f8114612300576040519150601f19603f3d011682016040523d82523d5f602084013e612305565b606091505b50909250612316905081600261394a565b61232090866138ac565b94505f6103e861233160648861394a565b61233b9190613961565b905061234681612d8c565b61235081876138ac565b95505f6101c261236188603261394a565b61236b9190613961565b6040519091506103699082905f81818185875af1925050503d805f81146123ad576040519150601f19603f3d011682016040523d82523d5f602084013e6123b2565b606091505b509094506123c2905081886138ac565b965080601e546123d2919061390a565b601e556021546123e390889061390a565b6021556020546123ff886b033b2e3c9fd0803ce800000061394a565b6124099190613961565b601d54612416919061390a565b601d5550505050505b505050505050565b5f5f82806124325750835b1561246d5761271061244560328761394a565b61244f9190613961565b91506127106124606101c28761394a565b61246a9190613961565b90505b935093915050565b6010545f819003612484575050565b5f805a90505f5b848310801561249957508381105b15611612576019546901000000000000000000900463ffffffff1684116124e357601980547fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff1690555b601954601080545f926901000000000000000000900463ffffffff1690811061250e5761250e61391d565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352601690915260409091205490915060ff1661257d575f612557826115cd846125ed565b90508015801561256b575061256b82612f38565b1561257b5761257b82600161174f565b505b601980546901000000000000000000900463ffffffff169060096125a083613a4c565b91906101000a81548163ffffffff021916908363ffffffff1602179055505081806125ca90613a70565b9250505a6125d890846138ac565b6125e2908561390a565b93505a92505061248b565b600b54601b545f918291610e109061260590426138ac565b11156127a95742601b555f5b818110156127a3575f600b828154811061262d5761262d61391d565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff90811691506003907f000000000000000000000000a5d3f9051afe4cf1a800626fa29e04457e734e23168203612681575060045b5f61268b83612fb7565b612695908361394a565b73ffffffffffffffffffffffffffffffffffffffff84165f908152601260205260409020819055600b805491925061271091839190879081106126da576126da61391d565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c81166004830152909116906370a0823190602401602060405180830381865afa158015612750573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906127749190613aa7565b61277e919061394a565b6127889190613961565b612792908761390a565b955050600190920191506126119050565b506128d9565b5f5b818110156128d75761271061ffff1660125f600b84815481106127d0576127d061391d565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001902054600b8054849081106128155761281561391d565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152909116906370a0823190602401602060405180830381865afa15801561288b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128af9190613aa7565b6128b9919061394a565b6128c39190613961565b6128cd908461390a565b92506001016127ab565b505b816129058573ffffffffffffffffffffffffffffffffffffffff165f9081526001602052604090205490565b61290f919061390a565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526013602052604081208054838114612a3157801561295b57612956855f861161174f565b600192505b835f036129705761296b8561318e565b6129f8565b805f036129f8576010805473ffffffffffffffffffffffffffffffffffffffff87165f818152601860205260408120839055600183018455929092527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381602054612a0791906138ac565b612a11919061390a565b602055838255612a20846111a2565b612a2b90600161390a565b60018301555b505092915050565b60605f612a4583613315565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612aab57505f90506003612b55565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612afc573d5f5f3e3d5ffd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116612b4f575f60019250925050612b55565b91505f90505b94509492505050565b5f816004811115612b7157612b71613abe565b03612b795750565b6001816004811115612b8d57612b8d613abe565b03612bf4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c0e565b6002816004811115612c0857612c08613abe565b03612c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c0e565b6003816004811115612c8357612c83613abe565b036110eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c0e565b5f5f612d3c837f0dfe168100000000000000000000000000000000000000000000000000000000613355565b915073ffffffffffffffffffffffffffffffffffffffff821615612d8757612d84837fd21220a700000000000000000000000000000000000000000000000000000000613355565b90505b915091565b805f03612d965750565b6040805160028082526060820183525f9260208301908036833701905050905073165c3410fc91ef562c50559f7d2289febed552d973ffffffffffffffffffffffffffffffffffffffff1663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612e13573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e379190613999565b815f81518110612e4957612e4961391d565b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092010152600f54825191169082906001908110612e8757612e8761391d565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526040517fb6f9de9500000000000000000000000000000000000000000000000000000000815273165c3410fc91ef562c50559f7d2289febed552d99063b6f9de95908490612f06905f908690610369904290600401613aeb565b5f604051808303818588803b158015612f1d575f5ffd5b505af193505050508015612f2f575060015b15611b16575050565b60195473ffffffffffffffffffffffffffffffffffffffff82165f9081526017602052604081205490914291612f7d916601000000000000900462ffffff169061390a565b108015610b4d57506019546d010000000000000000000000000090046bffffffffffffffffffffffff16612fb083610a40565b1192915050565b5f5f5f5f8473ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015613004573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130289190613b49565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156130ad573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130d19190613999565b73ffffffffffffffffffffffffffffffffffffffff16036130f4578192506130f8565b8092505b825f0361310757505050919050565b5f8573ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613151573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131759190613aa7565b9050806131846127108661394a565b610aa49190613961565b73ffffffffffffffffffffffffffffffffffffffff81165f908152601860205260409020546010546131c16001826138ac565b821015613280575f60106131d66001846138ac565b815481106131e6576131e661391d565b5f918252602090912001546010805473ffffffffffffffffffffffffffffffffffffffff90921692508291859081106132215761322161391d565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526018909152604090208290555b601080548061329157613291613b95565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff949094168152601890935250506040812055565b5f60ff8216601f811115610b4d576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290515f918291829173ffffffffffffffffffffffffffffffffffffffff8716916133d79190613bc2565b5f60405180830381855afa9150503d805f811461340f576040519150601f19603f3d011682016040523d82523d5f602084013e613414565b606091505b509150915081158061342557508051155b15613434575f92505050610b4d565b805160200361345a57808060200190518101906134519190613999565b92505050610b4d565b505f949350505050565b73ffffffffffffffffffffffffffffffffffffffff811681146110eb575f5ffd5b5f60208284031215613495575f5ffd5b81356134a081613464565b9392505050565b5f5b838110156134c15781810151838201526020016134a9565b50505f910152565b5f81518084526134e08160208601602086016134a7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f6134a060208301846134c9565b5f5f60408385031215613535575f5ffd5b823561354081613464565b946020939093013593505050565b5f5f5f60608486031215613560575f5ffd5b833561356b81613464565b9250602084013561357b81613464565b929592945050506040919091013590565b5f6020828403121561359c575f5ffd5b5035919050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201525f6135dd60e08301896134c9565b82810360408401526135ef81896134c9565b6060840188905273ffffffffffffffffffffffffffffffffffffffff8716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015613651578351835260209384019390920191600101613633565b50909b9a5050505050505050505050565b5f5f5f5f5f5f5f60e0888a031215613678575f5ffd5b873561368381613464565b9650602088013561369381613464565b95506040880135945060608801359350608088013560ff811681146136b6575f5ffd5b9699959850939692959460a0840135945060c09093013592915050565b5f5f604083850312156136e4575f5ffd5b82356136ef81613464565b915060208301356136ff81613464565b809150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040805190810167ffffffffffffffff8111828210171561375a5761375a61370a565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156137a7576137a761370a565b604052919050565b5f602082840312156137bf575f5ffd5b813567ffffffffffffffff8111156137d5575f5ffd5b8201601f810184136137e5575f5ffd5b803567ffffffffffffffff8111156137ff576137ff61370a565b61380e60208260051b01613760565b8082825260208201915060208360061b85010192508683111561382f575f5ffd5b6020840193505b82841015610aa4576040848803121561384d575f5ffd5b613855613737565b843561386081613464565b8152602085810135818301529083526040909401939190910190613836565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610b4d57610b4d61387f565b600181811c908216806138d357607f821691505b602082108103611a5d577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b80820180821115610b4d57610b4d61387f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b8082028115828204841417610b4d57610b4d61387f565b5f82613994577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f602082840312156139a9575f5ffd5b81516134a081613464565b5f8151808452602084019350602083015f5b828110156139fa57815173ffffffffffffffffffffffffffffffffffffffff168652602095860195909101906001016139c6565b5093949350505050565b85815284602082015260a060408201525f613a2260a08301866139b4565b73ffffffffffffffffffffffffffffffffffffffff94909416606083015250608001529392505050565b5f63ffffffff821663ffffffff8103613a6757613a6761387f565b60010192915050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613aa057613aa061387f565b5060010190565b5f60208284031215613ab7575f5ffd5b5051919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b848152608060208201525f613b0360808301866139b4565b73ffffffffffffffffffffffffffffffffffffffff949094166040830152506060015292915050565b80516dffffffffffffffffffffffffffff81168114611f06575f5ffd5b5f5f5f60608486031215613b5b575f5ffd5b613b6484613b2c565b9250613b7260208501613b2c565b9150604084015163ffffffff81168114613b8a575f5ffd5b809150509250925092565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f8251613bd38184602087016134a7565b919091019291505056fea2646970667358221220bfe0f10b534454d6c8d14687e083933e8e5879a95de67496e1c0d8d24023f9f864736f6c634300081c0033