false
true
0

Contract Address Details

0xE7536c8806ef14494A95EB618f2F479d35e0a8D5

Token
Hacked Guy Coin (HGC)
Creator
0x211385–16d41f at 0xa9068a–7ca466
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
44 Transactions
Transfers
2,620 Transfers
Gas Used
4,747,472
Last Balance Update
25888608
Contract is not verified. However, we found a verified contract with the same bytecode in Blockscout DB 0xd3f19bd8141e1746bec2fbab00aa7abbd8d56eb5.
All metadata displayed below is from that contract. In order to verify current contract, click Verify & Publish button
Verify & Publish
Contract name:
TokenTax




Optimization enabled
true
Compiler version
v0.8.20+commit.a1b79de6




Optimization runs
200
Verified at
2026-02-12T12:41:55.514362Z

contracts/Tokens/TokenFactoryTaxF.sol

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

// contracts/Tokens/interfaces/Helpers.sol

interface IWETH_0 {
    function withdraw(uint256 wad) external;
}
interface Helpers {
    enum TaxType {
        Burn,
        ExternalBurn,
        Dev,
        Reflection,
        Yield
    }
    enum TaxMoment {
        Both,
        Buy,
        Sell
    }

    struct Tax {
        uint256 id;
        TaxType taxType;
        TaxMoment taxMoment;
        uint256 percentage;
        address receiver;
        address tokenAddress;
        address burnAddress; //not used for ExternalBurn
        bool rewardInPls; //not used for ExternalBurn
        uint256 amountAccumulated;
    }

    function getBestPair(
        address tokenA,
        address tokenB,
        address[] memory routers
    ) external view returns (address bestPair, address bestRouter);

    function isPair(
        address _address,
        address _tokenAddress
    ) external view returns (bool);

    function isBuy(
        address _from,
        address _to,
        address _tokenAddress
    ) external view returns (bool);

    function isSell(
        address _from,
        address _to,
        address _tokenAddress
    ) external view returns (bool);

    function getTokenWPLSPath(
        address tokenAddress
    ) external pure returns (address[] memory path);

    function getWPLSBuyBurnPath(
        address tokenAddress
    ) external pure returns (address[] memory path);

    function getProcessingAmount(
        uint256 accumulatedAmount,
        uint256 currentSwapAmount
    )
        external
        pure
        returns (uint256 processAmount, uint256 newAccumulatedAmount);

    function calculateTaxAmount(
        uint256 originalAmount,
        uint256 taxPercentage,
        uint256 Fee,
        bool FeeEnabled,
        uint256 globalDivider
    ) external pure returns (uint256 taxAmount, uint256 FeeAmount);

    function hasAccumulatedTaxes(
        Tax[] memory taxes
    ) external pure returns (bool);

    function getTotalTaxs(Tax[] memory taxes) external pure returns (uint256);

    function cleanPendingReflections(
        address account,
        address tokenAddress,
        uint256 reflectionsPerShareAmount,
        uint256 reflectionDebt,
        uint256 precision
    ) external view returns (uint256);

    function pendingYields(
        address account,
        address tokenAddress,
        uint256 reflectionsPerShareAmount,
        uint256 reflectionDebt,
        uint256 precision
    ) external view returns (uint256);

    function isExcludedFromTax(
        address from,
        address to,
        address SmartTrader,
        address deployer,
        address thisContract
    ) external pure returns (bool);

    function taxesInitialize(
        Helpers.Tax[] memory _taxes
    )
        external
        pure
        returns (bool, bool, bool, Helpers.Tax[] memory, address[] memory);

    function isDeadAddress(address _address) external pure returns (bool);
}

// contracts/Tokens/interfaces/ISmartTokenFactory.sol

interface ISmartTokenFactory {
    function FEE() external view returns (uint256);
    function WALLET() external view returns (address);
}

// lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol

// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)

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

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

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

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

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

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

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-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 ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(
        address sender,
        uint256 balance,
        uint256 needed,
        uint256 tokenId
    );

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

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

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

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

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

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

// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol

// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

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

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

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

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

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

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

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

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

// lib/openzeppelin-contracts/contracts/utils/Context.sol

// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

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

// lib/openzeppelin-contracts/contracts/utils/ReentrancyGuard.sol

// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

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

    constructor() {
        _status = NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

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

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

// lib/v2-core/contracts/interfaces/IUniswapV2Factory.sol

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

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

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

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

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

// lib/v2-core/contracts/interfaces/IUniswapV2Pair.sol

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

// lib/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() 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);
}

// lib/openzeppelin-contracts/contracts/access/Ownable.sol

// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.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);
    }
}

// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol

// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

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

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

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

// lib/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol

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

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

// contracts/Tokens/Manager.sol

contract Manager {
    // For yield tax tokens
    struct UserYield {
        uint256 reflectionDebt;
    }
    struct YieldToken {
        address tokenAddress;
        uint256 reflectionsPerShareAmount;
    }
    YieldToken[] internal yieldTokens;

    uint256 internal PRECISION;
    uint256 internal reflectionsPerShareAmount;
    uint256 internal wethYieldBalance;
    address internal helpers;
    address internal wethAddress = 0xA1077a294dDE1B09bB078844df40758a5D0f9a27; // WPLS on PulseChain

    mapping(address => uint256) internal reflectionDebt;
    mapping(address => bool) public isReflectionExcluded;
    mapping(address => mapping(address => UserYield)) internal userYields;
    mapping(address => uint256[]) internal yieldTokenReflectionDebts;

    bool internal inSwap;

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

    constructor() // address _helpers
    {
        PRECISION = 10 ** 28;
        helpers = 0xd3397b405A2272F5C27fc673BE20579f22f59D6C;
    }

    // ------------------------------------------ REFLECTIONS -------------------------------------------------//
    function getCurrentReflectionsPerShareAmount()
        external
        view
        returns (uint256)
    {
        return reflectionsPerShareAmount;
    }

    function isExcludedFromReflections(
        address account
    ) public view returns (bool) {
        return isReflectionExcluded[account];
    }

    function pendingReflections(address account) public view returns (uint256) {
        if (isExcludedFromReflections(account)) {
            return 0;
        }
        return cleanPendingReflections(account);
    }

    function cleanPendingReflections(
        address account
    ) internal view returns (uint256) {
        return
            Helpers(helpers).cleanPendingReflections(
                account,
                address(this),
                reflectionsPerShareAmount,
                reflectionDebt[account],
                PRECISION
            );
    }

    function updateAndClaimReflections(
        address from,
        address to,
        address deployer
    )
        internal
        returns (uint256 fromAmount, uint256 toAmount, uint256 deployerAmount)
    {
        if (from == to) {
            fromAmount = isExcludedFromReflections(from)
                ? 0
                : pendingReflections(from);
            toAmount = 0; // Set to zero to avoid double claiming
        } else {
            fromAmount = isExcludedFromReflections(from)
                ? 0
                : pendingReflections(from);
            toAmount = isExcludedFromReflections(to)
                ? 0
                : pendingReflections(to);
        }
        deployerAmount = cleanPendingReflections(deployer);
        reflectionDebt[deployer] = reflectionsPerShareAmount;
        reflectionDebt[from] = reflectionsPerShareAmount;
        reflectionDebt[to] = reflectionsPerShareAmount;
    }

    // function tokenPendingReflections() public view returns (uint256) {
    //     uint256 currentBalance = IERC20(address(this)).balanceOf(address(this));
    //     uint256 newReflectionDebt = reflectionsPerShareAmount;
    //     if (newReflectionDebt <= reflectionDebt[address(this)]) {
    //         return 0;
    //     }
    //     return (newReflectionDebt - reflectionDebt[address(this)]) * currentBalance / PRECISION;
    // }

    // ------------------------------------------ YIELD TOKENS REFLECTIONS -------------------------------------------------//

    function addYieldToken(
        address tokenAddress
    ) internal returns (uint256 tokenIndex) {
        for (uint256 i = 0; i < yieldTokens.length; i++) {
            if (yieldTokens[i].tokenAddress == tokenAddress) {
                return i;
            }
        }

        yieldTokens.push(
            YieldToken({
                tokenAddress: tokenAddress,
                reflectionsPerShareAmount: 0
            })
        );

        return yieldTokens.length - 1;
    }

    function pendingYields(
        address account,
        uint256 tokenIndex
    ) public view returns (uint256) {
        if (tokenIndex >= yieldTokenReflectionDebts[account].length) {
            return 0;
        }
        return
            Helpers(helpers).pendingYields(
                account,
                address(this),
                yieldTokens[tokenIndex].reflectionsPerShareAmount,
                yieldTokenReflectionDebts[account][tokenIndex],
                PRECISION
            );
    }

    function updateAndClaimYield(
        address from,
        address to,
        address deployer
    ) internal {
        for (uint256 i = 0; i < yieldTokens.length; i++) {
            while (yieldTokenReflectionDebts[from].length <= i) {
                yieldTokenReflectionDebts[from].push(
                    yieldTokens[i].reflectionsPerShareAmount
                );
            }
            while (yieldTokenReflectionDebts[to].length <= i) {
                yieldTokenReflectionDebts[to].push(
                    yieldTokens[i].reflectionsPerShareAmount
                );
            }
            while (yieldTokenReflectionDebts[deployer].length <= i) {
                yieldTokenReflectionDebts[deployer].push(
                    yieldTokens[i].reflectionsPerShareAmount
                );
            }

            uint256 fromAmount = isExcludedFromReflections(from)
                ? 0
                : pendingYields(from, i);
            uint256 toAmount = 0; // Initialize to 0

            if (from != to) {
                toAmount = isExcludedFromReflections(to)
                    ? 0
                    : pendingYields(to, i);
            }

            uint256[] memory transferAmounts = new uint256[](2);
            address[] memory recipients = new address[](2);
            uint256 recipientCount = 0;
            if (fromAmount > 0) {
                transferAmounts[recipientCount] = fromAmount;
                recipients[recipientCount] = from;
                recipientCount++;
            }
            if (toAmount > 0) {
                transferAmounts[recipientCount] = toAmount;
                recipients[recipientCount] = to;
                recipientCount++;
            }

            for (uint256 j = 0; j < recipientCount; j++) {
                if (transferAmounts[j] > 0) {
                    try
                        IERC20(yieldTokens[i].tokenAddress).transfer(
                            recipients[j],
                            transferAmounts[j]
                        )
                    {
                        if (yieldTokens[i].tokenAddress == wethAddress) {
                            wethYieldBalance -= transferAmounts[j];
                        }
                        yieldTokenReflectionDebts[recipients[j]][
                            i
                        ] = yieldTokens[i].reflectionsPerShareAmount;
                    } catch {}
                }
            }
        }
    }

    function getYieldTokens() public view returns (YieldToken[] memory) {
        return yieldTokens;
    }

    function getYieldTokenReflectionDebts(
        address account
    ) public view returns (uint256[] memory) {
        return yieldTokenReflectionDebts[account];
    }
}

// contracts/Tokens/ERC20.sol

// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(
        address from,
        address to,
        uint256 value
    ) internal virtual {
        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:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(
        address owner,
        address spender,
        uint256 value,
        bool emitEvent
    ) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

// contracts/Tokens/SmartTrader.sol

contract SmartTrader is Ownable {
    constructor() Ownable(msg.sender) {}

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        address _router,
        address _receiver,
        uint256 amountIn,
        address[] memory path
    ) public {
        IERC20(path[0]).transferFrom(msg.sender, address(this), amountIn);
        IERC20(path[0]).approve(_router, amountIn);

        IUniswapV2Router02(_router)
            .swapExactTokensForTokensSupportingFeeOnTransferTokens(
                amountIn,
                0,
                path,
                address(this),
                block.timestamp
            );

        uint256 receivedAmount = IERC20(path[path.length - 1]).balanceOf(
            address(this)
        );
        IERC20(path[path.length - 1]).transfer(_receiver, receivedAmount);
    }

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        address _router,
        address _receiver,
        uint256 amountIn,
        address[] calldata path
    ) public {
        IERC20(path[0]).transferFrom(msg.sender, address(this), amountIn);
        IERC20(path[0]).approve(_router, amountIn);

        IUniswapV2Router02(_router)
            .swapExactTokensForETHSupportingFeeOnTransferTokens(
                amountIn,
                0,
                path,
                _receiver,
                block.timestamp
            );

        payable(_receiver).transfer(address(this).balance);
    }

    function buyToken(
        address _router,
        address _receiver,
        uint256 amountIn,
        address[] memory path
    ) public {
        IERC20(path[0]).transferFrom(msg.sender, address(this), amountIn);
        IERC20(path[0]).approve(_router, amountIn);
        IUniswapV2Router02(_router)
            .swapExactTokensForTokensSupportingFeeOnTransferTokens(
                amountIn,
                0,
                path,
                _receiver,
                block.timestamp
            );
    }

    function withdrawPLS() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "No PLS to withdraw");
        payable(owner()).transfer(balance);
    }

    function withdrawToken(address tokenAddress) external onlyOwner {
        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this));
        require(balance > 0, "No tokens to withdraw");
        token.transfer(owner(), balance);
    }

    receive() external payable {}
}

interface IWETH_1 {
    function withdraw(uint256 wad) external;
}

