false
true
0

Contract Address Details

0x659D05939F3f6CDA29b1f24A15336E7a4eccB341

Token
TRUSTLESS (TRUSTLESS)
Creator
0x9a333a–7c6d61 at 0x2e525e–bca9c9
Balance
186,078.644019274596932277 PLS ( )
Tokens
Fetching tokens...
Transactions
178 Transactions
Transfers
5,638 Transfers
Gas Used
19,344,428
Last Balance Update
26325281
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
BrainDaoToken




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




Optimization runs
200
EVM Version
shanghai




Verified at
2026-04-11T03:20:53.185272Z

contracts/trustless.sol

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

import "./interfaces/IDEXFactory.sol";
import "./interfaces/IDEXRouter.sol";
import "./interfaces/IDualRewardStaking.sol";
import "./interfaces/IWPLS.sol";

interface IShareDistributor {
    function setShare(address shareholder, uint256 amount) external;
    function deposit() external payable;
    function process(uint256 gasLimit) external;
}

contract DividendDistributor is ReentrancyGuard {
    using SafeERC20 for IERC20;

    struct Share {
        uint256 amount;
        uint256 totalExcluded;
        uint256 totalRealised;
    }

    uint256 internal constant ACC_FACTOR = 1e36;

    address public immutable token;
    address public manager;
    IDEXRouter public immutable router;
    address public immutable WPLS;
    IERC20 public rewardToken;

    address public rewardHop1;
    address public rewardHop2;
    address public rewardHop3;

    mapping(address => Share) internal shares;
    address[] internal shareholders;
    mapping(address => uint256) internal shareholderIndexes;
    mapping(address => uint256) internal shareholderClaims;

    uint256 public totalShares;
    uint256 public totalDividends;
    uint256 public totalDistributed;
    uint256 public dividendsPerShare;

    uint256 public minPeriod = 1 hours;
    uint256 public minDistribution = 1e9;
    uint256 public currentIndex;

    event ManagerUpdated(address indexed oldManager, address indexed newManager);
    event DistributionCriteriaUpdated(uint256 minPeriod, uint256 minDistribution);
    event RewardHopsUpdated(address indexed hop1, address indexed hop2, address indexed hop3);

    modifier onlyToken() {
        require(msg.sender == token, "Distributor: only token");
        _;
    }

    modifier onlyManagerOrToken() {
        require(msg.sender == manager || msg.sender == token, "Distributor: not authorized");
        _;
    }

    constructor(address token_, address manager_, address router_, address rewardToken_) {
        require(token_ != address(0), "Distributor: token zero");
        require(manager_ != address(0), "Distributor: manager zero");
        require(router_ != address(0), "Distributor: router zero");
        require(rewardToken_ != address(0), "Distributor: reward zero");

        token = token_;
        manager = manager_;
        router = IDEXRouter(router_);
        WPLS = router.WPLS();
        rewardToken = IERC20(rewardToken_);
    }

    receive() external payable {}

    function setManager(address newManager) external onlyManagerOrToken {
        require(newManager != address(0), "Distributor: manager zero");
        emit ManagerUpdated(manager, newManager);
        manager = newManager;
    }

    function setDistributionCriteria(uint256 minPeriod_, uint256 minDistribution_) external onlyManagerOrToken {
        minPeriod = minPeriod_;
        minDistribution = minDistribution_;
        emit DistributionCriteriaUpdated(minPeriod_, minDistribution_);
    }

    function setRewardHops(address hop1, address hop2, address hop3) external onlyManagerOrToken {
        rewardHop1 = hop1;
        rewardHop2 = hop2;
        rewardHop3 = hop3;
        emit RewardHopsUpdated(hop1, hop2, hop3);
    }

    function setShare(address shareholder, uint256 amount) public virtual onlyToken {
        _setShare(shareholder, amount);
    }

    function deposit() external payable virtual onlyToken nonReentrant {
        uint256 received = _receiveRewardToken(msg.value);
        _record(received);
    }

    function process(uint256 gasLimit) external onlyToken {
        uint256 shareholderCount = shareholders.length;
        if (shareholderCount == 0) return;

        uint256 gasUsed;
        uint256 gasLeft = gasleft();

        while (gasUsed < gasLimit && shareholderCount > 0) {
            if (currentIndex >= shareholderCount) {
                currentIndex = 0;
            }

            address shareholder = shareholders[currentIndex];
            if (_shouldDistribute(shareholder)) {
                _distribute(shareholder);
            }

            uint256 newGasLeft = gasleft();
            if (gasLeft > newGasLeft) {
                gasUsed += gasLeft - newGasLeft;
            }
            gasLeft = newGasLeft;

            unchecked {
                ++currentIndex;
            }
        }
    }

    function getUnpaidEarnings(address shareholder) external view returns (uint256) {
        return _unpaid(shareholder);
    }

    function shareOf(address shareholder) external view returns (uint256) {
        return shares[shareholder].amount;
    }

    function _setShare(address shareholder, uint256 amount) internal {
        if (shares[shareholder].amount > 0) {
            _distribute(shareholder);
        }

        if (amount > 0 && shares[shareholder].amount == 0) {
            _addShareholder(shareholder);
        } else if (amount == 0 && shares[shareholder].amount > 0) {
            _removeShareholder(shareholder);
        }

        totalShares = totalShares - shares[shareholder].amount + amount;
        shares[shareholder].amount = amount;
        shares[shareholder].totalExcluded = _cumulative(amount);
    }

    function _receiveRewardToken(uint256 amountNative) internal returns (uint256 received) {
        if (amountNative == 0) return 0;

        if (address(rewardToken) == WPLS) {
            IWPLS(WPLS).deposit{value: amountNative}();
            return amountNative;
        }

        uint256 beforeBal = rewardToken.balanceOf(address(this));
        address[] memory path = _buildRewardPath();

        router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountNative}(
            0,
            path,
            address(this),
            block.timestamp
        );

        received = rewardToken.balanceOf(address(this)) - beforeBal;
    }

    function _record(uint256 amount) internal virtual {
        if (amount == 0) return;

        totalDividends += amount;
        if (totalShares > 0) {
            dividendsPerShare += (amount * ACC_FACTOR) / totalShares;
        }
    }

    function _shouldDistribute(address shareholder) internal view returns (bool) {
        return shareholderClaims[shareholder] + minPeriod < block.timestamp && _unpaid(shareholder) > minDistribution;
    }

    function _distribute(address shareholder) internal {
        uint256 amount = _unpaid(shareholder);
        if (amount == 0) return;

        totalDistributed += amount;
        shareholderClaims[shareholder] = block.timestamp;
        shares[shareholder].totalRealised += amount;
        shares[shareholder].totalExcluded = _cumulative(shares[shareholder].amount);

        rewardToken.safeTransfer(shareholder, amount);
    }

    function _unpaid(address shareholder) internal view returns (uint256) {
        uint256 shareholderAmount = shares[shareholder].amount;
        if (shareholderAmount == 0) return 0;

        uint256 shareholderTotalDividends = _cumulative(shareholderAmount);
        uint256 shareholderTotalExcluded = shares[shareholder].totalExcluded;

        if (shareholderTotalDividends <= shareholderTotalExcluded) return 0;
        return shareholderTotalDividends - shareholderTotalExcluded;
    }

    function _cumulative(uint256 share) internal view returns (uint256) {
        return (share * dividendsPerShare) / ACC_FACTOR;
    }

    function _addShareholder(address shareholder) internal {
        shareholderIndexes[shareholder] = shareholders.length;
        shareholders.push(shareholder);
    }

    function _removeShareholder(address shareholder) internal {
        uint256 index = shareholderIndexes[shareholder];
        uint256 lastIndex = shareholders.length - 1;

        if (index != lastIndex) {
            address lastHolder = shareholders[lastIndex];
            shareholders[index] = lastHolder;
            shareholderIndexes[lastHolder] = index;
        }

        shareholders.pop();
        delete shareholderIndexes[shareholder];
    }

    function _isValidRewardHop(address hop, address prev) internal view returns (bool) {
        return
            hop != address(0) &&
            hop != prev &&
            hop != WPLS &&
            hop != address(rewardToken);
    }

    function _buildRewardPath() internal view returns (address[] memory path) {
        uint256 len = 2;
        address prev = WPLS;

        if (_isValidRewardHop(rewardHop1, prev)) {
            len++;
            prev = rewardHop1;
        }
        if (_isValidRewardHop(rewardHop2, prev) && rewardHop2 != rewardHop1) {
            len++;
            prev = rewardHop2;
        }
        if (_isValidRewardHop(rewardHop3, prev) && rewardHop3 != rewardHop1 && rewardHop3 != rewardHop2) {
            len++;
        }

        path = new address[](len);
        uint256 i = 0;
        prev = WPLS;
        path[i++] = WPLS;

        if (_isValidRewardHop(rewardHop1, prev)) {
            path[i++] = rewardHop1;
            prev = rewardHop1;
        }
        if (_isValidRewardHop(rewardHop2, prev) && rewardHop2 != rewardHop1) {
            path[i++] = rewardHop2;
            prev = rewardHop2;
        }
        if (_isValidRewardHop(rewardHop3, prev) && rewardHop3 != rewardHop1 && rewardHop3 != rewardHop2) {
            path[i++] = rewardHop3;
        }

        path[i] = address(rewardToken);
    }
}

contract FlexibleRewardDistributor is DividendDistributor {
    using SafeERC20 for IERC20;

    address public deadAddress;
    uint256 public shareEpoch;
    uint256 public pendingDividends;

    mapping(address => uint256) public accountEpoch;

    event DeadAddressUpdated(address indexed oldDead, address indexed newDead);
    event RewardTokenChanged(address indexed oldToken, address indexed newToken, uint256 burnedAmount);
    event SharesWiped(uint256 indexed newEpoch);

    constructor(address token_, address manager_, address router_, address rewardToken_)
        DividendDistributor(token_, manager_, router_, rewardToken_)
    {
        deadAddress = 0x000000000000000000000000000000000000dEaD;
    }

    function setDeadAddress(address newDead) external onlyManagerOrToken {
        require(newDead != address(0), "FlexibleDistributor: zero dead");
        require(newDead != address(this), "FlexibleDistributor: self dead");
        emit DeadAddressUpdated(deadAddress, newDead);
        deadAddress = newDead;
    }

    function changeRewardToken(address newRewardToken) external onlyManagerOrToken nonReentrant {
        require(newRewardToken != address(0), "FlexibleDistributor: reward zero");
        require(newRewardToken != address(rewardToken), "FlexibleDistributor: same reward");

        uint256 burnedAmount = rewardToken.balanceOf(address(this));
        if (burnedAmount > 0) {
            rewardToken.safeTransfer(deadAddress, burnedAmount);
        }

        _wipeAllShares();
        emit RewardTokenChanged(address(rewardToken), newRewardToken, burnedAmount);
        rewardToken = IERC20(newRewardToken);
    }

    function setShare(address shareholder, uint256 amount) public override onlyToken {
        _ensureCurrentEpoch(shareholder);
        _setShare(shareholder, amount);
        _flushPending();
    }

    function _record(uint256 amount) internal override {
        if (amount == 0) return;

        totalDividends += amount;
        pendingDividends += amount;
        _flushPending();
    }

    function _flushPending() internal {
        if (pendingDividends == 0 || totalShares == 0) return;

        dividendsPerShare += (pendingDividends * ACC_FACTOR) / totalShares;
        pendingDividends = 0;
    }

    function _ensureCurrentEpoch(address shareholder) internal {
        if (accountEpoch[shareholder] == shareEpoch) return;

        accountEpoch[shareholder] = shareEpoch;
        shares[shareholder].amount = 0;
        shares[shareholder].totalExcluded = 0;
        shares[shareholder].totalRealised = 0;
        shareholderClaims[shareholder] = 0;
        delete shareholderIndexes[shareholder];
    }

    function _wipeAllShares() internal {
        unchecked {
            ++shareEpoch;
        }

        totalShares = 0;
        totalDividends = 0;
        totalDistributed = 0;
        dividendsPerShare = 0;
        currentIndex = 0;
        pendingDividends = 0;
        delete shareholders;

        emit SharesWiped(shareEpoch);
    }
}

contract BuyBurnDistributor is ReentrancyGuard {
    address public immutable token;
    address public manager;
    IDEXRouter public immutable router;
    address public immutable WPLS;

    address public tokenToBuy;
    address public deadAddress;
    uint256 public buyThreshold;

    address public buyHop1;
    address public buyHop2;
    address public buyHop3;

    event ManagerUpdated(address indexed oldManager, address indexed newManager);
    event TokenToBuyUpdated(address indexed oldToken, address indexed newToken);
    event DeadAddressUpdated(address indexed oldDead, address indexed newDead);
    event BuyThresholdUpdated(uint256 oldThreshold, uint256 newThreshold);
    event BuyHopsUpdated(address indexed hop1, address indexed hop2, address indexed hop3);

    modifier onlyToken() {
        require(msg.sender == token, "BuyBurn: only token");
        _;
    }

    modifier onlyManagerOrToken() {
        require(msg.sender == manager || msg.sender == token, "BuyBurn: not authorized");
        _;
    }

    constructor(address token_, address manager_, address router_, address tokenToBuy_, uint256 buyThreshold_) {
        require(token_ != address(0), "BuyBurn: token zero");
        require(manager_ != address(0), "BuyBurn: manager zero");
        require(router_ != address(0), "BuyBurn: router zero");

        token = token_;
        manager = manager_;
        router = IDEXRouter(router_);
        WPLS = router.WPLS();
        tokenToBuy = tokenToBuy_;
        buyThreshold = buyThreshold_;
        deadAddress = 0x000000000000000000000000000000000000dEaD;
    }

    receive() external payable {}

    function setManager(address newManager) external onlyManagerOrToken {
        require(newManager != address(0), "BuyBurn: manager zero");
        emit ManagerUpdated(manager, newManager);
        manager = newManager;
    }

    function setTokenToBuy(address newToken) external onlyManagerOrToken {
        emit TokenToBuyUpdated(tokenToBuy, newToken);
        tokenToBuy = newToken;
    }

    function setDeadAddress(address newDead) external onlyManagerOrToken {
        require(newDead != address(0), "BuyBurn: dead zero");
        require(newDead != address(this), "BuyBurn: self dead");
        emit DeadAddressUpdated(deadAddress, newDead);
        deadAddress = newDead;
    }

    function setBuyThreshold(uint256 newThreshold) external onlyManagerOrToken {
        emit BuyThresholdUpdated(buyThreshold, newThreshold);
        buyThreshold = newThreshold;
    }

    function setBuyHops(address hop1, address hop2, address hop3) external onlyManagerOrToken {
        buyHop1 = hop1;
        buyHop2 = hop2;
        buyHop3 = hop3;
        emit BuyHopsUpdated(hop1, hop2, hop3);
    }

    function deposit() external payable onlyToken nonReentrant {
        uint256 bal = address(this).balance;
        if (bal == 0 || buyThreshold == 0 || bal < buyThreshold || tokenToBuy == address(0)) return;

        if (tokenToBuy == WPLS) {
            IWPLS(WPLS).deposit{value: bal}();
            IERC20(WPLS).transfer(deadAddress, bal);
            return;
        }

        address[] memory path = _buildBuyPath();

        router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bal}(
            0,
            path,
            deadAddress,
            block.timestamp
        );
    }

    function _isValidBuyHop(address hop, address prev) internal view returns (bool) {
        return
            hop != address(0) &&
            hop != prev &&
            hop != WPLS &&
            hop != tokenToBuy;
    }

    function _buildBuyPath() internal view returns (address[] memory path) {
        uint256 len = 2;
        address prev = WPLS;

        if (_isValidBuyHop(buyHop1, prev)) {
            len++;
            prev = buyHop1;
        }
        if (_isValidBuyHop(buyHop2, prev) && buyHop2 != buyHop1) {
            len++;
            prev = buyHop2;
        }
        if (_isValidBuyHop(buyHop3, prev) && buyHop3 != buyHop1 && buyHop3 != buyHop2) {
            len++;
        }

        path = new address[](len);
        uint256 i = 0;
        prev = WPLS;
        path[i++] = WPLS;

        if (_isValidBuyHop(buyHop1, prev)) {
            path[i++] = buyHop1;
            prev = buyHop1;
        }
        if (_isValidBuyHop(buyHop2, prev) && buyHop2 != buyHop1) {
            path[i++] = buyHop2;
            prev = buyHop2;
        }
        if (_isValidBuyHop(buyHop3, prev) && buyHop3 != buyHop1 && buyHop3 != buyHop2) {
            path[i++] = buyHop3;
        }

        path[i] = tokenToBuy;
    }
}

