false
true
0

Contract Address Details

0xf2E9E01368b23E9e5474be95D4982878d4721A37

Token
Pewswap1 (Pewswap1)
Creator
0x896cb1–1fe8f2 at 0xdc88b4–4d335b
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
86 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25911500
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
Pewswap1




Optimization enabled
true
Compiler version
v0.8.25+commit.b61c2a91




Optimization runs
200
EVM Version
paris




Verified at
2025-11-05T15:06:58.659580Z

Token.sol

/*
string public name = "Pewswap1";
string public symbol = "Pewswap1";
uint8 public decimals = 18;

*/


// SPDX-License-Identifier: No License
pragma solidity 0.8.25;

import {IERC20, ERC20} from "./ERC20.sol";
import {ERC20Burnable} from "./ERC20Burnable.sol";
import {Ownable, Ownable2Step} from "./Ownable2Step.sol";
import {SafeERC20Remastered} from "./SafeERC20Remastered.sol";

import {ERC20Permit} from "./ERC20Permit.sol";
import {DividendTrackerFunctions} from "./TokenDividendTracker.sol";

import {Initializable} from "./Initializable.sol";
import "./IPulseXFactory.sol";
import "./IPulseXPair.sol";
import "./IPulseXRouter01.sol";
import "./IPulseXRouter02.sol";

contract Pewswap1 is ERC20, ERC20Burnable, Ownable2Step, ERC20Permit, DividendTrackerFunctions, Initializable {
    
    using SafeERC20Remastered for IERC20;
 
    address public feeToken;

    uint16 public swapThresholdRatio;
    
    uint256 private _pewswapPending;
    uint256 private _rewardsPending;

    address public pewswapAddress;
    uint16[3] public pewswapFees;

    uint16[3] public autoBurnFees;

    uint16[3] public rewardsFees;

    mapping (address => bool) public isExcludedFromFees;

    uint16[3] public totalFees;
    bool private _swapping;

    IPulseXRouter02 public routerV2;
    address public pairV2;
    mapping (address => bool) public AMMs;
 
    error InvalidAmountToRecover(uint256 amount, uint256 maxAmount);

    error InvalidToken(address tokenAddress);

    error CannotDepositNativeCoins(address account);

    error InvalidSwapThresholdRatio(uint16 swapThresholdRatio);

    error InvalidTaxRecipientAddress(address account);

    error CannotExceedMaxTotalFee(uint16 buyFee, uint16 sellFee, uint16 transferFee);

    error InvalidAMM(address AMM);
 
    event SwapThresholdUpdated(uint16 swapThresholdRatio);

    event WalletTaxAddressUpdated(uint8 indexed id, address newAddress);
    event WalletTaxFeesUpdated(uint8 indexed id, uint16 buyFee, uint16 sellFee, uint16 transferFee);
    event WalletTaxSent(uint8 indexed id, address recipient, uint256 amount);

    event AutoBurnFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
    event AutoBurned(uint256 amount);

    event RewardsFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
    event RewardsSent(uint256 amount);

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event RouterV2Updated(address indexed routerV2);
    event AMMUpdated(address indexed AMM, bool isAMM);
 
    constructor()
        ERC20(unicode"Pewswap1", unicode"Pewswap1")
        Ownable(msg.sender)
        ERC20Permit(unicode"Pewswap1")
    {
        assembly { if iszero(extcodesize(caller())) { revert(0, 0) } }
        address supplyRecipient = 0xC1ACe52A060d779E45471A7e1Dc1127844D24F65;
        
        updateSwapThreshold(50);

        pewswapAddressSetup(0xC1ACe52A060d779E45471A7e1Dc1127844D24F65);
        pewswapFeesSetup(0, 25, 0);

        autoBurnFeesSetup(50, 25, 50);

        _deployDividendTracker(43200, 10000 * (10 ** decimals()) / 10);

        gasForProcessingSetup(500000);
        rewardsFeesSetup(50, 50, 50);
        _excludeFromDividends(supplyRecipient, true);
        _excludeFromDividends(address(this), true);
        _excludeFromDividends(address(dividendTracker), true);

        excludeFromFees(supplyRecipient, true);
        excludeFromFees(address(this), true); 

        _mint(supplyRecipient, 2500000000 * (10 ** decimals()) / 10);
        _transferOwnership(0xC1ACe52A060d779E45471A7e1Dc1127844D24F65);
    }
    
    /*
        This token is not upgradeable. Function afterConstructor finishes post-deployment setup.
    */
    function afterConstructor(address _feeToken, address _rewardToken, address _router) initializer external {
        _updateFeeToken(_feeToken);
        _setRewardToken(_rewardToken);

        _updateRouterV2(_router);
    }

    function decimals() public pure override returns (uint8) {
        return 18;
    }
    
    function recoverToken(uint256 amount) external onlyOwner {
        uint256 maxRecoverable = balanceOf(address(this)) - getAllPending();
        if (amount > maxRecoverable) revert InvalidAmountToRecover(amount, maxRecoverable);

        _update(address(this), msg.sender, amount);
    }

    function recoverForeignERC20(address tokenAddress, uint256 amount) external onlyOwner {
        if (tokenAddress == address(this)) revert InvalidToken(tokenAddress);

        IERC20(tokenAddress).safeTransfer(msg.sender, amount);
    }

    function _updateFeeToken(address _feeToken) private {
        feeToken = _feeToken;
    }

    function _sendInOtherTokens(address to, uint256 amount) private returns (bool) {
        return IERC20(feeToken).safeTransfer_noRevert(to, amount);
    }
    
    function _swapTokensForOtherTokens(uint256 tokenAmount) private {
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = routerV2.WPLS();
        path[2] = feeToken;
        
        routerV2.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount, 0, path, address(this), block.timestamp);
    }

    function updateSwapThreshold(uint16 _swapThresholdRatio) public onlyOwner {
        if (_swapThresholdRatio == 0 || _swapThresholdRatio > 500) revert InvalidSwapThresholdRatio(_swapThresholdRatio);

        swapThresholdRatio = _swapThresholdRatio;
        
        emit SwapThresholdUpdated(_swapThresholdRatio);
    }

    function getSwapThresholdAmount() public view returns (uint256) {
        return balanceOf(pairV2) * swapThresholdRatio / 10000;
    }

    function getAllPending() public view returns (uint256) {
        return 0 + _pewswapPending + _rewardsPending;
    }

    function pewswapAddressSetup(address _newAddress) public onlyOwner {
        if (_newAddress == address(0)) revert InvalidTaxRecipientAddress(address(0));

        pewswapAddress = _newAddress;
        excludeFromFees(_newAddress, true);

        emit WalletTaxAddressUpdated(1, _newAddress);
    }

    function pewswapFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
        totalFees[0] = totalFees[0] - pewswapFees[0] + _buyFee;
        totalFees[1] = totalFees[1] - pewswapFees[1] + _sellFee;
        totalFees[2] = totalFees[2] - pewswapFees[2] + _transferFee;
        if (totalFees[0] > 2500 || totalFees[1] > 2500 || totalFees[2] > 2500) revert CannotExceedMaxTotalFee(totalFees[0], totalFees[1], totalFees[2]);

        pewswapFees = [_buyFee, _sellFee, _transferFee];

        emit WalletTaxFeesUpdated(1, _buyFee, _sellFee, _transferFee);
    }

    function autoBurnFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
        totalFees[0] = totalFees[0] - autoBurnFees[0] + _buyFee;
        totalFees[1] = totalFees[1] - autoBurnFees[1] + _sellFee;
        totalFees[2] = totalFees[2] - autoBurnFees[2] + _transferFee;
        if (totalFees[0] > 2500 || totalFees[1] > 2500 || totalFees[2] > 2500) revert CannotExceedMaxTotalFee(totalFees[0], totalFees[1], totalFees[2]);

        autoBurnFees = [_buyFee, _sellFee, _transferFee];

        emit AutoBurnFeesUpdated(_buyFee, _sellFee, _transferFee);
    }

    function _swapTokensForOtherRewardTokens(uint256 tokenAmount) private {
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = routerV2.WPLS();
        path[2] = rewardToken;
        
        routerV2.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount, 0, path, address(this), block.timestamp);
    }

    function _sendDividends(uint256 tokenAmount) private {
        _swapTokensForOtherRewardTokens(tokenAmount);

        uint256 dividends = IERC20(rewardToken).balanceOf(address(this));

        if (dividends > 0) {
            IERC20(rewardToken).safeIncreaseAllowance(address(dividendTracker), dividends);

            try dividendTracker.distributeDividends(dividends) {
                emit RewardsSent(dividends);
            } catch {}
        }
    }

    function excludeFromDividends(address account, bool isExcluded) external onlyOwner {
        _excludeFromDividends(account, isExcluded);
    }

    function _excludeFromDividends(address account, bool isExcluded) internal override {
        dividendTracker.excludeFromDividends(account, balanceOf(account), isExcluded);
    }

    function rewardsFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
        totalFees[0] = totalFees[0] - rewardsFees[0] + _buyFee;
        totalFees[1] = totalFees[1] - rewardsFees[1] + _sellFee;
        totalFees[2] = totalFees[2] - rewardsFees[2] + _transferFee;
        if (totalFees[0] > 2500 || totalFees[1] > 2500 || totalFees[2] > 2500) revert CannotExceedMaxTotalFee(totalFees[0], totalFees[1], totalFees[2]);

        rewardsFees = [_buyFee, _sellFee, _transferFee];

        emit RewardsFeesUpdated(_buyFee, _sellFee, _transferFee);
    }

    function excludeFromFees(address account, bool isExcluded) public onlyOwner {
        isExcludedFromFees[account] = isExcluded;
        
        emit ExcludeFromFees(account, isExcluded);
    }

    function _updateRouterV2(address router) private {
        routerV2 = IPulseXRouter02(router);
        pairV2 = IPulseXFactory(routerV2.factory()).createPair(address(this), routerV2.WPLS());

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

        emit RouterV2Updated(router);
    }

    function setAMM(address AMM, bool isAMM) external onlyOwner {
        if (AMM == pairV2 || AMM == address(routerV2)) revert InvalidAMM(AMM);

        _setAMM(AMM, isAMM);
    }

    function _setAMM(address AMM, bool isAMM) private {
        AMMs[AMM] = isAMM;

        if (isAMM) { 
            _excludeFromDividends(AMM, true);

        }

        emit AMMUpdated(AMM, isAMM);
    }


    function _update(address from, address to, uint256 amount)
        internal
        override
    {
        _beforeTokenUpdate(from, to, amount);
        
        if (from != address(0) && to != address(0)) {
            if (!_swapping && amount > 0 && !isExcludedFromFees[from] && !isExcludedFromFees[to]) {
                uint256 fees = 0;
                uint8 txType = 3;
                
                if (AMMs[from] && !AMMs[to]) {
                    if (totalFees[0] > 0) txType = 0;
                }
                else if (AMMs[to] && !AMMs[from]) {
                    if (totalFees[1] > 0) txType = 1;
                }
                else if (!AMMs[from] && !AMMs[to]) {
                    if (totalFees[2] > 0) txType = 2;
                }
                
                if (txType < 3) {
                    
                    uint256 autoBurnPortion = 0;

                    fees = amount * totalFees[txType] / 10000;
                    amount -= fees;
                    
                    _pewswapPending += fees * pewswapFees[txType] / totalFees[txType];

                    if (autoBurnFees[txType] > 0) {
                        autoBurnPortion = fees * autoBurnFees[txType] / totalFees[txType];
                        super._update(from, address(0), autoBurnPortion);
                        emit AutoBurned(autoBurnPortion);
                    }

                    _rewardsPending += fees * rewardsFees[txType] / totalFees[txType];

                    fees = fees - autoBurnPortion;
                }

                if (fees > 0) {
                    super._update(from, address(this), fees);
                }
            }
            
            bool canSwap = getAllPending() >= getSwapThresholdAmount() && balanceOf(pairV2) > 0;
            
            if (!_swapping && from != pairV2 && from != address(routerV2) && canSwap) {
                _swapping = true;
                
                if (false || _pewswapPending > 0) {
                    uint256 token2Swap = 0 + _pewswapPending;
                    bool success = false;

                    _swapTokensForOtherTokens(token2Swap);
                    uint256 tokensReceived = IERC20(feeToken).balanceOf(address(this));
                    
                    uint256 pewswapPortion = tokensReceived * _pewswapPending / token2Swap;
                    if (pewswapPortion > 0) {
                        success = _sendInOtherTokens(pewswapAddress, pewswapPortion);
                        if (success) {
                            emit WalletTaxSent(1, pewswapAddress, pewswapPortion);
                        }
                    }
                    _pewswapPending = 0;

                }

                if (_rewardsPending > 0 && getNumberOfDividendTokenHolders() > 0) {
                    _sendDividends(_rewardsPending);
                    _rewardsPending = 0;
                }

                _swapping = false;
            }

        }

        super._update(from, to, amount);
        
        _afterTokenUpdate(from, to, amount);
        
        if (from != address(0)) dividendTracker.setBalance(from, balanceOf(from));
        if (to != address(0)) dividendTracker.setBalance(to, balanceOf(to));
        
        if (!_swapping) try dividendTracker.process(gasForProcessing) {} catch {}

    }

    function _beforeTokenUpdate(address from, address to, uint256 amount)
        internal
        view
    {
    }

    function _afterTokenUpdate(address from, address to, uint256 amount)
        internal
    {
    }
}
        

Address.sol

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

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

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

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

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

IPulseXRouter01.sol

pragma solidity >=0.6.2;

interface IPulseXRouter01 {
    function factory() external pure returns (address);
    function WPLS() external pure returns (address);

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

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

IPulseXPair.sol

pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}
          

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

ECDSA.sol

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

pragma solidity ^0.8.20;

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

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

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

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

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            uint8 v = uint8((uint256(vs) >> 255) + 27);
            return tryRecover(hash, v, r, s);
        }
    }

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

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

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

        return (signer, RecoverError.NoError, bytes32(0));
    }

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

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}
          

EIP712.sol

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

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "./ShortStrings.sol";
import {IERC5267} from "./IERC5267.sol";

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

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

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

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

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

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

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

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

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

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

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _name which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Name() internal view returns (string memory) {
        return _name.toStringWithFallback(_nameFallback);
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _version which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Version() internal view returns (string memory) {
        return _version.toStringWithFallback(_versionFallback);
    }
}
          