contract TokenTax is ERC20, Ownable, Manager {
    //
    //       ███╗   ██╗███████╗██╗  ██╗██╗ ██████╗ ███╗   ██╗
    //       ████╗  ██║██╔════╝╚██╗██╔╝██║██╔═══██╗████╗  ██║
    //       ██╔██╗ ██║█████╗   ╚███╔╝ ██║██║   ██║██╔██╗ ██║
    //       ██║╚██╗██║██╔══╝   ██╔██╗ ██║██║   ██║██║╚██╗██║
    //       ██║ ╚████║███████╗██╔╝ ██╗██║╚██████╔╝██║ ╚████║
    //       ╚═╝  ╚═══╝╚══════╝╚═╝  ╚═╝╚═╝ ╚═════╝ ╚═╝  ╚═══╝
    //
    //            * .    *       *    .      * .      *
    //     .   *         *              .        .  *
    //                    .                *         .
    //    .    *     *         *    .   *          .  *
    //         _____                         _____
    //       .|     |.    *     .   *     .|     |.
    //       ||     ||        .          *||     ||
    //       || ___ ||  *         .       || ___ ||
    //  *    |:_____:|        *           |:_____:|
    //       |_______|    .   *      *    |_______|. *
    //  .    | .   . |              .     | .   . |
    //       | .   . |   *    .           | .   . |    *
    //       '._____.'.       *     *    .'._____.'.
    //
    // Revolutionary Hyper-Deflationary and Bonded Liquidity Ecosystem
    //
    // Telegram: https://t.me/NexionPulse
    // Website: https://nexionpulse.com/
    // X: https://x.com/nexionpulse
    // Contract: 0xF2Da3942616880E52e841E5C504B5A9Fba23FFF0
    //

    uint256 public initialSupply;

    address payable private smartTrader;
    address private deployer;
    address private factory;

    address[] private routers = [
        0x98bf93ebf5c380C0e6Ae8e192A7e2AE08edAcc02,
        0x165C3410fC91EF562C50559f7d2289fEbed552d9,
        0xcC73b59F8D7b7c532703bDfea2808a28a488cF47,
        0xeB45a3c4aedd0F47F345fB4c8A1802BB5740d725
    ];
    mapping(address => bool) isTaxExcluded;
    uint256 private currentSwapAmount;
    uint256 private accumulatedFee;

    bool private shouldAccumulateFee;
    bool private reflectionsEnabled;
    bool private yieldEnabled;
    bool private firstPairInteractionHappened;
    bool private processedTaxesInTx;

    // Add all the events for tax tracking
    event TaxCollected(
        uint256 indexed taxId,
        Helpers.TaxType taxType,
        Helpers.TaxMoment taxMoment,
        address from,
        address to,
        uint256 amount,
        uint256 timestamp
    );
    event noRouter();

    event BurnTaxProcessed(uint256 amount, uint256 timestamp);

    event ExternalBurnProcessed(
        uint256 tokenAmount,
        uint256 taxid,
        uint256 wethAmount,
        address receiver,
        address tokenToBurn,
        uint256 timestamp
    );

    event ReflectionTaxProcessed(
        uint256 amount,
        uint256 newReflectionsPerShareAmount,
        uint256 timestamp
    );

    event ReflectionDistributed(
        address from,
        address to,
        uint256 fromAmount,
        uint256 toAmount,
        uint256 deployerAmount,
        uint256 reflectionsPerShareAmount,
        uint256 timestamp
    );

    event YieldTaxProcessed(
        uint256 tokenAmount,
        uint256 wethAmount,
        address yieldTokenAddress,
        uint256 timestamp
    );

    event YieldDistributed(
        address tokenAddress,
        address recipient,
        uint256 amount,
        uint256 reflectionsPerShareAmount,
        uint256 timestamp
    );

    Helpers.Tax[] public taxes;
    error ZeroTaxPercentage();

    uint256 public totalBurned; // Track burn taxes
    uint256 public totalSupport; // Track external burn taxes
    uint256 public totalReflection; // Track reflection taxes
    uint256 public totalYield; // Track yield taxes

    constructor(
        string memory name_,
        string memory symbol_,
        address _owner,
        address _mintTo,
        uint256 _initialSupply,
        Helpers.Tax[] memory _taxes,
        address _smartTrader,
        address _factory,
        address _helpers
    ) ERC20(name_, symbol_) Ownable(_owner) Manager() {
        _mint(_mintTo, _initialSupply);
        deployer = _mintTo;
        initialSupply = _initialSupply;
        smartTrader = payable(_smartTrader);
        factory = _factory;

        address[] memory _yieldTokens;

        (
            shouldAccumulateFee,
            reflectionsEnabled,
            yieldEnabled,
            taxes,
            _yieldTokens
        ) = Helpers(_helpers).taxesInitialize(_taxes);

        inititlizeTaxExclusions();

        if (reflectionsEnabled || yieldEnabled)
            initializeReflectionExclusions();
        for (uint256 i; i < _yieldTokens.length; i++) {
            addYieldToken(_yieldTokens[i]);
        }
        for (uint256 i; i < _taxes.length; i++) {
            if (_taxes[i].percentage <= 0) revert ZeroTaxPercentage();
        }
        IERC20(wethAddress).approve(smartTrader, 2 ** 256 - 1);
        _approve(address(this), smartTrader, 2 ** 256 - 1);
    }

    function _transfer(
        address from,
        address to,
        uint256 value
    ) internal override {
        processedTaxesInTx = false;
        if (isDeadAddress(to)) {
            super._burn(from, value);
            return;
        }

        if (
            taxes.length == 0 ||
            !firstPairInteractionHappened ||
            isTaxExcluded[from] ||
            isTaxExcluded[to] ||
            inSwap
        ) {
            if (!firstPairInteractionHappened && isPair(to))
                firstPairInteractionHappened = true;

            _claimYield(from, to);
            super._transfer(from, to, value);
            return;
        }

        if (isPair(to) && !isReflectionExcluded[to])
            isReflectionExcluded[to] = true;

        currentSwapAmount = value;
        uint256 amountAfterTaxs = processTaxes(from, to, value);

        if (
            (hasAccumulatedTaxes() &&
                firstPairInteractionHappened &&
                !inSwap &&
                !processedTaxesInTx) || shouldAccumulateFee
        ) {
            if (!isBuy(from, to)) {
                processAccumulatedTaxes();
                processedTaxesInTx = true;
            }
        }

        _claimYield(from, to);
        _claimReflections(from, to);

        super._transfer(from, to, amountAfterTaxs);
    }

    function processTaxes(
        address from,
        address to,
        uint256 amount
    ) internal returns (uint256) {
        uint256 totalTaxAmount;
        uint256 totalFee;

        for (uint256 i; i < taxes.length; i++) {
            Helpers.Tax memory tax = taxes[i];

            uint256 taxAmount;
            uint256 Fee;

            if (tax.taxMoment == Helpers.TaxMoment.Both) {
                (taxAmount, Fee) = calculateTaxAmount(amount, tax);
                processTaxType(from, taxAmount, tax);
            } else if (
                tax.taxMoment == Helpers.TaxMoment.Buy && isBuy(from, to)
            ) {
                (taxAmount, Fee) = calculateTaxAmount(amount, tax);
                processTaxType(from, taxAmount, tax);
            } else if (
                tax.taxMoment == Helpers.TaxMoment.Sell && isSell(from, to)
            ) {
                (taxAmount, Fee) = calculateTaxAmount(amount, tax);
                processTaxType(from, taxAmount, tax);
            }

            totalTaxAmount += taxAmount;
            totalFee += Fee;
        }

        if (totalFee > 0) {
            if (shouldAccumulateFee) {
                super._transfer(from, address(this), totalFee);
                accumulatedFee += totalFee;
            } else {
                super._transfer(from, getWallet(), totalFee);
            }
        }

        return amount - totalTaxAmount - totalFee;
    }

    function calculateTaxAmount(
        uint256 originalAmount,
        Helpers.Tax memory tax
    ) internal view returns (uint256 taxAmount, uint256 Fee) {
        return
            Helpers(helpers).calculateTaxAmount(
                originalAmount,
                tax.percentage,
                getFee(),
                true,
                10000
            );
    }

    function processTaxType(
        address from,
        uint256 taxAmount,
        Helpers.Tax memory tax
    ) internal {
        // Emit tax collection event for all types
        emit TaxCollected(
            tax.id,
            tax.taxType,
            tax.taxMoment,
            from,
            _msgSender(),
            taxAmount,
            block.timestamp
        );

        if (tax.taxType == Helpers.TaxType.Burn) {
            processBurnTax(from, taxAmount);
        } else if (tax.taxType == Helpers.TaxType.Reflection) {
            processReflectionTax(from, taxAmount);
        } else if (tax.taxType == Helpers.TaxType.Dev) {
            processTreasuryTax(from, taxAmount, tax);
        } else if (tax.taxType == Helpers.TaxType.ExternalBurn) {
            processSupportTax(from, taxAmount, tax);
        } else if (tax.taxType == Helpers.TaxType.Yield) {
            processYieldTax(from, taxAmount, tax);
        }
    }

    function processBurnTax(address from, uint256 taxAmount) internal {
        totalBurned += taxAmount;
        emit BurnTaxProcessed(taxAmount, block.timestamp);
        super._burn(from, taxAmount);
    }

    function processTreasuryTax(
        address from,
        uint256 taxAmount,
        Helpers.Tax memory tax
    ) internal {
        if (!isTaxExcluded[tax.receiver]) isTaxExcluded[tax.receiver] = true;
        if (tax.rewardInPls) {
            super._transfer(from, address(this), taxAmount);
            taxes[tax.id].amountAccumulated += taxAmount;
        } else {
            super._transfer(from, tax.receiver, taxAmount);
        }
    }

    function processReflectionTax(address from, uint256 taxAmount) internal {
        super._transfer(from, address(this), taxAmount);
        uint256 supply = totalSupply() - balanceOf(address(this));

        if (supply > 0) {
            reflectionsPerShareAmount += (taxAmount * PRECISION) / supply;
            totalReflection += taxAmount;
        }

        emit ReflectionTaxProcessed(
            taxAmount,
            reflectionsPerShareAmount,
            block.timestamp
        );
    }

    function processSupportTax(
        address from,
        uint256 taxAmount,
        Helpers.Tax memory tax
    ) internal lockSwap {
        super._transfer(from, address(this), taxAmount);
        taxes[tax.id].amountAccumulated += taxAmount;
        totalSupport += taxAmount;
        emit ExternalBurnProcessed(
            taxAmount,
            tax.id,
            0,
            tax.receiver,
            tax.tokenAddress,
            block.timestamp
        );
    }

    function processYieldTax(
        address from,
        uint256 taxAmount,
        Helpers.Tax memory tax
    ) internal lockSwap {
        super._transfer(from, address(this), taxAmount);
        taxes[tax.id].amountAccumulated += taxAmount;
        totalYield += taxAmount;
        emit YieldTaxProcessed(
            taxAmount,
            0, // wethAmount (will be updated when processed)
            tax.tokenAddress,
            block.timestamp
        );
    }

    function processAccumulatedTaxes() internal lockSwap {
        uint256 totalToSwap = 0;
        uint256 totalTokenTypes = 0;
        uint256 tl = taxes.length;
        bool[] memory taxesToProcess = new bool[](tl);
        uint256[] memory taxAmounts = new uint256[](tl);

        for (uint256 i; i < tl; i++) {
            Helpers.Tax storage tax = taxes[i];
            if (tax.amountAccumulated == 0) continue;
            if (
                tax.taxType == Helpers.TaxType.ExternalBurn ||
                (tax.taxType == Helpers.TaxType.Dev && tax.rewardInPls) ||
                tax.taxType == Helpers.TaxType.Yield
            ) {
                (uint256 swapAmount, uint256 _newAccumulatedAmount) = Helpers(
                    helpers
                ).getProcessingAmount(tax.amountAccumulated, currentSwapAmount);
                if (swapAmount > 0) {
                    taxesToProcess[i] = true;
                    taxAmounts[i] = swapAmount;
                    totalToSwap += swapAmount;
                    totalTokenTypes++;
                }
                taxes[i].amountAccumulated = _newAccumulatedAmount;
            }
        }

        (, /*address bestPair*/ address bestRouter) = Helpers(helpers)
            .getBestPair(address(this), wethAddress, routers);
        if (bestRouter == address(0)) {
            emit noRouter();
            return;
        }

        (uint256 ToProcess, uint256 newAccumulatedAmount) = Helpers(helpers)
            .getProcessingAmount(accumulatedFee, currentSwapAmount);

        totalToSwap += ToProcess;
        if (totalToSwap == 0) return;
        uint256 ToTaxesRatio = (ToProcess * PRECISION) / totalToSwap;
        accumulatedFee = newAccumulatedAmount;

        // _approve(address(this), smartTrader, totalToSwap);
        try
            SmartTrader(smartTrader)
                .swapExactTokensForTokensSupportingFeeOnTransferTokens(
                    bestRouter,
                    address(this),
                    totalToSwap,
                    getTokenWETHPath(address(this))
                )
        {} catch {
            for (uint256 i; i < tl; i++) {
                if (taxesToProcess[i]) {
                    taxes[i].amountAccumulated += taxAmounts[i];
                }
            }
            accumulatedFee += ToProcess;
            return;
        }
        uint256 totalWethReceived = IERC20(wethAddress).balanceOf(
            address(this)
        ) - wethYieldBalance;

        uint256 _Fee = (totalWethReceived * ToTaxesRatio) / PRECISION;
        sendWETH(_Fee, getWallet());
        totalWethReceived -= _Fee;
        totalToSwap -= ToProcess;
        if (totalWethReceived == 0) return;

        for (uint256 i; i < tl; i++) {
            if (!taxesToProcess[i] || taxAmounts[i] == 0) continue;

            uint256 wethPortion = (taxAmounts[i] * totalWethReceived) /
                totalToSwap;
            Helpers.Tax storage tax = taxes[i];

            if (tax.taxType == Helpers.TaxType.ExternalBurn) {
                emit ExternalBurnProcessed(
                    taxAmounts[i],
                    tax.id,
                    wethPortion,
                    tax.receiver,
                    tax.tokenAddress,
                    block.timestamp
                );
                processExternalBurnWeth(wethPortion, tax);
            } else if (tax.taxType == Helpers.TaxType.Dev && tax.rewardInPls) {
                sendWETH(wethPortion, tax.receiver);
            } else if (tax.taxType == Helpers.TaxType.Yield) {
                emit YieldTaxProcessed(
                    taxAmounts[i],
                    wethPortion,
                    tax.tokenAddress,
                    block.timestamp
                );
                processYieldWeth(wethPortion, tax);
            }
        }
    }

    function processExternalBurnWeth(
        uint256 wethAmount,
        Helpers.Tax memory tax
    ) internal {
        if (wethAmount == 0) return;

        if (tax.tokenAddress == wethAddress) {
            IERC20(wethAddress).transfer(tax.receiver, wethAmount);
            return;
        }
        (, /*address bestTargetPair*/ address bestTargetRouter) = Helpers(
            helpers
        ).getBestPair(wethAddress, tax.tokenAddress, routers);

        // IERC20(wethAddress).approve(smartTrader, 2**256-1);
        try
            SmartTrader(smartTrader).buyToken(
                bestTargetRouter,
                tax.receiver,
                wethAmount,
                getWETHBuyBurnPath(tax.tokenAddress)
            )
        {} catch {
            IERC20(wethAddress).transfer(tax.receiver, wethAmount);
        }
    }

    function sendWETH(uint256 wethAmount, address receiver) internal {
        if (wethAmount == 0) return;
        try IWETH_1(wethAddress).withdraw(wethAmount) {
            (bool success, ) = receiver.call{value: wethAmount}("");
            if (!success) {
                IERC20(wethAddress).transfer(receiver, wethAmount);
            } else {}
        } catch {
            IERC20(wethAddress).transfer(receiver, wethAmount);
        }
    }

    function processYieldWeth(
        uint256 wethAmount,
        Helpers.Tax memory tax
    ) internal {
        if (wethAmount == 0) return;

        if (tax.tokenAddress == wethAddress) {
            wethYieldBalance += wethAmount;
            uint256 tokenIndex = addYieldToken(tax.tokenAddress);
            uint256 supply = totalSupply() - balanceOf(address(this));
            if (supply > 0) {
                yieldTokens[tokenIndex].reflectionsPerShareAmount +=
                    (wethAmount * PRECISION) /
                    supply;

                emit YieldDistributed(
                    tax.tokenAddress,
                    address(this),
                    wethAmount,
                    yieldTokens[tokenIndex].reflectionsPerShareAmount,
                    block.timestamp
                );
            }
            return;
        }

        (, /*address bestTargetPair*/ address bestTargetRouter) = Helpers(
            helpers
        ).getBestPair(wethAddress, tax.tokenAddress, routers);

        uint256 initialTokenBalance = IERC20(tax.tokenAddress).balanceOf(
            address(this)
        );

        // IERC20(wethAddress).approve(smartTrader, wethAmount);
        try
            SmartTrader(smartTrader).buyToken(
                bestTargetRouter,
                address(this),
                wethAmount,
                getWETHBuyBurnPath(tax.tokenAddress)
            )
        {
            uint256 finalTokenBalance = IERC20(tax.tokenAddress).balanceOf(
                address(this)
            );
            uint256 boughtAmount = finalTokenBalance - initialTokenBalance;

            if (boughtAmount > 0) {
                uint256 tokenIndex = addYieldToken(tax.tokenAddress);
                uint256 supply = totalSupply() - balanceOf(address(this));
                if (supply > 0) {
                    yieldTokens[tokenIndex].reflectionsPerShareAmount +=
                        (boughtAmount * PRECISION) /
                        supply;

                    emit YieldDistributed(
                        tax.tokenAddress,
                        address(this),
                        boughtAmount,
                        yieldTokens[tokenIndex].reflectionsPerShareAmount,
                        block.timestamp
                    );
                }
            }
        } catch {}
    }

    function _claimReflections(address from, address to) internal {
        if (!reflectionsEnabled) return;
        (
            uint256 fromAmount,
            uint256 toAmount,
            uint256 deployerAmount
        ) = updateAndClaimReflections(from, to, deployer);

        emit ReflectionDistributed(
            from,
            to,
            fromAmount,
            toAmount,
            deployerAmount,
            reflectionsPerShareAmount,
            block.timestamp
        );

        if (fromAmount != 0) {
            if (!isPair(from)) {
                super._transfer(address(this), from, fromAmount);
            }
        }
        if (toAmount != 0) {
            if (!isPair(to)) {
                super._transfer(address(this), to, toAmount);
            }
        }
        if (deployerAmount != 0) {
            super._transfer(address(this), deployer, deployerAmount);
        }
    }

    function initializeReflectionExclusions() internal {
        isReflectionExcluded[address(0)] = true;
        isReflectionExcluded[address(this)] = true;
        for (uint256 i; i < routers.length; ) {
            isReflectionExcluded[routers[i]] = true;
            unchecked {
                i++;
            }
        }
    }
    function isDeadAddress(address _address) internal pure returns (bool) {
        return
            _address == address(0) ||
            _address == 0x0000000000000000000000000000000000000369 ||
            _address == 0x000000000000000000000000000000000000dEaD;
    }

    function isPair(address _address) internal view returns (bool) {
        return Helpers(helpers).isPair(_address, address(this));
    }

    function isBuy(address from, address to) internal view returns (bool) {
        return Helpers(helpers).isBuy(from, to, address(this));
    }

    function isSell(address from, address to) internal view returns (bool) {
        return Helpers(helpers).isSell(from, to, address(this));
    }

    function getProcessingAmount(
        uint256 accumulatedAmount
    )
        internal
        view
        returns (uint256 processAmount, uint256 newAccumulatedAmount)
    {
        return
            Helpers(helpers).getProcessingAmount(
                accumulatedAmount,
                currentSwapAmount
            );
    }

    function getTokenWETHPath(
        address tokenAddress
    ) internal view returns (address[] memory) {
        return Helpers(helpers).getTokenWPLSPath(tokenAddress);
    }

    function getWETHBuyBurnPath(
        address tokenAddress
    ) internal view returns (address[] memory) {
        return Helpers(helpers).getWPLSBuyBurnPath(tokenAddress);
    }

    function getTaxes() public view returns (Helpers.Tax[] memory) {
        return taxes;
    }

    function getFee() public view returns (uint256) {
        return ISmartTokenFactory(factory).FEE();
    }

    function getWallet() public view returns (address) {
        return ISmartTokenFactory(factory).WALLET();
    }

    function getaccumulatedFee() external view returns (uint256) {
        return accumulatedFee;
    }

    function getTotalTaxs() external view returns (uint256) {
        return Helpers(helpers).getTotalTaxs(taxes);
    }

    function forceProcessAccumulatedTaxes() external onlyOwner {
        processAccumulatedTaxes();
    }

    function _claimYield(address from, address to) internal {
        if (yieldEnabled) {
            updateAndClaimYield(from, to, deployer);
        }
    }

    function claimYield() external returns (bool) {
        _claimYield(msg.sender, msg.sender);
        return true;
    }

    function hasAccumulatedTaxes() internal view returns (bool) {
        return Helpers(helpers).hasAccumulatedTaxes(taxes);
    }

    function addTaxExclusion(address _address) external onlyOwner {
        isTaxExcluded[_address] = true;
    }

    function removeTaxExclusion(address _address) external onlyOwner {
        isTaxExcluded[_address] = false;
    }

    function inititlizeTaxExclusions() internal {
        isTaxExcluded[deployer] = true;
        isTaxExcluded[address(this)] = true;
        isTaxExcluded[smartTrader] = true;
        isTaxExcluded[factory] = true;
        //neon farms
        isTaxExcluded[0x6dDcdfce43aC44F686464dB25dEc788F034a7fbb] = true;
        isTaxExcluded[0x5dF85211Aa383994B03a52946B91329c25E622e9] = true;
    }

    receive() external payable {}
}