contract BrainDaoToken is ERC20, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    uint256 public constant FEE_DENOMINATOR = 10_000;
    uint256 public constant MAX_TOTAL_FEE_BPS = 3_000;

    IDEXRouter public immutable router;
    address public immutable WPLS;
    address public pair;

    DividendDistributor public mainRewardDistributor;
    FlexibleRewardDistributor public extraRewardDistributor;
    BuyBurnDistributor public buyBurnDistributor;
    IDualRewardStaking public stakingContract;

    address public deadAddress = 0x000000000000000000000000000000000000dEaD;
    address public liquidityReceiver;

    uint256 public stakingMainFee;
    uint256 public stakingExtraFee;
    uint256 public holderMainFee;
    uint256 public holderExtraFee;
    uint256 public buyBurnFee;
    uint256 public liquidityFee;
    uint256 public directBurnFee;
    uint256 public totalFee;

    uint256 public instantERC20Fee;
    address public instantERC20TokenToBuy;

    uint256 public swapThreshold;
    uint256 public maxTxAmount;
    uint256 public distributorGas = 500_000;

    bool public swapEnabled = true;
    bool public autoMintEnabled = true;
    uint256 public autoMintBps = FEE_DENOMINATOR;

    address public hop1Token;
    address public hop2Token;
    address public hop3Token;
    uint8 private _instantHopCursor;

    bool private inSwap;

    mapping(address => bool) public isAMMPair;
    mapping(address => bool) public isFeeExempt;
    mapping(address => bool) public isTxLimitExempt;
    mapping(address => bool) public isDividendExempt;

    event AMMPairUpdated(address indexed pair, bool value);
    event FeeExemptUpdated(address indexed account, bool value);
    event TxLimitExemptUpdated(address indexed account, bool value);
    event DividendExemptUpdated(address indexed account, bool value);
    event StakingContractUpdated(address indexed oldStaking, address indexed newStaking);
    event MainRewardDistributorUpdated(address indexed oldDistributor, address indexed newDistributor);
    event ExtraRewardDistributorUpdated(address indexed oldDistributor, address indexed newDistributor);
    event BuyBurnDistributorUpdated(address indexed oldDistributor, address indexed newDistributor);
    event DeadAddressUpdated(address indexed oldDead, address indexed newDead);
    event LiquidityReceiverUpdated(address indexed oldReceiver, address indexed newReceiver);
    event DistributorGasUpdated(uint256 newGas);
    event SwapBackSettingsUpdated(bool enabled, uint256 threshold);
    event AutoMintSettingsUpdated(bool enabled, uint256 bps);
    event SwapHopsUpdated(address indexed hop1, address indexed hop2, address indexed hop3);
    event InstantERC20SettingsUpdated(uint256 feeBps, address indexed tokenToBuy);
    event FeesUpdated(
        uint256 stakingMainFee,
        uint256 stakingExtraFee,
        uint256 holderMainFee,
        uint256 holderExtraFee,
        uint256 buyBurnFee,
        uint256 liquidityFee,
        uint256 directBurnFee,
        uint256 totalFee
    );

    modifier swapping() {
        inSwap = true;
        _;
        inSwap = false;
    }

    constructor(
        address initialOwner,
        string memory name_,
        string memory symbol_,
        uint256 initialSupply,
        address router_,
        address stakingContract_,
        uint256[7] memory feeConfig
    ) ERC20(name_, symbol_) Ownable(initialOwner) {
        require(router_ != address(0), "BrainDaoToken: router zero");
        require(initialSupply > 0, "BrainDaoToken: supply zero");

        router = IDEXRouter(router_);
        WPLS = router.WPLS();
        pair = IDEXFactory(router.factory()).createPair(address(this), WPLS);
        isAMMPair[pair] = true;
        emit AMMPairUpdated(pair, true);

        liquidityReceiver = initialOwner;

        _approve(address(this), address(router), type(uint256).max);

        _setFees(
            feeConfig[0],
            feeConfig[1],
            feeConfig[2],
            feeConfig[3],
            feeConfig[4],
            feeConfig[5],
            feeConfig[6]
        );

        swapThreshold = initialSupply / 10_000;
        if (swapThreshold == 0) {
            swapThreshold = 1;
        }

        maxTxAmount = initialSupply / 100;
        if (maxTxAmount == 0) {
            maxTxAmount = initialSupply;
        }

        isFeeExempt[initialOwner] = true;
        isTxLimitExempt[initialOwner] = true;
        isTxLimitExempt[address(this)] = true;
        isTxLimitExempt[pair] = true;
        isFeeExempt[address(this)] = true;
        isFeeExempt[address(router)] = true;

        isDividendExempt[address(this)] = true;
        isDividendExempt[pair] = true;
        isDividendExempt[deadAddress] = true;
        isDividendExempt[address(router)] = true;

        _mint(initialOwner, initialSupply);

        if (stakingContract_ != address(0)) {
            _setStakingContract(stakingContract_);
        }

        _syncDistributors(initialOwner);
    }

    receive() external payable {}

    function _update(address from, address to, uint256 amount) internal override {
        if (from == address(0) || to == address(0)) {
            super._update(from, to, amount);
            if (from != address(0)) _syncDistributors(from);
            if (to != address(0)) _syncDistributors(to);
            return;
        }

        if (inSwap) {
            super._update(from, to, amount);
            return;
        }

        if (!isTxLimitExempt[from] && !isTxLimitExempt[to]) {
            require(amount <= maxTxAmount, "BrainDaoToken: tx limit");
        }

        if (_shouldSwapBack(from, to)) {
            _swapBack();
        }

        uint256 amountReceived = amount;
        bool takeFee = (totalFee > 0 || instantERC20Fee > 0) && !isFeeExempt[from] && !isFeeExempt[to];
        bool isBuyFromMainPair = (from == pair && !isAMMPair[to]);

        if (takeFee) {
            uint256 standardContractFeeAmount = totalFee > directBurnFee
                ? (amount * (totalFee - directBurnFee)) / FEE_DENOMINATOR
                : 0;
            uint256 burnAmount = directBurnFee == 0 ? 0 : (amount * directBurnFee) / FEE_DENOMINATOR;
            uint256 instantFeeAmount = instantERC20Fee == 0 ? 0 : (amount * instantERC20Fee) / FEE_DENOMINATOR;

            uint256 totalDeducted = standardContractFeeAmount + burnAmount + instantFeeAmount;
            amountReceived = amount - totalDeducted;

            uint256 contractIn = standardContractFeeAmount + instantFeeAmount;
            if (contractIn > 0) {
                super._update(from, address(this), contractIn);
            }

            if (burnAmount > 0) {
                super._update(from, address(0), burnAmount);
            }

            if (instantFeeAmount > 0 && instantERC20TokenToBuy != address(0)) {
                _swapTokensForERC20AndSendToDead(instantFeeAmount, isBuyFromMainPair);
            }
        }

        super._update(from, to, amountReceived);

        _syncDistributors(from);
        _syncDistributors(to);
        _processDistributors();
    }

    function _shouldSwapBack(address from, address to) internal view returns (bool) {
        return
            swapEnabled &&
            !inSwap &&
            isAMMPair[to] &&
            from != address(this) &&
            balanceOf(address(this)) >= swapThreshold;
    }

    function _swapBack() internal swapping {
        uint256 baseAmount = swapThreshold;
        if (baseAmount == 0) return;

        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance < baseAmount) return;

        uint256 tokensToSwap = baseAmount;
        if (autoMintEnabled && autoMintBps > 0) {
            uint256 mintAmount = (baseAmount * autoMintBps) / FEE_DENOMINATOR;
            if (mintAmount > 0) {
                _mint(address(this), mintAmount);
                tokensToSwap += mintAmount;
            }
        }

        uint256 feeUnits = totalFee - directBurnFee;
        if (feeUnits == 0) return;

        uint256 tokensForLiquidity = liquidityFee == 0 ? 0 : (tokensToSwap * liquidityFee) / feeUnits / 2;
        uint256 tokensForSwap = tokensToSwap - tokensForLiquidity;

        uint256 balanceBefore = address(this).balance;
        address[] memory path = _buildTokenToWplsPath();

        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokensForSwap,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 amountNative = address(this).balance - balanceBefore;
        if (amountNative == 0) return;

        uint256 ethUnits = feeUnits - (liquidityFee / 2);
        if (ethUnits == 0) return;

        uint256 nativeForLiquidity = liquidityFee == 0 ? 0 : (amountNative * liquidityFee) / ethUnits / 2;
        uint256 nativeForStakingMain = stakingMainFee == 0 ? 0 : (amountNative * stakingMainFee) / ethUnits;
        uint256 nativeForStakingExtra = stakingExtraFee == 0 ? 0 : (amountNative * stakingExtraFee) / ethUnits;
        uint256 nativeForHolderMain = holderMainFee == 0 ? 0 : (amountNative * holderMainFee) / ethUnits;
        uint256 nativeForHolderExtra = holderExtraFee == 0 ? 0 : (amountNative * holderExtraFee) / ethUnits;
        uint256 nativeForBuyBurnBase = buyBurnFee == 0 ? 0 : (amountNative * buyBurnFee) / ethUnits;

        uint256 distributed = nativeForLiquidity
            + nativeForStakingMain
            + nativeForStakingExtra
            + nativeForHolderMain
            + nativeForHolderExtra
            + nativeForBuyBurnBase;

        uint256 nativeForBuyBurn = nativeForBuyBurnBase + (amountNative - distributed);

        if (nativeForHolderMain > 0 && address(mainRewardDistributor) != address(0)) {
            try mainRewardDistributor.deposit{value: nativeForHolderMain}() {} catch {}
        }
        if (nativeForHolderExtra > 0 && address(extraRewardDistributor) != address(0)) {
            try extraRewardDistributor.deposit{value: nativeForHolderExtra}() {} catch {}
        }
        if (nativeForStakingMain > 0 && address(stakingContract) != address(0)) {
            try stakingContract.topUpMain{value: nativeForStakingMain}() {} catch {}
        }
        if (nativeForStakingExtra > 0 && address(stakingContract) != address(0)) {
            try stakingContract.topUpExtra{value: nativeForStakingExtra}() {} catch {}
        }
        if (nativeForBuyBurn > 0 && address(buyBurnDistributor) != address(0)) {
            try buyBurnDistributor.deposit{value: nativeForBuyBurn}() {} catch {}
        }

        if (tokensForLiquidity > 0 && nativeForLiquidity > 0) {
            try router.addLiquidityETH{value: nativeForLiquidity}(
                address(this),
                tokensForLiquidity,
                0,
                0,
                liquidityReceiver,
                block.timestamp
            ) returns (uint256, uint256, uint256) {
                // no-op
            } catch {}
        }
    }

    function _swapTokensForERC20AndSendToDead(uint256 amount, bool avoidMainPair) internal swapping {
    if (amount == 0) return;

    address tokenOut = instantERC20TokenToBuy;
    if (tokenOut == address(0) || tokenOut == address(this)) return;
    if (deadAddress == address(0)) return;

    uint8 start = _instantHopCursor;
    _instantHopCursor = (start + 1) % 3;

    // Remove empty declarations and directly initialize arrays
    if (tokenOut == hop1Token || tokenOut == hop2Token || tokenOut == hop3Token || tokenOut == WPLS) {
        address[] memory directPath = new address[](2);
        directPath[0] = address(this);
        directPath[1] = tokenOut;

        if (_tryInstantSwap(amount, directPath)) {
            return;
        }
    }

    if (!avoidMainPair) {
        if (tokenOut == WPLS) {
            address[] memory pathWpls = new address[](2);
            pathWpls[0] = address(this);
            pathWpls[1] = WPLS;

            if (_tryInstantSwap(amount, pathWpls)) {
                return;
            }
        } else {
            address[] memory pathDirect = new address[](3);
            pathDirect[0] = address(this);
            pathDirect[1] = WPLS;
            pathDirect[2] = tokenOut;

            if (_tryInstantSwap(amount, pathDirect)) {
                return;
            }
        }
    }

    for (uint8 i = 0; i < 3; i++) {
        address hop = _hopAt((start + i) % 3);
        if (!_isValidInstantHop(hop, tokenOut)) continue;

        if (tokenOut == WPLS) {
            address[] memory path3 = new address[](3);
            path3[0] = address(this);
            path3[1] = hop;
            path3[2] = WPLS;

            if (_tryInstantSwap(amount, path3)) {
                return;
            }
        } else {
            address[] memory path4 = new address[](4);
            path4[0] = address(this);
            path4[1] = hop;
            path4[2] = WPLS;
            path4[3] = tokenOut;

            if (_tryInstantSwap(amount, path4)) {
                return;
            }
        }
    }
}

    function _tryInstantSwap(uint256 amount, address[] memory path) internal returns (bool) {
        try router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            amount,
            0,
            path,
            deadAddress,
            block.timestamp
        ) {
            return true;
        } catch {
            return false;
        }
    }

    function _syncDistributors(address account) internal {
        if (account == address(0)) return;

        uint256 holderBalance = isDividendExempt[account] ? 0 : balanceOf(account);

        if (address(mainRewardDistributor) != address(0)) {
            try mainRewardDistributor.setShare(account, holderBalance) {} catch {}
        }
        if (address(extraRewardDistributor) != address(0)) {
            try extraRewardDistributor.setShare(account, holderBalance) {} catch {}
        }
    }

    function _processDistributors() internal {
        if (address(mainRewardDistributor) != address(0)) {
            try mainRewardDistributor.process(distributorGas) {} catch {}
        }
        if (address(extraRewardDistributor) != address(0)) {
            try extraRewardDistributor.process(distributorGas) {} catch {}
        }
    }

    function _setFees(
        uint256 stakingMainFee_,
        uint256 stakingExtraFee_,
        uint256 holderMainFee_,
        uint256 holderExtraFee_,
        uint256 buyBurnFee_,
        uint256 liquidityFee_,
        uint256 directBurnFee_
    ) internal {
        stakingMainFee = stakingMainFee_;
        stakingExtraFee = stakingExtraFee_;
        holderMainFee = holderMainFee_;
        holderExtraFee = holderExtraFee_;
        buyBurnFee = buyBurnFee_;
        liquidityFee = liquidityFee_;
        directBurnFee = directBurnFee_;
        totalFee = stakingMainFee_ + stakingExtraFee_ + holderMainFee_ + holderExtraFee_ + buyBurnFee_ + liquidityFee_ + directBurnFee_;

        require(totalFee + instantERC20Fee <= MAX_TOTAL_FEE_BPS, "BrainDaoToken: fee too high");

        emit FeesUpdated(
            stakingMainFee,
            stakingExtraFee,
            holderMainFee,
            holderExtraFee,
            buyBurnFee,
            liquidityFee,
            directBurnFee,
            totalFee
        );
    }

    function _markSystemAddress(address account) internal {
        if (account == address(0)) return;
        isFeeExempt[account] = true;
        isDividendExempt[account] = true;
        isTxLimitExempt[account] = true;
        _syncDistributors(account);
    }

    function _setStakingContract(address newStakingContract) internal {
        address oldStaking = address(stakingContract);
        stakingContract = IDualRewardStaking(newStakingContract);
        _markSystemAddress(newStakingContract);
        emit StakingContractUpdated(oldStaking, newStakingContract);
    }

    function _setMainRewardDistributor(address newDistributor) internal {
        require(
            DividendDistributor(payable(newDistributor)).token() == address(this),
            "BrainDaoToken: wrong main distributor"
        );
        address oldDistributor = address(mainRewardDistributor);
        mainRewardDistributor = DividendDistributor(payable(newDistributor));
        _markSystemAddress(newDistributor);
        emit MainRewardDistributorUpdated(oldDistributor, newDistributor);
    }

    function _setExtraRewardDistributor(address newDistributor) internal {
        require(
            FlexibleRewardDistributor(payable(newDistributor)).token() == address(this),
            "BrainDaoToken: wrong extra distributor"
        );
        address oldDistributor = address(extraRewardDistributor);
        extraRewardDistributor = FlexibleRewardDistributor(payable(newDistributor));
        _markSystemAddress(newDistributor);
        emit ExtraRewardDistributorUpdated(oldDistributor, newDistributor);
    }

    function _setBuyBurnDistributor(address newDistributor) internal {
        require(
            BuyBurnDistributor(payable(newDistributor)).token() == address(this),
            "BrainDaoToken: wrong buyburn distributor"
        );
        address oldDistributor = address(buyBurnDistributor);
        buyBurnDistributor = BuyBurnDistributor(payable(newDistributor));
        _markSystemAddress(newDistributor);
        emit BuyBurnDistributorUpdated(oldDistributor, newDistributor);
    }

    function _isValidSwapHop(address hop, address prev) internal view returns (bool) {
        return
            hop != address(0) &&
            hop != prev &&
            hop != address(this) &&
            hop != WPLS;
    }

    function _buildTokenToWplsPath() internal view returns (address[] memory path) {
        uint256 len = 2;
        address prev = address(this);

        if (_isValidSwapHop(hop1Token, prev)) {
            len++;
            prev = hop1Token;
        }
        if (_isValidSwapHop(hop2Token, prev) && hop2Token != hop1Token) {
            len++;
            prev = hop2Token;
        }
        if (_isValidSwapHop(hop3Token, prev) && hop3Token != hop1Token && hop3Token != hop2Token) {
            len++;
        }

        path = new address[](len);
        uint256 i = 0;
        prev = address(this);
        path[i++] = address(this);

        if (_isValidSwapHop(hop1Token, prev)) {
            path[i++] = hop1Token;
            prev = hop1Token;
        }
        if (_isValidSwapHop(hop2Token, prev) && hop2Token != hop1Token) {
            path[i++] = hop2Token;
            prev = hop2Token;
        }
        if (_isValidSwapHop(hop3Token, prev) && hop3Token != hop1Token && hop3Token != hop2Token) {
            path[i++] = hop3Token;
        }

        path[i] = WPLS;
    }

    function _isValidInstantHop(address hop, address tokenOut) internal view returns (bool) {
        return
            hop != address(0) &&
            hop != address(this) &&
            hop != WPLS &&
            hop != tokenOut;
    }

    function _hopAt(uint8 idx) internal view returns (address) {
        if (idx == 0) return hop1Token;
        if (idx == 1) return hop2Token;
        return hop3Token;
    }

    function setStakingContract(address newStakingContract) external onlyOwner {
        require(newStakingContract != address(0), "BrainDaoToken: staking zero");
        _setStakingContract(newStakingContract);
    }

    function setMainRewardDistributor(address newDistributor) external onlyOwner {
        require(newDistributor != address(0), "BrainDaoToken: distributor zero");
        _setMainRewardDistributor(newDistributor);
        _syncDistributors(owner());
    }

    function setExtraRewardDistributor(address newDistributor) external onlyOwner {
        require(newDistributor != address(0), "BrainDaoToken: distributor zero");
        _setExtraRewardDistributor(newDistributor);
        _syncDistributors(owner());
    }

    function setBuyBurnDistributor(address newDistributor) external onlyOwner {
        require(newDistributor != address(0), "BrainDaoToken: distributor zero");
        _setBuyBurnDistributor(newDistributor);
    }

    function setFees(
        uint256 stakingMainFee_,
        uint256 stakingExtraFee_,
        uint256 holderMainFee_,
        uint256 holderExtraFee_,
        uint256 buyBurnFee_,
        uint256 liquidityFee_,
        uint256 directBurnFee_
    ) external onlyOwner {
        _setFees(
            stakingMainFee_,
            stakingExtraFee_,
            holderMainFee_,
            holderExtraFee_,
            buyBurnFee_,
            liquidityFee_,
            directBurnFee_
        );
    }

    function setInstantERC20Settings(uint256 feeBps, address tokenToBuy_) external onlyOwner {
        require(totalFee + feeBps <= MAX_TOTAL_FEE_BPS, "BrainDaoToken: instant fee too high");
        require(tokenToBuy_ != address(this), "BrainDaoToken: instant self");
        if (feeBps > 0) {
            require(tokenToBuy_ != address(0), "BrainDaoToken: instant token zero");
        }

        instantERC20Fee = feeBps;
        instantERC20TokenToBuy = tokenToBuy_;
        emit InstantERC20SettingsUpdated(feeBps, tokenToBuy_);
    }

    function setAMMPair(address pair_, bool value) external onlyOwner {
        require(pair_ != address(0), "BrainDaoToken: pair zero");
        isAMMPair[pair_] = value;
        if (value) {
            isDividendExempt[pair_] = true;
            _syncDistributors(pair_);
        }
        emit AMMPairUpdated(pair_, value);
    }

    function setFeeExempt(address account, bool value) external onlyOwner {
        isFeeExempt[account] = value;
        emit FeeExemptUpdated(account, value);
    }

    function setTxLimitExempt(address account, bool value) external onlyOwner {
        isTxLimitExempt[account] = value;
        emit TxLimitExemptUpdated(account, value);
    }

    function setDividendExempt(address account, bool value) external onlyOwner {
        require(account != address(this), "BrainDaoToken: self exempt");
        require(!isAMMPair[account], "BrainDaoToken: pair exempt");
        isDividendExempt[account] = value;
        _syncDistributors(account);
        emit DividendExemptUpdated(account, value);
    }

    function setDistributorGas(uint256 gasLimit) external onlyOwner {
        require(gasLimit <= 1_500_000, "BrainDaoToken: gas too high");
        distributorGas = gasLimit;
        emit DistributorGasUpdated(gasLimit);
    }

    function setDistributionCriteria(
        uint256 mainMinPeriod,
        uint256 mainMinDistribution,
        uint256 extraMinPeriod,
        uint256 extraMinDistribution
    ) external onlyOwner {
        require(address(mainRewardDistributor) != address(0), "BrainDaoToken: main distributor unset");
        require(address(extraRewardDistributor) != address(0), "BrainDaoToken: extra distributor unset");
        mainRewardDistributor.setDistributionCriteria(mainMinPeriod, mainMinDistribution);
        extraRewardDistributor.setDistributionCriteria(extraMinPeriod, extraMinDistribution);
    }

    function setSwapBackSettings(bool enabled, uint256 threshold) external onlyOwner {
        require(threshold > 0, "BrainDaoToken: threshold zero");
        swapEnabled = enabled;
        swapThreshold = threshold;
        emit SwapBackSettingsUpdated(enabled, threshold);
    }

    function setAutoMintSettings(bool enabled, uint256 mintBps) external onlyOwner {
        require(mintBps <= FEE_DENOMINATOR, "BrainDaoToken: mint too high");
        autoMintEnabled = enabled;
        autoMintBps = mintBps;
        emit AutoMintSettingsUpdated(enabled, mintBps);
    }

    function setSwapHops(address hop1, address hop2, address hop3) external onlyOwner {
        hop1Token = hop1;
        hop2Token = hop2;
        hop3Token = hop3;
        emit SwapHopsUpdated(hop1, hop2, hop3);
    }

    function setMainRewardHops(address hop1, address hop2, address hop3) external onlyOwner {
        require(address(mainRewardDistributor) != address(0), "BrainDaoToken: main distributor unset");
        mainRewardDistributor.setRewardHops(hop1, hop2, hop3);
    }

    function setExtraRewardHops(address hop1, address hop2, address hop3) external onlyOwner {
        require(address(extraRewardDistributor) != address(0), "BrainDaoToken: extra distributor unset");
        extraRewardDistributor.setRewardHops(hop1, hop2, hop3);
    }

    function setBuyBurnHops(address hop1, address hop2, address hop3) external onlyOwner {
        require(address(buyBurnDistributor) != address(0), "BrainDaoToken: buyburn distributor unset");
        buyBurnDistributor.setBuyHops(hop1, hop2, hop3);
    }

    function setMaxTxAmount(uint256 amount) external onlyOwner {
        require(amount > 0, "BrainDaoToken: max tx zero");
        maxTxAmount = amount;
    }

    function setDeadAddress(address newDead) external onlyOwner {
        require(newDead != address(0), "BrainDaoToken: dead zero");
        require(newDead != address(this), "BrainDaoToken: dead self");

        address oldDead = deadAddress;
        deadAddress = newDead;
        isDividendExempt[newDead] = true;

        if (address(extraRewardDistributor) != address(0)) {
            extraRewardDistributor.setDeadAddress(newDead);
        }
        if (address(buyBurnDistributor) != address(0)) {
            buyBurnDistributor.setDeadAddress(newDead);
        }

        emit DeadAddressUpdated(oldDead, newDead);
    }

    function setLiquidityReceiver(address newReceiver) external onlyOwner {
        require(newReceiver != address(0), "BrainDaoToken: receiver zero");
        emit LiquidityReceiverUpdated(liquidityReceiver, newReceiver);
        liquidityReceiver = newReceiver;
    }

    function setBuyBurnToken(address newToken) external onlyOwner {
        require(address(buyBurnDistributor) != address(0), "BrainDaoToken: buyburn distributor unset");
        buyBurnDistributor.setTokenToBuy(newToken);
    }

    function setBuyBurnThreshold(uint256 newThreshold) external onlyOwner {
        require(address(buyBurnDistributor) != address(0), "BrainDaoToken: buyburn distributor unset");
        buyBurnDistributor.setBuyThreshold(newThreshold);
    }

    function setExtraRewardToken(address newToken) external onlyOwner {
        require(address(extraRewardDistributor) != address(0), "BrainDaoToken: extra distributor unset");
        extraRewardDistributor.changeRewardToken(newToken);
    }

    function manualProcessDistributors(uint256 gasLimit) external {
        if (address(mainRewardDistributor) != address(0)) {
            mainRewardDistributor.process(gasLimit);
        }
        if (address(extraRewardDistributor) != address(0)) {
            extraRewardDistributor.process(gasLimit);
        }
    }

    function manualSyncShares(address[] calldata accounts) external onlyOwner {
        uint256 length = accounts.length;
        for (uint256 i = 0; i < length; ) {
            _syncDistributors(accounts[i]);
            unchecked {
                ++i;
            }
        }
    }

    function rescueForeignToken(address token, uint256 amount) external onlyOwner {
        require(token != address(this), "BrainDaoToken: no self rescue");
        IERC20(token).safeTransfer(owner(), amount);
    }

    function rescueNative(uint256 amount) external onlyOwner {
        (bool ok, ) = payable(owner()).call{value: amount}("");
        require(ok, "BrainDaoToken: native rescue failed");
    }
}
        