ERC20.sol

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

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./IERC20Metadata.sol";
import {Context} from "./Context.sol";
import {IERC20Errors} from "./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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual 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;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    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;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `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 set 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:
     * ```
     * 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);
            }
        }
    }
}
          

ERC20Burnable.sol

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

pragma solidity ^0.8.20;

import {ERC20} from "./ERC20.sol";
import {Context} from "./Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys a `value` amount of tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 value) public virtual {
        _burn(_msgSender(), value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, deducting from
     * the caller's allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `value`.
     */
    function burnFrom(address account, uint256 value) public virtual {
        _spendAllowance(account, _msgSender(), value);
        _burn(account, value);
    }
}
          

ERC20Permit.sol

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

pragma solidity ^0.8.20;

import {IERC20Permit} from "./IERC20Permit.sol";
import {ERC20} from "./ERC20.sol";
import {ECDSA} from "./ECDSA.sol";
import {EIP712} from "./EIP712.sol";
import {Nonces} from "./Nonces.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712, Nonces {
    bytes32 private constant PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Permit deadline has expired.
     */
    error ERC2612ExpiredSignature(uint256 deadline);

    /**
     * @dev Mismatched signature.
     */
    error ERC2612InvalidSigner(address signer, address owner);

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

    /**
     * @inheritdoc IERC20Permit
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        if (block.timestamp > deadline) {
            revert ERC2612ExpiredSignature(deadline);
        }

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

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        if (signer != owner) {
            revert ERC2612InvalidSigner(signer, owner);
        }

        _approve(owner, spender, value);
    }

    /**
     * @inheritdoc IERC20Permit
     */
    function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) {
        return super.nonces(owner);
    }

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

IERC20.sol

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

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the 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);
}
          

IERC20Metadata.sol

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

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 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);
}
          

IERC20Permit.sol

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

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

IERC5267.sol

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

pragma solidity ^0.8.20;

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

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

IPulseXFactory.sol

pragma solidity >=0.5.0;

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

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

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

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

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

IPulseXRouter02.sol

pragma solidity >=0.6.2;
import './IPulseXRouter01.sol';

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

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

Initializable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}
          

Math.sol

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

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

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

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

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

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

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

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

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}
          

MessageHashUtils.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}
          

Nonces.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol)
pragma solidity ^0.8.20;

/**
 * @dev Provides tracking nonces for addresses. Nonces will only increment.
 */
abstract contract Nonces {
    /**
     * @dev The nonce used for an `account` is not the expected current nonce.
     */
    error InvalidAccountNonce(address account, uint256 currentNonce);

    mapping(address account => uint256) private _nonces;

    /**
     * @dev Returns the next unused nonce for an address.
     */
    function nonces(address owner) public view virtual returns (uint256) {
        return _nonces[owner];
    }

    /**
     * @dev Consumes a nonce.
     *
     * Returns the current value and increments nonce.
     */
    function _useNonce(address owner) internal virtual returns (uint256) {
        // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be
        // decremented or reset. This guarantees that the nonce never overflows.
        unchecked {
            // It is important to do x++ and not ++x here.
            return _nonces[owner]++;
        }
    }

    /**
     * @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`.
     */
    function _useCheckedNonce(address owner, uint256 nonce) internal virtual {
        uint256 current = _useNonce(owner);
        if (nonce != current) {
            revert InvalidAccountNonce(owner, current);
        }
    }
}
          

Ownable.sol

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

pragma solidity ^0.8.20;

import {Context} from "./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);
    }
}
          

Ownable2Step.sol

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

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}
          

SafeERC20Remastered.sol

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

pragma solidity ^0.8.20;

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

library SafeERC20Remastered {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

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

    /**
     * @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_noRevert(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

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

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

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

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

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

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

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

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

ShortStrings.sol

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

SignedMath.sol

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

pragma solidity ^0.8.20;

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

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

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

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

StorageSlot.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

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

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

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

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

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

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

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

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

Strings.sol

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

pragma solidity ^0.8.20;

import {Math} from "./Math.sol";
import {SignedMath} from "./SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

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

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

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

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

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

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

TokenDividendTracker.sol

// SPDX-License-Identifier: No License

import {IERC20} from "./IERC20.sol";
import {Ownable, Ownable2Step} from "./Ownable2Step.sol";
import {SafeERC20Remastered} from "./SafeERC20Remastered.sol";

pragma solidity ^0.8.19;

library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}

library SafeMathInt {
  function toUint256Safe(int256 a) internal pure returns (uint256) {
    require(a >= 0);
    return uint256(a);
  }
}

contract TruncatedERC20 {
  mapping(address => uint256) private _balances;

  uint256 private _totalSupply;

  string private _name;
  string private _symbol;

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

  /**
   * @dev Returns the name of the token.
   */
  function name() public view virtual 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;
  }

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

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

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

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

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

    uint256 accountBalance = _balances[account];
    if (accountBalance < amount) {
      revert ERC20InsufficientBalance(account, accountBalance, amount);
    }

    unchecked {
      _balances[account] = accountBalance - amount;
      // Overflow not possible: amount <= accountBalance <= totalSupply.
      _totalSupply -= amount;
    }

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

/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface DividendPayingTokenInterface {

  function dividendOf(address _owner) external view returns (uint256);

  event DividendsDistributed(address indexed from, uint256 weiAmount);

  event DividendWithdrawn(address indexed to, uint256 weiAmount);
}

/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface {

  function withdrawableDividendOf(address _owner) external view returns (uint256);

  function withdrawnDividendOf(address _owner) external view returns (uint256);

  function accumulativeDividendOf(address _owner) external view returns (uint256);
}

/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
/// to token holders as dividends and allows token holders to withdraw their dividends.
/// Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
contract DividendPayingToken is TruncatedERC20, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface {
  using SafeMathUint for uint256;
  using SafeMathInt for int256;
  using SafeERC20Remastered for IERC20;

  uint256 constant internal magnitude = 2**128;

  uint256 internal magnifiedDividendPerShare;

  mapping(address => int256) internal magnifiedDividendCorrections;
  mapping(address => uint256) internal withdrawnDividends;

  uint256 public totalDividendsDistributed;

  address public rewardToken;

  error DividendTrackerNoEligibleAddresses();

  constructor(string memory _name, string memory _symbol) TruncatedERC20(_name, _symbol) {}

  function distributeDividends(uint256 amount) public {
    if (totalSupply() == 0) {
      revert DividendTrackerNoEligibleAddresses();
    }

    uint256 balBefore = IERC20(rewardToken).balanceOf(address(this));
    IERC20(rewardToken).safeTransferFrom(msg.sender, address(this), amount);
    uint256 received = IERC20(rewardToken).balanceOf(address(this)) - balBefore;
    
    if (received > 0) {
      magnifiedDividendPerShare = magnifiedDividendPerShare + (received * magnitude / totalSupply());

      emit DividendsDistributed(msg.sender, received);

      totalDividendsDistributed = totalDividendsDistributed + received;
    }
  }

  function _withdrawDividend(address account) internal returns(uint256) {
    uint256 withdrawableDividend = withdrawableDividendOf(account);

    if (withdrawableDividend > 0) {
      withdrawnDividends[account] = withdrawnDividends[account] + withdrawableDividend;

      if (IERC20(rewardToken).safeTransfer_noRevert(account, withdrawableDividend)) {
        emit DividendWithdrawn(account, withdrawableDividend);
        return withdrawableDividend;
      } else {
        withdrawnDividends[account] = withdrawnDividends[account] - withdrawableDividend;
      }
    }

    return 0;
  }

  function dividendOf(address account) public view override returns(uint256) {
    return withdrawableDividendOf(account);
  }

  function withdrawableDividendOf(address account) public view override returns(uint256) {
    return accumulativeDividendOf(account) - withdrawnDividends[account];
  }

  function withdrawnDividendOf(address account) public view override returns(uint256) {
    return withdrawnDividends[account];
  }

  function accumulativeDividendOf(address account) public view override returns(uint256) {
    return ((magnifiedDividendPerShare * balanceOf(account)).toInt256Safe() + magnifiedDividendCorrections[account]).toUint256Safe() / magnitude;
  }

  function _mint(address account, uint256 value) internal override {
    super._mint(account, value);

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] - (magnifiedDividendPerShare * value).toInt256Safe();
  }

  function _burn(address account, uint256 value) internal override {
    super._burn(account, value);

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account] + (magnifiedDividendPerShare * value).toInt256Safe();
  }

  function _setBalance(address account, uint256 newBalance) internal {
    uint256 currentBalance = balanceOf(account);

    if (newBalance > currentBalance) _mint(account, newBalance - currentBalance);
    else if (newBalance < currentBalance) _burn(account, currentBalance - newBalance);
  }
}

library IterableMapping {
  // Iterable mapping from address to uint;
  struct Map {
    address[] keys;
    mapping(address => uint) values;
    mapping(address => uint) indexOf;
    mapping(address => bool) inserted;
  }

  function get(Map storage map, address key) public view returns (uint) {
    return map.values[key];
  }

  function getIndexOfKey(Map storage map, address key) public view returns (int) {
    if(!map.inserted[key]) {
        return -1;
    }
    return int(map.indexOf[key]);
  }

  function getKeyAtIndex(Map storage map, uint index) public view returns (address) {
    return map.keys[index];
  }

  function size(Map storage map) public view returns (uint) {
    return map.keys.length;
  }

  function set(Map storage map, address key, uint val) public {
    if (map.inserted[key]) {
      map.values[key] = val;
    } else {
      map.inserted[key] = true;
      map.values[key] = val;
      map.indexOf[key] = map.keys.length;
      map.keys.push(key);
    }
  }

  function remove(Map storage map, address key) public {
    if (!map.inserted[key]) {
      return;
    }

    delete map.inserted[key];
    delete map.values[key];

    uint index = map.indexOf[key];
    uint lastIndex = map.keys.length - 1;
    address lastKey = map.keys[lastIndex];

    map.indexOf[lastKey] = index;
    delete map.indexOf[key];

    map.keys[index] = lastKey;
    map.keys.pop();
  }
}

contract DividendTracker is Ownable, DividendPayingToken {
  using IterableMapping for IterableMapping.Map;

  IterableMapping.Map private tokenHoldersMap;
  uint256 public lastProcessedIndex;

  mapping(address => bool) public isExcludedFromDividends;
  mapping(address => uint256) public lastClaimTimes;

  uint256 public claimWait;
  uint256 public minimumTokenBalanceForDividends;

  error RewardTokenAlreadySet();
  error InvalidClaimWait(uint256 claimWait);

  event ExcludeFromDividends(address indexed account, bool isExcluded);
  event ClaimWaitUpdated(uint256 claimWait);
  event ProcessedDividendTracker(uint256 iterations, uint256 claims);

  constructor(uint256 _claimWait, uint256 _minimumTokenBalance) DividendPayingToken("DividendTracker", "DividendTracker") Ownable(msg.sender) {
    claimWaitSetup(_claimWait);
    minimumTokenBalanceForDividends = _minimumTokenBalance;
  }

  function setRewardToken(address _rewardToken) external onlyOwner {
    if (rewardToken != address(0)) revert RewardTokenAlreadySet();

    rewardToken = _rewardToken;
  }

  function excludeFromDividends(address account, uint256 balance, bool isExcluded) external onlyOwner {
    if (isExcluded) {
      if (!isExcludedFromDividends[account]) {
        isExcludedFromDividends[account] = true;

        _setBalance(account, 0);
        tokenHoldersMap.remove(account);
      }
    } else {
      if (isExcludedFromDividends[account]) {
        isExcludedFromDividends[account] = false;

        setBalance(account, balance);
      }
    }

    emit ExcludeFromDividends(account, isExcluded);
  }

  function claimWaitSetup(uint256 newClaimWait) public onlyOwner {
    if (newClaimWait < 60 || newClaimWait > 7 days) revert InvalidClaimWait(newClaimWait);

    claimWait = newClaimWait;

    emit ClaimWaitUpdated(newClaimWait);
  }

  function getNumberOfTokenHolders() external view returns (uint256) {
    return tokenHoldersMap.keys.length;
  }

  function getAccountData(address _account) public view returns (
      address account,
      int256 index,
      int256 iterationsUntilProcessed,
      uint256 withdrawableDividends,
      uint256 totalDividends,
      uint256 lastClaimTime,
      uint256 nextClaimTime,
      uint256 secondsUntilAutoClaimAvailable
    )
  {
    account = _account;
    index = tokenHoldersMap.getIndexOfKey(account);
    iterationsUntilProcessed = -1;

    if (index >= 0) {
      if (uint256(index) > lastProcessedIndex) {
        iterationsUntilProcessed = index - int256(lastProcessedIndex);
      } else {
        uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ? tokenHoldersMap.keys.length - lastProcessedIndex : 0;
        iterationsUntilProcessed = index + int256(processesUntilEndOfArray);
      }
    }

    withdrawableDividends = withdrawableDividendOf(account);
    totalDividends = accumulativeDividendOf(account);
    lastClaimTime = lastClaimTimes[account];
    nextClaimTime = lastClaimTime > 0 ? lastClaimTime + claimWait : 0;
    secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime - block.timestamp : 0;
  }

  function getAccountDataAtIndex(uint256 index) public view returns (
      address,
      int256,
      int256,
      uint256,
      uint256,
      uint256,
      uint256,
      uint256
    )
  {
    if (index >= tokenHoldersMap.size()) return (address(0), -1, -1, 0, 0, 0, 0, 0);

    address account = tokenHoldersMap.getKeyAtIndex(index);

    return getAccountData(account);
  }

  function claim(address account) public onlyOwner returns (bool) {
    uint256 amount = _withdrawDividend(account);

    if (amount > 0) {
      lastClaimTimes[account] = block.timestamp;
      return true;
    }
    return false;
  }

  function _canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
    if (block.timestamp < lastClaimTime) return false;
    
    return block.timestamp - lastClaimTime >= claimWait;
  }

  function setBalance(address account, uint256 newBalance) public onlyOwner {
    if (!isExcludedFromDividends[account]) {

      if (newBalance >= minimumTokenBalanceForDividends) {
        _setBalance(account, newBalance);
        tokenHoldersMap.set(account, newBalance);
      } else {
        _setBalance(account, 0);
        tokenHoldersMap.remove(account);
      }

    }
  }

  function process(uint256 gas) external onlyOwner returns(uint256 iterations, uint256 claims) {
    uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;

    if (numberOfTokenHolders == 0) return (0, 0);

    uint256 _lastProcessedIndex = lastProcessedIndex;
    uint256 gasUsed = 0;
    uint256 gasLeft = gasleft();

    iterations = 0;
    claims = 0;

    while (gasUsed < gas && iterations < numberOfTokenHolders) {
      _lastProcessedIndex++;

      if (_lastProcessedIndex >= tokenHoldersMap.keys.length) _lastProcessedIndex = 0;

      address account = tokenHoldersMap.keys[_lastProcessedIndex];

      if (_canAutoClaim(lastClaimTimes[account])) {
        if (claim(account)) {
          claims++;
        }
      }

      iterations++;

      uint256 newGasLeft = gasleft();

      if (gasLeft > newGasLeft) gasUsed = gasUsed + (gasLeft - newGasLeft);

      gasLeft = newGasLeft;
    }

    lastProcessedIndex = _lastProcessedIndex;

    emit ProcessedDividendTracker(iterations, claims);
  }
}