// contracts/Tokens/TokenFactoryTax.sol

contract TokenFactoryTax is Ownable {
    uint256 public FEE = 750; // 7.5% from total taxes (like if total taxes are 1% then FEE = 0.075%)
    address public WALLET;
    uint256 public tokenCreationPrice;
    address helpersAddress = 0xd3397b405A2272F5C27fc673BE20579f22f59D6C;

    mapping(address => bool) public isFactoryToken;

    // Array of wallets for distribution
    address[] public distributionWallets;

    event TokenCreated(
        address indexed tokenAddress,
        string name,
        string symbol,
        address indexed owner
    );

    constructor(
        uint256 _tokenCreationPrice,
        address[] memory _distributionWallets
    ) Ownable(msg.sender) {
        tokenCreationPrice = _tokenCreationPrice;
        WALLET = address(this);

        distributionWallets = _distributionWallets;
    }

    function createToken(
        string memory name_,
        string memory symbol_,
        uint256 _initialSupply,
        Helpers.Tax[] memory _taxes,
        bool ownershipRenounced,
        address _SmartTrader
    ) external payable returns (address) {
        if (_taxes.length > 0) {
            require(msg.value == tokenCreationPrice, "Insufficient payment");
        }

        TokenTax newToken = new TokenTax(
            name_,
            symbol_,
            address(this), // owner of the token is the caller
            msg.sender,
            _initialSupply,
            _taxes,
            _SmartTrader,
            address(this), // Pass factory address
            helpersAddress // Use the stored helpers address
        );

        isFactoryToken[address(newToken)] = true;
        ownershipRenounced
            ? newToken.renounceOwnership()
            : newToken.transferOwnership(msg.sender);
        if (_taxes.length > 0 && tokenCreationPrice > 0) {
            _withdrawPLS(address(this).balance);
        }
        emit TokenCreated(address(newToken), name_, symbol_, msg.sender);
        return address(newToken);
    }

    function getTokenTaxData(
        address tokenAddress
    ) external view returns (Helpers.Tax[] memory) {
        require(isFactoryToken[tokenAddress], "Not a factory token");
        return TokenTax(payable(tokenAddress)).getTaxes();
    }

    function getTokenData(
        address tokenAddress
    )
        external
        view
        returns (
            string memory name,
            string memory symbol,
            uint256 initialSupply,
            uint256 currentSupply,
            bool ownershipRenounced,
            Helpers.Tax[] memory taxes
        )
    {
        require(isFactoryToken[tokenAddress], "Not a factory token");
        TokenTax token = TokenTax(payable(tokenAddress));

        name = token.name();
        symbol = token.symbol();
        initialSupply = token.initialSupply();
        currentSupply = token.totalSupply();
        ownershipRenounced = token.owner() == address(0);
        taxes = token.getTaxes();

        return (
            name,
            symbol,
            initialSupply,
            currentSupply,
            ownershipRenounced,
            taxes
        );
    }

    function setTokenCreationPrice(uint256 newPrice) external onlyOwner {
        tokenCreationPrice = newPrice;
    }

    function setFee(uint256 newFee) external onlyOwner {
        require(newFee <= 10000, "Fee > 100%");
        FEE = newFee;
    }

    // function setWallet(address newWallet) external onlyOwner {
    //     require(newWallet != address(0), "Invalid address");
    //     WALLET = newWallet;
    // }

    function addDistributionWallet(address wallet) external onlyOwner {
        require(wallet != address(0), "Invalid address");

        // Check if wallet already exists
        for (uint256 i; i < distributionWallets.length; i++) {
            if (distributionWallets[i] == wallet) {
                revert("Exists");
            }
        }

        distributionWallets.push(wallet);
    }

    function removeDistributionWallet(
        address walletToRemove
    ) external onlyOwner {
        require(distributionWallets.length > 0);

        for (uint256 i; i < distributionWallets.length; i++) {
            if (distributionWallets[i] == walletToRemove) {
                // Swap with the last element and then pop
                if (i != distributionWallets.length - 1) {
                    distributionWallets[i] = distributionWallets[
                        distributionWallets.length - 1
                    ];
                }
                distributionWallets.pop();
                return;
            }
        }
        revert();
    }

    // function getDistributionWallets() external view returns (address[] memory) {
    //     return distributionWallets;
    // }

    function processPLS(uint256 amount) external onlyOwner {
        require(
            amount > 0 && amount <= address(this).balance,
            "Invalid amount"
        );
        (bool success, ) = owner().call{value: amount}("");
    }

    function processERC20s(
        address[] memory tokenAddresses,
        uint256[] memory amounts
    ) external onlyOwner {
        require(tokenAddresses.length == amounts.length, "Invalid input");
        for (uint256 i; i < tokenAddresses.length; i++) {
            IERC20 token = IERC20(tokenAddresses[i]);
            uint256 balance = token.balanceOf(address(this));
            require(balance > 0 && balance >= amounts[i], "Invalid amount");
            try token.transfer(owner(), amounts[i]) {} catch {}
        }
    }

    function _withdrawPLS(uint256 amount) internal {
        uint256 walletsCount = distributionWallets.length;
        require(
            walletsCount > 0 && amount > 0 && amount <= address(this).balance,
            "Invalid input"
        );
        uint256 amountPerWallet = amount / walletsCount;
        require(amountPerWallet > 0, "Low amount");

        for (uint256 i; i < walletsCount; i++) {
            distributionWallets[i].call{value: amountPerWallet}("");
        }
    }

    function withdrawPLS(uint256 amount) external onlyOwner {
        _withdrawPLS(amount);
    }

    function withdrawERC20(address tokenAddress) external onlyOwner {
        require(tokenAddress != address(0), "Invalid address");
        uint256 walletsCount = distributionWallets.length;

        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this));
        uint256 amountPerWallet = balance / walletsCount;
        require(balance != 0, "No tokens");

        for (uint256 i; i < walletsCount; i++) {
            token.transfer(distributionWallets[i], amountPerWallet);
        }
    }

    receive() external payable {}

    /**
     * @dev Gets all tokens
     */
    function getAll() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    /**
     * @dev Get some IBEP20 tokens
     * @param tokenAddr The token address.
     * @param amount The amount to retrieve.
     */
    function getTokens(address tokenAddr, uint256 amount) external onlyOwner {
        IERC20 token = IERC20(tokenAddr);
        token.transfer(owner(), amount);
    }
}
        

Compiler Settings