/IWPLS.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IWPLS {
    function deposit() external payable;
    function withdraw(uint256 amount) external;

    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);

    function transfer(address to, uint256 amount) external returns (bool);
    function approve(address spender, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
          

/IDualRewardStaking.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IDualRewardStaking {
    function topUpMain() external payable;
    function topUpExtra() external payable;
    function topUpBoth(uint256 mainBps) external payable;
    function notifyRewardAmount(uint256 reward) external;
    function notifyRewardAmount2(uint256 reward) external;
}
          

/IDEXRouter.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IDEXRouter {
    function factory() external view returns (address);
    function WPLS() external view returns (address);

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );
}
          

/IDEXFactory.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IDEXFactory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
    function getPair(address tokenA, address tokenB) external view returns (address pair);
}
          

/IERC165.sol

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

pragma solidity >=0.4.16;

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

/StorageSlot.sol

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

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

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

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

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

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

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

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

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

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

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

/ReentrancyGuard.sol

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

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
 * by the {ReentrancyGuardTransient} variant in v6.0.
 *
 * @custom:stateless
 */
abstract contract ReentrancyGuard {
    using StorageSlot for bytes32;

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant REENTRANCY_GUARD_STORAGE =
        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;

    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

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

    constructor() {
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

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

    /**
     * @dev A `view` only version of {nonReentrant}. Use to block view functions
     * from being called, preventing reading from inconsistent contract state.
     *
     * CAUTION: This is a "view" modifier and does not change the reentrancy
     * status. Use it only on view functions. For payable or non-payable functions,
     * use the standard {nonReentrant} modifier instead.
     */
    modifier nonReentrantView() {
        _nonReentrantBeforeView();
        _;
    }

    function _nonReentrantBeforeView() private view {
        if (_reentrancyGuardEntered()) {
            revert ReentrancyGuardReentrantCall();
        }
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        _nonReentrantBeforeView();

        // Any calls to nonReentrant after this point will fail
        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;
    }

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

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

    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {
        return REENTRANCY_GUARD_STORAGE;
    }
}
          

/Context.sol

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

pragma solidity ^0.8.20;

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

/utils/SafeERC20.sol

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

pragma solidity ^0.8.20;

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

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

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_safeTransfer(token, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 {
        if (!_safeTransferFrom(token, from, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

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

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

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

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

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

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

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

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

    /**
     * @dev Imitates a Solidity `token.transfer(to, value)` call, 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 to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.transfer.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(to, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }

    /**
     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, 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 from The sender of the tokens
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value,
        bool bubble
    ) private returns (bool success) {
        bytes4 selector = IERC20.transferFrom.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(from, shr(96, not(0))))
            mstore(0x24, and(to, shr(96, not(0))))
            mstore(0x44, value)
            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
            mstore(0x60, 0)
        }
    }

    /**
     * @dev Imitates a Solidity `token.approve(spender, value)` call, 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 spender The spender of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.approve.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(spender, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }
}
          

/extensions/IERC20Metadata.sol

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

pragma solidity >=0.6.2;

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

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

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

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

/IERC20.sol

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

pragma solidity >=0.4.16;

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

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

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

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

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

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

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

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

/ERC20.sol

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

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
 *
 * 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 ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

    /// @inheritdoc IERC20
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /// @inheritdoc IERC20
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

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

    /// @inheritdoc IERC20
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * 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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation sets the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the `transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}
          

/draft-IERC6093.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)

pragma solidity >=0.8.4;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
          

/IERC20.sol

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

pragma solidity >=0.4.16;

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

/IERC165.sol

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

pragma solidity >=0.4.16;

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

/IERC1363.sol

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

pragma solidity >=0.6.2;

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

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

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

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

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

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

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

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

/Ownable.sol

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

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(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);
    }
}
          

Compiler Settings

{"viaIR":true,"remappings":[":@openzeppelin/contracts/=@openzeppelin/contracts@5.6.0/"],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"shanghai","compilationTarget":{"contracts/trustless.sol":"BrainDaoToken"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"initialOwner","internalType":"address"},{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint256","name":"initialSupply","internalType":"uint256"},{"type":"address","name":"router_","internalType":"address"},{"type":"address","name":"stakingContract_","internalType":"address"},{"type":"uint256[7]","name":"feeConfig","internalType":"uint256[7]"}]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"allowance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"balance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"type":"address","name":"approver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"type":"address","name":"sender","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"type":"address","name":"spender","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"AMMPairUpdated","inputs":[{"type":"address","name":"pair","internalType":"address","indexed":true},{"type":"bool","name":"value","internalType":"bool","indexed":false}],"anonymous":false},{"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":"AutoMintSettingsUpdated","inputs":[{"type":"bool","name":"enabled","internalType":"bool","indexed":false},{"type":"uint256","name":"bps","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BuyBurnDistributorUpdated","inputs":[{"type":"address","name":"oldDistributor","internalType":"address","indexed":true},{"type":"address","name":"newDistributor","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DeadAddressUpdated","inputs":[{"type":"address","name":"oldDead","internalType":"address","indexed":true},{"type":"address","name":"newDead","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DistributorGasUpdated","inputs":[{"type":"uint256","name":"newGas","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DividendExemptUpdated","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"bool","name":"value","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"ExtraRewardDistributorUpdated","inputs":[{"type":"address","name":"oldDistributor","internalType":"address","indexed":true},{"type":"address","name":"newDistributor","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"FeeExemptUpdated","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"bool","name":"value","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"FeesUpdated","inputs":[{"type":"uint256","name":"stakingMainFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"stakingExtraFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"holderMainFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"holderExtraFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"buyBurnFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"liquidityFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"directBurnFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"InstantERC20SettingsUpdated","inputs":[{"type":"uint256","name":"feeBps","internalType":"uint256","indexed":false},{"type":"address","name":"tokenToBuy","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"LiquidityReceiverUpdated","inputs":[{"type":"address","name":"oldReceiver","internalType":"address","indexed":true},{"type":"address","name":"newReceiver","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"MainRewardDistributorUpdated","inputs":[{"type":"address","name":"oldDistributor","internalType":"address","indexed":true},{"type":"address","name":"newDistributor","internalType":"address","indexed":true}],"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":"StakingContractUpdated","inputs":[{"type":"address","name":"oldStaking","internalType":"address","indexed":true},{"type":"address","name":"newStaking","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapBackSettingsUpdated","inputs":[{"type":"bool","name":"enabled","internalType":"bool","indexed":false},{"type":"uint256","name":"threshold","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SwapHopsUpdated","inputs":[{"type":"address","name":"hop1","internalType":"address","indexed":true},{"type":"address","name":"hop2","internalType":"address","indexed":true},{"type":"address","name":"hop3","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":"event","name":"TxLimitExemptUpdated","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"bool","name":"value","internalType":"bool","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"FEE_DENOMINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_TOTAL_FEE_BPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"WPLS","inputs":[]},{"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":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"autoMintBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"autoMintEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract BuyBurnDistributor"}],"name":"buyBurnDistributor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"buyBurnFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"deadAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"directBurnFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"distributorGas","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract FlexibleRewardDistributor"}],"name":"extraRewardDistributor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"holderExtraFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"holderMainFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"hop1Token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"hop2Token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"hop3Token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"instantERC20Fee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"instantERC20TokenToBuy","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAMMPair","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isDividendExempt","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isFeeExempt","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isTxLimitExempt","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"liquidityReceiver","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract DividendDistributor"}],"name":"mainRewardDistributor","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"manualProcessDistributors","inputs":[{"type":"uint256","name":"gasLimit","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"manualSyncShares","inputs":[{"type":"address[]","name":"accounts","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxTxAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pair","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueForeignToken","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueNative","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IDEXRouter"}],"name":"router","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAMMPair","inputs":[{"type":"address","name":"pair_","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAutoMintSettings","inputs":[{"type":"bool","name":"enabled","internalType":"bool"},{"type":"uint256","name":"mintBps","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBuyBurnDistributor","inputs":[{"type":"address","name":"newDistributor","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBuyBurnHops","inputs":[{"type":"address","name":"hop1","internalType":"address"},{"type":"address","name":"hop2","internalType":"address"},{"type":"address","name":"hop3","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBuyBurnThreshold","inputs":[{"type":"uint256","name":"newThreshold","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBuyBurnToken","inputs":[{"type":"address","name":"newToken","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDeadAddress","inputs":[{"type":"address","name":"newDead","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDistributionCriteria","inputs":[{"type":"uint256","name":"mainMinPeriod","internalType":"uint256"},{"type":"uint256","name":"mainMinDistribution","internalType":"uint256"},{"type":"uint256","name":"extraMinPeriod","internalType":"uint256"},{"type":"uint256","name":"extraMinDistribution","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDistributorGas","inputs":[{"type":"uint256","name":"gasLimit","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDividendExempt","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExtraRewardDistributor","inputs":[{"type":"address","name":"newDistributor","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExtraRewardHops","inputs":[{"type":"address","name":"hop1","internalType":"address"},{"type":"address","name":"hop2","internalType":"address"},{"type":"address","name":"hop3","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setExtraRewardToken","inputs":[{"type":"address","name":"newToken","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeExempt","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFees","inputs":[{"type":"uint256","name":"stakingMainFee_","internalType":"uint256"},{"type":"uint256","name":"stakingExtraFee_","internalType":"uint256"},{"type":"uint256","name":"holderMainFee_","internalType":"uint256"},{"type":"uint256","name":"holderExtraFee_","internalType":"uint256"},{"type":"uint256","name":"buyBurnFee_","internalType":"uint256"},{"type":"uint256","name":"liquidityFee_","internalType":"uint256"},{"type":"uint256","name":"directBurnFee_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setInstantERC20Settings","inputs":[{"type":"uint256","name":"feeBps","internalType":"uint256"},{"type":"address","name":"tokenToBuy_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLiquidityReceiver","inputs":[{"type":"address","name":"newReceiver","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMainRewardDistributor","inputs":[{"type":"address","name":"newDistributor","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMainRewardHops","inputs":[{"type":"address","name":"hop1","internalType":"address"},{"type":"address","name":"hop2","internalType":"address"},{"type":"address","name":"hop3","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxTxAmount","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStakingContract","inputs":[{"type":"address","name":"newStakingContract","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapBackSettings","inputs":[{"type":"bool","name":"enabled","internalType":"bool"},{"type":"uint256","name":"threshold","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapHops","inputs":[{"type":"address","name":"hop1","internalType":"address"},{"type":"address","name":"hop2","internalType":"address"},{"type":"address","name":"hop3","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTxLimitExempt","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"value","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IDualRewardStaking"}],"name":"stakingContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"stakingExtraFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"stakingMainFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"swapEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"swapThreshold","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":"totalFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","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":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x60c08060405234620007635762006066803803809162000020828562000ae1565b83398101906101a0808284031262000763576200003d8262000b05565b60208301516001600160401b0394919391908581116200076357816200006591840162000b1a565b60408301518681116200076357826200008091850162000b1a565b91606084015196620000956080860162000b05565b91620000a460a0870162000b05565b968160df8801121562000763576040519660e08801888110858211176200098a5760405287918101928311620007635760c001905b82821062000a845750505082518181116200098a57600390815494600186811c9616801562000a79575b602087101462000a65578190601f9687811162000a12575b50602090878311600114620009aa575f926200099e575b50508160011b915f1990841b1c19161781555b84519182116200098a576004948554600181811c911680156200097f575b60208210146200096c579081868594931162000917575b50602090868411600114620008ab575f936200089f575b50508260011b925f19911b1c19161783555b6001600160a01b038616156200088857600580546001600160a01b038881166001600160a01b031983168117909355604051939291167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a360017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055600b80546001600160a01b03191661dead1790556207a120601955601a805461ffff1916610101179055612710601b556001600160a01b03169081156200084757508615620008035760208184926080526040519283809263ef8ef56f60e01b82525afa90811562000770575f91620007c1575b5060a05260805160405163c45a015560e01b8152906020908290859082906001600160a01b03165afa90811562000770575f916200077b575b5060a0516040516364e329cb60e11b815230858201526001600160a01b03918216602482015291602091839160449183915f91165af190811562000770575f916200072a575b5060018060a01b03168060018060a01b031960065416176006555f5260205260405f20600160ff1982541617905560018060a01b03600654167f9a05f836a81b64d2d3ee62b752e87947ab26a9fdcd5b2572b1744ae8499b3aac602060405160018152a2600c80546001600160a01b0319166001600160a01b038681169190911790915560805116301562000713578015620006fc57305f52600160205260405f20815f526020525f198060405f2055604051908152309060207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a38151916020810151906040810151606082015160808301519160a08401519360c001519487600d5580600e5581600f5582601055836011558460125585858585858c8686601355620004439162000bad565b906200044f9162000bad565b906200045b9162000bad565b90620004679162000bad565b90620004739162000bad565b906200047f9162000bad565b968760145560155462000493908962000bad565b610bb810620006b857506040805198895260208901919091528701526060860152608085015260a084015260c083015260e0820152620005fb93620005e1917fd14810b990d07064e8cb72d34561a9a6b7107ebcbc727fc30027b25a587fa1be9061010090a161271081048060175515620006ad575b606481048060185515620006a3575b6001600160a01b038481165f908152602080805260408083208054600160ff19918216811790925560218452828520805482168317905530808652838620805483168417905560068054881687528487208054841685179055818752858052848720805484168517905560805188168088528588208054851686179055918752602290955283862080548316841790559354861685528285208054821683179055600b549095168452818420805486168217905591835290912080549092161790558362000bcf565b6001600160a01b03811690816200064e575b505062000c11565b604051613e2e908162002218823960805181818161037f015281816130d60152613cb4015260a0518181816104560152818161374e015281816138d6015281816139cd01528181613bc70152613d990152f35b600a80546001600160a01b031981168417909155906200066e9062001102565b6001600160a01b03167f7042586b23181180eb30b4798702d7a0233b7fc2551e89806770e8e5d9392e6a5f80a35f80620005f3565b8060185562000518565b600160175562000509565b60649060206040519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a2066656520746f6f206869676800000000006044820152fd5b604051634a1406b160e11b81525f81840152602490fd5b60405163e602df0560e01b81525f81840152602490fd5b90506020813d60201162000767575b81620007486020938362000ae1565b8101031262000763576200075c9062000b05565b5f62000314565b5f80fd5b3d915062000739565b6040513d5f823e3d90fd5b90506020813d602011620007b8575b81620007996020938362000ae1565b8101031262000763576020620007b05f9262000b05565b9150620002ce565b3d91506200078a565b90506020813d602011620007fa575b81620007df6020938362000ae1565b810103126200076357620007f39062000b05565b5f62000295565b3d9150620007d0565b60405162461bcd60e51b8152602081850152601a60248201527f427261696e44616f546f6b656e3a20737570706c79207a65726f0000000000006044820152606490fd5b62461bcd60e51b8152602084820152601a60248201527f427261696e44616f546f6b656e3a20726f75746572207a65726f0000000000006044820152606490fd5b604051631e4fbdf760e01b81525f81850152602490fd5b015191505f8062000191565b5f888152602081209450601f198616905b818110620008fe575090856001969594939210620008e4575b50505050811b018355620001a3565b01519060f8845f19921b161c191690555f808080620008d5565b92946020600181928886015181550196019301620008bc565b90919250865f5260205f208680860160051c8201926020871062000962575b908695949392910160051c01905b8181106200095357506200017a565b5f815585945060010162000944565b9250819262000936565b602287634e487b7160e01b5f525260245ffd5b90607f169062000163565b634e487b7160e01b5f52604160045260245ffd5b015190505f8062000132565b5f858152602081209350601f198516905b818110620009f95750908460019594939210620009e1575b505050811b01815562000145565b01515f1983861b60f8161c191690555f8080620009d3565b92936020600181928786015181550195019301620009bb565b909150835f5260205f208780850160051c8201926020861062000a5b575b9085949392910160051c01905b81811062000a4c57506200011b565b5f815584935060010162000a3d565b9250819262000a30565b634e487b7160e01b5f52602260045260245ffd5b95607f169562000103565b8151815260209182019101620000d9565b6001600160401b0381116200098a57604052565b606081019081106001600160401b038211176200098a57604052565b608081019081106001600160401b038211176200098a57604052565b601f909101601f19168101906001600160401b038211908210176200098a57604052565b51906001600160a01b03821682036200076357565b919080601f84011215620007635782516001600160401b0381116200098a576020906040519262000b5583601f19601f850116018562000ae1565b81845282828701011162000763575f5b81811062000b7a5750825f9394955001015290565b858101830151848201840152820162000b65565b811562000b99570490565b634e487b7160e01b5f52601260045260245ffd5b9190820180921162000bbb57565b634e487b7160e01b5f52601160045260245ffd5b906001600160a01b0382161562000bee5762000bec915f62000d9a565b565b60405163ec442f0560e01b81525f6004820152602490fd5b5f9103126200076357565b5f906001600160a01b0390818116801562000c58575f52602260205260ff60405f2054165f1462000d1b575f915b80600754168062000cc6575b5060085416908162000c5e575b50505050565b813b1562000cc257604051630a5b654b60e11b81526001600160a01b03919091166004820152602481019290925282908290604490829084905af162000ca7575b808062000c58565b62000cb3829162000a95565b62000cbf578062000c9f565b80fd5b8380fd5b803b156200076357604051630a5b654b60e11b81526001600160a01b038416600482015260248101859052905f908290604490829084905af11562000c4b5762000d1291945062000a95565b5f925f62000c4b565b5f60205260405f20549162000c3f565b1562000d3357565b60405162461bcd60e51b815260206004820152601760248201527f427261696e44616f546f6b656e3a207478206c696d69740000000000000000006044820152606490fd5b9190820391821162000bbb57565b8181029291811591840414171562000bbb57565b6001600160a01b038181169390841580159081620010f7575b620010b8575050601e5460a81c60ff16620010aa576001600160a01b0382165f90815260216020526040902062000df59062000df1905b5460ff1690565b1590565b806200107c575b62001066575b62000e0e8383620012ca565b62001054575b9062000e7b62000e81948362000e7b94916014549182159182159262001047575b826200101c575b8262000ff1575b60065462000e61906001600160a01b03165b6001600160a01b031690565b14918262000fc5575b62000e8b575b505050848362001204565b62000c11565b62000bec62001e59565b601354935062000eff92848082111562000fbb5762000eb362000eba9162000ec29362000d78565b8362000d86565b612710900490565b935b8062000fa0575062000f065f915b6015548062000f8757505f9485915b62000ef88362000ef2878b62000bad565b62000bad565b9062000d78565b9562000bad565b8062000f73575b508062000f60575b508115158062000f40575b62000f2d575b8062000e70565b62000f389162001a6c565b5f8062000f26565b5060165462000f58906001600160a01b031662000e55565b151562000f20565b62000f6c90866200115e565b5f62000f15565b62000f8090308862001204565b5f62000f0d565b62000eba62000f97918362000d86565b94859162000ee1565b62000fb462000eba62000f06928462000d86565b9162000ed2565b50505f9362000ec4565b915062000fea62000df162000dea8a60018060a01b03165f52601f60205260405f2090565b9162000e6a565b91506200101562000df162000dea8a60018060a01b03165f526020805260405f2090565b9162000e43565b91506200104062000df162000dea8860018060a01b03165f526020805260405f2090565b9162000e3c565b6015541515925062000e35565b906200105f6200134f565b9062000e14565b6200107660185482111562000d2b565b62000e02565b506001600160a01b0383165f908152602160205260409020620010a49062000df19062000dea565b62000dfc565b919062000bec935062001204565b9184620010c9929596508462001204565b620010e5575b508116620010da5750565b62000bec9062000c11565b620010f09062000c11565b5f620010cf565b508185161562000db3565b6001600160a01b0381169081156200115a5762000bec915f526020805260405f2060ff1990600182825416179055602260205260405f206001828254161790556021602052600160405f209182541617905562000c11565b5050565b6001600160a01b03169081620011a557905f8051602062006046833981519152602083620011905f9560025462000bad565b6002555b8060025403600255604051908152a3565b815f525f60205260405f2054818110620011e15760208284935f8051602062006046833981519152935f96875286845203604086205562001194565b606493506040519263391434e360e21b8452600484015260248301526044820152fd5b6001600160a01b0390811691826200126b575f805160206200604683398151915291602091620012378660025462000bad565b6002555b169384620012555780600254036002555b604051908152a3565b845f525f825260405f208181540190556200124c565b825f525f60205260405f2054848110620012a65791602091855f805160206200604683398151915294865f525f85520360405f20556200123b565b83856064926040519263391434e360e21b8452600484015260248301526044820152fd5b60ff601a541691826200133d575b826200131b575b508162001306575b5080620012f15790565b50305f525f60205260405f2054601754111590565b6001600160a01b031630141590505f620012e7565b6001600160a01b03165f908152601f602052604081205460ff169250620012df565b601e5460a81c60ff16159250620012d8565b601e805460ff60a81b19908116600160a81b179091556200136f62001401565b601e5416601e55565b91909493929460a083019083526020905f602085015260a060408501528251809152602060c085019301915f5b828110620013c75750505050906080919460018060a01b031660608201520152565b83516001600160a01b031685529381019392810192600101620013a5565b9081606091031262000763578051916040602083015192015190565b601754801562001a6957305f9081526020819052604090208190541062001a6957601a54819060081c60ff168062001a5d575b62001a1b575b506200144c6014546013549062000d78565b80156200115a576012548181620019fa5750506200146c5f809362000d78565b9147906200147962001f1f565b60805190929062001493906001600160a01b031662000e55565b90813b1562000763575f620014c88193604098895195868094819363791ac94760e01b83526004809c42923092860162001378565b03925af1918215620019f457620014e792620019dd575b504762000d78565b8015620019d65762001501601254948560011c9062000d78565b938415620019ce57849080620019ac5750505f935b600d548181620019965750505f5b600e5482816200197f5750505f915b600f548282826200195f57506200159691506200158f5f965b6010548581620019485750505f945b8b8887601154938c85155f14620019135762000ef8955062000ef2915062000ef262000ef29462000ef25f9b8c9862000bad565b9062000bad565b9380151580620018f0575b6200189f575b50801515806200187c575b6200182b575b508015158062001808575b620017b7575b508015158062001794575b62001743575b508015158062001720575b620016c8575b5080151580620016be575b620016015750505050565b6080516200167594606094909162001622906001600160a01b031662000e55565b600c54925163f305d71960e01b81523095810195865260208601949094525f6040860181905260608601526001600160a01b0390921660808501524260a085015291948593919284929091839160c00190565b03925af162001688575b80808062000c58565b620016ae9060603d606011620016b6575b620016a5818362000ae1565b810190620013e5565b50506200167f565b503d62001699565b50821515620015f6565b600954620016df906001600160a01b031662000e55565b803b1562000763575f9084875180948193630d0e30db60e41b83525af115620015eb578062001712620017199262000a95565b8062000c06565b5f620015eb565b506009546001600160a01b03906200173a90821662000e55565b161515620015e5565b600a546200175a906001600160a01b031662000e55565b803b1562000763575f9085885180948193634891eb3f60e11b83525af115620015da5780620017126200178d9262000a95565b5f620015da565b50600a546001600160a01b0390620017ae90821662000e55565b161515620015d4565b600a54620017ce906001600160a01b031662000e55565b803b1562000763575f908689518094819363044230d160e31b83525af115620015c9578062001712620018019262000a95565b5f620015c9565b50600a546001600160a01b03906200182290821662000e55565b161515620015c3565b60085462001842906001600160a01b031662000e55565b803b1562000763575f90878a5180948193630d0e30db60e41b83525af115620015b8578062001712620018759262000a95565b5f620015b8565b506008546001600160a01b03906200189690821662000e55565b161515620015b2565b600754620018b6906001600160a01b031662000e55565b803b1562000763575f90888b5180948193630d0e30db60e41b83525af115620015a7578062001712620018e99262000a95565b5f620015a7565b506007546001600160a01b03906200190a90821662000e55565b161515620015a1565b62000ef262000ef29462000ef26200193f62000ef2956200193962000ef89b8d62000d86565b62000b8e565b9b8c9862000bad565b6200193962001958928462000d86565b946200155b565b620019786200158f916200193962001596958a62000d86565b966200154c565b620019396200198f928662000d86565b9162001533565b62001939620019a6928562000d86565b62001524565b620019c79162001939620019c1928562000d86565b60011c90565b9362001516565b505050505050565b5050505050565b8062001712620019ed9262000a95565b5f620014df565b62000770565b620019c162001a1391620019396200146c948762000d86565b809362000d78565b62001a2d62000eba601b548362000d86565b8062001a3b575b506200143a565b90915062001a4a813062000bcf565b62001a559162000bad565b5f8062001a34565b50601b54151562001434565b50565b601e805460ff60a81b19908116600160a81b17909155916200136f9162001aff565b6001600160401b0381116200098a5760051b60200190565b80511562001ab45760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101562001ab45760400190565b80516002101562001ab45760600190565b805182101562001ab45760209160051b010190565b9081156200115a576016546001600160a01b03919082168015801562001e4f575b62000c585782600b54161562000c5857601e549160ff9460a0948685871c1695600196600181019489861162000bbb5760ff60a01b1988166003968b16879006841b60ff60a01b1617601e55601c5489989085168814908590821562001e40575b821562001e33575b5050801562001e26575b62001de0575b1562001d32575b5f965b62001bb4575b505050505050505050565b8887168581101562001d2b57810189811162000bbb5762001bda868b8693160662002186565b16888a8215158062001d20575b8062001d12575b8062001d07575b1562001cfd57505082518416870362001c695760405162001c569162001c1b8262000ac5565b87825260603660208401373062001c328362001aa6565b5262001c3e8262001ac8565b528484511662001c4e8262001ad9565b52856200210c565b62001ba957888880985b01169662001ba3565b604080519190848301906001600160401b038211848310176200098a57526004808352608091823660208601373062001ca28562001aa6565b5262001cae8462001ac8565b528585511662001cbe8462001ad9565b52825188101562001cea5750908762001cdb92820152856200210c565b62001ba9578888809862001c60565b603290634e487b7160e01b5f525260245ffd5b9150809862001c60565b508883141562001bf5565b508585511683141562001bee565b503083141562001be7565b5062001ba9565b95508181511685145f1462001d9a5762001d8360405162001d538162000aa9565b6002815260403660208301373062001d6b8262001aa6565b528383511662001d7b8262001ac8565b52846200210c565b62001d9057869562001ba0565b5050505050505050565b62001d8360405162001dac8162000ac5565b85815260603660208301373062001dc38262001aa6565b528383511662001dd38262001ac8565b528662001d7b8262001ad9565b965062001e1960405162001df48162000aa9565b6002815260403660208301373062001e0c8262001aa6565b528762001c4e8262001ac8565b62001ba957879662001b99565b5083835116871462001b93565b1688149050845f62001b89565b601d5482168a14925062001b81565b5030811462001b20565b6007545f906001600160a01b039081168062001eca575b50600854168062001e7f575050565b601954813b1562001ec657829160248392604051948593849263ffb2c47960e01b845260048401525af162001eb2575050565b62001ebe829162000a95565b62000cbf5750565b8280fd5b601954813b1562000763575f9160248392604051948593849263ffb2c47960e01b845260048401525af11562001e705762001f0791925062000a95565b5f905f62001e70565b5f19811462000bbb5760010190565b601c546001600160a01b039081169190309060029062001f408386620021c6565b620020ff575b80601d54169062001f588483620021c6565b80620020f4575b620020dd575b62001f7681601e54169485620021c6565b80620020d2575b80620020c7575b620020b0575b829362001f9b620020319462001a8e565b9462001fab604051968762000ae1565b80865262001fbc601f199162001a8e565b01366020870137849630936001943062001fd68962001aa6565b5262001fe33084620021c6565b62002097575b62001ff58183620021c6565b806200208c575b6200206b575b6200200e9084620021c6565b91826200205f575b508162002053575b5062002034575b5060a051169262001aea565b52565b6200204b620020438462001f10565b938662001aea565b525f62002025565b90508114155f6200201e565b83141591505f62002016565b5080620020846200207c8762001f10565b968962001aea565b528062002002565b508282141562001ffc565b506002945081620020a88862001ac8565b528162001fe9565b620020bf620020319362001f10565b925062001f8a565b508184141562001f84565b508584141562001f7d565b925090620020eb9062001f10565b90809262001f65565b508582141562001f5f565b9150506003839162001f46565b608051600b545f936001600160a01b03918216939092909116803b15620007635762002155935f809460405196879586948593635c11d79560e01b855242926004860162001378565b03925af1908162002170575b506200216a5790565b50600190565b6200217d91925062000a95565b5f905f62002161565b60ff168015620021b657600114620021a757601e546001600160a01b031690565b601d546001600160a01b031690565b50601c546001600160a01b031690565b6001600160a01b03908116801515929091908362002209575b5082620021fd575b82620021f257505090565b60a051161415919050565b308214159250620021e7565b811682141592505f620021df56fe6080604081815260049182361015610021575b505050361561001f575f80fd5b005b5f925f3560e01c9182630445b667146125565750816305d57250146124cd57816306fdde03146123d6578163095ea7b31461232c578382630c8de949146122be575081630dab537114612295578382630f8c57a7146122245750816318160ddd14612205578163191e2760146121dc5781631df4ccfc146121bd578163211d694a14612194578163235c55df1461217557816323b872dd14612081578163244ce7db14611fe4578163264d26dd14611fbb57816326f5871314611f9257816327c8f83514611f695781632d99d32e14611e70578163313ce56714611e54578382633c0dd7d214611e06575081633f4218e014611dc9578163431a9caa14611dac5781634355855a14611d6e578163454aa66914611c985781634693468714611c0a57816346d8ed0c14611beb57838263494f842814611b55575081634f1c7aa314611a275781635322b00814611a085781635d267ad2146119e957816360e71962146119ca57816365f6f3d1146119a157816366933b73146118745781636ddd17131461185057816370a0823114611819578163715018a6146117bc57816373f52a39146116f1578163759c066d146116c857816377975e0b146114f05781638b42507f146114b25781638c0b5e22146114935781638d7a8ba71461141d5781638da5cb5b146113f4578382638e324d9b1461134b575081638ebfc796146112d657816395d89b41146111d157816396b776631461105857816398118cb4146110395781639dd373b914610f76578382639ff9f3bb14610ea257508163a1433c6814610e0e578163a3a649a914610de5578163a5eb2de014610dc6578163a8aa1b3114610d9d578163a9059cbb14610d6c578163b0249cc614610d2e578163b44db42e14610be3578163b48d97f214610bbc578163b572fe3414610a8d578163b57e3682146109d6578163bd824e74146109b7578163c9bfcbad146108c9578163d73792a9146108ac578163d85ebc8d1461088d578163da2e3bad1461074f578163dd62ed3e14610702578163df20fd491461063757838263e0bf82ec1461053c57508163e71dc3f51461051d578163ec28438a146104ae578163ee99205c14610485578163ef8ef56f14610441578163f2fde38b146103b2575063f887ea401461036c5780610012565b346103ae57816003193601126103ae57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5080fd5b90503461043d57602036600319011261043d576103cd61257a565b906103d661282d565b6001600160a01b03918216928315610427575050600554826001600160601b0360a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346103ae57816003193601126103ae57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5050346103ae57816003193601126103ae57600a5490516001600160a01b039091168152602090f35b90503461043d57602036600319011261043d578035916104cc61282d565b82156104da57505060185580f35b906020606492519162461bcd60e51b8352820152601a60248201527f427261696e44616f546f6b656e3a206d6178207478207a65726f0000000000006044820152fd5b5050346103ae57816003193601126103ae576020906011549051908152f35b809184346106335760803660031901126106335761055861282d565b6007546001600160a01b0390811690610572821515612766565b61058181600854161515612621565b813b156106115782518581604481836316a4744b60e11b978883528a358b84015260243560248401525af1801561062957908691610615575b50506008541692833b1561061157604485928385519687948593845284359084015260643560248401525af190811561060857506105f55750f35b6105fe9061267c565b6106055780f35b80fd5b513d84823e3d90fd5b8480fd5b61061e9061267c565b6106115784876105ba565b84513d88823e3d90fd5b5050fd5b839150346103ae57826003193601126103ae57610652612612565b6024359161065e61282d565b82156106bf57506106b97f30e0f7c488b6c70123097f13cf387e140b0e0b8c9d9e3473e502f35b035d377c939460ff19601a541660ff8415151617601a55836017555192839283602090939291936040810194151581520152565b0390a180f35b606490602086519162461bcd60e51b8352820152601d60248201527f427261696e44616f546f6b656e3a207468726573686f6c64207a65726f0000006044820152fd5b5050346103ae57806003193601126103ae5760209161071f61257a565b82610728612590565b6001600160a01b03928316845260018652922091165f908152908352819020549051908152f35b839150346103ae5760e03660031901126103ae5780359060c43560a43560843560643560443560243561078061282d565b87600d5580600e5581600f5582601055836011558460125585858585858c86866013556107ac9161280c565b906107b69161280c565b906107c09161280c565b906107ca9161280c565b906107d49161280c565b906107de9161280c565b96876014556015546107f0908961280c565b610bb81061084a575089519788526020880152868901526060860152608085015260a084015260c083015260e08201527fd14810b990d07064e8cb72d34561a9a6b7107ebcbc727fc30027b25a587fa1be9061010090a180f35b60649060208c519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a2066656520746f6f206869676800000000006044820152fd5b5050346103ae57816003193601126103ae57602090600e549051908152f35b5050346103ae57816003193601126103ae57602090516127108152f35b90503461043d578160031936011261043d576108e361257a565b906108ec61282d565b6001600160a01b039182169130831461097457600554845163a9059cbb60e01b875291168252602480359052928360208660448180885af191600187511483161561094f575b521561093c578380f35b635274afe760e01b835282015260249150fd5b919050600181151661096b578490843b15153d15161691610932565b843d87823e3d90fd5b835162461bcd60e51b8152602081840152601d60248201527f427261696e44616f546f6b656e3a206e6f2073656c66207265736375650000006044820152606490fd5b5050346103ae57816003193601126103ae57602090601b549051908152f35b90503461043d57602036600319011261043d576109f161257a565b906109fa61282d565b6001600160a01b03918216928315610a4a57505081600c549182167f97969e5311cb357b98bc0da695a777cf9e7350cdb7c5ca48a8d18a1e62fe2d058580a36001600160a01b03191617600c5580f35b906020606492519162461bcd60e51b8352820152601c60248201527f427261696e44616f546f6b656e3a207265636569766572207a65726f000000006044820152fd5b9190503461043d578060031936011261043d57610aa861257a565b90610ab1612603565b91610aba61282d565b6001600160a01b03811693308514610b7957848652601f60205260ff8387205416610b36575091602091610b2c7e8548b19959a911110b36c03f6148fa56fbcc2ce2553abf33112aa00bbdfd6a9486885260228552610b2784848a209060ff801983541691151516179055565b6128ad565b519015158152a280f35b606490602084519162461bcd60e51b8352820152601a60248201527f427261696e44616f546f6b656e3a2070616972206578656d70740000000000006044820152fd5b606490602084519162461bcd60e51b8352820152601a60248201527f427261696e44616f546f6b656e3a2073656c66206578656d70740000000000006044820152fd5b5050346103ae57816003193601126103ae5760209060ff601a5460081c1690519015158152f35b839150346103ae5760203660031901126103ae57610bff61257a565b90610c0861282d565b6001600160a01b039180831691610c208315156127c0565b8551637e062a3560e11b81526020818381875afa908115610d24578691610cf5575b508430911603610ca357509082610ca09392610c7260085491846001600160601b0360a01b841617600855612d56565b167f78ec539de83c58d12046b84dcd1fd10a8a4ec81da07aa67ec5281f8e872ec3878580a3600554166128ad565b80f35b608490602087519162461bcd60e51b8352820152602660248201527f427261696e44616f546f6b656e3a2077726f6e6720657874726120646973747260448201526534b13aba37b960d11b6064820152fd5b610d17915060203d602011610d1d575b610d0f81836126dc565b8101906129af565b87610c42565b503d610d05565b87513d88823e3d90fd5b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b03610d5961257a565b168152601f855220541690519015158152f35b5050346103ae57806003193601126103ae57602090610d96610d8c61257a565b6024359033612859565b5160018152f35b5050346103ae57816003193601126103ae5760065490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae57602090600f549051908152f35b5050346103ae57816003193601126103ae57601e5490516001600160a01b039091168152602090f35b833461060557606036600319011261060557610e2861257a565b610e30612590565b90610e396125a6565b90610e4261282d565b60018060a01b0380911690806001600160601b0360a01b948386601c541617601c5516928385601d541617601d55168093601e541617601e557fca8d99b33786c59b38b1c6ba3faa06f2d4b1c233eeb4ae429ac65c2bab67d2a38480a480f35b8091843461063357602036600319011261063357600754823592906001600160a01b0390811680610f27575b50600854169283610edd578480f35b833b156106115760248592838551968794859363ffb2c47960e01b85528401525af19081156106085750610f13575b8080808480f35b610f1c9061267c565b610605578082610f0c565b803b15610f7257858091602486518094819363ffb2c47960e01b83528a898401525af1801561062957908691610f5e575b50610ece565b610f679061267c565b610611578487610f58565b8580fd5b90503461043d57602036600319011261043d57610f9161257a565b610f9961282d565b6001600160a01b03818116939092908415610ff6575050610fce600a5491846001600160601b0360a01b841617600a55612d56565b167f7042586b23181180eb30b4798702d7a0233b7fc2551e89806770e8e5d9392e6a8380a380f35b906020606492519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a207374616b696e67207a65726f00000000006044820152fd5b5050346103ae57816003193601126103ae576020906012549051908152f35b9190503461043d578060031936011261043d57813590611076612590565b61107e61282d565b610bb861108d8460145461280c565b11611182576001600160a01b03169230841461114057826110ef575b50816020917fb7ebc0e95976e6037f080442a69bac5e6641a32c1db59ade2a4a1bd1b71824fb93601555846001600160601b0360a01b601654161760165551908152a280f35b836110a9576020608492519162461bcd60e51b8352820152602160248201527f427261696e44616f546f6b656e3a20696e7374616e7420746f6b656e207a65726044820152606f60f81b6064820152fd5b6020606492519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a20696e7374616e742073656c6600000000006044820152fd5b815162461bcd60e51b8152602081860152602360248201527f427261696e44616f546f6b656e3a20696e7374616e742066656520746f6f20686044820152620d2ced60eb1b6064820152608490fd5b8383346103ae57816003193601126103ae5780519180938054916001908360011c92600185169485156112cc575b60209586861081146112b957858952908115611295575060011461123d575b611239878761122f828c03836126dc565b51918291826125bc565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061128257505050826112399461122f9282010194868061121e565b8054868501880152928601928101611264565b60ff19168887015250505050151560051b830101925061122f82611239868061121e565b634e487b7160e01b845260228352602484fd5b93607f16936111ff565b5050346103ae57806003193601126103ae577f4d5771454588f51370a8a2e7e151354b6de0dc3159b14821b4ad76bc04c28bc7602061131361257a565b61131b612603565b9061132461282d565b6001600160a01b0316808652828052848620805460ff191660ff8415151617905593610b2c565b809184346106335760603660031901126106335761136761257a565b91611370612590565b6113786125a6565b9361138161282d565b6008546001600160a01b031690611399821515612621565b813b156113f05784516378f1382f60e01b81526001600160a01b03918216948101948552928116602085015290941660408301529284918491908290849082906060015b03925af190811561060857506105f55750f35b8680fd5b5050346103ae57816003193601126103ae5760055490516001600160a01b039091168152602090f35b5050346103ae57806003193601126103ae577fe1fc1cdd7520f99d4b4715966557867ae295b281f90d30b3631bae054b7f196c602061145a61257a565b611462612603565b9061146b61282d565b6001600160a01b031680865260218352848620805460ff191660ff8415151617905593610b2c565b5050346103ae57816003193601126103ae576020906018549051908152f35b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b036114dd61257a565b1681526021855220541690519015158152f35b9190503461043d57602036600319011261043d5761150c61257a565b9061151561282d565b6001600160a01b0391821692831561168657308414611644578490600b5492856001600160601b0360a01b851617600b558583526022602052808320600160ff198254161790558460085416806115ef575b50846009541691826115a0575b50505050167f16acedb2825ad7ee5775a9e3156c8eae76edf498ed315dfc28b4efd41190751b8380a380f35b823b156115eb57866024859283855196879485936377975e0b60e01b85528401525af190811561060857506115d7575b8080611574565b6115e09061267c565b6115eb57835f6115d0565b8380fd5b803b156115eb5783809160248451809481936377975e0b60e01b83528c898401525af1801561163a57908491611626575b50611567565b61162f9061267c565b61043d57825f611620565b82513d86823e3d90fd5b6020606492519162461bcd60e51b8352820152601860248201527f427261696e44616f546f6b656e3a20646561642073656c6600000000000000006044820152fd5b6020606492519162461bcd60e51b8352820152601860248201527f427261696e44616f546f6b656e3a2064656164207a65726f00000000000000006044820152fd5b5050346103ae57816003193601126103ae57601d5490516001600160a01b039091168152602090f35b839150346103ae57826003193601126103ae5761170c612612565b6024359161171861282d565b61271083116117795750601a805461ff001916911515600881901b61ff0016929092179055601b82905592519283526020830152907f367d6b8ed44d010a3688c05a8f8a79eef113956918ee99d8357ac7370790b1f09080604081016106b9565b606490602086519162461bcd60e51b8352820152601c60248201527f427261696e44616f546f6b656e3a206d696e7420746f6f2068696768000000006044820152fd5b83346106055780600319360112610605576117d561282d565b600580546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346103ae5760203660031901126103ae5760209181906001600160a01b0361184161257a565b16815280845220549051908152f35b5050346103ae57816003193601126103ae5760209060ff601a541690519015158152f35b839150346103ae5760203660031901126103ae5761189061257a565b9061189961282d565b6001600160a01b0391808316916118b18315156127c0565b8551637e062a3560e11b81526020818381875afa908115610d24578691611982575b50843091160361193157509082610ca0939261190360075491846001600160601b0360a01b841617600755612d56565b167f0c3302416adaa9d9e1f36c4f76dd064b84e897f5f85a9d89413d2fdf2549edb48580a3600554166128ad565b608490602087519162461bcd60e51b8352820152602560248201527f427261696e44616f546f6b656e3a2077726f6e67206d61696e20646973747269604482015264313aba37b960d91b6064820152fd5b61199b915060203d602011610d1d57610d0f81836126dc565b876118d3565b5050346103ae57816003193601126103ae5760095490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae576020906019549051908152f35b5050346103ae57816003193601126103ae576020906010549051908152f35b5050346103ae57816003193601126103ae57602090600d549051908152f35b90503461043d57602036600319011261043d57611a4261257a565b611a4a61282d565b6001600160a01b0381811693909290611a648515156127c0565b8051637e062a3560e11b81526020818481895afa908115611b4b578791611b2c575b508430911603611ad8575050611ab060095491846001600160601b0360a01b841617600955612d56565b167f867bd4a3e611d1a8ca9865458a41f5bba0f459d48d39f10ec3ac4b7b9cb6a7398380a380f35b906020608492519162461bcd60e51b8352820152602860248201527f427261696e44616f546f6b656e3a2077726f6e67206275796275726e206469736044820152673a3934b13aba37b960c11b6064820152fd5b611b45915060203d602011610d1d57610d0f81836126dc565b5f611a86565b82513d89823e3d90fd5b8091843461063357606036600319011261063357611b7161257a565b91611b7a612590565b611b826125a6565b93611b8b61282d565b6009546001600160a01b031690611ba3821515612709565b813b156113f0578451630575aca160e31b81526001600160a01b03918216948101948552928116602085015290941660408301529284918491908290849082906060016113dd565b5050346103ae57816003193601126103ae576020906013549051908152f35b8390346103ae5760203660031901126103ae57803567ffffffffffffffff918282116115eb57366023830112156115eb5781013591821161043d5760249060053660248560051b8401011161061157611c6161282d565b845b848110611c6e578580f35b80821b8301840135906001600160a01b03821682036113f057611c926001926128ad565b01611c63565b9190503461043d57602036600319011261043d57611cb461282d565b82808080853560018060a01b03600554165af13d15611d69573d67ffffffffffffffff8111611d5657825190611cf4601f8201601f1916602001836126dc565b81528460203d92013e5b15611d07578280f35b906020608492519162461bcd60e51b8352820152602360248201527f427261696e44616f546f6b656e3a206e617469766520726573637565206661696044820152621b195960ea1b6064820152fd5b634e487b7160e01b855260418452602485fd5b611cfe565b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b03611d9961257a565b1681526022855220541690519015158152f35b5050346103ae57816003193601126103ae5760209051610bb88152f35b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b03611df461257a565b16815284805220541690519015158152f35b8091843461063357606036600319011261063357611e2261257a565b91611e2b612590565b611e336125a6565b93611e3c61282d565b6007546001600160a01b031690611399821515612766565b5050346103ae57816003193601126103ae576020905160128152f35b9190503461043d578060031936011261043d57611e8b61257a565b90611e94612603565b91611e9d61282d565b6001600160a01b038116938415611f265750916020917f9a05f836a81b64d2d3ee62b752e87947ab26a9fdcd5b2572b1744ae8499b3aac93858752601f845282611ef581848a209060ff801983541691151516179055565b611f05575b50519015158152a280f35b60228452818720805460ff19166001179055611f20906128ad565b5f611efa565b606490602084519162461bcd60e51b8352820152601860248201527f427261696e44616f546f6b656e3a2070616972207a65726f00000000000000006044820152fd5b5050346103ae57816003193601126103ae57600b5490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae5760075490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae57600c5490516001600160a01b039091168152602090f35b9190503461043d57602036600319011261043d5781359161200361282d565b6216e360831161203f5750816020917f5f0cf7d11c1aaf2b53b91892382eaee789338051f9fcecf528ca006d062bfba89360195551908152a180f35b6020606492519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a2067617320746f6f206869676800000000006044820152fd5b90508234610605576060366003190112610605575061209e61257a565b6120a6612590565b906044359260018060a01b038216805f526001602052855f20335f52602052855f2054915f1983106120e1575b602087610d96888888612859565b85831061214957811561213357331561211d57505f90815260016020908152868220338352815290869020918590039091558290610d966120d3565b6024905f885191634a1406b160e11b8352820152fd5b6024905f88519163e602df0560e01b8352820152fd5b8651637dc7a0d960e11b8152339181019182526020820193909352604081018690528291506060010390fd5b5050346103ae57816003193601126103ae576020906015549051908152f35b5050346103ae57816003193601126103ae5760165490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae576020906014549051908152f35b5050346103ae57816003193601126103ae57601c5490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae576020906002549051908152f35b809184346106335760203660031901126106335761224061257a565b61224861282d565b6009546001600160a01b03908116612261811515612709565b803b15610f72578592836024928651978895869463c307736b60e01b865216908401525af190811561060857506105f55750f35b5050346103ae57816003193601126103ae5760085490516001600160a01b039091168152602090f35b80918434610633576020366003190112610633576122da61282d565b6009546001600160a01b0316916122f2831515612709565b823b156123275783926024849284519586938492632895a33560e11b84528035908401525af190811561060857506105f55750f35b505050fd5b8284346106055781600319360112610605575061234761257a565b6024359033156123c0576001600160a01b03169081156123aa5760209350335f5260018452825f20825f52845280835f205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8251634a1406b160e11b81525f81860152602490fd5b825163e602df0560e01b81525f81860152602490fd5b9190503461043d578260031936011261043d5780519183600354906001908260011c926001811680156124c3575b60209586861082146124b0575084885290811561248e5750600114612435575b611239868661122f828b03836126dc565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061247b57505050826112399461122f92820101945f612424565b805486850188015292860192810161245e565b60ff191687860152505050151560051b830101925061122f826112395f612424565b634e487b7160e01b845260229052602483fd5b93607f1693612404565b91905034612552576020366003190112612552576124e961257a565b6124f161282d565b6008546001600160a01b0390811661250a811515612621565b803b15612552575f9283602492865197889586946304455c6760e11b865216908401525af1908115612549575061253f575080f35b61001f915061267c565b513d5f823e3d90fd5b5f80fd5b34612552575f366003190112612552576020906017548152f35b5f91031261255257565b600435906001600160a01b038216820361255257565b602435906001600160a01b038216820361255257565b604435906001600160a01b038216820361255257565b602080825282518183018190529093925f5b8281106125ef57505060409293505f838284010152601f8019910116010190565b8181018601518482016040015285016125ce565b60243590811515820361255257565b60043590811515820361255257565b1561262857565b60405162461bcd60e51b815260206004820152602660248201527f427261696e44616f546f6b656e3a206578747261206469737472696275746f72604482015265081d5b9cd95d60d21b6064820152608490fd5b67ffffffffffffffff811161269057604052565b634e487b7160e01b5f52604160045260245ffd5b6060810190811067ffffffffffffffff82111761269057604052565b6080810190811067ffffffffffffffff82111761269057604052565b90601f8019910116810190811067ffffffffffffffff82111761269057604052565b6040513d5f823e3d90fd5b1561271057565b60405162461bcd60e51b815260206004820152602860248201527f427261696e44616f546f6b656e3a206275796275726e206469737472696275746044820152671bdc881d5b9cd95d60c21b6064820152608490fd5b1561276d57565b60405162461bcd60e51b815260206004820152602560248201527f427261696e44616f546f6b656e3a206d61696e206469737472696275746f72206044820152641d5b9cd95d60da1b6064820152608490fd5b156127c757565b60405162461bcd60e51b815260206004820152601f60248201527f427261696e44616f546f6b656e3a206469737472696275746f72207a65726f006044820152606490fd5b9190820180921161281957565b634e487b7160e01b5f52601160045260245ffd5b6005546001600160a01b0316330361284157565b60405163118cdaa760e01b8152336004820152602490fd5b91906001600160a01b03808416156128955781161561287d5761287b92612a58565b565b60405163ec442f0560e01b81525f6004820152602490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b5f906001600160a01b039081811680156128f0575f52602260205260ff60405f2054165f146129a0575f915b806007541680612950575b506008541690816128f6575b50505050565b813b156115eb57604051630a5b654b60e11b81526001600160a01b03919091166004820152602481019290925282908290604490829084905af161293c575b80806128f0565b612946829161267c565b6106055780612935565b803b1561255257604051630a5b654b60e11b81526001600160a01b038416600482015260248101859052905f908290604490829084905af1156128e45761299891945061267c565b5f925f6128e4565b5f60205260405f2054916128d9565b9081602091031261255257516001600160a01b03811681036125525790565b156129d557565b60405162461bcd60e51b815260206004820152601760248201527f427261696e44616f546f6b656e3a207478206c696d69740000000000000000006044820152606490fd5b9190820391821161281957565b8181029291811591840414171561281957565b8115612a44570490565b634e487b7160e01b5f52601260045260245ffd5b6001600160a01b038181169390841580159081612d4c575b612d16575050601e5460a81c60ff16612d0a576001600160a01b0382165f908152602160205260409020612aae90612aaa905b5460ff1690565b1590565b80612ce0575b612ccd575b612ac38383612f35565b612cbe575b90610b27612b259483610b27949160145491821591821592612cb2575b82612c8b575b82612c64575b600654612b0e906001600160a01b03165b6001600160a01b031690565b149182612c3c575b612b2d575b5050508483612e65565b61287b613a17565b6013549350612b92928480821115612c3357612b4f612b5591612b5d93612a1a565b83612a27565b612710900490565b935b80612c1d5750612b985f915b60155480612c0857505f9485915b612b8c83612b87878b61280c565b61280c565b90612a1a565b9561280c565b80612bf7575b5080612be7575b5081151580612bca575b612bba575b80612b1b565b612bc391613623565b5f80612bb4565b50601654612be0906001600160a01b0316612b02565b1515612baf565b612bf19086612daf565b5f612ba5565b612c02903088612e65565b5f612b9e565b612b55612c159183612a27565b948591612b79565b612c2d612b55612b989284612a27565b91612b6b565b50505f93612b5f565b9150612c5e612aaa612aa38a60018060a01b03165f52601f60205260405f2090565b91612b16565b9150612c85612aaa612aa38a60018060a01b03165f526020805260405f2090565b91612af1565b9150612cac612aaa612aa38860018060a01b03165f526020805260405f2090565b91612aeb565b60155415159250612ae5565b90612cc7612fb3565b90612ac8565b612cdb6018548211156129ce565b612ab9565b506001600160a01b0383165f908152602160205260409020612d0590612aaa90612aa3565b612ab4565b919061287b9350612e65565b9184612d259295965084612e65565b612d3d575b508116612d345750565b61287b906128ad565b612d46906128ad565b5f612d2a565b5081851615612a70565b6001600160a01b038116908115612dab5761287b915f526020805260405f2060ff1990600182825416179055602260205260405f206001828254161790556021602052600160405f20918254161790556128ad565b5050565b9091906001600160a01b0381169081612df757505f80516020613dd9833981519152602084612de25f959660025461280c565b6002555b8060025403600255604051908152a3565b92815f525f60205260405f205493818510612e3357506020815f80516020613dd9833981519152925f9596858752868452036040862055612de6565b60405163391434e360e21b81526001600160a01b03919091166004820152602481018590526044810191909152606490fd5b6001600160a01b0380821692909183612ec957505f80516020613dd983398151915291602091612e978660025461280c565b6002555b169384612eb45780600254036002555b604051908152a3565b845f525f825260405f20818154019055612eab565b835f525f60205260405f205490858210612f03575091602091855f80516020613dd983398151915294865f525f85520360405f2055612e9b565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101859052606490fd5b60ff601a54169182612fa2575b82612f81575b5081612f6d575b5080612f585790565b50305f525f60205260405f2054601754111590565b6001600160a01b031630141590505f612f4f565b6001600160a01b03165f908152601f602052604081205460ff169250612f48565b601e5460a81c60ff16159250612f42565b601e805460ff60a81b19908116600160a81b17909155612fd1613060565b601e5416601e55565b91909493929460a083019083526020905f602085015260a060408501528251809152602060c085019301915f5b8281106130285750505050906080919460018060a01b031660608201520152565b83516001600160a01b031685529381019392810192600101613007565b90816060910312612552578051916040602083015192015190565b601754801561362057305f9081526020819052604090208190541061362057601a54819060081c60ff1680613615575b6135dd575b506130a560145460135490612a1a565b908115612dab5760125482816135c25750506130c25f8092612a1a565b476130cb613ae6565b6001600160a01b03947f0000000000000000000000000000000000000000000000000000000000000000861692833b1561255257613126905f60409485518094819263791ac94760e01b835260049a429130918d8601612fda565b038183895af19182156135bd57613143926135aa575b5047612a1a565b9586156135a15761315b601254928360011c90612a1a565b918215613597578290806135785750505f9687925b600d5481816135655750505f905b600e5482828261354b57506131e691506131e05f955b84600f5480155f14613534575050612b8c5f995b886010548881155f146135205750505f80985b8d60115480155f146134f85750612b879150612b87612b8794612b875f9b8c9861280c565b9061280c565b94801515806134d8575b61348f575b508015158061346f575b613426575b5080151580613406575b6133bd575b508015158061339d575b613354575b508115159081613333575b506132e4575b50831515806132db575b613249575b5050505050565b600c54905163f305d71960e01b81523093810193845260208401949094525f604084018190526060848101919091526001600160a01b0390911660808401524260a084015292938492839190829060c00103925af16132ac575b80808080613242565b6132cd9060603d6060116132d4575b6132c581836126dc565b810190613045565b50506132a3565b503d6132bb565b5084151561323d565b6009546132f9906001600160a01b0316612b02565b803b15612552575f9085845180948193630d0e30db60e41b83525af115613233578061332761332d9261267c565b80612570565b5f613233565b60095490915061334b906001600160a01b0316612b02565b1615155f61322d565b600a54613369906001600160a01b0316612b02565b803b15612552575f9087865180948193634891eb3f60e11b83525af11561322257806133276133979261267c565b5f613222565b50600a5482906133b5906001600160a01b0316612b02565b16151561321d565b600a546133d2906001600160a01b0316612b02565b803b15612552575f908887518094819363044230d160e31b83525af11561321357806133276134009261267c565b5f613213565b50600a54839061341e906001600160a01b0316612b02565b16151561320e565b60085461343b906001600160a01b0316612b02565b803b15612552575f9089885180948193630d0e30db60e41b83525af11561320457806133276134699261267c565b5f613204565b506008548490613487906001600160a01b0316612b02565b1615156131ff565b6007546134a4906001600160a01b0316612b02565b803b15612552575f908a895180948193630d0e30db60e41b83525af1156131f557806133276134d29261267c565b5f6131f5565b5060075485906134f0906001600160a01b0316612b02565b1615156131f0565b612b8794612b87613518612b8795613513612b87958d612a27565b612a3a565b9b8c9861280c565b61351361352d9287612a27565b80986131bb565b612b8c916135136135459285612a27565b996131a8565b61355f6131e0916135136131e69589612a27565b95613194565b6135136135729285612a27565b9061317e565b61358f91613513613589928b612a27565b60011c90565b968792613170565b5050505050505050565b50505050505050565b806133276135b79261267c565b5f61313c565b6126fe565b6135896135d6916135136130c29486612a27565b8092612a1a565b6135ec612b55601b5483612a27565b806135f8575b50613095565b9091506136058130613abe565b61360e9161280c565b5f806135f2565b50601b541515613090565b50565b601e805460ff60a81b19908116600160a81b1790915591612fd1916136b0565b67ffffffffffffffff81116126905760051b60200190565b8051156136685760200190565b634e487b7160e01b5f52603260045260245ffd5b8051600110156136685760400190565b8051600210156136685760600190565b80518210156136685760209160051b010190565b908115612dab576016546001600160a01b039081169182158015613a0e575b6128f05781600b5416156128f057601e549060ff9460a092868160a01c169060019660018301948986116128195760ff60a01b1983166003968b1687900660a01b60ff60a01b1617601e55601c54899390891683149089908215613a00575b82156139f4575b505080156139c9575b61397a575b156138d2575b5f96807f00000000000000000000000000000000000000000000000000000000000000001693848314935b613786575b5050505050505050505050565b8a8916878110156138cc5781018b8111612819576137a8888d85931606613d30565b168a8c821515806138c2575b806138b8575b806138ae575b156138a5575050841561381f5760405161380e916137dd826126c0565b8982526060366020840137306137f28361365b565b526137fc8261367c565b52866138078261368c565b5287613ca2565b613779578a8a809a5b011698613774565b6040908151918a83019083821067ffffffffffffffff8311176126905752600480835260809182366020860137306138568561365b565b526138608461367c565b528761386b8461368c565b5282518a1015613892575090846138859282015287613ca2565b613779578a8a809a613817565b603290634e487b7160e01b5f525260245ffd5b9150809a613817565b50858314156137c0565b50878314156137ba565b50308314156137b4565b50613779565b90507f00000000000000000000000000000000000000000000000000000000000000008616808203613940576040516139359161390e826126a4565b600282526040366020840137306139248361365b565b5261392e8261367c565b5284613ca2565b613597578690613749565b60405161393591613950826126c0565b8682526060366020840137306139658361365b565b5261396f8261367c565b528261392e8261368c565b91506139b360405161398b816126a4565b600281526040366020830137306139a18261365b565b52826139ac8261367c565b5285613ca2565b6139be578791613743565b505050505050505050565b50877f000000000000000000000000000000000000000000000000000000000000000016821461373e565b1683149050885f613735565b601d5482168514925061372e565b503083146136cf565b6007545f906001600160a01b0390811680613a7d575b506008541680613a3b575050565b601954813b1561043d57829160248392604051948593849263ffb2c47960e01b845260048401525af1613a6c575050565b613a76829161267c565b6106055750565b601954813b15612552575f9160248392604051948593849263ffb2c47960e01b845260048401525af115613a2d57613ab691925061267c565b5f905f613a2d565b906001600160a01b0382161561287d5761287b915f612a58565b5f1981146128195760010190565b601c546001600160a01b039081169190613bc4306002613b068287613d6e565b9182613c98575b84601d541696613b1d8289613d6e565b80613c8e575b613c7b575b613b3786601e54169283613d6e565b80613c71575b80613c67575b613c57575b613b5183613643565b92613b5f60405194856126dc565b808452613b6e601f1991613643565b0136602085013782973060019530613b858761365b565b52613c41575b613b958183613d6e565b80613c37575b613c1b575b613baa9084613d6e565b9182613c10575b5081613c05575b50613beb575b5061369c565b907f0000000000000000000000000000000000000000000000000000000000000000169052565b613bfe613bf784613ad8565b938361369c565b525f613bbe565b90508114155f613bb8565b83141591505f613bb1565b5080613c30613c2987613ad8565b968661369c565b5280613ba0565b5082821415613b9b565b506002945081613c508561367c565b5281613b8b565b91613c6190613ad8565b91613b48565b5087821415613b43565b5080821415613b3d565b91613c869150613ad8565b908690613b28565b5080881415613b23565b5050600385613b0d565b600b545f9290916001600160a01b03917f0000000000000000000000000000000000000000000000000000000000000000831690813b15612552575f8094613d0460405197889687958694635c11d79560e01b86524293169160048601612fda565b03925af19081613d1d575b50613d175790565b50600190565b613d2891925061267c565b5f905f613d0f565b60ff168015613d5e57600114613d4f57601e546001600160a01b031690565b601d546001600160a01b031690565b50601c546001600160a01b031690565b6001600160a01b039081168015159290919083613dcb575b5082613dc0575b82613d9757505090565b7f0000000000000000000000000000000000000000000000000000000000000000161415919050565b308214159250613d8d565b811682141592505f613d8656feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122057ec11326edf3af660f1e8a7aad68e4fe5dda2611ccbbd7878a7db7bfce9973964736f6c63430008160033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef0000000000000000000000009a333ad0467607bcb5caa62d6ccdd58efb7c6d6100000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000004b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000954525553544c4553530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000954525553544c4553530000000000000000000000000000000000000000000000

Deployed ByteCode

0x6080604081815260049182361015610021575b505050361561001f575f80fd5b005b5f925f3560e01c9182630445b667146125565750816305d57250146124cd57816306fdde03146123d6578163095ea7b31461232c578382630c8de949146122be575081630dab537114612295578382630f8c57a7146122245750816318160ddd14612205578163191e2760146121dc5781631df4ccfc146121bd578163211d694a14612194578163235c55df1461217557816323b872dd14612081578163244ce7db14611fe4578163264d26dd14611fbb57816326f5871314611f9257816327c8f83514611f695781632d99d32e14611e70578163313ce56714611e54578382633c0dd7d214611e06575081633f4218e014611dc9578163431a9caa14611dac5781634355855a14611d6e578163454aa66914611c985781634693468714611c0a57816346d8ed0c14611beb57838263494f842814611b55575081634f1c7aa314611a275781635322b00814611a085781635d267ad2146119e957816360e71962146119ca57816365f6f3d1146119a157816366933b73146118745781636ddd17131461185057816370a0823114611819578163715018a6146117bc57816373f52a39146116f1578163759c066d146116c857816377975e0b146114f05781638b42507f146114b25781638c0b5e22146114935781638d7a8ba71461141d5781638da5cb5b146113f4578382638e324d9b1461134b575081638ebfc796146112d657816395d89b41146111d157816396b776631461105857816398118cb4146110395781639dd373b914610f76578382639ff9f3bb14610ea257508163a1433c6814610e0e578163a3a649a914610de5578163a5eb2de014610dc6578163a8aa1b3114610d9d578163a9059cbb14610d6c578163b0249cc614610d2e578163b44db42e14610be3578163b48d97f214610bbc578163b572fe3414610a8d578163b57e3682146109d6578163bd824e74146109b7578163c9bfcbad146108c9578163d73792a9146108ac578163d85ebc8d1461088d578163da2e3bad1461074f578163dd62ed3e14610702578163df20fd491461063757838263e0bf82ec1461053c57508163e71dc3f51461051d578163ec28438a146104ae578163ee99205c14610485578163ef8ef56f14610441578163f2fde38b146103b2575063f887ea401461036c5780610012565b346103ae57816003193601126103ae57517f000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d96001600160a01b03168152602090f35b5080fd5b90503461043d57602036600319011261043d576103cd61257a565b906103d661282d565b6001600160a01b03918216928315610427575050600554826001600160601b0360a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346103ae57816003193601126103ae57517f000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a276001600160a01b03168152602090f35b5050346103ae57816003193601126103ae57600a5490516001600160a01b039091168152602090f35b90503461043d57602036600319011261043d578035916104cc61282d565b82156104da57505060185580f35b906020606492519162461bcd60e51b8352820152601a60248201527f427261696e44616f546f6b656e3a206d6178207478207a65726f0000000000006044820152fd5b5050346103ae57816003193601126103ae576020906011549051908152f35b809184346106335760803660031901126106335761055861282d565b6007546001600160a01b0390811690610572821515612766565b61058181600854161515612621565b813b156106115782518581604481836316a4744b60e11b978883528a358b84015260243560248401525af1801561062957908691610615575b50506008541692833b1561061157604485928385519687948593845284359084015260643560248401525af190811561060857506105f55750f35b6105fe9061267c565b6106055780f35b80fd5b513d84823e3d90fd5b8480fd5b61061e9061267c565b6106115784876105ba565b84513d88823e3d90fd5b5050fd5b839150346103ae57826003193601126103ae57610652612612565b6024359161065e61282d565b82156106bf57506106b97f30e0f7c488b6c70123097f13cf387e140b0e0b8c9d9e3473e502f35b035d377c939460ff19601a541660ff8415151617601a55836017555192839283602090939291936040810194151581520152565b0390a180f35b606490602086519162461bcd60e51b8352820152601d60248201527f427261696e44616f546f6b656e3a207468726573686f6c64207a65726f0000006044820152fd5b5050346103ae57806003193601126103ae5760209161071f61257a565b82610728612590565b6001600160a01b03928316845260018652922091165f908152908352819020549051908152f35b839150346103ae5760e03660031901126103ae5780359060c43560a43560843560643560443560243561078061282d565b87600d5580600e5581600f5582601055836011558460125585858585858c86866013556107ac9161280c565b906107b69161280c565b906107c09161280c565b906107ca9161280c565b906107d49161280c565b906107de9161280c565b96876014556015546107f0908961280c565b610bb81061084a575089519788526020880152868901526060860152608085015260a084015260c083015260e08201527fd14810b990d07064e8cb72d34561a9a6b7107ebcbc727fc30027b25a587fa1be9061010090a180f35b60649060208c519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a2066656520746f6f206869676800000000006044820152fd5b5050346103ae57816003193601126103ae57602090600e549051908152f35b5050346103ae57816003193601126103ae57602090516127108152f35b90503461043d578160031936011261043d576108e361257a565b906108ec61282d565b6001600160a01b039182169130831461097457600554845163a9059cbb60e01b875291168252602480359052928360208660448180885af191600187511483161561094f575b521561093c578380f35b635274afe760e01b835282015260249150fd5b919050600181151661096b578490843b15153d15161691610932565b843d87823e3d90fd5b835162461bcd60e51b8152602081840152601d60248201527f427261696e44616f546f6b656e3a206e6f2073656c66207265736375650000006044820152606490fd5b5050346103ae57816003193601126103ae57602090601b549051908152f35b90503461043d57602036600319011261043d576109f161257a565b906109fa61282d565b6001600160a01b03918216928315610a4a57505081600c549182167f97969e5311cb357b98bc0da695a777cf9e7350cdb7c5ca48a8d18a1e62fe2d058580a36001600160a01b03191617600c5580f35b906020606492519162461bcd60e51b8352820152601c60248201527f427261696e44616f546f6b656e3a207265636569766572207a65726f000000006044820152fd5b9190503461043d578060031936011261043d57610aa861257a565b90610ab1612603565b91610aba61282d565b6001600160a01b03811693308514610b7957848652601f60205260ff8387205416610b36575091602091610b2c7e8548b19959a911110b36c03f6148fa56fbcc2ce2553abf33112aa00bbdfd6a9486885260228552610b2784848a209060ff801983541691151516179055565b6128ad565b519015158152a280f35b606490602084519162461bcd60e51b8352820152601a60248201527f427261696e44616f546f6b656e3a2070616972206578656d70740000000000006044820152fd5b606490602084519162461bcd60e51b8352820152601a60248201527f427261696e44616f546f6b656e3a2073656c66206578656d70740000000000006044820152fd5b5050346103ae57816003193601126103ae5760209060ff601a5460081c1690519015158152f35b839150346103ae5760203660031901126103ae57610bff61257a565b90610c0861282d565b6001600160a01b039180831691610c208315156127c0565b8551637e062a3560e11b81526020818381875afa908115610d24578691610cf5575b508430911603610ca357509082610ca09392610c7260085491846001600160601b0360a01b841617600855612d56565b167f78ec539de83c58d12046b84dcd1fd10a8a4ec81da07aa67ec5281f8e872ec3878580a3600554166128ad565b80f35b608490602087519162461bcd60e51b8352820152602660248201527f427261696e44616f546f6b656e3a2077726f6e6720657874726120646973747260448201526534b13aba37b960d11b6064820152fd5b610d17915060203d602011610d1d575b610d0f81836126dc565b8101906129af565b87610c42565b503d610d05565b87513d88823e3d90fd5b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b03610d5961257a565b168152601f855220541690519015158152f35b5050346103ae57806003193601126103ae57602090610d96610d8c61257a565b6024359033612859565b5160018152f35b5050346103ae57816003193601126103ae5760065490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae57602090600f549051908152f35b5050346103ae57816003193601126103ae57601e5490516001600160a01b039091168152602090f35b833461060557606036600319011261060557610e2861257a565b610e30612590565b90610e396125a6565b90610e4261282d565b60018060a01b0380911690806001600160601b0360a01b948386601c541617601c5516928385601d541617601d55168093601e541617601e557fca8d99b33786c59b38b1c6ba3faa06f2d4b1c233eeb4ae429ac65c2bab67d2a38480a480f35b8091843461063357602036600319011261063357600754823592906001600160a01b0390811680610f27575b50600854169283610edd578480f35b833b156106115760248592838551968794859363ffb2c47960e01b85528401525af19081156106085750610f13575b8080808480f35b610f1c9061267c565b610605578082610f0c565b803b15610f7257858091602486518094819363ffb2c47960e01b83528a898401525af1801561062957908691610f5e575b50610ece565b610f679061267c565b610611578487610f58565b8580fd5b90503461043d57602036600319011261043d57610f9161257a565b610f9961282d565b6001600160a01b03818116939092908415610ff6575050610fce600a5491846001600160601b0360a01b841617600a55612d56565b167f7042586b23181180eb30b4798702d7a0233b7fc2551e89806770e8e5d9392e6a8380a380f35b906020606492519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a207374616b696e67207a65726f00000000006044820152fd5b5050346103ae57816003193601126103ae576020906012549051908152f35b9190503461043d578060031936011261043d57813590611076612590565b61107e61282d565b610bb861108d8460145461280c565b11611182576001600160a01b03169230841461114057826110ef575b50816020917fb7ebc0e95976e6037f080442a69bac5e6641a32c1db59ade2a4a1bd1b71824fb93601555846001600160601b0360a01b601654161760165551908152a280f35b836110a9576020608492519162461bcd60e51b8352820152602160248201527f427261696e44616f546f6b656e3a20696e7374616e7420746f6b656e207a65726044820152606f60f81b6064820152fd5b6020606492519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a20696e7374616e742073656c6600000000006044820152fd5b815162461bcd60e51b8152602081860152602360248201527f427261696e44616f546f6b656e3a20696e7374616e742066656520746f6f20686044820152620d2ced60eb1b6064820152608490fd5b8383346103ae57816003193601126103ae5780519180938054916001908360011c92600185169485156112cc575b60209586861081146112b957858952908115611295575060011461123d575b611239878761122f828c03836126dc565b51918291826125bc565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061128257505050826112399461122f9282010194868061121e565b8054868501880152928601928101611264565b60ff19168887015250505050151560051b830101925061122f82611239868061121e565b634e487b7160e01b845260228352602484fd5b93607f16936111ff565b5050346103ae57806003193601126103ae577f4d5771454588f51370a8a2e7e151354b6de0dc3159b14821b4ad76bc04c28bc7602061131361257a565b61131b612603565b9061132461282d565b6001600160a01b0316808652828052848620805460ff191660ff8415151617905593610b2c565b809184346106335760603660031901126106335761136761257a565b91611370612590565b6113786125a6565b9361138161282d565b6008546001600160a01b031690611399821515612621565b813b156113f05784516378f1382f60e01b81526001600160a01b03918216948101948552928116602085015290941660408301529284918491908290849082906060015b03925af190811561060857506105f55750f35b8680fd5b5050346103ae57816003193601126103ae5760055490516001600160a01b039091168152602090f35b5050346103ae57806003193601126103ae577fe1fc1cdd7520f99d4b4715966557867ae295b281f90d30b3631bae054b7f196c602061145a61257a565b611462612603565b9061146b61282d565b6001600160a01b031680865260218352848620805460ff191660ff8415151617905593610b2c565b5050346103ae57816003193601126103ae576020906018549051908152f35b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b036114dd61257a565b1681526021855220541690519015158152f35b9190503461043d57602036600319011261043d5761150c61257a565b9061151561282d565b6001600160a01b0391821692831561168657308414611644578490600b5492856001600160601b0360a01b851617600b558583526022602052808320600160ff198254161790558460085416806115ef575b50846009541691826115a0575b50505050167f16acedb2825ad7ee5775a9e3156c8eae76edf498ed315dfc28b4efd41190751b8380a380f35b823b156115eb57866024859283855196879485936377975e0b60e01b85528401525af190811561060857506115d7575b8080611574565b6115e09061267c565b6115eb57835f6115d0565b8380fd5b803b156115eb5783809160248451809481936377975e0b60e01b83528c898401525af1801561163a57908491611626575b50611567565b61162f9061267c565b61043d57825f611620565b82513d86823e3d90fd5b6020606492519162461bcd60e51b8352820152601860248201527f427261696e44616f546f6b656e3a20646561642073656c6600000000000000006044820152fd5b6020606492519162461bcd60e51b8352820152601860248201527f427261696e44616f546f6b656e3a2064656164207a65726f00000000000000006044820152fd5b5050346103ae57816003193601126103ae57601d5490516001600160a01b039091168152602090f35b839150346103ae57826003193601126103ae5761170c612612565b6024359161171861282d565b61271083116117795750601a805461ff001916911515600881901b61ff0016929092179055601b82905592519283526020830152907f367d6b8ed44d010a3688c05a8f8a79eef113956918ee99d8357ac7370790b1f09080604081016106b9565b606490602086519162461bcd60e51b8352820152601c60248201527f427261696e44616f546f6b656e3a206d696e7420746f6f2068696768000000006044820152fd5b83346106055780600319360112610605576117d561282d565b600580546001600160a01b031981169091555f906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346103ae5760203660031901126103ae5760209181906001600160a01b0361184161257a565b16815280845220549051908152f35b5050346103ae57816003193601126103ae5760209060ff601a541690519015158152f35b839150346103ae5760203660031901126103ae5761189061257a565b9061189961282d565b6001600160a01b0391808316916118b18315156127c0565b8551637e062a3560e11b81526020818381875afa908115610d24578691611982575b50843091160361193157509082610ca0939261190360075491846001600160601b0360a01b841617600755612d56565b167f0c3302416adaa9d9e1f36c4f76dd064b84e897f5f85a9d89413d2fdf2549edb48580a3600554166128ad565b608490602087519162461bcd60e51b8352820152602560248201527f427261696e44616f546f6b656e3a2077726f6e67206d61696e20646973747269604482015264313aba37b960d91b6064820152fd5b61199b915060203d602011610d1d57610d0f81836126dc565b876118d3565b5050346103ae57816003193601126103ae5760095490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae576020906019549051908152f35b5050346103ae57816003193601126103ae576020906010549051908152f35b5050346103ae57816003193601126103ae57602090600d549051908152f35b90503461043d57602036600319011261043d57611a4261257a565b611a4a61282d565b6001600160a01b0381811693909290611a648515156127c0565b8051637e062a3560e11b81526020818481895afa908115611b4b578791611b2c575b508430911603611ad8575050611ab060095491846001600160601b0360a01b841617600955612d56565b167f867bd4a3e611d1a8ca9865458a41f5bba0f459d48d39f10ec3ac4b7b9cb6a7398380a380f35b906020608492519162461bcd60e51b8352820152602860248201527f427261696e44616f546f6b656e3a2077726f6e67206275796275726e206469736044820152673a3934b13aba37b960c11b6064820152fd5b611b45915060203d602011610d1d57610d0f81836126dc565b5f611a86565b82513d89823e3d90fd5b8091843461063357606036600319011261063357611b7161257a565b91611b7a612590565b611b826125a6565b93611b8b61282d565b6009546001600160a01b031690611ba3821515612709565b813b156113f0578451630575aca160e31b81526001600160a01b03918216948101948552928116602085015290941660408301529284918491908290849082906060016113dd565b5050346103ae57816003193601126103ae576020906013549051908152f35b8390346103ae5760203660031901126103ae57803567ffffffffffffffff918282116115eb57366023830112156115eb5781013591821161043d5760249060053660248560051b8401011161061157611c6161282d565b845b848110611c6e578580f35b80821b8301840135906001600160a01b03821682036113f057611c926001926128ad565b01611c63565b9190503461043d57602036600319011261043d57611cb461282d565b82808080853560018060a01b03600554165af13d15611d69573d67ffffffffffffffff8111611d5657825190611cf4601f8201601f1916602001836126dc565b81528460203d92013e5b15611d07578280f35b906020608492519162461bcd60e51b8352820152602360248201527f427261696e44616f546f6b656e3a206e617469766520726573637565206661696044820152621b195960ea1b6064820152fd5b634e487b7160e01b855260418452602485fd5b611cfe565b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b03611d9961257a565b1681526022855220541690519015158152f35b5050346103ae57816003193601126103ae5760209051610bb88152f35b5050346103ae5760203660031901126103ae5760209160ff9082906001600160a01b03611df461257a565b16815284805220541690519015158152f35b8091843461063357606036600319011261063357611e2261257a565b91611e2b612590565b611e336125a6565b93611e3c61282d565b6007546001600160a01b031690611399821515612766565b5050346103ae57816003193601126103ae576020905160128152f35b9190503461043d578060031936011261043d57611e8b61257a565b90611e94612603565b91611e9d61282d565b6001600160a01b038116938415611f265750916020917f9a05f836a81b64d2d3ee62b752e87947ab26a9fdcd5b2572b1744ae8499b3aac93858752601f845282611ef581848a209060ff801983541691151516179055565b611f05575b50519015158152a280f35b60228452818720805460ff19166001179055611f20906128ad565b5f611efa565b606490602084519162461bcd60e51b8352820152601860248201527f427261696e44616f546f6b656e3a2070616972207a65726f00000000000000006044820152fd5b5050346103ae57816003193601126103ae57600b5490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae5760075490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae57600c5490516001600160a01b039091168152602090f35b9190503461043d57602036600319011261043d5781359161200361282d565b6216e360831161203f5750816020917f5f0cf7d11c1aaf2b53b91892382eaee789338051f9fcecf528ca006d062bfba89360195551908152a180f35b6020606492519162461bcd60e51b8352820152601b60248201527f427261696e44616f546f6b656e3a2067617320746f6f206869676800000000006044820152fd5b90508234610605576060366003190112610605575061209e61257a565b6120a6612590565b906044359260018060a01b038216805f526001602052855f20335f52602052855f2054915f1983106120e1575b602087610d96888888612859565b85831061214957811561213357331561211d57505f90815260016020908152868220338352815290869020918590039091558290610d966120d3565b6024905f885191634a1406b160e11b8352820152fd5b6024905f88519163e602df0560e01b8352820152fd5b8651637dc7a0d960e11b8152339181019182526020820193909352604081018690528291506060010390fd5b5050346103ae57816003193601126103ae576020906015549051908152f35b5050346103ae57816003193601126103ae5760165490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae576020906014549051908152f35b5050346103ae57816003193601126103ae57601c5490516001600160a01b039091168152602090f35b5050346103ae57816003193601126103ae576020906002549051908152f35b809184346106335760203660031901126106335761224061257a565b61224861282d565b6009546001600160a01b03908116612261811515612709565b803b15610f72578592836024928651978895869463c307736b60e01b865216908401525af190811561060857506105f55750f35b5050346103ae57816003193601126103ae5760085490516001600160a01b039091168152602090f35b80918434610633576020366003190112610633576122da61282d565b6009546001600160a01b0316916122f2831515612709565b823b156123275783926024849284519586938492632895a33560e11b84528035908401525af190811561060857506105f55750f35b505050fd5b8284346106055781600319360112610605575061234761257a565b6024359033156123c0576001600160a01b03169081156123aa5760209350335f5260018452825f20825f52845280835f205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8251634a1406b160e11b81525f81860152602490fd5b825163e602df0560e01b81525f81860152602490fd5b9190503461043d578260031936011261043d5780519183600354906001908260011c926001811680156124c3575b60209586861082146124b0575084885290811561248e5750600114612435575b611239868661122f828b03836126dc565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061247b57505050826112399461122f92820101945f612424565b805486850188015292860192810161245e565b60ff191687860152505050151560051b830101925061122f826112395f612424565b634e487b7160e01b845260229052602483fd5b93607f1693612404565b91905034612552576020366003190112612552576124e961257a565b6124f161282d565b6008546001600160a01b0390811661250a811515612621565b803b15612552575f9283602492865197889586946304455c6760e11b865216908401525af1908115612549575061253f575080f35b61001f915061267c565b513d5f823e3d90fd5b5f80fd5b34612552575f366003190112612552576020906017548152f35b5f91031261255257565b600435906001600160a01b038216820361255257565b602435906001600160a01b038216820361255257565b604435906001600160a01b038216820361255257565b602080825282518183018190529093925f5b8281106125ef57505060409293505f838284010152601f8019910116010190565b8181018601518482016040015285016125ce565b60243590811515820361255257565b60043590811515820361255257565b1561262857565b60405162461bcd60e51b815260206004820152602660248201527f427261696e44616f546f6b656e3a206578747261206469737472696275746f72604482015265081d5b9cd95d60d21b6064820152608490fd5b67ffffffffffffffff811161269057604052565b634e487b7160e01b5f52604160045260245ffd5b6060810190811067ffffffffffffffff82111761269057604052565b6080810190811067ffffffffffffffff82111761269057604052565b90601f8019910116810190811067ffffffffffffffff82111761269057604052565b6040513d5f823e3d90fd5b1561271057565b60405162461bcd60e51b815260206004820152602860248201527f427261696e44616f546f6b656e3a206275796275726e206469737472696275746044820152671bdc881d5b9cd95d60c21b6064820152608490fd5b1561276d57565b60405162461bcd60e51b815260206004820152602560248201527f427261696e44616f546f6b656e3a206d61696e206469737472696275746f72206044820152641d5b9cd95d60da1b6064820152608490fd5b156127c757565b60405162461bcd60e51b815260206004820152601f60248201527f427261696e44616f546f6b656e3a206469737472696275746f72207a65726f006044820152606490fd5b9190820180921161281957565b634e487b7160e01b5f52601160045260245ffd5b6005546001600160a01b0316330361284157565b60405163118cdaa760e01b8152336004820152602490fd5b91906001600160a01b03808416156128955781161561287d5761287b92612a58565b565b60405163ec442f0560e01b81525f6004820152602490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b5f906001600160a01b039081811680156128f0575f52602260205260ff60405f2054165f146129a0575f915b806007541680612950575b506008541690816128f6575b50505050565b813b156115eb57604051630a5b654b60e11b81526001600160a01b03919091166004820152602481019290925282908290604490829084905af161293c575b80806128f0565b612946829161267c565b6106055780612935565b803b1561255257604051630a5b654b60e11b81526001600160a01b038416600482015260248101859052905f908290604490829084905af1156128e45761299891945061267c565b5f925f6128e4565b5f60205260405f2054916128d9565b9081602091031261255257516001600160a01b03811681036125525790565b156129d557565b60405162461bcd60e51b815260206004820152601760248201527f427261696e44616f546f6b656e3a207478206c696d69740000000000000000006044820152606490fd5b9190820391821161281957565b8181029291811591840414171561281957565b8115612a44570490565b634e487b7160e01b5f52601260045260245ffd5b6001600160a01b038181169390841580159081612d4c575b612d16575050601e5460a81c60ff16612d0a576001600160a01b0382165f908152602160205260409020612aae90612aaa905b5460ff1690565b1590565b80612ce0575b612ccd575b612ac38383612f35565b612cbe575b90610b27612b259483610b27949160145491821591821592612cb2575b82612c8b575b82612c64575b600654612b0e906001600160a01b03165b6001600160a01b031690565b149182612c3c575b612b2d575b5050508483612e65565b61287b613a17565b6013549350612b92928480821115612c3357612b4f612b5591612b5d93612a1a565b83612a27565b612710900490565b935b80612c1d5750612b985f915b60155480612c0857505f9485915b612b8c83612b87878b61280c565b61280c565b90612a1a565b9561280c565b80612bf7575b5080612be7575b5081151580612bca575b612bba575b80612b1b565b612bc391613623565b5f80612bb4565b50601654612be0906001600160a01b0316612b02565b1515612baf565b612bf19086612daf565b5f612ba5565b612c02903088612e65565b5f612b9e565b612b55612c159183612a27565b948591612b79565b612c2d612b55612b989284612a27565b91612b6b565b50505f93612b5f565b9150612c5e612aaa612aa38a60018060a01b03165f52601f60205260405f2090565b91612b16565b9150612c85612aaa612aa38a60018060a01b03165f526020805260405f2090565b91612af1565b9150612cac612aaa612aa38860018060a01b03165f526020805260405f2090565b91612aeb565b60155415159250612ae5565b90612cc7612fb3565b90612ac8565b612cdb6018548211156129ce565b612ab9565b506001600160a01b0383165f908152602160205260409020612d0590612aaa90612aa3565b612ab4565b919061287b9350612e65565b9184612d259295965084612e65565b612d3d575b508116612d345750565b61287b906128ad565b612d46906128ad565b5f612d2a565b5081851615612a70565b6001600160a01b038116908115612dab5761287b915f526020805260405f2060ff1990600182825416179055602260205260405f206001828254161790556021602052600160405f20918254161790556128ad565b5050565b9091906001600160a01b0381169081612df757505f80516020613dd9833981519152602084612de25f959660025461280c565b6002555b8060025403600255604051908152a3565b92815f525f60205260405f205493818510612e3357506020815f80516020613dd9833981519152925f9596858752868452036040862055612de6565b60405163391434e360e21b81526001600160a01b03919091166004820152602481018590526044810191909152606490fd5b6001600160a01b0380821692909183612ec957505f80516020613dd983398151915291602091612e978660025461280c565b6002555b169384612eb45780600254036002555b604051908152a3565b845f525f825260405f20818154019055612eab565b835f525f60205260405f205490858210612f03575091602091855f80516020613dd983398151915294865f525f85520360405f2055612e9b565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101859052606490fd5b60ff601a54169182612fa2575b82612f81575b5081612f6d575b5080612f585790565b50305f525f60205260405f2054601754111590565b6001600160a01b031630141590505f612f4f565b6001600160a01b03165f908152601f602052604081205460ff169250612f48565b601e5460a81c60ff16159250612f42565b601e805460ff60a81b19908116600160a81b17909155612fd1613060565b601e5416601e55565b91909493929460a083019083526020905f602085015260a060408501528251809152602060c085019301915f5b8281106130285750505050906080919460018060a01b031660608201520152565b83516001600160a01b031685529381019392810192600101613007565b90816060910312612552578051916040602083015192015190565b601754801561362057305f9081526020819052604090208190541061362057601a54819060081c60ff1680613615575b6135dd575b506130a560145460135490612a1a565b908115612dab5760125482816135c25750506130c25f8092612a1a565b476130cb613ae6565b6001600160a01b03947f000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d9861692833b1561255257613126905f60409485518094819263791ac94760e01b835260049a429130918d8601612fda565b038183895af19182156135bd57613143926135aa575b5047612a1a565b9586156135a15761315b601254928360011c90612a1a565b918215613597578290806135785750505f9687925b600d5481816135655750505f905b600e5482828261354b57506131e691506131e05f955b84600f5480155f14613534575050612b8c5f995b886010548881155f146135205750505f80985b8d60115480155f146134f85750612b879150612b87612b8794612b875f9b8c9861280c565b9061280c565b94801515806134d8575b61348f575b508015158061346f575b613426575b5080151580613406575b6133bd575b508015158061339d575b613354575b508115159081613333575b506132e4575b50831515806132db575b613249575b5050505050565b600c54905163f305d71960e01b81523093810193845260208401949094525f604084018190526060848101919091526001600160a01b0390911660808401524260a084015292938492839190829060c00103925af16132ac575b80808080613242565b6132cd9060603d6060116132d4575b6132c581836126dc565b810190613045565b50506132a3565b503d6132bb565b5084151561323d565b6009546132f9906001600160a01b0316612b02565b803b15612552575f9085845180948193630d0e30db60e41b83525af115613233578061332761332d9261267c565b80612570565b5f613233565b60095490915061334b906001600160a01b0316612b02565b1615155f61322d565b600a54613369906001600160a01b0316612b02565b803b15612552575f9087865180948193634891eb3f60e11b83525af11561322257806133276133979261267c565b5f613222565b50600a5482906133b5906001600160a01b0316612b02565b16151561321d565b600a546133d2906001600160a01b0316612b02565b803b15612552575f908887518094819363044230d160e31b83525af11561321357806133276134009261267c565b5f613213565b50600a54839061341e906001600160a01b0316612b02565b16151561320e565b60085461343b906001600160a01b0316612b02565b803b15612552575f9089885180948193630d0e30db60e41b83525af11561320457806133276134699261267c565b5f613204565b506008548490613487906001600160a01b0316612b02565b1615156131ff565b6007546134a4906001600160a01b0316612b02565b803b15612552575f908a895180948193630d0e30db60e41b83525af1156131f557806133276134d29261267c565b5f6131f5565b5060075485906134f0906001600160a01b0316612b02565b1615156131f0565b612b8794612b87613518612b8795613513612b87958d612a27565b612a3a565b9b8c9861280c565b61351361352d9287612a27565b80986131bb565b612b8c916135136135459285612a27565b996131a8565b61355f6131e0916135136131e69589612a27565b95613194565b6135136135729285612a27565b9061317e565b61358f91613513613589928b612a27565b60011c90565b968792613170565b5050505050505050565b50505050505050565b806133276135b79261267c565b5f61313c565b6126fe565b6135896135d6916135136130c29486612a27565b8092612a1a565b6135ec612b55601b5483612a27565b806135f8575b50613095565b9091506136058130613abe565b61360e9161280c565b5f806135f2565b50601b541515613090565b50565b601e805460ff60a81b19908116600160a81b1790915591612fd1916136b0565b67ffffffffffffffff81116126905760051b60200190565b8051156136685760200190565b634e487b7160e01b5f52603260045260245ffd5b8051600110156136685760400190565b8051600210156136685760600190565b80518210156136685760209160051b010190565b908115612dab576016546001600160a01b039081169182158015613a0e575b6128f05781600b5416156128f057601e549060ff9460a092868160a01c169060019660018301948986116128195760ff60a01b1983166003968b1687900660a01b60ff60a01b1617601e55601c54899390891683149089908215613a00575b82156139f4575b505080156139c9575b61397a575b156138d2575b5f96807f000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a271693848314935b613786575b5050505050505050505050565b8a8916878110156138cc5781018b8111612819576137a8888d85931606613d30565b168a8c821515806138c2575b806138b8575b806138ae575b156138a5575050841561381f5760405161380e916137dd826126c0565b8982526060366020840137306137f28361365b565b526137fc8261367c565b52866138078261368c565b5287613ca2565b613779578a8a809a5b011698613774565b6040908151918a83019083821067ffffffffffffffff8311176126905752600480835260809182366020860137306138568561365b565b526138608461367c565b528761386b8461368c565b5282518a1015613892575090846138859282015287613ca2565b613779578a8a809a613817565b603290634e487b7160e01b5f525260245ffd5b9150809a613817565b50858314156137c0565b50878314156137ba565b50308314156137b4565b50613779565b90507f000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a278616808203613940576040516139359161390e826126a4565b600282526040366020840137306139248361365b565b5261392e8261367c565b5284613ca2565b613597578690613749565b60405161393591613950826126c0565b8682526060366020840137306139658361365b565b5261396f8261367c565b528261392e8261368c565b91506139b360405161398b816126a4565b600281526040366020830137306139a18261365b565b52826139ac8261367c565b5285613ca2565b6139be578791613743565b505050505050505050565b50877f000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a2716821461373e565b1683149050885f613735565b601d5482168514925061372e565b503083146136cf565b6007545f906001600160a01b0390811680613a7d575b506008541680613a3b575050565b601954813b1561043d57829160248392604051948593849263ffb2c47960e01b845260048401525af1613a6c575050565b613a76829161267c565b6106055750565b601954813b15612552575f9160248392604051948593849263ffb2c47960e01b845260048401525af115613a2d57613ab691925061267c565b5f905f613a2d565b906001600160a01b0382161561287d5761287b915f612a58565b5f1981146128195760010190565b601c546001600160a01b039081169190613bc4306002613b068287613d6e565b9182613c98575b84601d541696613b1d8289613d6e565b80613c8e575b613c7b575b613b3786601e54169283613d6e565b80613c71575b80613c67575b613c57575b613b5183613643565b92613b5f60405194856126dc565b808452613b6e601f1991613643565b0136602085013782973060019530613b858761365b565b52613c41575b613b958183613d6e565b80613c37575b613c1b575b613baa9084613d6e565b9182613c10575b5081613c05575b50613beb575b5061369c565b907f000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a27169052565b613bfe613bf784613ad8565b938361369c565b525f613bbe565b90508114155f613bb8565b83141591505f613bb1565b5080613c30613c2987613ad8565b968661369c565b5280613ba0565b5082821415613b9b565b506002945081613c508561367c565b5281613b8b565b91613c6190613ad8565b91613b48565b5087821415613b43565b5080821415613b3d565b91613c869150613ad8565b908690613b28565b5080881415613b23565b5050600385613b0d565b600b545f9290916001600160a01b03917f000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d9831690813b15612552575f8094613d0460405197889687958694635c11d79560e01b86524293169160048601612fda565b03925af19081613d1d575b50613d175790565b50600190565b613d2891925061267c565b5f905f613d0f565b60ff168015613d5e57600114613d4f57601e546001600160a01b031690565b601d546001600160a01b031690565b50601c546001600160a01b031690565b6001600160a01b039081168015159290919083613dcb575b5082613dc0575b82613d9757505090565b7f000000000000000000000000a1077a294dde1b09bb078844df40758a5d0f9a27161415919050565b308214159250613d8d565b811682141592505f613d8656feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122057ec11326edf3af660f1e8a7aad68e4fe5dda2611ccbbd7878a7db7bfce9973964736f6c63430008160033