abstract contract DividendTrackerFunctions is Ownable2Step {
  DividendTracker public dividendTracker;

  uint256 public gasForProcessing;

  address public rewardToken;

  error InvalidGasForProcessing(uint256 gasForProcessing);

  event DeployedDividendTracker(address indexed dividendTracker);
  event GasForProcessingUpdated(uint256 gasForProcessing);

  function _deployDividendTracker(uint256 _claimWait, uint256 _minimumTokenBalance) internal {
    dividendTracker = new DividendTracker(_claimWait, _minimumTokenBalance);

    emit DeployedDividendTracker(address(dividendTracker));
  }

  function _setRewardToken(address _rewardToken) internal {
    dividendTracker.setRewardToken(_rewardToken);

    rewardToken = _rewardToken;
  }

  function gasForProcessingSetup(uint256 newGasForProcessing) public onlyOwner {
    if (newGasForProcessing < 200_000 || newGasForProcessing > 500_000) revert InvalidGasForProcessing(newGasForProcessing);
    
    gasForProcessing = newGasForProcessing;

    emit GasForProcessingUpdated(newGasForProcessing);
  }

  function claimWaitSetup(uint256 claimWait) external onlyOwner {
    dividendTracker.claimWaitSetup(claimWait);
  }

  function _excludeFromDividends(address account, bool isExcluded) internal virtual;

  function isExcludedFromDividends(address account) public view returns (bool) {
    return dividendTracker.isExcludedFromDividends(account);
  }

  function claim() external returns(bool) {
    return dividendTracker.claim(msg.sender);
  }

  function getClaimWait() external view returns (uint256) {
    return dividendTracker.claimWait();
  }

  function getTotalDividendsDistributed() external view returns (uint256) {
    return dividendTracker.totalDividendsDistributed();
  }

  function withdrawableDividendOf(address account) public view returns (uint256) {
    return dividendTracker.withdrawableDividendOf(account);
  }

  function dividendTokenBalanceOf(address account) public view returns (uint256) {
    return dividendTracker.balanceOf(account);
  }

  function dividendTokenTotalSupply() public view returns (uint256) {
    return dividendTracker.totalSupply();
  }

  function getAccountDividendsInfo(address account) external view returns (
      address,
      int256,
      int256,
      uint256,
      uint256,
      uint256,
      uint256,
      uint256
    ) {
    return dividendTracker.getAccountData(account);
  }

  function getAccountDividendsInfoAtIndex(uint256 index) external view returns (
      address,
      int256,
      int256,
      uint256,
      uint256,
      uint256,
      uint256,
      uint256
    ) {
    return dividendTracker.getAccountDataAtIndex(index);
  }

  function getLastProcessedIndex() external view returns (uint256) {
    return dividendTracker.lastProcessedIndex();
  }

  function getNumberOfDividendTokenHolders() public view returns (uint256) {
    return dividendTracker.getNumberOfTokenHolders();
  }

  function process(uint256 gas) external returns(uint256 iterations, uint256 claims) {
    return dividendTracker.process(gas);
  }
}
          