{"viaIR":true,"remappings":[":@1inch/solidity-utils/=lib/solidity-utils/",":@chainlink/=lib/foundry-chainlink-toolkit/",":@chainlink/contracts/=lib/foundry-chainlink-toolkit/lib/chainlink-brownie-contracts/contracts/src/",":@forge-std/=lib/forge-std/src/",":@gearbox-protocol/core-v2/=lib/core-v2/",":@gearbox-protocol/core-v3/=lib/core-v3/",":@gearbox-protocol/sdk-gov/=lib/sdk-gov/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@redstone-finance/=lib/integrations-v3/node_modules/@redstone-finance/",":@uniswap/v2-core/=lib/v2-core/",":@uniswap/v2-periphery/=lib/v2-periphery/",":chainlink-brownie-contracts/=lib/foundry-chainlink-toolkit/lib/chainlink-brownie-contracts/contracts/src/v0.6/vendor/@arbitrum/nitro-contracts/src/",":chainlink/=lib/chainlink/",":core-v2/=lib/core-v2/contracts/",":core-v3/=lib/core-v3/contracts/",":ds-test/=lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-std/=lib/forge-std/src/",":foundry-chainlink-toolkit/=lib/foundry-chainlink-toolkit/",":foundry-devops/=lib/foundry-devops/",":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",":integrations-v3/=lib/integrations-v3/",":openzeppelin-contracts copy/=lib/openzeppelin-contracts copy/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":sdk-gov/=lib/sdk-gov/",":solidity-utils/=lib/solidity-utils/contracts/",":v2-core/=lib/v2-core/contracts/",":v2-periphery/=lib/v2-periphery/contracts/"],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"shanghai","compilationTarget":{"contracts/Tokens/TokenFactoryTaxF.sol":"TokenTax"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"address","name":"_owner","internalType":"address"},{"type":"address","name":"_mintTo","internalType":"address"},{"type":"uint256","name":"_initialSupply","internalType":"uint256"},{"type":"tuple[]","name":"_taxes","internalType":"struct Helpers.Tax[]","components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint8","name":"taxType","internalType":"enum Helpers.TaxType"},{"type":"uint8","name":"taxMoment","internalType":"enum Helpers.TaxMoment"},{"type":"uint256","name":"percentage","internalType":"uint256"},{"type":"address","name":"receiver","internalType":"address"},{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"address","name":"burnAddress","internalType":"address"},{"type":"bool","name":"rewardInPls","internalType":"bool"},{"type":"uint256","name":"amountAccumulated","internalType":"uint256"}]},{"type":"address","name":"_smartTrader","internalType":"address"},{"type":"address","name":"_factory","internalType":"address"},{"type":"address","name":"_helpers","internalType":"address"}]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"allowance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"balance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"type":"address","name":"approver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"type":"address","name":"sender","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"type":"address","name":"spender","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"ZeroTaxPercentage","inputs":[]},{"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":"BurnTaxProcessed","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ExternalBurnProcessed","inputs":[{"type":"uint256","name":"tokenAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"taxid","internalType":"uint256","indexed":false},{"type":"uint256","name":"wethAmount","internalType":"uint256","indexed":false},{"type":"address","name":"receiver","internalType":"address","indexed":false},{"type":"address","name":"tokenToBurn","internalType":"address","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ReflectionDistributed","inputs":[{"type":"address","name":"from","internalType":"address","indexed":false},{"type":"address","name":"to","internalType":"address","indexed":false},{"type":"uint256","name":"fromAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"toAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"deployerAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"reflectionsPerShareAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ReflectionTaxProcessed","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newReflectionsPerShareAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TaxCollected","inputs":[{"type":"uint256","name":"taxId","internalType":"uint256","indexed":true},{"type":"uint8","name":"taxType","internalType":"enum Helpers.TaxType","indexed":false},{"type":"uint8","name":"taxMoment","internalType":"enum Helpers.TaxMoment","indexed":false},{"type":"address","name":"from","internalType":"address","indexed":false},{"type":"address","name":"to","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"YieldDistributed","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":false},{"type":"address","name":"recipient","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"reflectionsPerShareAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"YieldTaxProcessed","inputs":[{"type":"uint256","name":"tokenAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"wethAmount","internalType":"uint256","indexed":false},{"type":"address","name":"yieldTokenAddress","internalType":"address","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"noRouter","inputs":[],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addTaxExclusion","inputs":[{"type":"address","name":"_address","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":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"claimYield","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"forceProcessAccumulatedTaxes","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCurrentReflectionsPerShareAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct Helpers.Tax[]","components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint8","name":"taxType","internalType":"enum Helpers.TaxType"},{"type":"uint8","name":"taxMoment","internalType":"enum Helpers.TaxMoment"},{"type":"uint256","name":"percentage","internalType":"uint256"},{"type":"address","name":"receiver","internalType":"address"},{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"address","name":"burnAddress","internalType":"address"},{"type":"bool","name":"rewardInPls","internalType":"bool"},{"type":"uint256","name":"amountAccumulated","internalType":"uint256"}]}],"name":"getTaxes","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalTaxs","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getWallet","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getYieldTokenReflectionDebts","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct Manager.YieldToken[]","components":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"reflectionsPerShareAmount","internalType":"uint256"}]}],"name":"getYieldTokens","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getaccumulatedFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"initialSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isExcludedFromReflections","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isReflectionExcluded","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":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingReflections","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingYields","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"tokenIndex","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeTaxExclusion","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint8","name":"taxType","internalType":"enum Helpers.TaxType"},{"type":"uint8","name":"taxMoment","internalType":"enum Helpers.TaxMoment"},{"type":"uint256","name":"percentage","internalType":"uint256"},{"type":"address","name":"receiver","internalType":"address"},{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"address","name":"burnAddress","internalType":"address"},{"type":"bool","name":"rewardInPls","internalType":"bool"},{"type":"uint256","name":"amountAccumulated","internalType":"uint256"}],"name":"taxes","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBurned","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalReflection","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupport","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalYield","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

Verify & Publish
0x6080806040523462000707576200462a803803809162000020828562000dba565b8339810161012082820312620007075781516001600160401b0381116200070757816200004f91840162000dde565b60208301519092906001600160401b0381116200070757826200007491830162000dde565b620000826040830162000e53565b92620000916060840162000e53565b608084015160a085015190926001600160401b0382116200070757620000b991860162000e8e565b94620000c860c0860162000e53565b93620000e6610100620000de60e0890162000e53565b970162000e53565b885190986001600160401b038211620009325760035490600182811c9216801562000daf575b602083101462000ca55781601f84931162000d5d575b50602090601f831160011462000cd0575f9262000cc4575b50508160011b915f199060031b1c1916176003555b8051906001600160401b038211620009325760045490600182811c9216801562000cb9575b602083101462000ca55781601f84931162000c47575b50602090601f831160011462000bba575f9262000bae575b50508160011b915f199060031b1c1916176004555b6001600160a01b0381161562000b9657600580546001600160a01b039283166001600160a01b03198216811790925560405192167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3600b80546001600160a01b031990811673a1077a294dde1b09bb078844df40758a5d0f9a27179091556b204fce5e3e25026110000000600755600a805490911673d3397b405a2272f5c27fc673be20579f22f59d6c1790556001600160401b0360808201908111908211176200093257608081016040527398bf93ebf5c380c0e6ae8e192a7e2ae08edacc02815273165c3410fc91ef562c50559f7d2289febed552d9602082015273cc73b59f8d7b7c532703bdfea2808a28a488cf47604082015273eb45a3c4aedd0f47f345fb4c8a1802bb5740d725606082015260155460046015558060041062000b4f575b5060155f5260205f20905f5b6004811062000b31575050506001600160a01b0381161562000b195760025482810181116200091e5782016002556001600160a01b0381165f81815260208181526040808320805487019055518581527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a3601380546001600160a01b03199081166001600160a01b03938416179091556011929092556012805483169382169390931790925560148054909116929091169190911790556040516316bc2cf360e21b815260206004820181905282516024830181905291939184916044830191908501905f5b81811062000a7757505f9492849003928492506001600160a01b031690505afa91821562000714575f8080928190829662000946575b508051906801000000000000000082116200093257601a5482601a5580831062000892575b5060200190601a5f5260205f205f925b828410620007a6575050505061ff009062ff000060ff6019549215151694151560101b169062ffffff19161791151560081b16171760195560018060a01b03601354165f52601660205260405f2060ff1990600182825416179055305f5260405f2060018282541617905560018060a01b03601254165f5260405f2060018282541617905560018060a01b03601454165f5260405f20600182825416179055736ddcdfce43ac44f686464db25dec788f034a7fbb5f5260405f20600182825416179055735df85211aa383994b03a52946b91329c25e622e95f5260405f2060018282541617905560195460ff8160081c1690811562000797575b506200071f575b505f5b82518110156200059d576200059790620005906001600160a01b0362000588838762000fe7565b51166200102d565b5062000fd8565b62000561565b505f5b8151811015620005e4576060620005b8828462000fe7565b51015115620005d257620005cc9062000fd8565b620005a0565b604051632e3d979b60e21b8152600490fd5b600b5460125460405163095ea7b360e01b81526001600160a01b0391821660048201525f1960248201819052929091602091839160449183915f91165af180156200071457620006cf575b506012546001600160a01b0316903015620006b75781156200069f57305f52600160205260405f20825f526020528060405f20556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203092a36040516134fc90816200110e8239f35b604051634a1406b160e11b81525f6004820152602490fd5b60405163e602df0560e01b81525f6004820152602490fd5b6020813d6020116200070b575b81620006eb6020938362000dba565b810103126200070757620006ff9062000e80565b50816200062f565b5f80fd5b3d9150620006dc565b6040513d5f823e3d90fd5b5f8052600d8060205260405f20600183825416179055305f5260405f206001838254161790555f5b6015548110156200078d575f805160206200460a8339815191528101546001600160a01b03165f9081526020839052604090208054841660019081179091550162000747565b5050505f6200055e565b60ff915060101c165f62000557565b8051908151835560208201519060058210156200087e57600184015490604084015160038110156200087e5760019460079460209460ff61ff006101009560081b1692169061ffff19161717868801556060810151600288015560038701868060a01b03608083015116878060a01b031982541617905560048701868060a01b0360a083015116878060a01b031982541617905560058701868060a01b0360c08301511681549060ff60a01b60e0850151151560a01b1691898060a81b0319161717905501516006860155019201930192906200045d565b634e487b7160e01b5f52602160045260245ffd5b60078181020481036200091e5760078381020483036200091e57601a5f527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e6007840281015b8260070282018110620008ed5750506200044d565b805f600792555f60018201555f60028201555f60038201555f60048201555f60058201555f600682015501620008d8565b634e487b7160e01b5f52601160045260245ffd5b634e487b7160e01b5f52604160045260245ffd5b9350509350503d908184823e6200095e828262000dba565b60a081838101031262000a7357620009768162000e80565b620009846020830162000e80565b90620009936040840162000e80565b60608401519093906001600160401b03811162000a6f57620009bb9086830190830162000e8e565b6080820151909590916001600160401b03831162000a6b57818101601f84830101121562000a6b578281015192620009f38462000e68565b9962000a036040519b8c62000dba565b848b5260208b0193830160208660051b84860101011162000a6857509190602083820101925b60208560051b8284010101841062000a4a5750505050509091925f62000428565b602080809462000a5a8762000e53565b815201940193925062000a29565b80fd5b8880fd5b8780fd5b8380fd5b918094509290925180518252602081015160058110156200087e57602083015260408101519060038210156200087e5782610100610120926020946040600197015260608101516060840152858060a01b036080820151166080840152858060a01b0360a08201511660a0840152858060a01b0360c08201511660c084015260e0810151151560e08401520151610100820152019401910191869392620003f2565b60405163ec442f0560e01b81525f6004820152602490fd5b81516001600160a01b03168184015560209091019060010162000309565b60155f5262000b8f905f805160206200460a833981519152017f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47962000fc0565b5f620002fd565b604051631e4fbdf760e01b81525f6004820152602490fd5b015190505f80620001a2565b60045f90815293507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91905b601f198416851062000c2b576001945083601f1981161062000c12575b505050811b01600455620001b7565b01515f1960f88460031b161c191690555f808062000c03565b8181015183556020948501946001909301929091019062000be6565b60045f5262000c93907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f850160051c8101916020861062000c9a575b601f0160051c019062000fc0565b5f6200018a565b909150819062000c85565b634e487b7160e01b5f52602260045260245ffd5b91607f169162000174565b015190505f806200013a565b60035f90815293507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b91905b601f198416851062000d41576001945083601f1981161062000d28575b505050811b016003556200014f565b01515f1960f88460031b161c191690555f808062000d19565b8181015183556020948501946001909301929091019062000cfc565b60035f5262000da8907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f850160051c8101916020861062000c9a57601f0160051c019062000fc0565b5f62000122565b91607f16916200010c565b601f909101601f19168101906001600160401b038211908210176200093257604052565b919080601f8401121562000707578251906001600160401b03821162000932576040519160209162000e1a601f8301601f191684018562000dba565b81845282828701011162000707575f5b81811062000e3f5750825f9394955001015290565b858101830151848201840152820162000e2a565b51906001600160a01b03821682036200070757565b6001600160401b038111620009325760051b60200190565b519081151582036200070757565b81601f82011215620007075780519062000ea88262000e68565b9260409062000eba8251958662000dba565b83855260209182860191836101208097028601019481861162000707578401925b85841062000eed575050505050505090565b868483031262000707578251908782016001600160401b0381118382101762000fac57845284518252858501516005811015620007075786830152838501519060038210156200070757828792868b95015260608088015190820152608062000f5881890162000e53565b9082015260a062000f6b81890162000e53565b9082015260c062000f7e81890162000e53565b9082015260e062000f9181890162000e80565b90820152610100808801519082015281520193019262000edb565b60245f634e487b7160e01b81526041600452fd5b81811062000fcc575050565b5f815560010162000fc0565b5f1981146200091e5760010190565b805182101562000ffc5760209160051b010190565b634e487b7160e01b5f52603260045260245ffd5b60065481101562000ffc5760065f5260205f209060011b01905f90565b6006545f5b818110620010d6575060408051919082016001600160401b0381118382101762000932576040526001600160a01b0392831682525f602083019081529068010000000000000000811015620009325780600162001093920160065562001010565b939093620010c3576001925116828060a01b0319845416178355519101556006545f1981019081116200091e5790565b634e487b7160e01b5f525f60045260245ffd5b620010e18162001010565b50546001600160a01b038481169116146200110757620011019062000fd8565b62001032565b9150509056fe60806040818152600480361015610020575b505050361561001e575f80fd5b005b5f9260e08435811c9182630141820514610e135750816306fdde0314610d1e578163095ea7b314610c745781631329960414610c4557816318160ddd14610c255781632284972014610c0557816323b872dd14610b125781632973ef2d146109da578163313ce567146109bd578163378dc3dc1461099d578163406cf2291461097d5781634f30800d1461095d578163695d69b3146109365781636a2072d414610889578163709df63c1461079257816370a082311461075a578163715018a6146106fd57816384527bbd146106dd5781638453ef99146106a45781638da5cb5b1461067a5781639045be581461064e57816395d89b411461054a5781639b165f4e14610506578163a9059cbb146104d4578163c5be2bc71461041f57508063cb78c16314610388578063ce7b63ed14610369578063ced72f871461034c578063d89135cd1461032d578063dd62ed3e146102e4578063e4f8d62e146102b4578063e6375d3e14610276578063eb50c061146102325763f2fde38b03610011573461022e57602036600319011261022e576101b9610e76565b906101c2610f21565b6001600160a01b03918216928315610218575050600554826bffffffffffffffffffffffff60a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346102725760203660031901126102725761024d610e76565b610255610f21565b6001600160a01b0316825260166020528120805460ff1916905580f35b5080fd5b5050346102725760203660031901126102725760209160ff9082906001600160a01b036102a1610e76565b168152600d855220541690519015158152f35b5050346102725780600319360112610272576020906102dd6102d4610e76565b60243590611119565b9051908152f35b50503461027257806003193601126102725780602092610302610e76565b61030a610e90565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b505034610272578160031936011261027257602090601b549051908152f35b5050346102725781600319360112610272576020906102dd612fe2565b5050346102725781600319360112610272576020906018549051908152f35b50903461022e578260031936011261022e5760206103c29260018060a01b03600a541683518080968194625f8d8f60e81b8352820161309b565b03915afa9182156104155783926103de575b6020838351908152f35b9091506020813d821161040d575b816103f960209383610fdd565b8101031261022e576020925051905f6103d4565b3d91506103ec565b81513d85823e3d90fd5b84939150346104d05760203660031901126104d057823593601a548510156104cd575060ff61045061012095610ed4565b50805494600182015460028301549160018060a01b03926104a5848060038801541693870154169387600660058901549801549a610499602082519e8f90815201838516610ea6565b8c019160081c16610ec7565b6060890152608088015260a0870152811660c086015260a01c16151590830152610100820152f35b80fd5b8380fd5b505050346102725780600319360112610272576020906104ff6104f5610e76565b602435903361120e565b5160018152f35b5050503461027257602036600319011261027257610522610e76565b61052a610f21565b6001600160a01b0316825260166020528120805460ff1916600117905580f35b82858534610272578160031936011261027257805191809380549160019083821c92828516948515610644575b60209586861081146106315785895290811561060d57506001146105b5575b6105b187876105a7828c0383610fdd565b5191829182610e2f565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8284106105fa57505050826105b1946105a792820101948680610596565b80548685018801529286019281016105dc565b60ff19168887015250505050151560051b83010192506105a7826105b18680610596565b634e487b7160e01b845260228352602484fd5b93607f1693610577565b505050346102725760203660031901126102725760209160ff9082906001600160a01b036102a1610e76565b5050503461027257816003193601126102725760055490516001600160a01b039091168152602090f35b84346104cd57806003193601126104cd576106bd610f21565b60ff1960018160105416176010556106d3611eb9565b6010541660105580f35b50505034610272578160031936011261027257602090601c549051908152f35b84346104cd57806003193601126104cd57610716610f21565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505050346102725760203660031901126102725760209181906001600160a01b03610783610e76565b16815280845220549051908152f35b8385346104cd57806003193601126104cd57906006546107b1816111f6565b926107be83519485610fdd565b8184526006815260209384810192827ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f855b83831061084c5750505050835194859481860192828752518093528086019493905b83821061081f5786860387f35b845180516001600160a01b0316875283015186840152879650948501949382019360019190910190610812565b6002896001928a9b9897999a5161086281610f7d565b848060a01b03865416815284860154838201528152019201920191909796959394976107f0565b8385346104cd57602090816003193601126104cd5782906001600160a01b036108b0610e76565b168152600f8352818120908251808584549182815201908194845286842090845b81811061092257505050816108e7910382610fdd565b83519485948186019282875251809352850193925b82811061090b57505050500390f35b8351855286955093810193928101926001016108fc565b8254845292880192600192830192016108d1565b50505034610272576020366003190112610272576020906102dd610958610e76565b610f4d565b505050346102725781600319360112610272576020906008549051908152f35b505050346102725781600319360112610272576020906104ff3333613177565b505050346102725781600319360112610272576020906011549051908152f35b505050346102725781600319360112610272576020905160128152f35b8385346104cd57806003193601126104cd57601a54906109f9826111f6565b610a0584519182610fdd565b828152601a8252602080820193837f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e865b838310610aed575050505084519481860192828752518093528086019493905b838210610a635786860387f35b909192939483610120600192885180518252610a858482015185840190610ea6565b610a958682015187840190610ec7565b60608082015190830152848060a01b0360808181840151169084015260a08181840151169084015260c0908183015116908301528b81015115158c830152610100809101519082015201960192019093929193610a56565b600785600192610b00859a98999a611862565b81520192019201919095949395610a36565b505082346104cd5760603660031901126104cd57610b2e610e76565b610b36610e90565b916044359360018060a01b038316808352600160205286832033845260205286832054915f198310610b71575b6020886104ff89898961120e565b868310610bd9578115610bc2573315610bab575082526001602090815286832033845281529186902090859003905582906104ff87610b63565b8751634a1406b160e11b8152908101849052602490fd5b875163e602df0560e01b8152908101849052602490fd5b8751637dc7a0d960e11b8152339181019182526020820193909352604081018790528291506060010390fd5b50505034610272578160031936011261027257602090601d549051908152f35b505050346102725781600319360112610272576020906002549051908152f35b50505034610272578160031936011261027257602090610c63613031565b90516001600160a01b039091168152f35b50503461022e578160031936011261022e57610c8e610e76565b602435903315610d07576001600160a01b0316918215610cf057508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8351634a1406b160e11b8152908101859052602490fd5b835163e602df0560e01b8152808401869052602490fd5b5050903461022e578260031936011261022e57805191836003549060019082821c928281168015610e09575b6020958686108214610df65750848852908115610dd45750600114610d7b575b6105b186866105a7828b0383610fdd565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610dc157505050826105b1946105a792820101945f610d6a565b8054868501880152928601928101610da4565b60ff191687860152505050151560051b83010192506105a7826105b15f610d6a565b634e487b7160e01b845260229052602483fd5b93607f1693610d4a565b859034610272578160031936011261027257602090601e548152f35b602080825282518183018190529093925f5b828110610e6257505060409293505f838284010152601f8019910116010190565b818101860151848201604001528501610e41565b600435906001600160a01b0382168203610e8c57565b5f80fd5b602435906001600160a01b0382168203610e8c57565b906005821015610eb35752565b634e487b7160e01b5f52602160045260245ffd5b906003821015610eb35752565b601a54811015610f0d57600790601a5f52027f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e01905f90565b634e487b7160e01b5f52603260045260245ffd5b6005546001600160a01b03163303610f3557565b60405163118cdaa760e01b8152336004820152602490fd5b6001600160a01b0381165f908152600d602052604090205460ff16610f7857610f7590611031565b90565b505f90565b6040810190811067ffffffffffffffff821117610f9957604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff8111610f9957604052565b6060810190811067ffffffffffffffff821117610f9957604052565b90601f8019910116810190811067ffffffffffffffff821117610f9957604052565b6001600160a01b0391821681529116602082015260408101919091526060810191909152608081019190915260a00190565b60018060a01b0390602082600a5416600854905f9484168552600c83526040852054916007549461107a60405196879586948594631d2fa43b60e11b8652309060048701610fff565b03915afa9182156110c057809261109057505090565b9091506020823d82116110b8575b816110ab60209383610fdd565b810103126104cd57505190565b3d915061109e565b604051903d90823e3d90fd5b600654811015610f0d5760065f5260011b7ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01905f90565b8054821015610f0d575f5260205f2001905f90565b6001600160a01b038181165f818152600f6020908152604082205490959193908210156111ed579061116a869392600a5416916001611157826110cc565b500154938652600f855260408620611104565b9054906111976007546040519889968795869563a89055e560e01b875260031b1c91309060048701610fff565b03915afa9283156111e05781936111af575b50505090565b9091809350813d83116111d9575b6111c78183610fdd565b810103126104cd5750515f80806111a9565b503d6111bd565b50604051903d90823e3d90fd5b50505091505090565b67ffffffffffffffff8111610f995760051b60200190565b6019805464ff0000000019169055909291906001600160a01b038416801580156116af575b80156116a4575b61169857601a54158015611688575b8015611667575b8015611651575b8015611645575b6115f85761126b85612e66565b806115e1575b6115c5575b50816017555f918290835b601a5485101561144c5761129d61129786610ed4565b50611862565b905f8060408401516003811015611438576112ef575050816112dc6112d76112e2936112cc6112e89688611928565b92909294838b6119c2565b611795565b94611795565b94611854565b9391611281565b604084015160038110156114385760011480611428575b15611325575050816112dc6112d76112e2936112cc6112e89688611928565b9091604084015160038110156114145760021480611375575b916112e293916112e89593611359575b6112dc929350611795565b6112dc925061136d91506112cc8488611928565b83925061134e565b50600a5460405163154b004960e31b81526001600160a01b0389811660048301528c81166024830152306044830152602092839183916064918391165afa91821561140957916112e295939185936112e89896926113dc575b50509193955091935061133e565b6113fb9250803d10611402575b6113f38183610fdd565b8101906125b0565b5f806113ce565b503d6113e9565b6040513d86823e3d90fd5b634e487b7160e01b83526021600452602483fd5b506114338a88612ec3565b611306565b634e487b7160e01b82526021600452602482fd5b611463939596945061145e9183611589575b611905565b600a5460405163ca497e2360e01b8152939192919060209085906001600160a01b031681806114946004820161309b565b03915afa801561157e576114e1945f91611560575b5080611551575b80611544575b80611534575b8015611528575b6114e3575b6114d28282613177565b6114dc8282612cbd565b6116ba565b565b6114ed8282612ec3565b6114c85760ff196001816010541617601055611507611eb9565b6010541660105564010000000064ff000000001960195416176019556114c8565b5060ff601954166114c3565b5060ff60195460201c16156114bc565b5060ff60105416156114b6565b5060ff60195460181c166114b0565b611578915060203d8111611402576113f38183610fdd565b5f6114a9565b6040513d5f823e3d90fd5b60195460ff16156115b35761159f8430896116ba565b6115ab84601854611795565b601855611905565b61145e846115bf613031565b896116ba565b5f52600d60205260405f20600160ff198254161790555f611276565b50805f52600d60205260ff60405f20541615611271565b50926114e1929360195460ff8160181c161580611636575b611620575b506114dc8282613177565b63ff00000019166301000000176019555f611615565b5061164083612e66565b611610565b5060ff6010541661125e565b50805f52601660205260ff60405f205416611257565b506001600160a01b0382165f9081526016602052604090205460ff16611250565b5060ff60195460181c1615611249565b506114e19293506117b6565b5061dead811461123a565b506103698114611233565b916001600160a01b0380841692831561177d5716928315611765575f9083825281602052604082205490838210611733575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60405163ec442f0560e01b81525f6004820152602490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b919082018092116117a257565b634e487b7160e01b5f52601160045260245ffd5b906001600160a01b03821690811561177d575f92828452836020526040842054908282106118225750817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101829052606490fd5b5f1981146117a25760010190565b90604051610120810181811067ffffffffffffffff821117610f9957604052809280548252600181015460ff8116906005821015610eb35760ff91602085015260081c166003811015610eb3576101009160069160408501526002810154606085015260ff60018060a01b038060038401541660808701528060048401541660a0870152600583015490811660c087015260a01c16151560e08501520154910152565b919082039182116117a257565b9190826040910312610e8c576020825192015190565b600a546060909201516001600160a01b0392909216929160409160a49061194d612fe2565b9584519687948593632b8d28ef60e21b85526004850152602484015260448301526001606483015261271060848301525afa91821561157e575f90819361199357509190565b90506119b791925060403d81116119bb575b6119af8183610fdd565b810190611912565b9091565b503d6119a5565b825160209384810180519060059081831015610eb357604094858501516003811015610eb357611a01906119f888518097610ea6565b8a860190610ec7565b6001600160a01b0387811687860152336060860152608085018990524260a0860152937f4561d7b5bc749427362f16999e4266d5e838624dc76c7915a80597b4303f91069060c090a2805182811015610eb357611aa257505050507f240ac4b1276638a07697a276a1e769aeeef6a875321508eee58718c790a0eb25906114e194611a8e85601b54611795565b601b558151908582524290820152a16117b6565b8097959496975182811015610eb357600303611b575750505050918391611aee7f4aa5b1e7e0aa0cb24a794cb0410918d48c70726a1891006de7d83adf6ec039209560609530906116ba565b611b04600254305f525f8352835f205490611905565b80611b1f575b506008549082519384528301524290820152a1565b611b37611b3f91611b3260075487611d57565b611d6a565b600854611795565b600855611b4e83601d54611795565b601d555f611b0a565b809692949593965182811015610eb357600203611be857505060166080860192848451165f525260ff815f20541615611bcf575b5060e084015115611bc1575050611bb3611bbd92611bad8560069430906116ba565b51610ed4565b5001918254611795565b9055565b6114e19493505116906116ba565b828251165f525f20600160ff198254161790555f611b8b565b80979597949293945182811015610eb357600103611ca5575050935f8493927f4273856ca27b03e758cdfc9b3b6ca37d494ecb75fbae628757965b75fb104ab696611c4560c09760ff199a60018c601054161760105530906116ba565b6006611c518551610ed4565b5001611c5e878254611795565b9055611c6c86601c54611795565b601c5583519060a08160808701511695015116948251968752860152840152606083015260808201524260a0820152a160105416601055565b94939291945190811015610eb357600414611cc3575b505050505050565b5f60809460a07ff7d7115427aac464a6917f7ba3066179fd0c845521f577e53e8e4d4ec97dd4a897611d058760ff199b60018d601054161760105530906116ba565b6006611d118251610ed4565b5001611d1e888254611795565b9055611d2c87601e54611795565b601e55015116928251948552840152820152426060820152a1601054166010555f8080808080611cbb565b818102929181159184041417156117a257565b8115611d74570490565b634e487b7160e01b5f52601260045260245ffd5b805115610f0d5760200190565b8051821015610f0d5760209160051b010190565b51906001600160a01b0382168203610e8c57565b9190826040910312610e8c57610f756020611dd784611da9565b9301611da9565b9190916080606082019160018060a01b03809516815284602094168482015260606040820152601554809352019260155f527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475925f915b838310611e4457505050505090565b8454811686529481019460019485019490920191611e35565b909160a06080830192600180831b0395868096168252602095869416848301526040820152608060608201528651809452019401915f5b828110611ea357505050505090565b8351851686529481019492810192600101611e94565b5f908182601a5490611eca826111f6565b94611ed86040519687610fdd565b828652601f199182611ee9856111f6565b01366020890137611ef9846111f6565b92611f076040519485610fdd565b848452611f13856111f6565b01366020850137815b848110612437575050600a54600b5460408051632a8ddb2f60e01b81526001600160a01b03938416979093909284918291611f5c91163060048401611dde565b0381895afa91821561242c5783926123f9575b506001600160a01b038216156123cb57601854956017546040519763059b6d4760e21b895260048901526024880152604087604481845afa91821561140957849785936123a2575b5087611fc291611795565b9283156123965790602491611fdd85611b326007548c611d57565b936018558560018060a01b036012541692604051948580926343d7ef9f60e11b82523060048301525afa92831561238b578693612367575b50813b156123635791859185836120459560405196879586948593637e18437960e01b8552309060048601611e5d565b03925af19081612350575b506120b25750505b82811061207557505050612070919250601854611795565b601855565b8061208361208d9288611d95565b5161209257611854565b612058565b61209c8184611d95565b516120ab6006611bb384610ed4565b9055611854565b909195969293946024602060018060a01b03600b5416604051928380926370a0823160e01b82523060048301525afa908115612345578891612311575b506121329261211a61211161210a61212c9460095490611905565b9283611d57565b60075490611d6a565b9061145e612126613031565b83612792565b92611905565b918115611cbb57855b85811061214b5750505050505050565b6121558183611d95565b511580156122ff575b6122f65761217a84611b3285612174858a611d95565b51611d57565b61218382610ed4565b5090600160ff81840154169060058210156122e25761222a9493929190810361222f575061221f612225927f4273856ca27b03e758cdfc9b3b6ca37d494ecb75fbae628757965b75fb104ab660c06121db878d611d95565b518354600385015460048601546040805194855260208501939093529183018890526001600160a01b0390811660608401521660808201524260a0820152a1611862565b906125c8565b611854565b61213b565b60028114806122d1575b15612256575061222591600360018060a01b039101541690612792565b600414612265575b5050611854565b6122c46122ca927ff7d7115427aac464a6917f7ba3066179fd0c845521f577e53e8e4d4ec97dd4a86080612299878d611d95565b5160018060a01b036004850154166040519182528660208301526040820152426060820152a1611862565b906128bd565b5f8061225e565b5060ff600584015460a01c16612239565b634e487b7160e01b8b52602160045260248bfd5b61222a90611854565b5061230a8186611d95565b511561215e565b90506020813d60201161233d575b8161232c60209383610fdd565b81010312610e8c57516121326120ef565b3d915061231f565b6040513d8a823e3d90fd5b61235c90949194610fad565b925f612050565b8580fd5b6123849193503d8088833e61237c8183610fdd565b810190612f0f565b915f612015565b6040513d88823e3d90fd5b50505050505050509050565b611fc298506123c191935060403d6040116119bb576119af8183610fdd565b9097509187611fb7565b5050925050507f34be9cb68ddf4eeebba29ea0e1db420286ea39e4ce7a377e66a7b47a998a6d0391925080a1565b61241c91925060403d604011612425575b6124148183610fdd565b810190611dbd565b9050905f611f6f565b503d61240a565b6040513d85823e3d90fd5b61244081610ed4565b5060068082015480156124815760ff6001938185820154169060058083101591826122e257878414948515612583575b505050821561255e575b5050612492575b50505061248d90611854565b611f1c565b600a546017546040805163059b6d4760e21b81526004810194909452602484019190915290829060449082906001600160a01b03165afa92831561238b578691879461253b575b508b826124fe575b5050509082916124f361248d94610ed4565b500155905f80612481565b91859493969a61252a9261251861248d9861253096611d95565b5281612524878c611d95565b52611795565b98611854565b939091925f8b6124e1565b909350612557915060403d6040116119bb576119af8183610fdd565b925f6124d9565b90915061256f576004145f8061247a565b634e487b7160e01b87526021600452602487fd5b8b95506002851493509190836125a0575b505050915f8080612470565b015460a01c1690505f8080612594565b90816020910312610e8c57518015158103610e8c5790565b905f821561278d5760a082019260018060a01b03908185511682600b5416809114612742575061262082600a54169483600b54168488511660409788928351809681948293632a8ddb2f60e01b845260048401611dde565b03915afa918215612738578592612717575b506080846012541691019661264d85808a5116925116612f91565b92823b156127135791849187809461267a8b5197889687958694632d4d638360e11b865260048601611e5d565b03925af19081612700575b506126f957600b549451845163a9059cbb60e01b81529083166001600160a01b03166004820152602481019190915293602091859116818481604481015b03925af19182156126ef5750506126d8575b50565b6126d59060203d8111611402576113f38183610fdd565b51903d90823e3d90fd5b5050505050565b61270c90949194610fad565b925f612685565b8680fd5b61272f919250863d8811612425576124148183610fdd565b9050905f612632565b86513d87823e3d90fd5b6080949094015160405163a9059cbb60e01b815292166001600160a01b03166004830152602482015292509060209083908184816044810103925af19081156110c057506126d85750565b505050565b5f811561278d57600b546001600160a01b039081169290833b1561022e5782806040956024875180948193632e1a7d4d60e01b83528860048401525af190816128aa575b5061281457600b54845163a9059cbb60e01b81526001600160a01b0390961660048701526024860192909252602091859116818481604481016126c3565b908280808084895af13d156128a5573d67ffffffffffffffff81116128915785519061284a601f8201601f191660200183610fdd565b81528460203d92013e5b6126f957600b54845163a9059cbb60e01b81526001600160a01b0390961660048701526024860191909152602091859116818481604481016126c3565b634e487b7160e01b85526041600452602485fd5b612854565b6128b690949194610fad565b925f6127d6565b905f90821561278d5760a0019160018060a01b038084511681600b541614612b4257612913919281600a54169382600b54168387511660409687928351809881948293632a8ddb2f60e01b845260048401611dde565b03915afa938415612b38578294612b17575b50828651169085519485916370a0823160e01b938484523060048501528360246020998a935afa928315612b0d578593612ada575b5085601254169061296d878b5116612f91565b92823b15612713579161299c93918780948c5196879586948593632d4d638360e11b8552309060048601611e5d565b03925af19081612ac7575b506129b6575b50505050505050565b848488511692602488518095819382523060048301525afa8015612abd578390612a8e575b6129e59250611905565b92836129f2575b806129ad565b612a159085612a0385895116612bf6565b93806002549330825252205490611905565b9485156129ec57612a6e612a8093600192612a577fc24cdf2085ca2e96c74f42d25648701f34a19b69bce82381dffcf6d00a8dcad599611b326007548a611d57565b612a6485611bb3886110cc565b90555116926110cc565b50015493519384934292309086610fff565b0390a15f80808080806129ec565b508482813d8311612ab6575b612aa48183610fdd565b81010312610e8c576129e591516129db565b503d612a9a565b86513d85823e3d90fd5b612ad390949194610fad565b925f6129a7565b9092508681813d8311612b06575b612af28183610fdd565b81010312612b025751915f61295a565b8480fd5b503d612ae8565b88513d87823e3d90fd5b612b2f919450853d8711612425576124148183610fdd565b9050925f612925565b85513d84823e3d90fd5b612b4e82600954611795565b600955612b76612b6082865116612bf6565b9360406002549130815280602052205490611905565b9384612b83575050505050565b612bd5612be992600192612bbe7fc24cdf2085ca2e96c74f42d25648701f34a19b69bce82381dffcf6d00a8dcad598611b3260075489611d57565b612bcb85611bb38a6110cc565b90555116946110cc565b500154926040519384934292309086610fff565b0390a15f808080806126f9565b6006545f5b818110612c8c575060405190612c1082610f7d565b6001600160a01b0392831682525f6020830190815290600160401b811015610f9957806001612c4292016006556110cc565b939093612c795760019251166bffffffffffffffffffffffff60a01b845416178355519101556006545f1981019081116117a25790565b634e487b7160e01b5f525f60045260245ffd5b612c95816110cc565b50546001600160a01b03848116911614612cb757612cb290611854565b612bfb565b91505090565b60ff60195460081c1615612e62576013546001600160a01b03928084169290918416908085165f818603612def5750805f52600d60205260ff60405f2054165f14612dd1575f805160206134a783398151915260e05f5b925f955b612d2181611031565b98600854915f52600c6020528160405f2055825f528160405f2055805f528160405f2055604051928352602083015284604083015286606083015288608083015260a08201524260c0820152a180612db3575b505080612d95575b505080612d87575050565b6114e19160135416306116ba565b612d9e82612e66565b612d7c57612dac91306116ba565b5f80612d7c565b612dbc82612e66565b612d7457612dca91306116ba565b5f80612d74565b5f805160206134a783398151915260e0612dea84610f4d565b612d14565b818152600d602052604081205460ff1615612e435760e05f805160206134a7833981519152915b92875f52600d60205260ff60405f2054165f14612e35575f5b95612d18565b612e3e87610f4d565b612e2f565b505f805160206134a783398151915260e0612e5d84610f4d565b612e16565b5050565b600a54604051630d5c7b5d60e41b81526001600160a01b0392831660048201523060248201529160209183916044918391165afa90811561157e575f91612eab575090565b610f75915060203d8111611402576113f38183610fdd565b600a54604051636468b51760e01b81526001600160a01b039283166004820152928216602484015230604484015260209183916064918391165afa90811561157e575f91612eab575090565b6020908181840312610e8c5780519067ffffffffffffffff8211610e8c57019180601f84011215610e8c578251612f45816111f6565b93612f536040519586610fdd565b818552838086019260051b820101928311610e8c578301905b828210612f7a575050505090565b838091612f8684611da9565b815201910190612f6c565b600a546040516377a9efe360e11b81526001600160a01b039283166004820152915f9183916024918391165afa90811561157e575f91612fcf575090565b610f75913d8091833e61237c8183610fdd565b60145460405163c57981b560e01b815290602090829060049082906001600160a01b03165afa90811561157e575f91613019575090565b906020823d82116110b857816110ab60209383610fdd565b6014546040516336ce6de360e11b815290602090829060049082906001600160a01b03165afa90811561157e575f91613068575090565b906020823d8211613093575b8161308160209383610fdd565b810103126104cd5750610f7590611da9565b3d9150613074565b602090818101828252601a54809152604080920192601a5f527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e925f915b8383106130e857505050505090565b90919293946007610120600192885481528389015461311f60ff91613111888501848316610ea6565b828985019160081c16610ec7565b60028a0154606083015260038a015460a086811b879003918216608085015260048c015482168185015260058c015491821660c08501521c16151560e0820152600689015461010082015201960194930191906130d9565b9060ff908160195460101c1661318c57505050565b60018060a01b03908160135416925f955b60065487101561347a575b8386165f52600f60205260405f20878154116131db576131d69060016131cd8a6110cc565b50015490613483565b6131a8565b509490919293945b8484165f52600f60205260405f208781541161320d576132089060016131cd8a6110cc565b6131e3565b509490919293945b815f52600f60205260405f208781541161323d576132389060016131cd8a6110cc565b613215565b5095949290939194838616805f52600d90602090828252604085815f2054165f1461346a575f935b5f89891691828503613443575b509082519161328083610fc1565b60029485845284368886013784519561329887610fc1565b86528436888801375f9780613421575b5050806133f7575b50505f5b8581106132d0575050505050506132ca90611854565b9561319d565b806132de6132e89284611d95565b516132ed57611854565b6132b4565b61334a868c6132fb8b6110cc565b5054168d613309858a611d95565b5116906133168588611d95565b51885163a9059cbb60e01b81526001600160a01b0390931660048401526024830152909283919082905f9082906044820190565b03925af190816133da575b5015611854578a613365896110cc565b5054168b600b5416146133bb575b61222560016133818a6110cc565b5001548c61338f8489611d95565b51165f52600f88526133a38a875f20611104565b90919082549060031b91821b915f19901b1916179055565b6133c58184611d95565b516133d36009918254611905565b9055613373565b6133f090883d8a11611402576113f38183610fdd565b505f613355565b908691613408849861341995611d95565b526134138286611d95565b52611854565b935f806132b0565b9091975061342e84611d88565b5261343885611d88565b526001955f806132a8565b82825285528281205488161561345a575b5f613272565b506134658689611119565b613454565b613474858b611119565b93613265565b95505050505050565b90815491600160401b831015610f9957826133a39160016114e19501815561110456fe7f2255e92a9403cf8dd4b9f679ad1f5f5ce9226dd19b0faf14c84bace34d235ba26469706673582212201291dbf282433cac64d585850136b98b6983745c8229eae60a766eceb0f7645d64736f6c6343000814003355f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000002113857f367bc14861f440e7bfa793b85516d41f000000000000000000000000205d1a33ccfd1671d3255fdd733cfb5dfe2c35040000000000000000000000000000000000000000033b2e3c9fd0803ce800000000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000009e73a03a759efe25700cfc6c7268830579650ad60000000000000000000000002113857f367bc14861f440e7bfa793b85516d41f000000000000000000000000d3397b405a2272f5c27fc673be20579f22f59d6c000000000000000000000000000000000000000000000000000000000000000f4861636b65642047757920436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003484743000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000205d1a33ccfd1671d3255fdd733cfb5dfe2c35040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036900000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000003690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000003690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode

0x60806040818152600480361015610020575b505050361561001e575f80fd5b005b5f9260e08435811c9182630141820514610e135750816306fdde0314610d1e578163095ea7b314610c745781631329960414610c4557816318160ddd14610c255781632284972014610c0557816323b872dd14610b125781632973ef2d146109da578163313ce567146109bd578163378dc3dc1461099d578163406cf2291461097d5781634f30800d1461095d578163695d69b3146109365781636a2072d414610889578163709df63c1461079257816370a082311461075a578163715018a6146106fd57816384527bbd146106dd5781638453ef99146106a45781638da5cb5b1461067a5781639045be581461064e57816395d89b411461054a5781639b165f4e14610506578163a9059cbb146104d4578163c5be2bc71461041f57508063cb78c16314610388578063ce7b63ed14610369578063ced72f871461034c578063d89135cd1461032d578063dd62ed3e146102e4578063e4f8d62e146102b4578063e6375d3e14610276578063eb50c061146102325763f2fde38b03610011573461022e57602036600319011261022e576101b9610e76565b906101c2610f21565b6001600160a01b03918216928315610218575050600554826bffffffffffffffffffffffff60a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346102725760203660031901126102725761024d610e76565b610255610f21565b6001600160a01b0316825260166020528120805460ff1916905580f35b5080fd5b5050346102725760203660031901126102725760209160ff9082906001600160a01b036102a1610e76565b168152600d855220541690519015158152f35b5050346102725780600319360112610272576020906102dd6102d4610e76565b60243590611119565b9051908152f35b50503461027257806003193601126102725780602092610302610e76565b61030a610e90565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b505034610272578160031936011261027257602090601b549051908152f35b5050346102725781600319360112610272576020906102dd612fe2565b5050346102725781600319360112610272576020906018549051908152f35b50903461022e578260031936011261022e5760206103c29260018060a01b03600a541683518080968194625f8d8f60e81b8352820161309b565b03915afa9182156104155783926103de575b6020838351908152f35b9091506020813d821161040d575b816103f960209383610fdd565b8101031261022e576020925051905f6103d4565b3d91506103ec565b81513d85823e3d90fd5b84939150346104d05760203660031901126104d057823593601a548510156104cd575060ff61045061012095610ed4565b50805494600182015460028301549160018060a01b03926104a5848060038801541693870154169387600660058901549801549a610499602082519e8f90815201838516610ea6565b8c019160081c16610ec7565b6060890152608088015260a0870152811660c086015260a01c16151590830152610100820152f35b80fd5b8380fd5b505050346102725780600319360112610272576020906104ff6104f5610e76565b602435903361120e565b5160018152f35b5050503461027257602036600319011261027257610522610e76565b61052a610f21565b6001600160a01b0316825260166020528120805460ff1916600117905580f35b82858534610272578160031936011261027257805191809380549160019083821c92828516948515610644575b60209586861081146106315785895290811561060d57506001146105b5575b6105b187876105a7828c0383610fdd565b5191829182610e2f565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8284106105fa57505050826105b1946105a792820101948680610596565b80548685018801529286019281016105dc565b60ff19168887015250505050151560051b83010192506105a7826105b18680610596565b634e487b7160e01b845260228352602484fd5b93607f1693610577565b505050346102725760203660031901126102725760209160ff9082906001600160a01b036102a1610e76565b5050503461027257816003193601126102725760055490516001600160a01b039091168152602090f35b84346104cd57806003193601126104cd576106bd610f21565b60ff1960018160105416176010556106d3611eb9565b6010541660105580f35b50505034610272578160031936011261027257602090601c549051908152f35b84346104cd57806003193601126104cd57610716610f21565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505050346102725760203660031901126102725760209181906001600160a01b03610783610e76565b16815280845220549051908152f35b8385346104cd57806003193601126104cd57906006546107b1816111f6565b926107be83519485610fdd565b8184526006815260209384810192827ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f855b83831061084c5750505050835194859481860192828752518093528086019493905b83821061081f5786860387f35b845180516001600160a01b0316875283015186840152879650948501949382019360019190910190610812565b6002896001928a9b9897999a5161086281610f7d565b848060a01b03865416815284860154838201528152019201920191909796959394976107f0565b8385346104cd57602090816003193601126104cd5782906001600160a01b036108b0610e76565b168152600f8352818120908251808584549182815201908194845286842090845b81811061092257505050816108e7910382610fdd565b83519485948186019282875251809352850193925b82811061090b57505050500390f35b8351855286955093810193928101926001016108fc565b8254845292880192600192830192016108d1565b50505034610272576020366003190112610272576020906102dd610958610e76565b610f4d565b505050346102725781600319360112610272576020906008549051908152f35b505050346102725781600319360112610272576020906104ff3333613177565b505050346102725781600319360112610272576020906011549051908152f35b505050346102725781600319360112610272576020905160128152f35b8385346104cd57806003193601126104cd57601a54906109f9826111f6565b610a0584519182610fdd565b828152601a8252602080820193837f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e865b838310610aed575050505084519481860192828752518093528086019493905b838210610a635786860387f35b909192939483610120600192885180518252610a858482015185840190610ea6565b610a958682015187840190610ec7565b60608082015190830152848060a01b0360808181840151169084015260a08181840151169084015260c0908183015116908301528b81015115158c830152610100809101519082015201960192019093929193610a56565b600785600192610b00859a98999a611862565b81520192019201919095949395610a36565b505082346104cd5760603660031901126104cd57610b2e610e76565b610b36610e90565b916044359360018060a01b038316808352600160205286832033845260205286832054915f198310610b71575b6020886104ff89898961120e565b868310610bd9578115610bc2573315610bab575082526001602090815286832033845281529186902090859003905582906104ff87610b63565b8751634a1406b160e11b8152908101849052602490fd5b875163e602df0560e01b8152908101849052602490fd5b8751637dc7a0d960e11b8152339181019182526020820193909352604081018790528291506060010390fd5b50505034610272578160031936011261027257602090601d549051908152f35b505050346102725781600319360112610272576020906002549051908152f35b50505034610272578160031936011261027257602090610c63613031565b90516001600160a01b039091168152f35b50503461022e578160031936011261022e57610c8e610e76565b602435903315610d07576001600160a01b0316918215610cf057508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8351634a1406b160e11b8152908101859052602490fd5b835163e602df0560e01b8152808401869052602490fd5b5050903461022e578260031936011261022e57805191836003549060019082821c928281168015610e09575b6020958686108214610df65750848852908115610dd45750600114610d7b575b6105b186866105a7828b0383610fdd565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b828410610dc157505050826105b1946105a792820101945f610d6a565b8054868501880152928601928101610da4565b60ff191687860152505050151560051b83010192506105a7826105b15f610d6a565b634e487b7160e01b845260229052602483fd5b93607f1693610d4a565b859034610272578160031936011261027257602090601e548152f35b602080825282518183018190529093925f5b828110610e6257505060409293505f838284010152601f8019910116010190565b818101860151848201604001528501610e41565b600435906001600160a01b0382168203610e8c57565b5f80fd5b602435906001600160a01b0382168203610e8c57565b906005821015610eb35752565b634e487b7160e01b5f52602160045260245ffd5b906003821015610eb35752565b601a54811015610f0d57600790601a5f52027f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e01905f90565b634e487b7160e01b5f52603260045260245ffd5b6005546001600160a01b03163303610f3557565b60405163118cdaa760e01b8152336004820152602490fd5b6001600160a01b0381165f908152600d602052604090205460ff16610f7857610f7590611031565b90565b505f90565b6040810190811067ffffffffffffffff821117610f9957604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff8111610f9957604052565b6060810190811067ffffffffffffffff821117610f9957604052565b90601f8019910116810190811067ffffffffffffffff821117610f9957604052565b6001600160a01b0391821681529116602082015260408101919091526060810191909152608081019190915260a00190565b60018060a01b0390602082600a5416600854905f9484168552600c83526040852054916007549461107a60405196879586948594631d2fa43b60e11b8652309060048701610fff565b03915afa9182156110c057809261109057505090565b9091506020823d82116110b8575b816110ab60209383610fdd565b810103126104cd57505190565b3d915061109e565b604051903d90823e3d90fd5b600654811015610f0d5760065f5260011b7ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01905f90565b8054821015610f0d575f5260205f2001905f90565b6001600160a01b038181165f818152600f6020908152604082205490959193908210156111ed579061116a869392600a5416916001611157826110cc565b500154938652600f855260408620611104565b9054906111976007546040519889968795869563a89055e560e01b875260031b1c91309060048701610fff565b03915afa9283156111e05781936111af575b50505090565b9091809350813d83116111d9575b6111c78183610fdd565b810103126104cd5750515f80806111a9565b503d6111bd565b50604051903d90823e3d90fd5b50505091505090565b67ffffffffffffffff8111610f995760051b60200190565b6019805464ff0000000019169055909291906001600160a01b038416801580156116af575b80156116a4575b61169857601a54158015611688575b8015611667575b8015611651575b8015611645575b6115f85761126b85612e66565b806115e1575b6115c5575b50816017555f918290835b601a5485101561144c5761129d61129786610ed4565b50611862565b905f8060408401516003811015611438576112ef575050816112dc6112d76112e2936112cc6112e89688611928565b92909294838b6119c2565b611795565b94611795565b94611854565b9391611281565b604084015160038110156114385760011480611428575b15611325575050816112dc6112d76112e2936112cc6112e89688611928565b9091604084015160038110156114145760021480611375575b916112e293916112e89593611359575b6112dc929350611795565b6112dc925061136d91506112cc8488611928565b83925061134e565b50600a5460405163154b004960e31b81526001600160a01b0389811660048301528c81166024830152306044830152602092839183916064918391165afa91821561140957916112e295939185936112e89896926113dc575b50509193955091935061133e565b6113fb9250803d10611402575b6113f38183610fdd565b8101906125b0565b5f806113ce565b503d6113e9565b6040513d86823e3d90fd5b634e487b7160e01b83526021600452602483fd5b506114338a88612ec3565b611306565b634e487b7160e01b82526021600452602482fd5b611463939596945061145e9183611589575b611905565b600a5460405163ca497e2360e01b8152939192919060209085906001600160a01b031681806114946004820161309b565b03915afa801561157e576114e1945f91611560575b5080611551575b80611544575b80611534575b8015611528575b6114e3575b6114d28282613177565b6114dc8282612cbd565b6116ba565b565b6114ed8282612ec3565b6114c85760ff196001816010541617601055611507611eb9565b6010541660105564010000000064ff000000001960195416176019556114c8565b5060ff601954166114c3565b5060ff60195460201c16156114bc565b5060ff60105416156114b6565b5060ff60195460181c166114b0565b611578915060203d8111611402576113f38183610fdd565b5f6114a9565b6040513d5f823e3d90fd5b60195460ff16156115b35761159f8430896116ba565b6115ab84601854611795565b601855611905565b61145e846115bf613031565b896116ba565b5f52600d60205260405f20600160ff198254161790555f611276565b50805f52600d60205260ff60405f20541615611271565b50926114e1929360195460ff8160181c161580611636575b611620575b506114dc8282613177565b63ff00000019166301000000176019555f611615565b5061164083612e66565b611610565b5060ff6010541661125e565b50805f52601660205260ff60405f205416611257565b506001600160a01b0382165f9081526016602052604090205460ff16611250565b5060ff60195460181c1615611249565b506114e19293506117b6565b5061dead811461123a565b506103698114611233565b916001600160a01b0380841692831561177d5716928315611765575f9083825281602052604082205490838210611733575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60405163ec442f0560e01b81525f6004820152602490fd5b604051634b637e8f60e11b81525f6004820152602490fd5b919082018092116117a257565b634e487b7160e01b5f52601160045260245ffd5b906001600160a01b03821690811561177d575f92828452836020526040842054908282106118225750817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101829052606490fd5b5f1981146117a25760010190565b90604051610120810181811067ffffffffffffffff821117610f9957604052809280548252600181015460ff8116906005821015610eb35760ff91602085015260081c166003811015610eb3576101009160069160408501526002810154606085015260ff60018060a01b038060038401541660808701528060048401541660a0870152600583015490811660c087015260a01c16151560e08501520154910152565b919082039182116117a257565b9190826040910312610e8c576020825192015190565b600a546060909201516001600160a01b0392909216929160409160a49061194d612fe2565b9584519687948593632b8d28ef60e21b85526004850152602484015260448301526001606483015261271060848301525afa91821561157e575f90819361199357509190565b90506119b791925060403d81116119bb575b6119af8183610fdd565b810190611912565b9091565b503d6119a5565b825160209384810180519060059081831015610eb357604094858501516003811015610eb357611a01906119f888518097610ea6565b8a860190610ec7565b6001600160a01b0387811687860152336060860152608085018990524260a0860152937f4561d7b5bc749427362f16999e4266d5e838624dc76c7915a80597b4303f91069060c090a2805182811015610eb357611aa257505050507f240ac4b1276638a07697a276a1e769aeeef6a875321508eee58718c790a0eb25906114e194611a8e85601b54611795565b601b558151908582524290820152a16117b6565b8097959496975182811015610eb357600303611b575750505050918391611aee7f4aa5b1e7e0aa0cb24a794cb0410918d48c70726a1891006de7d83adf6ec039209560609530906116ba565b611b04600254305f525f8352835f205490611905565b80611b1f575b506008549082519384528301524290820152a1565b611b37611b3f91611b3260075487611d57565b611d6a565b600854611795565b600855611b4e83601d54611795565b601d555f611b0a565b809692949593965182811015610eb357600203611be857505060166080860192848451165f525260ff815f20541615611bcf575b5060e084015115611bc1575050611bb3611bbd92611bad8560069430906116ba565b51610ed4565b5001918254611795565b9055565b6114e19493505116906116ba565b828251165f525f20600160ff198254161790555f611b8b565b80979597949293945182811015610eb357600103611ca5575050935f8493927f4273856ca27b03e758cdfc9b3b6ca37d494ecb75fbae628757965b75fb104ab696611c4560c09760ff199a60018c601054161760105530906116ba565b6006611c518551610ed4565b5001611c5e878254611795565b9055611c6c86601c54611795565b601c5583519060a08160808701511695015116948251968752860152840152606083015260808201524260a0820152a160105416601055565b94939291945190811015610eb357600414611cc3575b505050505050565b5f60809460a07ff7d7115427aac464a6917f7ba3066179fd0c845521f577e53e8e4d4ec97dd4a897611d058760ff199b60018d601054161760105530906116ba565b6006611d118251610ed4565b5001611d1e888254611795565b9055611d2c87601e54611795565b601e55015116928251948552840152820152426060820152a1601054166010555f8080808080611cbb565b818102929181159184041417156117a257565b8115611d74570490565b634e487b7160e01b5f52601260045260245ffd5b805115610f0d5760200190565b8051821015610f0d5760209160051b010190565b51906001600160a01b0382168203610e8c57565b9190826040910312610e8c57610f756020611dd784611da9565b9301611da9565b9190916080606082019160018060a01b03809516815284602094168482015260606040820152601554809352019260155f527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475925f915b838310611e4457505050505090565b8454811686529481019460019485019490920191611e35565b909160a06080830192600180831b0395868096168252602095869416848301526040820152608060608201528651809452019401915f5b828110611ea357505050505090565b8351851686529481019492810192600101611e94565b5f908182601a5490611eca826111f6565b94611ed86040519687610fdd565b828652601f199182611ee9856111f6565b01366020890137611ef9846111f6565b92611f076040519485610fdd565b848452611f13856111f6565b01366020850137815b848110612437575050600a54600b5460408051632a8ddb2f60e01b81526001600160a01b03938416979093909284918291611f5c91163060048401611dde565b0381895afa91821561242c5783926123f9575b506001600160a01b038216156123cb57601854956017546040519763059b6d4760e21b895260048901526024880152604087604481845afa91821561140957849785936123a2575b5087611fc291611795565b9283156123965790602491611fdd85611b326007548c611d57565b936018558560018060a01b036012541692604051948580926343d7ef9f60e11b82523060048301525afa92831561238b578693612367575b50813b156123635791859185836120459560405196879586948593637e18437960e01b8552309060048601611e5d565b03925af19081612350575b506120b25750505b82811061207557505050612070919250601854611795565b601855565b8061208361208d9288611d95565b5161209257611854565b612058565b61209c8184611d95565b516120ab6006611bb384610ed4565b9055611854565b909195969293946024602060018060a01b03600b5416604051928380926370a0823160e01b82523060048301525afa908115612345578891612311575b506121329261211a61211161210a61212c9460095490611905565b9283611d57565b60075490611d6a565b9061145e612126613031565b83612792565b92611905565b918115611cbb57855b85811061214b5750505050505050565b6121558183611d95565b511580156122ff575b6122f65761217a84611b3285612174858a611d95565b51611d57565b61218382610ed4565b5090600160ff81840154169060058210156122e25761222a9493929190810361222f575061221f612225927f4273856ca27b03e758cdfc9b3b6ca37d494ecb75fbae628757965b75fb104ab660c06121db878d611d95565b518354600385015460048601546040805194855260208501939093529183018890526001600160a01b0390811660608401521660808201524260a0820152a1611862565b906125c8565b611854565b61213b565b60028114806122d1575b15612256575061222591600360018060a01b039101541690612792565b600414612265575b5050611854565b6122c46122ca927ff7d7115427aac464a6917f7ba3066179fd0c845521f577e53e8e4d4ec97dd4a86080612299878d611d95565b5160018060a01b036004850154166040519182528660208301526040820152426060820152a1611862565b906128bd565b5f8061225e565b5060ff600584015460a01c16612239565b634e487b7160e01b8b52602160045260248bfd5b61222a90611854565b5061230a8186611d95565b511561215e565b90506020813d60201161233d575b8161232c60209383610fdd565b81010312610e8c57516121326120ef565b3d915061231f565b6040513d8a823e3d90fd5b61235c90949194610fad565b925f612050565b8580fd5b6123849193503d8088833e61237c8183610fdd565b810190612f0f565b915f612015565b6040513d88823e3d90fd5b50505050505050509050565b611fc298506123c191935060403d6040116119bb576119af8183610fdd565b9097509187611fb7565b5050925050507f34be9cb68ddf4eeebba29ea0e1db420286ea39e4ce7a377e66a7b47a998a6d0391925080a1565b61241c91925060403d604011612425575b6124148183610fdd565b810190611dbd565b9050905f611f6f565b503d61240a565b6040513d85823e3d90fd5b61244081610ed4565b5060068082015480156124815760ff6001938185820154169060058083101591826122e257878414948515612583575b505050821561255e575b5050612492575b50505061248d90611854565b611f1c565b600a546017546040805163059b6d4760e21b81526004810194909452602484019190915290829060449082906001600160a01b03165afa92831561238b578691879461253b575b508b826124fe575b5050509082916124f361248d94610ed4565b500155905f80612481565b91859493969a61252a9261251861248d9861253096611d95565b5281612524878c611d95565b52611795565b98611854565b939091925f8b6124e1565b909350612557915060403d6040116119bb576119af8183610fdd565b925f6124d9565b90915061256f576004145f8061247a565b634e487b7160e01b87526021600452602487fd5b8b95506002851493509190836125a0575b505050915f8080612470565b015460a01c1690505f8080612594565b90816020910312610e8c57518015158103610e8c5790565b905f821561278d5760a082019260018060a01b03908185511682600b5416809114612742575061262082600a54169483600b54168488511660409788928351809681948293632a8ddb2f60e01b845260048401611dde565b03915afa918215612738578592612717575b506080846012541691019661264d85808a5116925116612f91565b92823b156127135791849187809461267a8b5197889687958694632d4d638360e11b865260048601611e5d565b03925af19081612700575b506126f957600b549451845163a9059cbb60e01b81529083166001600160a01b03166004820152602481019190915293602091859116818481604481015b03925af19182156126ef5750506126d8575b50565b6126d59060203d8111611402576113f38183610fdd565b51903d90823e3d90fd5b5050505050565b61270c90949194610fad565b925f612685565b8680fd5b61272f919250863d8811612425576124148183610fdd565b9050905f612632565b86513d87823e3d90fd5b6080949094015160405163a9059cbb60e01b815292166001600160a01b03166004830152602482015292509060209083908184816044810103925af19081156110c057506126d85750565b505050565b5f811561278d57600b546001600160a01b039081169290833b1561022e5782806040956024875180948193632e1a7d4d60e01b83528860048401525af190816128aa575b5061281457600b54845163a9059cbb60e01b81526001600160a01b0390961660048701526024860192909252602091859116818481604481016126c3565b908280808084895af13d156128a5573d67ffffffffffffffff81116128915785519061284a601f8201601f191660200183610fdd565b81528460203d92013e5b6126f957600b54845163a9059cbb60e01b81526001600160a01b0390961660048701526024860191909152602091859116818481604481016126c3565b634e487b7160e01b85526041600452602485fd5b612854565b6128b690949194610fad565b925f6127d6565b905f90821561278d5760a0019160018060a01b038084511681600b541614612b4257612913919281600a54169382600b54168387511660409687928351809881948293632a8ddb2f60e01b845260048401611dde565b03915afa938415612b38578294612b17575b50828651169085519485916370a0823160e01b938484523060048501528360246020998a935afa928315612b0d578593612ada575b5085601254169061296d878b5116612f91565b92823b15612713579161299c93918780948c5196879586948593632d4d638360e11b8552309060048601611e5d565b03925af19081612ac7575b506129b6575b50505050505050565b848488511692602488518095819382523060048301525afa8015612abd578390612a8e575b6129e59250611905565b92836129f2575b806129ad565b612a159085612a0385895116612bf6565b93806002549330825252205490611905565b9485156129ec57612a6e612a8093600192612a577fc24cdf2085ca2e96c74f42d25648701f34a19b69bce82381dffcf6d00a8dcad599611b326007548a611d57565b612a6485611bb3886110cc565b90555116926110cc565b50015493519384934292309086610fff565b0390a15f80808080806129ec565b508482813d8311612ab6575b612aa48183610fdd565b81010312610e8c576129e591516129db565b503d612a9a565b86513d85823e3d90fd5b612ad390949194610fad565b925f6129a7565b9092508681813d8311612b06575b612af28183610fdd565b81010312612b025751915f61295a565b8480fd5b503d612ae8565b88513d87823e3d90fd5b612b2f919450853d8711612425576124148183610fdd565b9050925f612925565b85513d84823e3d90fd5b612b4e82600954611795565b600955612b76612b6082865116612bf6565b9360406002549130815280602052205490611905565b9384612b83575050505050565b612bd5612be992600192612bbe7fc24cdf2085ca2e96c74f42d25648701f34a19b69bce82381dffcf6d00a8dcad598611b3260075489611d57565b612bcb85611bb38a6110cc565b90555116946110cc565b500154926040519384934292309086610fff565b0390a15f808080806126f9565b6006545f5b818110612c8c575060405190612c1082610f7d565b6001600160a01b0392831682525f6020830190815290600160401b811015610f9957806001612c4292016006556110cc565b939093612c795760019251166bffffffffffffffffffffffff60a01b845416178355519101556006545f1981019081116117a25790565b634e487b7160e01b5f525f60045260245ffd5b612c95816110cc565b50546001600160a01b03848116911614612cb757612cb290611854565b612bfb565b91505090565b60ff60195460081c1615612e62576013546001600160a01b03928084169290918416908085165f818603612def5750805f52600d60205260ff60405f2054165f14612dd1575f805160206134a783398151915260e05f5b925f955b612d2181611031565b98600854915f52600c6020528160405f2055825f528160405f2055805f528160405f2055604051928352602083015284604083015286606083015288608083015260a08201524260c0820152a180612db3575b505080612d95575b505080612d87575050565b6114e19160135416306116ba565b612d9e82612e66565b612d7c57612dac91306116ba565b5f80612d7c565b612dbc82612e66565b612d7457612dca91306116ba565b5f80612d74565b5f805160206134a783398151915260e0612dea84610f4d565b612d14565b818152600d602052604081205460ff1615612e435760e05f805160206134a7833981519152915b92875f52600d60205260ff60405f2054165f14612e35575f5b95612d18565b612e3e87610f4d565b612e2f565b505f805160206134a783398151915260e0612e5d84610f4d565b612e16565b5050565b600a54604051630d5c7b5d60e41b81526001600160a01b0392831660048201523060248201529160209183916044918391165afa90811561157e575f91612eab575090565b610f75915060203d8111611402576113f38183610fdd565b600a54604051636468b51760e01b81526001600160a01b039283166004820152928216602484015230604484015260209183916064918391165afa90811561157e575f91612eab575090565b6020908181840312610e8c5780519067ffffffffffffffff8211610e8c57019180601f84011215610e8c578251612f45816111f6565b93612f536040519586610fdd565b818552838086019260051b820101928311610e8c578301905b828210612f7a575050505090565b838091612f8684611da9565b815201910190612f6c565b600a546040516377a9efe360e11b81526001600160a01b039283166004820152915f9183916024918391165afa90811561157e575f91612fcf575090565b610f75913d8091833e61237c8183610fdd565b60145460405163c57981b560e01b815290602090829060049082906001600160a01b03165afa90811561157e575f91613019575090565b906020823d82116110b857816110ab60209383610fdd565b6014546040516336ce6de360e11b815290602090829060049082906001600160a01b03165afa90811561157e575f91613068575090565b906020823d8211613093575b8161308160209383610fdd565b810103126104cd5750610f7590611da9565b3d9150613074565b602090818101828252601a54809152604080920192601a5f527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e925f915b8383106130e857505050505090565b90919293946007610120600192885481528389015461311f60ff91613111888501848316610ea6565b828985019160081c16610ec7565b60028a0154606083015260038a015460a086811b879003918216608085015260048c015482168185015260058c015491821660c08501521c16151560e0820152600689015461010082015201960194930191906130d9565b9060ff908160195460101c1661318c57505050565b60018060a01b03908160135416925f955b60065487101561347a575b8386165f52600f60205260405f20878154116131db576131d69060016131cd8a6110cc565b50015490613483565b6131a8565b509490919293945b8484165f52600f60205260405f208781541161320d576132089060016131cd8a6110cc565b6131e3565b509490919293945b815f52600f60205260405f208781541161323d576132389060016131cd8a6110cc565b613215565b5095949290939194838616805f52600d90602090828252604085815f2054165f1461346a575f935b5f89891691828503613443575b509082519161328083610fc1565b60029485845284368886013784519561329887610fc1565b86528436888801375f9780613421575b5050806133f7575b50505f5b8581106132d0575050505050506132ca90611854565b9561319d565b806132de6132e89284611d95565b516132ed57611854565b6132b4565b61334a868c6132fb8b6110cc565b5054168d613309858a611d95565b5116906133168588611d95565b51885163a9059cbb60e01b81526001600160a01b0390931660048401526024830152909283919082905f9082906044820190565b03925af190816133da575b5015611854578a613365896110cc565b5054168b600b5416146133bb575b61222560016133818a6110cc565b5001548c61338f8489611d95565b51165f52600f88526133a38a875f20611104565b90919082549060031b91821b915f19901b1916179055565b6133c58184611d95565b516133d36009918254611905565b9055613373565b6133f090883d8a11611402576113f38183610fdd565b505f613355565b908691613408849861341995611d95565b526134138286611d95565b52611854565b935f806132b0565b9091975061342e84611d88565b5261343885611d88565b526001955f806132a8565b82825285528281205488161561345a575b5f613272565b506134658689611119565b613454565b613474858b611119565b93613265565b95505050505050565b90815491600160401b831015610f9957826133a39160016114e19501815561110456fe7f2255e92a9403cf8dd4b9f679ad1f5f5ce9226dd19b0faf14c84bace34d235ba26469706673582212201291dbf282433cac64d585850136b98b6983745c8229eae60a766eceb0f7645d64736f6c63430008140033