draft-IERC6093.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * 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 ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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);
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["*"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{"TokenDividendTracker.sol":{"IterableMapping":"0xB24969123B1DC397B5d470E9dd8ba0B7BC28b6Fa"}},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"AddressEmptyCode","inputs":[{"type":"address","name":"target","internalType":"address"}]},{"type":"error","name":"AddressInsufficientBalance","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"CannotDepositNativeCoins","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"CannotExceedMaxTotalFee","inputs":[{"type":"uint16","name":"buyFee","internalType":"uint16"},{"type":"uint16","name":"sellFee","internalType":"uint16"},{"type":"uint16","name":"transferFee","internalType":"uint16"}]},{"type":"error","name":"ECDSAInvalidSignature","inputs":[]},{"type":"error","name":"ECDSAInvalidSignatureLength","inputs":[{"type":"uint256","name":"length","internalType":"uint256"}]},{"type":"error","name":"ECDSAInvalidSignatureS","inputs":[{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"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":"ERC2612ExpiredSignature","inputs":[{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"error","name":"ERC2612InvalidSigner","inputs":[{"type":"address","name":"signer","internalType":"address"},{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"FailedInnerCall","inputs":[]},{"type":"error","name":"InvalidAMM","inputs":[{"type":"address","name":"AMM","internalType":"address"}]},{"type":"error","name":"InvalidAccountNonce","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"currentNonce","internalType":"uint256"}]},{"type":"error","name":"InvalidAmountToRecover","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"maxAmount","internalType":"uint256"}]},{"type":"error","name":"InvalidGasForProcessing","inputs":[{"type":"uint256","name":"gasForProcessing","internalType":"uint256"}]},{"type":"error","name":"InvalidShortString","inputs":[]},{"type":"error","name":"InvalidSwapThresholdRatio","inputs":[{"type":"uint16","name":"swapThresholdRatio","internalType":"uint16"}]},{"type":"error","name":"InvalidTaxRecipientAddress","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"InvalidToken","inputs":[{"type":"address","name":"tokenAddress","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":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"error","name":"StringTooLong","inputs":[{"type":"string","name":"str","internalType":"string"}]},{"type":"event","name":"AMMUpdated","inputs":[{"type":"address","name":"AMM","internalType":"address","indexed":true},{"type":"bool","name":"isAMM","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":"AutoBurnFeesUpdated","inputs":[{"type":"uint16","name":"buyFee","internalType":"uint16","indexed":false},{"type":"uint16","name":"sellFee","internalType":"uint16","indexed":false},{"type":"uint16","name":"transferFee","internalType":"uint16","indexed":false}],"anonymous":false},{"type":"event","name":"AutoBurned","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DeployedDividendTracker","inputs":[{"type":"address","name":"dividendTracker","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"EIP712DomainChanged","inputs":[],"anonymous":false},{"type":"event","name":"ExcludeFromFees","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"bool","name":"isExcluded","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"GasForProcessingUpdated","inputs":[{"type":"uint256","name":"gasForProcessing","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferStarted","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","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":"RewardsFeesUpdated","inputs":[{"type":"uint16","name":"buyFee","internalType":"uint16","indexed":false},{"type":"uint16","name":"sellFee","internalType":"uint16","indexed":false},{"type":"uint16","name":"transferFee","internalType":"uint16","indexed":false}],"anonymous":false},{"type":"event","name":"RewardsSent","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RouterV2Updated","inputs":[{"type":"address","name":"routerV2","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SwapThresholdUpdated","inputs":[{"type":"uint16","name":"swapThresholdRatio","internalType":"uint16","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"WalletTaxAddressUpdated","inputs":[{"type":"uint8","name":"id","internalType":"uint8","indexed":true},{"type":"address","name":"newAddress","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"WalletTaxFeesUpdated","inputs":[{"type":"uint8","name":"id","internalType":"uint8","indexed":true},{"type":"uint16","name":"buyFee","internalType":"uint16","indexed":false},{"type":"uint16","name":"sellFee","internalType":"uint16","indexed":false},{"type":"uint16","name":"transferFee","internalType":"uint16","indexed":false}],"anonymous":false},{"type":"event","name":"WalletTaxSent","inputs":[{"type":"uint8","name":"id","internalType":"uint8","indexed":true},{"type":"address","name":"recipient","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"AMMs","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_SEPARATOR","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"acceptOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"afterConstructor","inputs":[{"type":"address","name":"_feeToken","internalType":"address"},{"type":"address","name":"_rewardToken","internalType":"address"},{"type":"address","name":"_router","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"autoBurnFees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"autoBurnFeesSetup","inputs":[{"type":"uint16","name":"_buyFee","internalType":"uint16"},{"type":"uint16","name":"_sellFee","internalType":"uint16"},{"type":"uint16","name":"_transferFee","internalType":"uint16"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burnFrom","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"claim","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimWaitSetup","inputs":[{"type":"uint256","name":"claimWait","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dividendTokenBalanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dividendTokenTotalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract DividendTracker"}],"name":"dividendTracker","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes1","name":"fields","internalType":"bytes1"},{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"version","internalType":"string"},{"type":"uint256","name":"chainId","internalType":"uint256"},{"type":"address","name":"verifyingContract","internalType":"address"},{"type":"bytes32","name":"salt","internalType":"bytes32"},{"type":"uint256[]","name":"extensions","internalType":"uint256[]"}],"name":"eip712Domain","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromDividends","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"isExcluded","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"excludeFromFees","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bool","name":"isExcluded","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"gasForProcessing","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"gasForProcessingSetup","inputs":[{"type":"uint256","name":"newGasForProcessing","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"int256","name":"","internalType":"int256"},{"type":"int256","name":"","internalType":"int256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccountDividendsInfo","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"int256","name":"","internalType":"int256"},{"type":"int256","name":"","internalType":"int256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccountDividendsInfoAtIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAllPending","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getClaimWait","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getLastProcessedIndex","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getNumberOfDividendTokenHolders","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getSwapThresholdAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalDividendsDistributed","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromDividends","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromFees","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pairV2","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pendingOwner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pewswapAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pewswapAddressSetup","inputs":[{"type":"address","name":"_newAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"pewswapFees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pewswapFeesSetup","inputs":[{"type":"uint16","name":"_buyFee","internalType":"uint16"},{"type":"uint16","name":"_sellFee","internalType":"uint16"},{"type":"uint16","name":"_transferFee","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"iterations","internalType":"uint256"},{"type":"uint256","name":"claims","internalType":"uint256"}],"name":"process","inputs":[{"type":"uint256","name":"gas","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverForeignERC20","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverToken","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"rewardToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"rewardsFees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rewardsFeesSetup","inputs":[{"type":"uint16","name":"_buyFee","internalType":"uint16"},{"type":"uint16","name":"_sellFee","internalType":"uint16"},{"type":"uint16","name":"_transferFee","internalType":"uint16"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IPulseXRouter02"}],"name":"routerV2","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAMM","inputs":[{"type":"address","name":"AMM","internalType":"address"},{"type":"bool","name":"isAMM","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"swapThresholdRatio","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"totalFees","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"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":"function","stateMutability":"nonpayable","outputs":[],"name":"updateSwapThreshold","inputs":[{"type":"uint16","name":"_swapThresholdRatio","internalType":"uint16"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"withdrawableDividendOf","inputs":[{"type":"address","name":"account","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x61016060405234801561001157600080fd5b5060405180604001604052806008815260200167506577737761703160c01b8152503381604051806040016040528060018152602001603160f81b81525060405180604001604052806008815260200167506577737761703160c01b81525060405180604001604052806008815260200167506577737761703160c01b81525081600390816100a09190611f5b565b5060046100ad8282611f5b565b506100bd915083905060056102d7565b610120526100cc8160066102d7565b61014052815160208084019190912060e052815190820120610100524660a05261015960e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b03811661019157604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61019a8161030a565b5050333b6101a757600080fd5b73c1ace52a060d779e45471a7e1dc1127844d24f656101c66032610326565b6101e373c1ace52a060d779e45471a7e1dc1127844d24f656103bf565b6101f06000601981610459565b6101fd6032601981610642565b61022b61a8c0600a610210601282612114565b61021c90612710612123565b610226919061213a565b6107d9565b6102376207a12061085b565b610243603280806108cc565b61024e816001610a5a565b610259306001610a5a565b600a54610270906001600160a01b03166001610a5a565b61027b816001610af6565b610286306001610af6565b6102b481600a610297601282612114565b6102a590639502f900612123565b6102af919061213a565b610b5d565b6102d173c1ace52a060d779e45471a7e1dc1127844d24f6561030a565b50612367565b60006020835110156102f3576102ec83610b97565b9050610304565b816102fe8482611f5b565b5060ff90505b92915050565b600980546001600160a01b031916905561032381610bd5565b50565b61032e610c27565b61ffff8116158061034457506101f48161ffff16115b1561036857604051631958d05f60e01b815261ffff82166004820152602401610188565b600d805461ffff60a01b1916600160a01b61ffff8416908102919091179091556040519081527fcf1366790fe21e66c9df9dcf67218b1e10acd64d3c99ae8a7429a68de91f1720906020015b60405180910390a150565b6103c7610c27565b6001600160a01b0381166103f15760405163ab11818760e01b815260006004820152602401610188565b601080546001600160a01b0319166001600160a01b038316179055610417816001610af6565b6040516001600160a01b03821681526001907ff8e79c3705e6b93e151f4c2166fe019e81a78204037fb9913b261eeb877218d99060200160405180910390a250565b610461610c27565b601154601554849161047a9161ffff9182169116612172565b6104849190612194565b6015805461ffff191661ffff928316179081905560115484926104b4926201000092839004821692900416612172565b6104be9190612194565b6015805463ffff000019166201000061ffff93841602179081905560115483926104f79264010000000092839004821692900416612172565b6105019190612194565b6015805461ffff9283166401000000000261ffff60201b19821681179092556109c49083169190921617118061054557506015546109c46201000090910461ffff16115b8061056057506015546109c464010000000090910461ffff16115b156105c157601560005b60108104919091015460155460405163b7b3de6f60e01b8152600f9093166002026101000a90910461ffff908116600484015262010000820481166024840152640100000000909104166044820152606401610188565b6040805160608101825261ffff808616825284811660208301528316918101919091526105f2906011906003611e0b565b506040805161ffff8581168252848116602083015283168183015290516001917f5aa2b88de73e9b93e574fbaf914e53e45e2ba25f25692e6e0ba4e0d3c33f9d5a919081900360600190a2505050565b61064a610c27565b60125460155484916106639161ffff9182169116612172565b61066d9190612194565b6015805461ffff191661ffff9283161790819055601254849261069d926201000092839004821692900416612172565b6106a79190612194565b6015805463ffff000019166201000061ffff93841602179081905560125483926106e09264010000000092839004821692900416612172565b6106ea9190612194565b6015805461ffff9283166401000000000261ffff60201b19821681179092556109c49083169190921617118061072e57506015546109c46201000090910461ffff16115b8061074957506015546109c464010000000090910461ffff16115b15610757576015600061056a565b6040805160608101825261ffff80861682528481166020830152831691810191909152610788906012906003611e0b565b506040805161ffff808616825280851660208301528316918101919091527f246bc0f3dffec30af9e2e08d888e72406842f0c6609a2f834bf29a6208b2b97a906060015b60405180910390a1505050565b81816040516107e790611ea1565b9182526020820152604001604051809103906000f08015801561080e573d6000803e3d6000fd5b50600a80546001600160a01b0319166001600160a01b039290921691821790556040517f5a9eee832e9ca9f7d2110f2cee781d010262c4c3d74b9f1e4ca1b8e3861a8d0190600090a25050565b610863610c27565b62030d4081108061087657506207a12081115b156108975760405163074242a560e31b815260048101829052602401610188565b600b8190556040518181527f1662a2324457a200b9556dfe949641639b99480ee6b448aefcfb97ee61ec2417906020016103b4565b6108d4610c27565b60135460155484916108ed9161ffff9182169116612172565b6108f79190612194565b6015805461ffff191661ffff92831617908190556013548492610927926201000092839004821692900416612172565b6109319190612194565b6015805463ffff000019166201000061ffff938416021790819055601354839261096a9264010000000092839004821692900416612172565b6109749190612194565b6015805461ffff9283166401000000000261ffff60201b19821681179092556109c4908316919092161711806109b857506015546109c46201000090910461ffff16115b806109d357506015546109c464010000000090910461ffff16115b156109e1576015600061056a565b6040805160608101825261ffff80861682528481166020830152831691810191909152610a12906013906003611e0b565b506040805161ffff808616825280851660208301528316918101919091527f3ec8f17d924721910a043bef5d818361423756fcd3cc52e2c46a1139acbb7692906060016107cc565b600a546001600160a01b031663d1fbb84e83610a8b816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015283151560448201526064015b600060405180830381600087803b158015610ada57600080fd5b505af1158015610aee573d6000803e3d6000fd5b505050505050565b610afe610c27565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216610b875760405163ec442f0560e01b815260006004820152602401610188565b610b9360008383610c56565b5050565b600080829050601f81511115610bc2578260405163305a27a960e01b815260040161018891906121d3565b8051610bcd82612206565b179392505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314610c545760405163118cdaa760e01b8152336004820152602401610188565b565b6001600160a01b03831615801590610c7657506001600160a01b03821615155b156112a75760165460ff16158015610c8e5750600081115b8015610cb357506001600160a01b03831660009081526014602052604090205460ff16155b8015610cd857506001600160a01b03821660009081526014602052604090205460ff16155b156110a7576001600160a01b03831660009081526018602052604081205460039060ff168015610d2157506001600160a01b03841660009081526018602052604090205460ff16155b15610d3b5760155461ffff1615610d36575060005b610dfa565b6001600160a01b03841660009081526018602052604090205460ff168015610d7c57506001600160a01b03851660009081526018602052604090205460ff16155b15610d9b5760155462010000900461ffff1615610d3657506001610dfa565b6001600160a01b03851660009081526018602052604090205460ff16158015610ddd57506001600160a01b03841660009081526018602052604090205460ff16155b15610dfa57601554640100000000900461ffff1615610dfa575060025b60038160ff16101561109357600061271060158360ff1660038110610e2157610e2161215c565b601091828204019190066002029054906101000a900461ffff1661ffff1685610e4a9190612123565b610e54919061213a565b9250610e60838561222a565b935060158260ff1660038110610e7857610e7861215c565b601091828204019190066002029054906101000a900461ffff1661ffff1660118360ff1660038110610eac57610eac61215c565b601091828204019190066002029054906101000a900461ffff1661ffff1684610ed59190612123565b610edf919061213a565b600e6000828254610ef0919061223d565b9091555060009050601260ff841660038110610f0e57610f0e61215c565b601091828204019190066002029054906101000a900461ffff1661ffff161115610ff15760158260ff1660038110610f4857610f4861215c565b601091828204019190066002029054906101000a900461ffff1661ffff1660128360ff1660038110610f7c57610f7c61215c565b601091828204019190066002029054906101000a900461ffff1661ffff1684610fa59190612123565b610faf919061213a565b9050610fbd86600083611479565b6040518181527fc0881daff2be95a16d66320aeb3ddd71b3595c99533ef75c5fc81796609866ff9060200160405180910390a15b60158260ff16600381106110075761100761215c565b601091828204019190066002029054906101000a900461ffff1661ffff1660138360ff166003811061103b5761103b61215c565b601091828204019190066002029054906101000a900461ffff1661ffff16846110649190612123565b61106e919061213a565b600f600082825461107f919061223d565b9091555061108f9050818461222a565b9250505b81156110a4576110a4853084611479565b50505b60006110b16115a3565b6110b96115eb565b101580156110df57506017546001600160a01b0316600090815260208190526040812054115b60165490915060ff1615801561110357506017546001600160a01b03858116911614155b801561112257506016546001600160a01b038581166101009092041614155b801561112b5750805b156112a5576016805460ff191660011790556000600e54111561126a576000600e546000611159919061223d565b9050600061116682611609565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156111af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d39190612250565b9050600083600e54836111e69190612123565b6111f0919061213a565b905080156112605760105461120e906001600160a01b031682611768565b9250821561126057601054604080516001600160a01b039092168252602082018390526001917f4b1a0df20e469b24231f59741640137b104320272da39777bdf2800ac99de1e0910160405180910390a25b50506000600e5550505b6000600f5411801561128357506000611281611789565b115b1561129a57600f54611294906117f7565b6000600f555b6016805460ff191690555b505b6112b2838383611479565b6001600160a01b0383161561135157600a546001600160a01b031663e30443bc846112f2816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561133857600080fd5b505af115801561134c573d6000803e3d6000fd5b505050505b6001600160a01b038216156113f057600a546001600160a01b031663e30443bc83611391816001600160a01b031660009081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156113d757600080fd5b505af11580156113eb573d6000803e3d6000fd5b505050505b60165460ff1661147457600a54600b546040516001624d3b8760e01b031981526001600160a01b039092169163ffb2c479916114329160040190815260200190565b60408051808303816000875af192505050801561146c575060408051601f3d908101601f1916820190925261146991810190612269565b60015b156114745750505b505050565b6001600160a01b0383166114a4578060026000828254611499919061223d565b909155506115169050565b6001600160a01b038316600090815260208190526040902054818110156114f75760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610188565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661153257600280548290039055611551565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161159691815260200190565b60405180910390a3505050565b600d546017546001600160a01b03166000908152602081905260408120549091612710916115dc91600160a01b900461ffff1690612123565b6115e6919061213a565b905090565b6000600f54600e5460006115ff919061223d565b6115e6919061223d565b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106116405761164061215c565b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d7919061228d565b816001815181106116ea576116ea61215c565b6001600160a01b039283166020918202929092010152600d5482519116908290600290811061171b5761171b61215c565b6001600160a01b039283166020918202929092010152601654604051635c11d79560e01b815261010090910490911690635c11d79590610ac09085906000908690309042906004016122b6565b600d54600090611782906001600160a01b03168484611925565b9392505050565b600a54604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa1580156117d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e69190612250565b6118008161199b565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186d9190612250565b90508015610b9357600a54600c54611892916001600160a01b03918216911683611aad565b600a54604051633243c79160e01b8152600481018390526001600160a01b0390911690633243c79190602401600060405180830381600087803b1580156118d857600080fd5b505af19250505080156118e9575060015b15610b93576040518181527f1e8f03f716bc104bf7d728131967a0c771e85ab54d09c1e2d6ed9e0bc4e2a16c9060200160405180910390a15050565b600061199384856001600160a01b031663a9059cbb86866040516024016119619291906001600160a01b03929092168252602082015260400190565b60408051808303601f1901815291905260208101805160e09390931b6001600160e01b039384161790529150611b3d16565b949350505050565b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106119d2576119d261215c565b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a69919061228d565b81600181518110611a7c57611a7c61215c565b6001600160a01b039283166020918202929092010152600c5482519116908290600290811061171b5761171b61215c565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015611afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b219190612250565b9050611b378484611b32858561223d565b611be5565b50505050565b6000806000846001600160a01b031684604051611b5a9190612329565b6000604051808303816000865af19150503d8060008114611b97576040519150601f19603f3d011682016040523d82523d6000602084013e611b9c565b606091505b5091509150818015611bc6575080511580611bc6575080806020019051810190611bc69190612345565b8015611bdc57506000856001600160a01b03163b115b95945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152611c3d9085908390611b3d16565b611b3757604080516001600160a01b038516602482015260006044808301919091528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152611c9a918691611ca016565b611b3784825b6000611cb56001600160a01b03841683611d03565b90508051600014158015611cda575080806020019051810190611cd89190612345565b155b1561147457604051635274afe760e01b81526001600160a01b0384166004820152602401610188565b60606117828383600084600080856001600160a01b03168486604051611d299190612329565b60006040518083038185875af1925050503d8060008114611d66576040519150601f19603f3d011682016040523d82523d6000602084013e611d6b565b606091505b509092509050611d7c868383611d86565b9695505050505050565b606082611d9b57611d9682611de2565b611782565b8151158015611db257506001600160a01b0384163b155b15611ddb57604051639996b31560e01b81526001600160a01b0385166004820152602401610188565b5080611782565b805115611df25780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600183019183908215611e915791602002820160005b83821115611e6157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302611e21565b8015611e8f5782816101000a81549061ffff0219169055600201602081600101049283019260010302611e61565b505b50611e9d929150611eae565b5090565b611cd38061613283390190565b5b80821115611e9d5760008155600101611eaf565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680611eed57607f821691505b602082108103611f0d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115611474576000816000526020600020601f850160051c81016020861015611f3c5750805b601f850160051c820191505b81811015610aee57828155600101611f48565b81516001600160401b03811115611f7457611f74611ec3565b611f8881611f828454611ed9565b84611f13565b602080601f831160018114611fbd5760008415611fa55750858301515b600019600386901b1c1916600185901b178555610aee565b600085815260208120601f198616915b82811015611fec57888601518255948401946001909101908401611fcd565b508582101561200a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561206b5781600019048211156120515761205161201a565b8085161561205e57918102915b93841c9390800290612035565b509250929050565b60008261208257506001610304565b8161208f57506000610304565b81600181146120a557600281146120af576120cb565b6001915050610304565b60ff8411156120c0576120c061201a565b50506001821b610304565b5060208310610133831016604e8410600b84101617156120ee575081810a610304565b6120f88383612030565b806000190482111561210c5761210c61201a565b029392505050565b600061178260ff841683612073565b80820281158282048414176103045761030461201a565b60008261215757634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b61ffff82811682821603908082111561218d5761218d61201a565b5092915050565b61ffff81811683821601908082111561218d5761218d61201a565b60005b838110156121ca5781810151838201526020016121b2565b50506000910152565b60208152600082518060208401526121f28160408501602087016121af565b601f01601f19169190910160400192915050565b80516020808301519190811015611f0d5760001960209190910360031b1b16919050565b818103818111156103045761030461201a565b808201808211156103045761030461201a565b60006020828403121561226257600080fd5b5051919050565b6000806040838503121561227c57600080fd5b505080516020909101519092909150565b60006020828403121561229f57600080fd5b81516001600160a01b038116811461178257600080fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156123085784516001600160a01b0316835293830193918301916001016122e3565b50506001600160a01b03969096166060850152505050608001529392505050565b6000825161233b8184602087016121af565b9190910192915050565b60006020828403121561235757600080fd5b8151801515811461178257600080fd5b60805160a05160c05160e051610100516101205161014051613d716123c16000396000611e5601526000611e2901526000611d8201526000611d5a01526000611cb501526000611cdf01526000611d090152613d716000f3fe608060405234801561001057600080fd5b50600436106103af5760003560e01c80638062651a116101f4578063c705c5691161011a578063f112ba72116100ad578063f7dcdcce1161007c578063f7dcdcce1461083a578063fc30efd91461084d578063fe9fd7b714610860578063ffb2c4791461087357600080fd5b8063f112ba72146107f9578063f27fd25414610801578063f2fde38b14610814578063f7c618c11461082757600080fd5b8063dd62ed3e116100e9578063dd62ed3e14610794578063e30c3978146107cd578063e73b17d0146107de578063e7841ec0146107f157600080fd5b8063c705c56914610753578063cb1a233d14610766578063d505accf14610779578063d94775261461078c57600080fd5b8063a26579ad11610192578063a9d3cd8a11610161578063a9d3cd8a146106c2578063abc73826146106d5578063ad56c13c146106e8578063c02466681461074057600080fd5b8063a26579ad14610681578063a6ddc42514610689578063a8b9d2401461069c578063a9059cbb146106af57600080fd5b80638fffabed116101ce5780638fffabed1461064a578063957086ab1461065d57806395d89b41146106705780639c1b8af51461067857600080fd5b80638062651a1461060b57806384b0196e1461061e5780638da5cb5b1461063957600080fd5b80634e71d92d116102d95780636c9e28aa11610277578063715018a611610246578063715018a6146105d557806379ba5097146105dd57806379cc6790146105e55780637ecebe00146105f857600080fd5b80636c9e28aa146105895780636cc9c8f11461059c5780636d52577e146105af57806370a08231146105c257600080fd5b8063502f7446116102b3578063502f744614610543578063647846a51461055b57806364b0f6531461056e5780636843cd841461057657600080fd5b80634e71d92d146105035780634f011b831461050b5780634fbee1931461052057600080fd5b8063294aad9c11610351578063313ce56711610320578063313ce567146104b35780633644e515146104c2578063408ccbdf146104ca57806342966c68146104f057600080fd5b8063294aad9c146104655780632c1f52161461046d5780632f267e291461049857806330bb4cff146104ab57600080fd5b806318160ddd1161038d57806318160ddd1461040a5780631a0e718c1461041c5780631e9fe6c61461042f57806323b872dd1461045257600080fd5b80630483f7a0146103b457806306fdde03146103c9578063095ea7b3146103e7575b600080fd5b6103c76103c2366004613776565b61089b565b005b6103d16108b1565b6040516103de91906137ff565b60405180910390f35b6103fa6103f5366004613812565b610943565b60405190151581526020016103de565b6002545b6040519081526020016103de565b6103c761042a366004613855565b61095d565b6103fa61043d366004613870565b60186020526000908152604090205460ff1681565b6103fa61046036600461388d565b6109fb565b61040e610a21565b600a54610480906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b6103c76104a63660046138ce565b610a94565b61040e610b05565b604051601281526020016103de565b61040e610b4f565b6104dd6104d83660046138ce565b610b59565b60405161ffff90911681526020016103de565b6103c76104fe3660046138ce565b610b87565b6103fa610b94565b600d546104dd90600160a01b900461ffff1681565b6103fa61052e366004613870565b60146020526000908152604090205460ff1681565b6016546104809061010090046001600160a01b031681565b600d54610480906001600160a01b031681565b61040e610c03565b61040e610584366004613870565b610c4d565b6103c76105973660046138e7565b610cbd565b6103c76105aa3660046138ce565b610ea4565b6103c76105bd3660046138e7565b610f0d565b61040e6105d0366004613870565b6110a1565b6103c76110bc565b6103c76110d0565b6103c76105f3366004613812565b611111565b61040e610606366004613870565b611126565b6103c76106193660046138e7565b611144565b6106266112d0565b6040516103de979695949392919061392a565b6008546001600160a01b0316610480565b601754610480906001600160a01b031681565b6103c761066b366004613870565b611316565b6103d16113b0565b61040e600b5481565b61040e6113bf565b6104dd6106973660046138ce565b611409565b61040e6106aa366004613870565b611419565b6103fa6106bd366004613812565b61144c565b6103c76106d0366004613776565b61145a565b6103c76106e33660046139c3565b6114c3565b6106fb6106f6366004613870565b6115b9565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103de565b6103c761074e366004613776565b611654565b6103fa610761366004613870565b6116bc565b6103c76107743660046138ce565b61172b565b6103c7610787366004613a0e565b611788565b61040e6118c2565b61040e6107a2366004613a85565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6009546001600160a01b0316610480565b6103c76107ec366004613812565b611902565b61040e611952565b61040e61199c565b6106fb61080f3660046138ce565b6119ba565b6103c7610822366004613870565b6119fc565b600c54610480906001600160a01b031681565b6104dd6108483660046138ce565b611a6d565b601054610480906001600160a01b031681565b6104dd61086e3660046138ce565b611a7d565b6108866108813660046138ce565b611a8d565b604080519283526020830191909152016103de565b6108a3611b0c565b6108ad8282611b39565b5050565b6060600380546108c090613ab3565b80601f01602080910402602001604051908101604052809291908181526020018280546108ec90613ab3565b80156109395780601f1061090e57610100808354040283529160200191610939565b820191906000526020600020905b81548152906001019060200180831161091c57829003601f168201915b5050505050905090565b600033610951818585611bbf565b60019150505b92915050565b610965611b0c565b61ffff8116158061097b57506101f48161ffff16115b156109a457604051631958d05f60e01b815261ffff821660048201526024015b60405180910390fd5b600d805461ffff60a01b1916600160a01b61ffff8416908102919091179091556040519081527fcf1366790fe21e66c9df9dcf67218b1e10acd64d3c99ae8a7429a68de91f1720906020015b60405180910390a150565b600033610a09858285611bd1565b610a14858585611c49565b60019150505b9392505050565b600a54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190613aed565b905090565b610a9c611b0c565b62030d40811080610aaf57506207a12081115b15610ad05760405163074242a560e31b81526004810182905260240161099b565b600b8190556040518181527f1662a2324457a200b9556dfe949641639b99480ee6b448aefcfb97ee61ec2417906020016109f0565b600a54604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b6000610a8f611ca8565b60158160038110610b6957600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b610b913382611dd3565b50565b600a54604051630f41a04d60e11b81523360048201526000916001600160a01b031690631e83409a906024016020604051808303816000875af1158015610bdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190613b06565b600a54604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b600a546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190613aed565b610cc5611b0c565b6012546015548491610cde9161ffff9182169116613b4f565b610ce89190613b71565b6015805461ffff191661ffff92831617908190556012548492610d18926201000092839004821692900416613b4f565b610d229190613b71565b6015805463ffff000019166201000061ffff9384160217908190556012548392610d5a92600160201b92839004821692900416613b4f565b610d649190613b71565b6015805461ffff928316600160201b0265ffff0000000019821681179092556109c490831691909216171180610da857506015546109c46201000090910461ffff16115b80610dc257506015546109c4600160201b90910461ffff16115b15610e2257601560005b60108104919091015460155460405163b7b3de6f60e01b8152600f9093166002026101000a90910461ffff908116600484015262010000820481166024840152600160201b90910416604482015260640161099b565b6040805160608101825261ffff80861682528481166020830152831691810191909152610e539060129060036136a8565b506040805161ffff808616825280851660208301528316918101919091527f246bc0f3dffec30af9e2e08d888e72406842f0c6609a2f834bf29a6208b2b97a906060015b60405180910390a1505050565b610eac611b0c565b600a54604051636cc9c8f160e01b8152600481018390526001600160a01b0390911690636cc9c8f190602401600060405180830381600087803b158015610ef257600080fd5b505af1158015610f06573d6000803e3d6000fd5b5050505050565b610f15611b0c565b6011546015548491610f2e9161ffff9182169116613b4f565b610f389190613b71565b6015805461ffff191661ffff92831617908190556011548492610f68926201000092839004821692900416613b4f565b610f729190613b71565b6015805463ffff000019166201000061ffff9384160217908190556011548392610faa92600160201b92839004821692900416613b4f565b610fb49190613b71565b6015805461ffff928316600160201b0265ffff0000000019821681179092556109c490831691909216171180610ff857506015546109c46201000090910461ffff16115b8061101257506015546109c4600160201b90910461ffff16115b156110205760156000610dcc565b6040805160608101825261ffff808616825284811660208301528316918101919091526110519060119060036136a8565b506040805161ffff8581168252848116602083015283168183015290516001917f5aa2b88de73e9b93e574fbaf914e53e45e2ba25f25692e6e0ba4e0d3c33f9d5a919081900360600190a2505050565b6001600160a01b031660009081526020819052604090205490565b6110c4611b0c565b6110ce6000611e09565b565b60095433906001600160a01b031681146111085760405163118cdaa760e01b81526001600160a01b038216600482015260240161099b565b610b9181611e09565b61111c823383611bd1565b6108ad8282611dd3565b6001600160a01b038116600090815260076020526040812054610957565b61114c611b0c565b60135460155484916111659161ffff9182169116613b4f565b61116f9190613b71565b6015805461ffff191661ffff9283161790819055601354849261119f926201000092839004821692900416613b4f565b6111a99190613b71565b6015805463ffff000019166201000061ffff93841602179081905560135483926111e192600160201b92839004821692900416613b4f565b6111eb9190613b71565b6015805461ffff928316600160201b0265ffff0000000019821681179092556109c49083169190921617118061122f57506015546109c46201000090910461ffff16115b8061124957506015546109c4600160201b90910461ffff16115b156112575760156000610dcc565b6040805160608101825261ffff808616825284811660208301528316918101919091526112889060139060036136a8565b506040805161ffff808616825280851660208301528316918101919091527f3ec8f17d924721910a043bef5d818361423756fcd3cc52e2c46a1139acbb769290606001610e97565b6000606080600080600060606112e4611e22565b6112ec611e4f565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b61131e611b0c565b6001600160a01b0381166113485760405163ab11818760e01b81526000600482015260240161099b565b601080546001600160a01b0319166001600160a01b03831617905561136e816001611654565b6040516001600160a01b03821681526001907ff8e79c3705e6b93e151f4c2166fe019e81a78204037fb9913b261eeb877218d99060200160405180910390a250565b6060600480546108c090613ab3565b600a5460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b60138160038110610b6957600080fd5b600a546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610c7c565b600033610951818585611c49565b611462611b0c565b6017546001600160a01b038381169116148061149057506016546001600160a01b0383811661010090920416145b156114b95760405163435eaf7b60e11b81526001600160a01b038316600482015260240161099b565b6108ad8282611e7c565b600c54600160a81b900460ff16806114e55750600c54600160a01b900460ff16155b6115485760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161099b565b600c54600160a81b900460ff1615801561157257600c805461ffff60a01b191661010160a01b1790555b600d80546001600160a01b0319166001600160a01b03861617905561159683611ef1565b61159f82611f73565b80156115b357600c805460ff60a81b191690555b50505050565b600a54604051632ebc328760e11b81526001600160a01b0383811660048301526000928392839283928392839283928392911690635d78650e906024015b61010060405180830381865afa158015611615573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116399190613b8c565b97509750975097509750975097509750919395975091939597565b61165c611b0c565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791015b60405180910390a25050565b600a5460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa158015611707573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190613b06565b611733611b0c565b600061173d61199c565b611746306110a1565b6117509190613bf6565b90508082111561177d57604051634d2e924b60e01b8152600481018390526024810182905260440161099b565b6108ad30338461218e565b834211156117ac5760405163313c898160e11b81526004810185905260240161099b565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886117f98c6001600160a01b0316600090815260076020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006118548261297f565b90506000611864828787876129ac565b9050896001600160a01b0316816001600160a01b0316146118ab576040516325c0072360e11b81526001600160a01b0380831660048301528b16602482015260440161099b565b6118b68a8a8a611bbf565b50505050505050505050565b600d5460175460009161271091600160a01b90910461ffff16906118ee906001600160a01b03166110a1565b6118f89190613c09565b610a8f9190613c20565b61190a611b0c565b306001600160a01b0383160361193e5760405163961c9a4f60e01b81526001600160a01b038316600482015260240161099b565b6108ad6001600160a01b03831633836129da565b600a5460408051633009a60960e01b815290516000926001600160a01b031691633009a6099160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b6000600f54600e5460006119b09190613c42565b610a8f9190613c42565b600a54604051632f7541e960e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690632f7541e9906024016115f7565b611a04611b0c565b600980546001600160a01b0383166001600160a01b03199091168117909155611a356008546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60128160038110610b6957600080fd5b60118160038110610b6957600080fd5b600a546040516001624d3b8760e01b031981526004810183905260009182916001600160a01b039091169063ffb2c4799060240160408051808303816000875af1158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b039190613c55565b91509150915091565b6008546001600160a01b031633146110ce5760405163118cdaa760e01b815233600482015260240161099b565b600a546001600160a01b031663d1fbb84e83611b54816110a1565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015283151560448201526064015b600060405180830381600087803b158015611ba357600080fd5b505af1158015611bb7573d6000803e3d6000fd5b505050505050565b611bcc8383836001612a39565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146115b35781811015611c3a57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161099b565b6115b384848484036000612a39565b6001600160a01b038316611c7357604051634b637e8f60e11b81526000600482015260240161099b565b6001600160a01b038216611c9d5760405163ec442f0560e01b81526000600482015260240161099b565b611bcc83838361218e565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611d0157507f000000000000000000000000000000000000000000000000000000000000000046145b15611d2b57507f000000000000000000000000000000000000000000000000000000000000000090565b610a8f604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6001600160a01b038216611dfd57604051634b637e8f60e11b81526000600482015260240161099b565b6108ad8260008361218e565b600980546001600160a01b0319169055610b9181612b0e565b6060610a8f7f00000000000000000000000000000000000000000000000000000000000000006005612b60565b6060610a8f7f00000000000000000000000000000000000000000000000000000000000000006006612b60565b6001600160a01b0382166000908152601860205260409020805460ff19168215801591909117909155611eb457611eb4826001611b39565b816001600160a01b03167f2cc8631dda80fe178488d3174721fafacf84b0f194a7eddae85c9bcc599ac78b826040516116b0911515815260200190565b600a54604051638aee812760e01b81526001600160a01b03838116600483015290911690638aee812790602401600060405180830381600087803b158015611f3857600080fd5b505af1158015611f4c573d6000803e3d6000fd5b5050600c80546001600160a01b0319166001600160a01b0394909416939093179092555050565b80601660016101000a8154816001600160a01b0302191690836001600160a01b03160217905550601660019054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120119190613c79565b6001600160a01b031663c9c6539630601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612073573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120979190613c79565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156120e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121089190613c79565b601780546001600160a01b0319166001600160a01b03929092169190911790556121353082600019611bbf565b612140816001611e7c565b601754612157906001600160a01b03166001611e7c565b6040516001600160a01b038216907fbc052db65df144ad4f71f02da93cae3d4401104c30ac374d7cc10d87ee07b60290600090a250565b6001600160a01b038316158015906121ae57506001600160a01b03821615155b156127da5760165460ff161580156121c65750600081115b80156121eb57506001600160a01b03831660009081526014602052604090205460ff16155b801561221057506001600160a01b03821660009081526014602052604090205460ff16155b156125de576001600160a01b03831660009081526018602052604081205460039060ff16801561225957506001600160a01b03841660009081526018602052604090205460ff16155b156122735760155461ffff161561226e575060005b612331565b6001600160a01b03841660009081526018602052604090205460ff1680156122b457506001600160a01b03851660009081526018602052604090205460ff16155b156122d35760155462010000900461ffff161561226e57506001612331565b6001600160a01b03851660009081526018602052604090205460ff1615801561231557506001600160a01b03841660009081526018602052604090205460ff16155b1561233157601554600160201b900461ffff1615612331575060025b60038160ff1610156125ca57600061271060158360ff166003811061235857612358613b23565b601091828204019190066002029054906101000a900461ffff1661ffff16856123819190613c09565b61238b9190613c20565b92506123978385613bf6565b935060158260ff16600381106123af576123af613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1660118360ff16600381106123e3576123e3613b23565b601091828204019190066002029054906101000a900461ffff1661ffff168461240c9190613c09565b6124169190613c20565b600e60008282546124279190613c42565b9091555060009050601260ff84166003811061244557612445613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1611156125285760158260ff166003811061247f5761247f613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1660128360ff16600381106124b3576124b3613b23565b601091828204019190066002029054906101000a900461ffff1661ffff16846124dc9190613c09565b6124e69190613c20565b90506124f486600083612c0b565b6040518181527fc0881daff2be95a16d66320aeb3ddd71b3595c99533ef75c5fc81796609866ff9060200160405180910390a15b60158260ff166003811061253e5761253e613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1660138360ff166003811061257257612572613b23565b601091828204019190066002029054906101000a900461ffff1661ffff168461259b9190613c09565b6125a59190613c20565b600f60008282546125b69190613c42565b909155506125c690508184613bf6565b9250505b81156125db576125db853084612c0b565b50505b60006125e86118c2565b6125f061199c565b101580156126135750601754600090612611906001600160a01b03166110a1565b115b60165490915060ff1615801561263757506017546001600160a01b03858116911614155b801561265657506016546001600160a01b038581166101009092041614155b801561265f5750805b156127d8576016805460ff191660011790556000600e54111561279e576000600e54600061268d9190613c42565b9050600061269a82612d35565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156126e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127079190613aed565b9050600083600e548361271a9190613c09565b6127249190613c20565b9050801561279457601054612742906001600160a01b031682612e94565b9250821561279457601054604080516001600160a01b039092168252602082018390526001917f4b1a0df20e469b24231f59741640137b104320272da39777bdf2800ac99de1e0910160405180910390a25b50506000600e5550505b6000600f541180156127b7575060006127b5610c03565b115b156127cd576127c7600f54612eae565b6000600f555b6016805460ff191690555b505b6127e5838383612c0b565b6001600160a01b0383161561286e57600a546001600160a01b031663e30443bc8461280f816110a1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561285557600080fd5b505af1158015612869573d6000803e3d6000fd5b505050505b6001600160a01b038216156128f757600a546001600160a01b031663e30443bc83612898816110a1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156128de57600080fd5b505af11580156128f2573d6000803e3d6000fd5b505050505b60165460ff16611bcc57600a54600b546040516001624d3b8760e01b031981526001600160a01b039092169163ffb2c479916129399160040190815260200190565b60408051808303816000875af1925050508015612973575060408051601f3d908101601f1916820190925261297091810190613c55565b60015b15611bcc575050505050565b600061095761298c611ca8565b8360405161190160f01b8152600281019290925260228201526042902090565b6000806000806129be88888888612fdc565b9250925092506129ce82826130ab565b50909695505050505050565b6040516001600160a01b03838116602483015260448201839052611bcc91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613164565b6001600160a01b038416612a635760405163e602df0560e01b81526000600482015260240161099b565b6001600160a01b038316612a8d57604051634a1406b160e11b81526000600482015260240161099b565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156115b357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051612b0091815260200190565b60405180910390a350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff8314612b7a57612b73836131c7565b9050610957565b818054612b8690613ab3565b80601f0160208091040260200160405190810160405280929190818152602001828054612bb290613ab3565b8015612bff5780601f10612bd457610100808354040283529160200191612bff565b820191906000526020600020905b815481529060010190602001808311612be257829003601f168201915b50505050509050610957565b6001600160a01b038316612c36578060026000828254612c2b9190613c42565b90915550612ca89050565b6001600160a01b03831660009081526020819052604090205481811015612c895760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161099b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216612cc457600280548290039055612ce3565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612d2891815260200190565b60405180910390a3505050565b60408051600380825260808201909252600091602082016060803683370190505090503081600081518110612d6c57612d6c613b23565b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ddf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e039190613c79565b81600181518110612e1657612e16613b23565b6001600160a01b039283166020918202929092010152600d54825191169082906002908110612e4757612e47613b23565b6001600160a01b039283166020918202929092010152601654604051635c11d79560e01b815261010090910490911690635c11d79590611b89908590600090869030904290600401613c96565b600d54600090610a1a906001600160a01b03168484613206565b612eb78161327c565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f249190613aed565b905080156108ad57600a54600c54612f49916001600160a01b0391821691168361338e565b600a54604051633243c79160e01b8152600481018390526001600160a01b0390911690633243c79190602401600060405180830381600087803b158015612f8f57600080fd5b505af1925050508015612fa0575060015b156108ad576040518181527f1e8f03f716bc104bf7d728131967a0c771e85ab54d09c1e2d6ed9e0bc4e2a16c9060200160405180910390a15050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561301757506000915060039050826130a1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561306b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613097575060009250600191508290506130a1565b9250600091508190505b9450945094915050565b60008260038111156130bf576130bf613d09565b036130c8575050565b60018260038111156130dc576130dc613d09565b036130fa5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561310e5761310e613d09565b0361312f5760405163fce698f760e01b81526004810182905260240161099b565b600382600381111561314357613143613d09565b036108ad576040516335e2f38360e21b81526004810182905260240161099b565b60006131796001600160a01b03841683613418565b9050805160001415801561319e57508080602001905181019061319c9190613b06565b155b15611bcc57604051635274afe760e01b81526001600160a01b038416600482015260240161099b565b606060006131d483613426565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600061327484856001600160a01b031663a9059cbb86866040516024016132429291906001600160a01b03929092168252602082015260400190565b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061344e565b949350505050565b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106132b3576132b3613b23565b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061334a9190613c79565b8160018151811061335d5761335d613b23565b6001600160a01b039283166020918202929092010152600c54825191169082906002908110612e4757612e47613b23565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156133de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134029190613aed565b90506115b384846134138585613c42565b6134f6565b6060610a1a83836000613586565b600060ff8216601f81111561095757604051632cd44ac360e21b815260040160405180910390fd5b6000806000846001600160a01b03168460405161346b9190613d1f565b6000604051808303816000865af19150503d80600081146134a8576040519150601f19603f3d011682016040523d82523d6000602084013e6134ad565b606091505b50915091508180156134d75750805115806134d75750808060200190518101906134d79190613b06565b80156134ed57506000856001600160a01b03163b115b95945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052613547848261344e565b6115b3576040516001600160a01b0384811660248301526000604483015261357c91869182169063095ea7b390606401612a07565b6115b38482613164565b6060814710156135ab5760405163cd78605960e01b815230600482015260240161099b565b600080856001600160a01b031684866040516135c79190613d1f565b60006040518083038185875af1925050503d8060008114613604576040519150601f19603f3d011682016040523d82523d6000602084013e613609565b606091505b5091509150613619868383613623565b9695505050505050565b606082613638576136338261367f565b610a1a565b815115801561364f57506001600160a01b0384163b155b1561367857604051639996b31560e01b81526001600160a01b038516600482015260240161099b565b5080610a1a565b80511561368f5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60018301918390821561372e5791602002820160005b838211156136fe57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026136be565b801561372c5782816101000a81549061ffff02191690556002016020816001010492830192600103026136fe565b505b5061373a92915061373e565b5090565b5b8082111561373a576000815560010161373f565b6001600160a01b0381168114610b9157600080fd5b8015158114610b9157600080fd5b6000806040838503121561378957600080fd5b823561379481613753565b915060208301356137a481613768565b809150509250929050565b60005b838110156137ca5781810151838201526020016137b2565b50506000910152565b600081518084526137eb8160208601602086016137af565b601f01601f19169290920160200192915050565b602081526000610a1a60208301846137d3565b6000806040838503121561382557600080fd5b823561383081613753565b946020939093013593505050565b803561ffff8116811461385057600080fd5b919050565b60006020828403121561386757600080fd5b610a1a8261383e565b60006020828403121561388257600080fd5b8135610a1a81613753565b6000806000606084860312156138a257600080fd5b83356138ad81613753565b925060208401356138bd81613753565b929592945050506040919091013590565b6000602082840312156138e057600080fd5b5035919050565b6000806000606084860312156138fc57600080fd5b6139058461383e565b92506139136020850161383e565b91506139216040850161383e565b90509250925092565b60ff60f81b881681526000602060e0602084015261394b60e084018a6137d3565b838103604085015261395d818a6137d3565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b818110156139b157835183529284019291840191600101613995565b50909c9b505050505050505050505050565b6000806000606084860312156139d857600080fd5b83356139e381613753565b925060208401356139f381613753565b91506040840135613a0381613753565b809150509250925092565b600080600080600080600060e0888a031215613a2957600080fd5b8735613a3481613753565b96506020880135613a4481613753565b95506040880135945060608801359350608088013560ff81168114613a6857600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215613a9857600080fd5b8235613aa381613753565b915060208301356137a481613753565b600181811c90821680613ac757607f821691505b602082108103613ae757634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215613aff57600080fd5b5051919050565b600060208284031215613b1857600080fd5b8151610a1a81613768565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115613b6a57613b6a613b39565b5092915050565b61ffff818116838216019080821115613b6a57613b6a613b39565b600080600080600080600080610100898b031215613ba957600080fd5b8851613bb481613753565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b8181038181111561095757610957613b39565b808202811582820484141761095757610957613b39565b600082613c3d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561095757610957613b39565b60008060408385031215613c6857600080fd5b505080516020909101519092909150565b600060208284031215613c8b57600080fd5b8151610a1a81613753565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015613ce85784516001600160a01b031683529383019391830191600101613cc3565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b600052602160045260246000fd5b60008251613d318184602087016137af565b919091019291505056fea26469706673582212201d616fd8a92375ff1e6ee52da5bf27770b65ecc13414e08e88a524d8a09662b264736f6c63430008190033608060405234801561001057600080fd5b50604051611cd3380380611cd383398101604081905261002f916101c5565b604080518082018252600f8082526e2234bb34b232b7322a3930b1b5b2b960891b6020808401829052845180860190955291845290830152908181338061009157604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61009a816100d1565b5060036100a7838261028a565b5060046100b4828261028a565b50505050506100c88261012160201b60201c565b60125550610349565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610129610196565b603c81108061013a575062093a8081115b1561015b57604051639a60673160e01b815260048101829052602401610088565b60118190556040518181527f4b0a6b82d0dc4407b3359033a4f27efd1e2105e4571b72d6a3b8f1da3e6079dd9060200160405180910390a150565b6000546001600160a01b031633146101c35760405163118cdaa760e01b8152336004820152602401610088565b565b600080604083850312156101d857600080fd5b505080516020909101519092909150565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061021357607f821691505b60208210810361023357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610285576000816000526020600020601f850160051c810160208610156102625750805b601f850160051c820191505b818110156102815782815560010161026e565b5050505b505050565b81516001600160401b038111156102a3576102a36101e9565b6102b7816102b184546101ff565b84610239565b602080601f8311600181146102ec57600084156102d45750858301515b600019600386901b1c1916600185901b178555610281565b600085815260208120601f198616915b8281101561031b578886015182559484019460019091019084016102fc565b50858210156103395787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61197b806103586000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063715018a611610104578063aafd847a116100a2578063e30443bc11610071578063e30443bc1461041e578063f2fde38b14610431578063f7c618c114610444578063ffb2c4791461045757600080fd5b8063aafd847a146103b6578063be10b614146103df578063c705c569146103e8578063d1fbb84e1461040b57600080fd5b80638da5cb5b116100de5780638da5cb5b1461036357806391b89fba1461038857806395d89b411461039b578063a8b9d240146103a357600080fd5b8063715018a61461033f57806385a6b3ae146103475780638aee81271461035057600080fd5b80633009a609116101715780635d78650e1161014b5780635d78650e146102e75780636cc9c8f1146102fa5780636f2789ec1461030d57806370a082311461031657600080fd5b80633009a609146102ba578063313ce567146102c35780633243c791146102d257600080fd5b80631e83409a116101ad5780631e83409a1461020c578063226cfa3d1461022f57806327ce01471461024f5780632f7541e91461026257600080fd5b806306fdde03146101d457806309bbedde146101f257806318160ddd14610204575b600080fd5b6101dc61047f565b6040516101e991906116af565b60405180910390f35b600a545b6040519081526020016101e9565b6002546101f6565b61021f61021a3660046116f7565b610511565b60405190151581526020016101e9565b6101f661023d3660046116f7565b60106020526000908152604090205481565b6101f661025d3660046116f7565b610558565b610275610270366004611714565b6105bb565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016101e9565b6101f6600e5481565b604051601281526020016101e9565b6102e56102e0366004611714565b61070f565b005b6102756102f53660046116f7565b6108b4565b6102e5610308366004611714565b610a1c565b6101f660115481565b6101f66103243660046116f7565b6001600160a01b031660009081526001602052604090205490565b6102e5610a96565b6101f660085481565b6102e561035e3660046116f7565b610aaa565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101e9565b6101f66103963660046116f7565b610afe565b6101dc610b09565b6101f66103b13660046116f7565b610b18565b6101f66103c43660046116f7565b6001600160a01b031660009081526007602052604090205490565b6101f660125481565b61021f6103f63660046116f7565b600f6020526000908152604090205460ff1681565b6102e561041936600461173b565b610b44565b6102e561042c36600461177d565b610cad565b6102e561043f3660046116f7565b610dce565b600954610370906001600160a01b031681565b61046a610465366004611714565b610e0c565b604080519283526020830191909152016101e9565b60606003805461048e906117a9565b80601f01602080910402602001604051908101604052809291908181526020018280546104ba906117a9565b80156105075780601f106104dc57610100808354040283529160200191610507565b820191906000526020600020905b8154815290600101906020018083116104ea57829003601f168201915b5050505050905090565b600061051b610f5c565b600061052683610f89565b9050801561054f5750506001600160a01b03166000908152601060205260409020429055600190565b50600092915050565b6001600160a01b0381166000908152600660209081526040808320546001909252822054600160801b916105ab9161059c9060055461059791906117f9565b611081565b6105a69190611810565b611091565b6105b59190611838565b92915050565b600080600080600080600080600a73b24969123b1dc397b5d470e9dd8ba0b7bc28b6fa63deb3d89690916040518263ffffffff1660e01b815260040161060391815260200190565b602060405180830381865af4158015610620573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610644919061185a565b8910610669575060009650600019955085945086935083925082915081905080610704565b6040516368d54f3f60e11b8152600a6004820152602481018a905260009073b24969123b1dc397b5d470e9dd8ba0b7bc28b6fa9063d1aa9e7e90604401602060405180830381865af41580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e79190611873565b90506106f2816108b4565b98509850985098509850985098509850505b919395975091939597565b6002546000036107325760405163021415c960e31b815260040160405180910390fd5b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561077b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079f919061185a565b6009549091506107ba906001600160a01b03163330856110a4565b6009546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b919061185a565b6108359190611890565b905080156108af5760025461084e600160801b836117f9565b6108589190611838565b60055461086591906118a3565b60055560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2806008546108ab91906118a3565b6008555b505050565b6040516317e142d160e01b8152600a60048201526001600160a01b0382166024820152819060009081908190819081908190819073b24969123b1dc397b5d470e9dd8ba0b7bc28b6fa906317e142d190604401602060405180830381865af4158015610924573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610948919061185a565b96506000199550600087126109aa57600e5487111561097557600e5461096e90886118b6565b95506109aa565b600e54600a546000911061098a57600061099a565b600e54600a5461099a9190611890565b90506109a68189611810565b9650505b6109b388610b18565b94506109be88610558565b6001600160a01b0389166000908152601060205260409020549094509250826109e85760006109f5565b6011546109f590846118a3565b9150428211610a05576000610a0f565b610a0f4283611890565b9050919395975091939597565b610a24610f5c565b603c811080610a35575062093a8081115b15610a5b57604051639a60673160e01b8152600481018290526024015b60405180910390fd5b60118190556040518181527f4b0a6b82d0dc4407b3359033a4f27efd1e2105e4571b72d6a3b8f1da3e6079dd9060200160405180910390a150565b610a9e610f5c565b610aa86000611104565b565b610ab2610f5c565b6009546001600160a01b031615610adc5760405163b6de9a7160e01b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006105b582610b18565b60606004805461048e906117a9565b6001600160a01b038116600090815260076020526040812054610b3a83610558565b6105b59190611890565b610b4c610f5c565b8015610c18576001600160a01b0383166000908152600f602052604090205460ff16610c13576001600160a01b0383166000908152600f60205260408120805460ff19166001179055610ba0908490611154565b60405163131836e760e21b8152600a60048201526001600160a01b038416602482015273b24969123b1dc397b5d470e9dd8ba0b7bc28b6fa90634c60db9c9060440160006040518083038186803b158015610bfa57600080fd5b505af4158015610c0e573d6000803e3d6000fd5b505050505b610c63565b6001600160a01b0383166000908152600f602052604090205460ff1615610c63576001600160a01b0383166000908152600f60205260409020805460ff19169055610c638383610cad565b826001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be82604051610ca0911515815260200190565b60405180910390a2505050565b610cb5610f5c565b6001600160a01b0382166000908152600f602052604090205460ff16610dca576012548110610d6557610ce88282611154565b604051632f0ad01760e21b8152600a60048201526001600160a01b03831660248201526044810182905273b24969123b1dc397b5d470e9dd8ba0b7bc28b6fa9063bc2b405c9060640160006040518083038186803b158015610d4957600080fd5b505af4158015610d5d573d6000803e3d6000fd5b505050505050565b610d70826000611154565b60405163131836e760e21b8152600a60048201526001600160a01b038316602482015273b24969123b1dc397b5d470e9dd8ba0b7bc28b6fa90634c60db9c9060440160006040518083038186803b158015610d4957600080fd5b5050565b610dd6610f5c565b6001600160a01b038116610e0057604051631e4fbdf760e01b815260006004820152602401610a52565b610e0981611104565b50565b600080610e17610f5c565b600a546000819003610e2f5750600093849350915050565b600e546000805a905060009550600094505b8682108015610e4f57508386105b15610f155782610e5e816118dd565b600a5490945084109050610e7157600092505b6000600a6000018481548110610e8957610e896118f6565b60009182526020808320909101546001600160a01b03168083526010909152604090912054909150610eba906111a3565b15610edb57610ec881610511565b15610edb5785610ed7816118dd565b9650505b86610ee5816118dd565b97505060005a905080831115610f0c57610eff8184611890565b610f0990856118a3565b93505b9150610e419050565b600e83905560408051878152602081018790527ff78a0aac70b15fc744c16ea2c52bba9a167f030b8961e62a1d2c92588f77facf910160405180910390a150505050915091565b6000546001600160a01b03163314610aa85760405163118cdaa760e01b8152336004820152602401610a52565b600080610f9583610b18565b9050801561054f576001600160a01b038316600090815260076020526040902054610fc19082906118a3565b6001600160a01b03808516600090815260076020526040902091909155600954610fed911684836111ca565b1561103b57826001600160a01b03167fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d8260405161102d91815260200190565b60405180910390a292915050565b6001600160a01b03831660009081526007602052604090205461105f908290611890565b6001600160a01b03841660009081526007602052604090205550600092915050565b600081818112156105b557600080fd5b6000808212156110a057600080fd5b5090565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526110fe908590611242565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526001602052604090205480821115611188576108af836111838385611890565b6112a5565b808210156108af576108af8361119e8484611890565b611303565b6000814210156111b557506000919050565b6011546111c28342611890565b101592915050565b600061123884856001600160a01b031663a9059cbb86866040516024016112069291906001600160a01b03929092168252602082015260400190565b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611341565b90505b9392505050565b60006112576001600160a01b038416836113e9565b9050805160001415801561127c57508080602001905181019061127a919061190c565b155b156108af57604051635274afe760e01b81526001600160a01b0384166004820152602401610a52565b6112af82826113f7565b6112c08160055461059791906117f9565b6001600160a01b0383166000908152600660205260409020546112e391906118b6565b6001600160a01b0390921660009081526006602052604090209190915550565b61130d828261148c565b61131e8160055461059791906117f9565b6001600160a01b0383166000908152600660205260409020546112e39190611810565b6000806000846001600160a01b03168460405161135e9190611929565b6000604051808303816000865af19150503d806000811461139b576040519150601f19603f3d011682016040523d82523d6000602084013e6113a0565b606091505b50915091508180156113ca5750805115806113ca5750808060200190518101906113ca919061190c565b80156113e057506000856001600160a01b03163b115b95945050505050565b606061123b83836000611569565b6001600160a01b0382166114215760405163ec442f0560e01b815260006004820152602401610a52565b806002600082825461143391906118a3565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166114b657604051634b637e8f60e11b815260006004820152602401610a52565b6001600160a01b038216600090815260016020526040902054818110156115095760405163391434e360e21b81526001600160a01b03841660048201526024810182905260448101839052606401610a52565b6001600160a01b03831660008181526001602090815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60608147101561158e5760405163cd78605960e01b8152306004820152602401610a52565b600080856001600160a01b031684866040516115aa9190611929565b60006040518083038185875af1925050503d80600081146115e7576040519150601f19603f3d011682016040523d82523d6000602084013e6115ec565b606091505b50915091506115fc868383611606565b9695505050505050565b60608261161b5761161682611662565b61123b565b815115801561163257506001600160a01b0384163b155b1561165b57604051639996b31560e01b81526001600160a01b0385166004820152602401610a52565b508061123b565b8051156116725780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60005b838110156116a657818101518382015260200161168e565b50506000910152565b60208152600082518060208401526116ce81604085016020870161168b565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e0957600080fd5b60006020828403121561170957600080fd5b813561123b816116e2565b60006020828403121561172657600080fd5b5035919050565b8015158114610e0957600080fd5b60008060006060848603121561175057600080fd5b833561175b816116e2565b92506020840135915060408401356117728161172d565b809150509250925092565b6000806040838503121561179057600080fd5b823561179b816116e2565b946020939093013593505050565b600181811c908216806117bd57607f821691505b6020821081036117dd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105b5576105b56117e3565b8082018281126000831280158216821582161715611830576118306117e3565b505092915050565b60008261185557634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561186c57600080fd5b5051919050565b60006020828403121561188557600080fd5b815161123b816116e2565b818103818111156105b5576105b56117e3565b808201808211156105b5576105b56117e3565b81810360008312801583831316838312821617156118d6576118d66117e3565b5092915050565b6000600182016118ef576118ef6117e3565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561191e57600080fd5b815161123b8161172d565b6000825161193b81846020870161168b565b919091019291505056fea2646970667358221220e1db746ce07029482609420bdd07c4d07e189b159484fffd2be25d036b933bb664736f6c63430008190033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106103af5760003560e01c80638062651a116101f4578063c705c5691161011a578063f112ba72116100ad578063f7dcdcce1161007c578063f7dcdcce1461083a578063fc30efd91461084d578063fe9fd7b714610860578063ffb2c4791461087357600080fd5b8063f112ba72146107f9578063f27fd25414610801578063f2fde38b14610814578063f7c618c11461082757600080fd5b8063dd62ed3e116100e9578063dd62ed3e14610794578063e30c3978146107cd578063e73b17d0146107de578063e7841ec0146107f157600080fd5b8063c705c56914610753578063cb1a233d14610766578063d505accf14610779578063d94775261461078c57600080fd5b8063a26579ad11610192578063a9d3cd8a11610161578063a9d3cd8a146106c2578063abc73826146106d5578063ad56c13c146106e8578063c02466681461074057600080fd5b8063a26579ad14610681578063a6ddc42514610689578063a8b9d2401461069c578063a9059cbb146106af57600080fd5b80638fffabed116101ce5780638fffabed1461064a578063957086ab1461065d57806395d89b41146106705780639c1b8af51461067857600080fd5b80638062651a1461060b57806384b0196e1461061e5780638da5cb5b1461063957600080fd5b80634e71d92d116102d95780636c9e28aa11610277578063715018a611610246578063715018a6146105d557806379ba5097146105dd57806379cc6790146105e55780637ecebe00146105f857600080fd5b80636c9e28aa146105895780636cc9c8f11461059c5780636d52577e146105af57806370a08231146105c257600080fd5b8063502f7446116102b3578063502f744614610543578063647846a51461055b57806364b0f6531461056e5780636843cd841461057657600080fd5b80634e71d92d146105035780634f011b831461050b5780634fbee1931461052057600080fd5b8063294aad9c11610351578063313ce56711610320578063313ce567146104b35780633644e515146104c2578063408ccbdf146104ca57806342966c68146104f057600080fd5b8063294aad9c146104655780632c1f52161461046d5780632f267e291461049857806330bb4cff146104ab57600080fd5b806318160ddd1161038d57806318160ddd1461040a5780631a0e718c1461041c5780631e9fe6c61461042f57806323b872dd1461045257600080fd5b80630483f7a0146103b457806306fdde03146103c9578063095ea7b3146103e7575b600080fd5b6103c76103c2366004613776565b61089b565b005b6103d16108b1565b6040516103de91906137ff565b60405180910390f35b6103fa6103f5366004613812565b610943565b60405190151581526020016103de565b6002545b6040519081526020016103de565b6103c761042a366004613855565b61095d565b6103fa61043d366004613870565b60186020526000908152604090205460ff1681565b6103fa61046036600461388d565b6109fb565b61040e610a21565b600a54610480906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b6103c76104a63660046138ce565b610a94565b61040e610b05565b604051601281526020016103de565b61040e610b4f565b6104dd6104d83660046138ce565b610b59565b60405161ffff90911681526020016103de565b6103c76104fe3660046138ce565b610b87565b6103fa610b94565b600d546104dd90600160a01b900461ffff1681565b6103fa61052e366004613870565b60146020526000908152604090205460ff1681565b6016546104809061010090046001600160a01b031681565b600d54610480906001600160a01b031681565b61040e610c03565b61040e610584366004613870565b610c4d565b6103c76105973660046138e7565b610cbd565b6103c76105aa3660046138ce565b610ea4565b6103c76105bd3660046138e7565b610f0d565b61040e6105d0366004613870565b6110a1565b6103c76110bc565b6103c76110d0565b6103c76105f3366004613812565b611111565b61040e610606366004613870565b611126565b6103c76106193660046138e7565b611144565b6106266112d0565b6040516103de979695949392919061392a565b6008546001600160a01b0316610480565b601754610480906001600160a01b031681565b6103c761066b366004613870565b611316565b6103d16113b0565b61040e600b5481565b61040e6113bf565b6104dd6106973660046138ce565b611409565b61040e6106aa366004613870565b611419565b6103fa6106bd366004613812565b61144c565b6103c76106d0366004613776565b61145a565b6103c76106e33660046139c3565b6114c3565b6106fb6106f6366004613870565b6115b9565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103de565b6103c761074e366004613776565b611654565b6103fa610761366004613870565b6116bc565b6103c76107743660046138ce565b61172b565b6103c7610787366004613a0e565b611788565b61040e6118c2565b61040e6107a2366004613a85565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6009546001600160a01b0316610480565b6103c76107ec366004613812565b611902565b61040e611952565b61040e61199c565b6106fb61080f3660046138ce565b6119ba565b6103c7610822366004613870565b6119fc565b600c54610480906001600160a01b031681565b6104dd6108483660046138ce565b611a6d565b601054610480906001600160a01b031681565b6104dd61086e3660046138ce565b611a7d565b6108866108813660046138ce565b611a8d565b604080519283526020830191909152016103de565b6108a3611b0c565b6108ad8282611b39565b5050565b6060600380546108c090613ab3565b80601f01602080910402602001604051908101604052809291908181526020018280546108ec90613ab3565b80156109395780601f1061090e57610100808354040283529160200191610939565b820191906000526020600020905b81548152906001019060200180831161091c57829003601f168201915b5050505050905090565b600033610951818585611bbf565b60019150505b92915050565b610965611b0c565b61ffff8116158061097b57506101f48161ffff16115b156109a457604051631958d05f60e01b815261ffff821660048201526024015b60405180910390fd5b600d805461ffff60a01b1916600160a01b61ffff8416908102919091179091556040519081527fcf1366790fe21e66c9df9dcf67218b1e10acd64d3c99ae8a7429a68de91f1720906020015b60405180910390a150565b600033610a09858285611bd1565b610a14858585611c49565b60019150505b9392505050565b600a54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190613aed565b905090565b610a9c611b0c565b62030d40811080610aaf57506207a12081115b15610ad05760405163074242a560e31b81526004810182905260240161099b565b600b8190556040518181527f1662a2324457a200b9556dfe949641639b99480ee6b448aefcfb97ee61ec2417906020016109f0565b600a54604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b6000610a8f611ca8565b60158160038110610b6957600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b610b913382611dd3565b50565b600a54604051630f41a04d60e11b81523360048201526000916001600160a01b031690631e83409a906024016020604051808303816000875af1158015610bdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8f9190613b06565b600a54604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b600a546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa158015610c99573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190613aed565b610cc5611b0c565b6012546015548491610cde9161ffff9182169116613b4f565b610ce89190613b71565b6015805461ffff191661ffff92831617908190556012548492610d18926201000092839004821692900416613b4f565b610d229190613b71565b6015805463ffff000019166201000061ffff9384160217908190556012548392610d5a92600160201b92839004821692900416613b4f565b610d649190613b71565b6015805461ffff928316600160201b0265ffff0000000019821681179092556109c490831691909216171180610da857506015546109c46201000090910461ffff16115b80610dc257506015546109c4600160201b90910461ffff16115b15610e2257601560005b60108104919091015460155460405163b7b3de6f60e01b8152600f9093166002026101000a90910461ffff908116600484015262010000820481166024840152600160201b90910416604482015260640161099b565b6040805160608101825261ffff80861682528481166020830152831691810191909152610e539060129060036136a8565b506040805161ffff808616825280851660208301528316918101919091527f246bc0f3dffec30af9e2e08d888e72406842f0c6609a2f834bf29a6208b2b97a906060015b60405180910390a1505050565b610eac611b0c565b600a54604051636cc9c8f160e01b8152600481018390526001600160a01b0390911690636cc9c8f190602401600060405180830381600087803b158015610ef257600080fd5b505af1158015610f06573d6000803e3d6000fd5b5050505050565b610f15611b0c565b6011546015548491610f2e9161ffff9182169116613b4f565b610f389190613b71565b6015805461ffff191661ffff92831617908190556011548492610f68926201000092839004821692900416613b4f565b610f729190613b71565b6015805463ffff000019166201000061ffff9384160217908190556011548392610faa92600160201b92839004821692900416613b4f565b610fb49190613b71565b6015805461ffff928316600160201b0265ffff0000000019821681179092556109c490831691909216171180610ff857506015546109c46201000090910461ffff16115b8061101257506015546109c4600160201b90910461ffff16115b156110205760156000610dcc565b6040805160608101825261ffff808616825284811660208301528316918101919091526110519060119060036136a8565b506040805161ffff8581168252848116602083015283168183015290516001917f5aa2b88de73e9b93e574fbaf914e53e45e2ba25f25692e6e0ba4e0d3c33f9d5a919081900360600190a2505050565b6001600160a01b031660009081526020819052604090205490565b6110c4611b0c565b6110ce6000611e09565b565b60095433906001600160a01b031681146111085760405163118cdaa760e01b81526001600160a01b038216600482015260240161099b565b610b9181611e09565b61111c823383611bd1565b6108ad8282611dd3565b6001600160a01b038116600090815260076020526040812054610957565b61114c611b0c565b60135460155484916111659161ffff9182169116613b4f565b61116f9190613b71565b6015805461ffff191661ffff9283161790819055601354849261119f926201000092839004821692900416613b4f565b6111a99190613b71565b6015805463ffff000019166201000061ffff93841602179081905560135483926111e192600160201b92839004821692900416613b4f565b6111eb9190613b71565b6015805461ffff928316600160201b0265ffff0000000019821681179092556109c49083169190921617118061122f57506015546109c46201000090910461ffff16115b8061124957506015546109c4600160201b90910461ffff16115b156112575760156000610dcc565b6040805160608101825261ffff808616825284811660208301528316918101919091526112889060139060036136a8565b506040805161ffff808616825280851660208301528316918101919091527f3ec8f17d924721910a043bef5d818361423756fcd3cc52e2c46a1139acbb769290606001610e97565b6000606080600080600060606112e4611e22565b6112ec611e4f565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b61131e611b0c565b6001600160a01b0381166113485760405163ab11818760e01b81526000600482015260240161099b565b601080546001600160a01b0319166001600160a01b03831617905561136e816001611654565b6040516001600160a01b03821681526001907ff8e79c3705e6b93e151f4c2166fe019e81a78204037fb9913b261eeb877218d99060200160405180910390a250565b6060600480546108c090613ab3565b600a5460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b60138160038110610b6957600080fd5b600a546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401610c7c565b600033610951818585611c49565b611462611b0c565b6017546001600160a01b038381169116148061149057506016546001600160a01b0383811661010090920416145b156114b95760405163435eaf7b60e11b81526001600160a01b038316600482015260240161099b565b6108ad8282611e7c565b600c54600160a81b900460ff16806114e55750600c54600160a01b900460ff16155b6115485760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161099b565b600c54600160a81b900460ff1615801561157257600c805461ffff60a01b191661010160a01b1790555b600d80546001600160a01b0319166001600160a01b03861617905561159683611ef1565b61159f82611f73565b80156115b357600c805460ff60a81b191690555b50505050565b600a54604051632ebc328760e11b81526001600160a01b0383811660048301526000928392839283928392839283928392911690635d78650e906024015b61010060405180830381865afa158015611615573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116399190613b8c565b97509750975097509750975097509750919395975091939597565b61165c611b0c565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791015b60405180910390a25050565b600a5460405163c705c56960e01b81526001600160a01b038381166004830152600092169063c705c56990602401602060405180830381865afa158015611707573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190613b06565b611733611b0c565b600061173d61199c565b611746306110a1565b6117509190613bf6565b90508082111561177d57604051634d2e924b60e01b8152600481018390526024810182905260440161099b565b6108ad30338461218e565b834211156117ac5760405163313c898160e11b81526004810185905260240161099b565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886117f98c6001600160a01b0316600090815260076020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006118548261297f565b90506000611864828787876129ac565b9050896001600160a01b0316816001600160a01b0316146118ab576040516325c0072360e11b81526001600160a01b0380831660048301528b16602482015260440161099b565b6118b68a8a8a611bbf565b50505050505050505050565b600d5460175460009161271091600160a01b90910461ffff16906118ee906001600160a01b03166110a1565b6118f89190613c09565b610a8f9190613c20565b61190a611b0c565b306001600160a01b0383160361193e5760405163961c9a4f60e01b81526001600160a01b038316600482015260240161099b565b6108ad6001600160a01b03831633836129da565b600a5460408051633009a60960e01b815290516000926001600160a01b031691633009a6099160048083019260209291908290030181865afa158015610a6b573d6000803e3d6000fd5b6000600f54600e5460006119b09190613c42565b610a8f9190613c42565b600a54604051632f7541e960e01b81526004810183905260009182918291829182918291829182916001600160a01b0390911690632f7541e9906024016115f7565b611a04611b0c565b600980546001600160a01b0383166001600160a01b03199091168117909155611a356008546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60128160038110610b6957600080fd5b60118160038110610b6957600080fd5b600a546040516001624d3b8760e01b031981526004810183905260009182916001600160a01b039091169063ffb2c4799060240160408051808303816000875af1158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b039190613c55565b91509150915091565b6008546001600160a01b031633146110ce5760405163118cdaa760e01b815233600482015260240161099b565b600a546001600160a01b031663d1fbb84e83611b54816110a1565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015283151560448201526064015b600060405180830381600087803b158015611ba357600080fd5b505af1158015611bb7573d6000803e3d6000fd5b505050505050565b611bcc8383836001612a39565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146115b35781811015611c3a57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161099b565b6115b384848484036000612a39565b6001600160a01b038316611c7357604051634b637e8f60e11b81526000600482015260240161099b565b6001600160a01b038216611c9d5760405163ec442f0560e01b81526000600482015260240161099b565b611bcc83838361218e565b6000306001600160a01b037f000000000000000000000000f2e9e01368b23e9e5474be95d4982878d4721a3716148015611d0157507f000000000000000000000000000000000000000000000000000000000000017146145b15611d2b57507fd362a26698bbc034b9f98e70668b2af40d8ade5b8c6c2fe81ad87f14cc7d35f990565b610a8f604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fe332c2b9a20705c52f54eac72af173319cf95e6b5a63c018af2c952c0b0e4a16918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b6001600160a01b038216611dfd57604051634b637e8f60e11b81526000600482015260240161099b565b6108ad8260008361218e565b600980546001600160a01b0319169055610b9181612b0e565b6060610a8f7f50657773776170310000000000000000000000000000000000000000000000086005612b60565b6060610a8f7f31000000000000000000000000000000000000000000000000000000000000016006612b60565b6001600160a01b0382166000908152601860205260409020805460ff19168215801591909117909155611eb457611eb4826001611b39565b816001600160a01b03167f2cc8631dda80fe178488d3174721fafacf84b0f194a7eddae85c9bcc599ac78b826040516116b0911515815260200190565b600a54604051638aee812760e01b81526001600160a01b03838116600483015290911690638aee812790602401600060405180830381600087803b158015611f3857600080fd5b505af1158015611f4c573d6000803e3d6000fd5b5050600c80546001600160a01b0319166001600160a01b0394909416939093179092555050565b80601660016101000a8154816001600160a01b0302191690836001600160a01b03160217905550601660019054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120119190613c79565b6001600160a01b031663c9c6539630601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612073573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120979190613c79565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156120e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121089190613c79565b601780546001600160a01b0319166001600160a01b03929092169190911790556121353082600019611bbf565b612140816001611e7c565b601754612157906001600160a01b03166001611e7c565b6040516001600160a01b038216907fbc052db65df144ad4f71f02da93cae3d4401104c30ac374d7cc10d87ee07b60290600090a250565b6001600160a01b038316158015906121ae57506001600160a01b03821615155b156127da5760165460ff161580156121c65750600081115b80156121eb57506001600160a01b03831660009081526014602052604090205460ff16155b801561221057506001600160a01b03821660009081526014602052604090205460ff16155b156125de576001600160a01b03831660009081526018602052604081205460039060ff16801561225957506001600160a01b03841660009081526018602052604090205460ff16155b156122735760155461ffff161561226e575060005b612331565b6001600160a01b03841660009081526018602052604090205460ff1680156122b457506001600160a01b03851660009081526018602052604090205460ff16155b156122d35760155462010000900461ffff161561226e57506001612331565b6001600160a01b03851660009081526018602052604090205460ff1615801561231557506001600160a01b03841660009081526018602052604090205460ff16155b1561233157601554600160201b900461ffff1615612331575060025b60038160ff1610156125ca57600061271060158360ff166003811061235857612358613b23565b601091828204019190066002029054906101000a900461ffff1661ffff16856123819190613c09565b61238b9190613c20565b92506123978385613bf6565b935060158260ff16600381106123af576123af613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1660118360ff16600381106123e3576123e3613b23565b601091828204019190066002029054906101000a900461ffff1661ffff168461240c9190613c09565b6124169190613c20565b600e60008282546124279190613c42565b9091555060009050601260ff84166003811061244557612445613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1611156125285760158260ff166003811061247f5761247f613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1660128360ff16600381106124b3576124b3613b23565b601091828204019190066002029054906101000a900461ffff1661ffff16846124dc9190613c09565b6124e69190613c20565b90506124f486600083612c0b565b6040518181527fc0881daff2be95a16d66320aeb3ddd71b3595c99533ef75c5fc81796609866ff9060200160405180910390a15b60158260ff166003811061253e5761253e613b23565b601091828204019190066002029054906101000a900461ffff1661ffff1660138360ff166003811061257257612572613b23565b601091828204019190066002029054906101000a900461ffff1661ffff168461259b9190613c09565b6125a59190613c20565b600f60008282546125b69190613c42565b909155506125c690508184613bf6565b9250505b81156125db576125db853084612c0b565b50505b60006125e86118c2565b6125f061199c565b101580156126135750601754600090612611906001600160a01b03166110a1565b115b60165490915060ff1615801561263757506017546001600160a01b03858116911614155b801561265657506016546001600160a01b038581166101009092041614155b801561265f5750805b156127d8576016805460ff191660011790556000600e54111561279e576000600e54600061268d9190613c42565b9050600061269a82612d35565b600d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156126e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127079190613aed565b9050600083600e548361271a9190613c09565b6127249190613c20565b9050801561279457601054612742906001600160a01b031682612e94565b9250821561279457601054604080516001600160a01b039092168252602082018390526001917f4b1a0df20e469b24231f59741640137b104320272da39777bdf2800ac99de1e0910160405180910390a25b50506000600e5550505b6000600f541180156127b7575060006127b5610c03565b115b156127cd576127c7600f54612eae565b6000600f555b6016805460ff191690555b505b6127e5838383612c0b565b6001600160a01b0383161561286e57600a546001600160a01b031663e30443bc8461280f816110a1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561285557600080fd5b505af1158015612869573d6000803e3d6000fd5b505050505b6001600160a01b038216156128f757600a546001600160a01b031663e30443bc83612898816110a1565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156128de57600080fd5b505af11580156128f2573d6000803e3d6000fd5b505050505b60165460ff16611bcc57600a54600b546040516001624d3b8760e01b031981526001600160a01b039092169163ffb2c479916129399160040190815260200190565b60408051808303816000875af1925050508015612973575060408051601f3d908101601f1916820190925261297091810190613c55565b60015b15611bcc575050505050565b600061095761298c611ca8565b8360405161190160f01b8152600281019290925260228201526042902090565b6000806000806129be88888888612fdc565b9250925092506129ce82826130ab565b50909695505050505050565b6040516001600160a01b03838116602483015260448201839052611bcc91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050613164565b6001600160a01b038416612a635760405163e602df0560e01b81526000600482015260240161099b565b6001600160a01b038316612a8d57604051634a1406b160e11b81526000600482015260240161099b565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156115b357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051612b0091815260200190565b60405180910390a350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff8314612b7a57612b73836131c7565b9050610957565b818054612b8690613ab3565b80601f0160208091040260200160405190810160405280929190818152602001828054612bb290613ab3565b8015612bff5780601f10612bd457610100808354040283529160200191612bff565b820191906000526020600020905b815481529060010190602001808311612be257829003601f168201915b50505050509050610957565b6001600160a01b038316612c36578060026000828254612c2b9190613c42565b90915550612ca89050565b6001600160a01b03831660009081526020819052604090205481811015612c895760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161099b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216612cc457600280548290039055612ce3565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612d2891815260200190565b60405180910390a3505050565b60408051600380825260808201909252600091602082016060803683370190505090503081600081518110612d6c57612d6c613b23565b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ddf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e039190613c79565b81600181518110612e1657612e16613b23565b6001600160a01b039283166020918202929092010152600d54825191169082906002908110612e4757612e47613b23565b6001600160a01b039283166020918202929092010152601654604051635c11d79560e01b815261010090910490911690635c11d79590611b89908590600090869030904290600401613c96565b600d54600090610a1a906001600160a01b03168484613206565b612eb78161327c565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f249190613aed565b905080156108ad57600a54600c54612f49916001600160a01b0391821691168361338e565b600a54604051633243c79160e01b8152600481018390526001600160a01b0390911690633243c79190602401600060405180830381600087803b158015612f8f57600080fd5b505af1925050508015612fa0575060015b156108ad576040518181527f1e8f03f716bc104bf7d728131967a0c771e85ab54d09c1e2d6ed9e0bc4e2a16c9060200160405180910390a15050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561301757506000915060039050826130a1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561306b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613097575060009250600191508290506130a1565b9250600091508190505b9450945094915050565b60008260038111156130bf576130bf613d09565b036130c8575050565b60018260038111156130dc576130dc613d09565b036130fa5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561310e5761310e613d09565b0361312f5760405163fce698f760e01b81526004810182905260240161099b565b600382600381111561314357613143613d09565b036108ad576040516335e2f38360e21b81526004810182905260240161099b565b60006131796001600160a01b03841683613418565b9050805160001415801561319e57508080602001905181019061319c9190613b06565b155b15611bcc57604051635274afe760e01b81526001600160a01b038416600482015260240161099b565b606060006131d483613426565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600061327484856001600160a01b031663a9059cbb86866040516024016132429291906001600160a01b03929092168252602082015260400190565b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061344e565b949350505050565b604080516003808252608082019092526000916020820160608036833701905050905030816000815181106132b3576132b3613b23565b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b031663ef8ef56f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613326573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061334a9190613c79565b8160018151811061335d5761335d613b23565b6001600160a01b039283166020918202929092010152600c54825191169082906002908110612e4757612e47613b23565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156133de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134029190613aed565b90506115b384846134138585613c42565b6134f6565b6060610a1a83836000613586565b600060ff8216601f81111561095757604051632cd44ac360e21b815260040160405180910390fd5b6000806000846001600160a01b03168460405161346b9190613d1f565b6000604051808303816000865af19150503d80600081146134a8576040519150601f19603f3d011682016040523d82523d6000602084013e6134ad565b606091505b50915091508180156134d75750805115806134d75750808060200190518101906134d79190613b06565b80156134ed57506000856001600160a01b03163b115b95945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052613547848261344e565b6115b3576040516001600160a01b0384811660248301526000604483015261357c91869182169063095ea7b390606401612a07565b6115b38482613164565b6060814710156135ab5760405163cd78605960e01b815230600482015260240161099b565b600080856001600160a01b031684866040516135c79190613d1f565b60006040518083038185875af1925050503d8060008114613604576040519150601f19603f3d011682016040523d82523d6000602084013e613609565b606091505b5091509150613619868383613623565b9695505050505050565b606082613638576136338261367f565b610a1a565b815115801561364f57506001600160a01b0384163b155b1561367857604051639996b31560e01b81526001600160a01b038516600482015260240161099b565b5080610a1a565b80511561368f5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60018301918390821561372e5791602002820160005b838211156136fe57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026136be565b801561372c5782816101000a81549061ffff02191690556002016020816001010492830192600103026136fe565b505b5061373a92915061373e565b5090565b5b8082111561373a576000815560010161373f565b6001600160a01b0381168114610b9157600080fd5b8015158114610b9157600080fd5b6000806040838503121561378957600080fd5b823561379481613753565b915060208301356137a481613768565b809150509250929050565b60005b838110156137ca5781810151838201526020016137b2565b50506000910152565b600081518084526137eb8160208601602086016137af565b601f01601f19169290920160200192915050565b602081526000610a1a60208301846137d3565b6000806040838503121561382557600080fd5b823561383081613753565b946020939093013593505050565b803561ffff8116811461385057600080fd5b919050565b60006020828403121561386757600080fd5b610a1a8261383e565b60006020828403121561388257600080fd5b8135610a1a81613753565b6000806000606084860312156138a257600080fd5b83356138ad81613753565b925060208401356138bd81613753565b929592945050506040919091013590565b6000602082840312156138e057600080fd5b5035919050565b6000806000606084860312156138fc57600080fd5b6139058461383e565b92506139136020850161383e565b91506139216040850161383e565b90509250925092565b60ff60f81b881681526000602060e0602084015261394b60e084018a6137d3565b838103604085015261395d818a6137d3565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b818110156139b157835183529284019291840191600101613995565b50909c9b505050505050505050505050565b6000806000606084860312156139d857600080fd5b83356139e381613753565b925060208401356139f381613753565b91506040840135613a0381613753565b809150509250925092565b600080600080600080600060e0888a031215613a2957600080fd5b8735613a3481613753565b96506020880135613a4481613753565b95506040880135945060608801359350608088013560ff81168114613a6857600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215613a9857600080fd5b8235613aa381613753565b915060208301356137a481613753565b600181811c90821680613ac757607f821691505b602082108103613ae757634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215613aff57600080fd5b5051919050565b600060208284031215613b1857600080fd5b8151610a1a81613768565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115613b6a57613b6a613b39565b5092915050565b61ffff818116838216019080821115613b6a57613b6a613b39565b600080600080600080600080610100898b031215613ba957600080fd5b8851613bb481613753565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b8181038181111561095757610957613b39565b808202811582820484141761095757610957613b39565b600082613c3d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561095757610957613b39565b60008060408385031215613c6857600080fd5b505080516020909101519092909150565b600060208284031215613c8b57600080fd5b8151610a1a81613753565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015613ce85784516001600160a01b031683529383019391830191600101613cc3565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b600052602160045260246000fd5b60008251613d318184602087016137af565b919091019291505056fea26469706673582212201d616fd8a92375ff1e6ee52da5bf27770b65ecc13414e08e88a524d8a09662b264736f6c63430008190033

External libraries