ETH Price: $3,252.76 (+3.12%)
Gas: 3 Gwei

Token

Furnace ($BURN)
 

Overview

Max Total Supply

1,000,000,000 $BURN

Holders

111

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
*l👁️👄️👁️l.eth
Balance
0.000000000000000009 $BURN

Value
$0.00
0x875a24c5fcf88b7e9459c8808df61fe6ce36f7d8
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Furnace

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 3 of 21 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

// EIP-2612 is Final as of 2022-11-01. This file is deprecated.

import "./IERC20Permit.sol";

File 4 of 21 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 14 of 21 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

File 15 of 21 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

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

File 16 of 21 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

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

File 17 of 21 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 18 of 21 : IWETH.sol
pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

File 19 of 21 : AlphaLabs.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.18;

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

	function getPair(address tokenA, address tokenB)
	external
	view
	returns (address pair);
}

interface IRouter {
	function factory() external pure returns (address);

	function WETH() external pure returns (address);

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

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

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

    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}

interface IERC20 {
	function totalSupply() external view returns (uint256);
	function balanceOf(address account) external view returns (uint256);
	function transfer(address recipient, uint256 amount) external returns (bool);
	function allowance(address owner, address spender) external view returns (uint256);
	function approve(address spender, uint256 amount) external returns (bool);

	function transferFrom(
		address sender,
		address recipient,
		uint256 amount
	) external returns (bool);

	event Transfer(address indexed from, address indexed to, uint256 value);
	event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IERC20Metadata is IERC20 {
	function name() external view returns (string memory);
	function symbol() external view returns (string memory);
	function decimals() external view returns (uint8);
}

library SafeMath {

	function add(uint256 a, uint256 b) internal pure returns (uint256) {
		uint256 c = a + b;
		require(c >= a, "SafeMath: addition overflow");

		return c;
	}

	function sub(uint256 a, uint256 b) internal pure returns (uint256) {
		return sub(a, b, "SafeMath: subtraction overflow");
	}

	function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
		require(b <= a, errorMessage);
		uint256 c = a - b;

		return c;
	}

	function mul(uint256 a, uint256 b) internal pure returns (uint256) {
		// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
		// benefit is lost if 'b' is also tested.
		// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
		if (a == 0) {
			return 0;
		}

		uint256 c = a * b;
		require(c / a == b, "SafeMath: multiplication overflow");

		return c;
	}

	function div(uint256 a, uint256 b) internal pure returns (uint256) {
		return div(a, b, "SafeMath: division by zero");
	}

	function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
		require(b > 0, errorMessage);
		uint256 c = a / b;
		// assert(a == b * c + a % b); // There is no case in which this doesn't hold

		return c;
	}

	function mod(uint256 a, uint256 b) internal pure returns (uint256) {
		return mod(a, b, "SafeMath: modulo by zero");
	}

	function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
		require(b != 0, errorMessage);
		return a % b;
	}
}

abstract contract Context {
	function _msgSender() internal view virtual returns (address) {
		return msg.sender;
	}

	function _msgData() internal view virtual returns (bytes calldata) {
		this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
		return msg.data;
	}
}

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _setOwner(_msgSender());
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) internal {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

contract ERC20 is Context, IERC20, IERC20Metadata {
	using SafeMath for uint256;

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

	uint256 private _totalSupply;
	string private _name;
	string private _symbol;

	constructor(string memory name_, string memory symbol_) {
		_name = name_;
		_symbol = symbol_;
	}

	function name() public view virtual override returns (string memory) {
		return _name;
	}

	function symbol() public view virtual override returns (string memory) {
		return _symbol;
	}

	function decimals() public view virtual override returns (uint8) {
		return 18;
	}

	function totalSupply() public view virtual override returns (uint256) {
		return _totalSupply;
	}

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

	function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
		_transfer(_msgSender(), recipient, amount);
		return true;
	}

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

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

	function transferFrom(
		address sender,
		address recipient,
		uint256 amount
	) public virtual override returns (bool) {
		_transfer(sender, recipient, amount);
		_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
		return true;
	}

	function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
		_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
		return true;
	}

	function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
		_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
		return true;
	}

	function _transfer(
		address sender,
		address recipient,
		uint256 amount
	) internal virtual {
		require(sender != address(0), "ERC20: transfer from the zero address");
		require(recipient != address(0), "ERC20: transfer to the zero address");
		_beforeTokenTransfer(sender, recipient, amount);
		_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
		_balances[recipient] = _balances[recipient].add(amount);
		emit Transfer(sender, recipient, amount);
	}

	function _mint(address account, uint256 amount) internal virtual {
		require(account != address(0), "ERC20: mint to the zero address");
		_beforeTokenTransfer(address(0), account, amount);
		_totalSupply = _totalSupply.add(amount);
		_balances[account] = _balances[account].add(amount);
		emit Transfer(address(0), account, amount);
	}

	function _burn(address account, uint256 amount) internal virtual {
		require(account != address(0), "ERC20: burn from the zero address");
		_beforeTokenTransfer(account, address(0), amount);
		_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
		_totalSupply = _totalSupply.sub(amount);
		emit Transfer(account, address(0), amount);
	}

	function _approve(
		address owner,
		address spender,
		uint256 amount
	) internal virtual {
		require(owner != address(0), "ERC20: approve from the zero address");
		require(spender != address(0), "ERC20: approve to the zero address");
		_allowances[owner][spender] = amount;
		emit Approval(owner, spender, amount);
	}

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

contract AlphaLabs is ERC20, Ownable {
    IRouter public uniswapV2Router;
    address public immutable uniswapV2Pair;

    string private constant _name = "Alpha Labs";
    string private constant _symbol = "$ALAB";
    uint8 private constant _decimals = 18;

    // initialSupply
    uint256 private constant totalTokens = 10_000_000 * (10**_decimals);
    uint256 public maxWalletAmount = 200_000 * 10 ** 18; //2%

    bool private _swapping;
    uint256 public minimumTokensBeforeSwap = totalTokens * 25 / 100000;

    address public taxWallet;

    struct CustomTaxPeriod {
        bytes23 periodName;
        uint8 blocksInPeriod;
        uint256 timeInPeriod;
        uint8 taxFeeOnBuy;
        uint8 taxFeeOnSell;
    }


    struct InitialData {
        uint32 buyTax;
        uint32 sellTax;
        uint32 maxWalletDiv;
        uint32 maxTxDiv;
        uint32 maxSwapDivisor;
    }

    struct TaxWallet {
        address wallet;
        uint32 ratio;
    }

    // Base taxes
    CustomTaxPeriod private _base = CustomTaxPeriod('base',0,0,20,99);

    mapping (address => bool) private _isExcludedFromFee;
    mapping (address => bool) private _isExcludedFromMaxWalletLimit;
    mapping (address => bool) public automatedMarketMakerPairs;
    mapping(address => bool) public blacklists;

    uint8 private _taxFee;
    uint8 private _totalFee;

    event AutomatedMarketMakerPairChange(address indexed pair, bool indexed value);
    event UniswapV2RouterChange(address indexed newAddress, address indexed oldAddress);
    event WalletChange(string indexed indentifier, address indexed newWallet, address indexed oldWallet);
    event FeeChange(string indexed identifier, uint8 taxFee);
    event CustomTaxPeriodChange(uint256 indexed newValue, uint256 indexed oldValue, string indexed taxType, bytes23 period);
    event MaxTransactionAmountChange(uint256 indexed newValue, uint256 indexed oldValue);
    event MaxWalletAmountChange(uint256 indexed newValue, uint256 indexed oldValue);
    event AllowedWhenTradingDisabledChange(address indexed account, bool isExcluded);
    event ExcludeFromFeesChange(address indexed account, bool isExcluded);
    event ExcludeFromMaxTransferChange(address indexed account, bool isExcluded);
    event ExcludeFromMaxWalletChange(address indexed account, bool isExcluded);
    event MinTokenAmountBeforeSwapChange(uint256 indexed newValue, uint256 indexed oldValue);
    event Swap(uint256 tokensSwapped, uint256 ethReceived,uint256 tokensIntoLiqudity);
    event FeeOnSelectedWalletTransfersChange(address indexed account, bool newValue);
    event ClaimETHOverflow(uint256 amount);
    event FeesApplied(uint8 taxFee, uint256 totalFee);

    constructor(address c, address d, InitialData memory id, TaxWallet[] memory wallets ) ERC20(_name, _symbol) {
        taxWallet = wallets[0].wallet;
        _base.taxFeeOnBuy = uint8(id.buyTax/1000);
        _base.taxFeeOnSell = uint8(id.sellTax/1000);
        maxWalletAmount = totalTokens / id.maxTxDiv;
        IRouter _uniswapV2Router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // Mainnet
        address _uniswapV2Pair = IFactory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;
        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[taxWallet] = true;

        _isExcludedFromMaxWalletLimit[address(_uniswapV2Router)] = true;
        _isExcludedFromMaxWalletLimit[address(_uniswapV2Pair)] = true;
        _isExcludedFromMaxWalletLimit[address(this)] = true;
        _isExcludedFromMaxWalletLimit[owner()] = true;
        _isExcludedFromMaxWalletLimit[taxWallet] = true;

        _mint(owner(), totalTokens);
    }

    receive() external payable {}

    // Setters
    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value");
        automatedMarketMakerPairs[pair] = value;
        emit AutomatedMarketMakerPairChange(pair, value);
    }
    function excludeFromFees(address account, bool excluded) external onlyOwner {
        require(_isExcludedFromFee[account] != excluded, "Account is already the value of 'excluded'");
        _isExcludedFromFee[account] = excluded;
        emit ExcludeFromFeesChange(account, excluded);
    }
    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFee[account];
    }
    function excludeFromMaxWalletLimit(address account, bool excluded) external onlyOwner{
        require(_isExcludedFromMaxWalletLimit[account] != excluded, "Account is already the value of 'excluded'");
        _isExcludedFromMaxWalletLimit[account] = excluded;
    }
    function isExcludedFromMaxWalletLimit(address account) public view returns(bool) {
        return _isExcludedFromMaxWalletLimit[account];
    }
    function setWallets(address newtaxWallet) external onlyOwner {
        if(taxWallet != newtaxWallet) {
            require(newtaxWallet != address(0), "The taxWallet cannot be 0");
            emit WalletChange('taxWallet', newtaxWallet, taxWallet);
            taxWallet = newtaxWallet;
        }
    }
    function updateMaxWalletAmt(uint256 amount) external onlyOwner{
        require(amount >= 100);
        maxWalletAmount = amount * 10**18;
    }
    function blacklist(address _address, bool _isBlacklisting) external onlyOwner {
        blacklists[_address] = _isBlacklisting;
    }
    function isBlacklisting(address account) public view returns(bool) {
        return blacklists[account];
    }
    // Base fees
    function setFeesOnBuy(uint8 _taxFeeOnBuy) external onlyOwner {
        _setCustomBuyTaxPeriod(_base, _taxFeeOnBuy);
        emit FeeChange('baseFees-Buy', _taxFeeOnBuy);
    }
    function setFeesOnSell(uint8 _taxFeeOnSell) external onlyOwner {
        _setCustomSellTaxPeriod(_base, _taxFeeOnSell);
        emit FeeChange('baseFees-Sell', _taxFeeOnSell);
    }
    function setUniswapRouter(address newAddress) external onlyOwner {
        require(newAddress != address(uniswapV2Router), "The router already has that address");
        emit UniswapV2RouterChange(newAddress, address(uniswapV2Router));
        uniswapV2Router = IRouter(newAddress);
    }
    function setMinimumTokensBeforeSwap(uint256 newValue) external onlyOwner {
        require(newValue != minimumTokensBeforeSwap, "Cannot update minimumTokensBeforeSwap to same value");
        emit MinTokenAmountBeforeSwapChange(newValue, minimumTokensBeforeSwap);
        minimumTokensBeforeSwap = newValue;
    }
    function claimETHOverflow() external onlyOwner {
        uint256 amount = address(this).balance;
        (bool success,) = address(owner()).call{value : amount}("");
        if (success){
            emit ClaimETHOverflow(amount);
        }
    }

    // Getters
    function getBaseBuyFees() external view returns (uint8) {
        return (_base.taxFeeOnBuy);
    }
    function getBaseSellFees() external view returns (uint8) {
        return (_base.taxFeeOnSell);
    }

    // Main
    function _transfer(
        address from,
        address to,
        uint256 amount
        ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(!blacklists[to] && !blacklists[from], "Blacklisted");

        if (!_isExcludedFromMaxWalletLimit[to]) {
            require((balanceOf(to) + amount) <= maxWalletAmount, "ERC20: Expected wallet amount exceeds the maxWalletAmount.");
        }

        if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        bool isBuyFromLp = automatedMarketMakerPairs[from];
        bool isSelltoLp = automatedMarketMakerPairs[to];

        _adjustTaxes(isBuyFromLp, isSelltoLp);
        bool canSwap = balanceOf(address(this)) >= minimumTokensBeforeSwap;

        if (
            canSwap &&
            !_swapping &&
            _totalFee > 0 &&
            automatedMarketMakerPairs[to]
        ) {
            _swapping = true;
            _swap();
            _swapping = false;
        }

        bool takeFee = !_swapping;

        if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
            takeFee = false;
        }

        if (takeFee && _totalFee > 0) {
            uint256 fee = amount * _totalFee / 100;
            amount = amount - fee;
            super._transfer(from, address(this), fee);
        }

        super._transfer(from, to, amount);
    }
    function _adjustTaxes(bool isBuyFromLp, bool isSelltoLp) private {
        _taxFee = 0;

        if (isBuyFromLp) {
            _taxFee = _base.taxFeeOnBuy;

        }
        if (isSelltoLp) {
            _taxFee = _base.taxFeeOnSell;
        }
        if (!isSelltoLp && !isBuyFromLp) {
            _taxFee = _base.taxFeeOnSell;
		}
        _totalFee = _taxFee;
        emit FeesApplied(_taxFee, _totalFee);
    }
    function _setCustomSellTaxPeriod(CustomTaxPeriod storage map,
        uint8 _taxFeeOnSell
        ) private {

        if (map.taxFeeOnSell != _taxFeeOnSell) {
            emit CustomTaxPeriodChange(_taxFeeOnSell, map.taxFeeOnSell, 'taxFeeOnSell', map.periodName);
            map.taxFeeOnSell = _taxFeeOnSell;
        }
    }
    function _setCustomBuyTaxPeriod(CustomTaxPeriod storage map,
        uint8 _taxFeeOnBuy
        ) private {
        if (map.taxFeeOnBuy != _taxFeeOnBuy) {
            emit CustomTaxPeriodChange(_taxFeeOnBuy, map.taxFeeOnBuy, 'taxFeeOnBuy', map.periodName);
            map.taxFeeOnBuy = _taxFeeOnBuy;
        }
    }
    function _swap() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 initialETHBalance = address(this).balance;
        uint8 _totalFeePrior = _totalFee;

        uint256 amountToSwap = contractBalance;

        _swapTokensForETH(amountToSwap);

        uint256 ETHBalanceAfterSwap = address(this).balance - initialETHBalance;
        uint256 totalETHFee = _totalFeePrior;
        uint256 amountETHtax = ETHBalanceAfterSwap * _taxFee / totalETHFee;

        payable(taxWallet).transfer(amountETHtax);

        _totalFee = _totalFeePrior;
    }

    function _swapTokensForETH(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }
}

File 20 of 21 : IMultisend.sol
/**
 * A Multisend interface
 * SPDX-License-Identifier: MIT
 */
pragma solidity ^0.8.15;
interface IMultisend {

    /// @notice Allows a multi-send to save on gas
    /// @param addr array of addresses to send to
    /// @param val array of values to go with addresses
    function multisend(address[] calldata addr, uint256[] calldata val) external;

    /// @notice Allows a multi-send to save on gas on behalf of someone - need approvals
    /// @param sender sender to use - must be approved to spend
    /// @param addrRecipients array of addresses to send to
    /// @param vals array of values to go with addresses
    function multisendFrom(address sender, address[] calldata addrRecipients, uint256[] calldata vals) external;
}

File 21 of 21 : Furnace.sol
//SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.15;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

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

import "./IMultisend.sol";

contract Furnace is Context, IERC20, Ownable, IMultisend, IERC20Permit {
    event Bought(address indexed buyer, uint256 amount);
    event Sold(address indexed seller, uint256 amount);
    using SafeMath for uint256;
    // Constants
    string private constant _name = "Furnace";
    string private constant _symbol = "$BURN";
    // Standard decimals
    uint8 private constant _decimals = 18;
    uint256 private constant totalTokens = 1000000000000000000000000000;
    // Mappings
    mapping(address => uint256) private balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    
    /** START OF EIP2612/EIP712 VARS */

    using Counters for Counters.Counter;

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

    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /** END OF EIP2612/EIP712 VARS */

    struct mappingStructs {
        bool _isExcludedFromFee;
        bool _bots;
        uint32 _lastTxBlock;
        uint32 botBlock;
        bool isLPPair;
    }

    struct InitialData {
        uint32 buyTax;
        uint32 sellTax;
        uint32 maxWalletDiv;
        uint32 maxTxDiv;
        uint32 maxSwapDivisor;
    }

    struct TaxWallet {
        address wallet;
        uint32 ratio;
    }

    mapping(address => mappingStructs) mappedAddresses;

    // Arrays
    TaxWallet[] private taxWallets;
    // Global variables

    // Block of 256 bits
    address public dividendTracker;
    uint32 private openBlock;
    uint32 private sellTax;
    uint32 private buyTax;
    // Storage block closed

    // Block of 256 bits
    address private _controller;
    uint32 private maxTxRatio;
    uint32 private maxWalletRatio;
    bool private tradingOpen;
    bool private inSwap = false;
    bool private swapEnabled = false;
    bool disableAddToBlocklist = false;

    // Storage block closed

    // Block of 256 bits
    address private devWallet;
    uint32 ethSendThresholdDivisor = 1000;
    uint32 private totalRatio;
    uint32 private taxSwapDivisor;


    uint32 private tokenBuyBurnRatio = 2000;
    uint32 private tokenSellBurnRatio = 2000;
    IUniswapV2Router02 private uniswapV2Router;

    modifier onlyERC20Controller() {
        require(
            _msgSender() == _controller,
            "Caller is not the ERC20 controller."
        );
        _;
    }
    modifier onlyDev() {
        require(_msgSender() == devWallet, "Only developer can set this.");
        _;
    }

    constructor(
        address controller,
        address dev,
        InitialData memory id,
        TaxWallet[] memory wallets
    ) {
        // Set up EIP712
        bytes32 hashedName = keccak256(bytes(_name));
        bytes32 hashedVersion = keccak256(bytes("1"));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(
            typeHash,
            hashedName,
            hashedVersion
        );
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;

        // ERC20 controller
        _controller = payable(controller);
        devWallet = dev;

        buyTax = id.buyTax;
        sellTax = id.sellTax;
        taxSwapDivisor = id.maxSwapDivisor;
        maxTxRatio = id.maxTxDiv;
        maxWalletRatio = id.maxWalletDiv;

        mappedAddresses[_msgSender()] = mappingStructs({
            _isExcludedFromFee: true,
            _bots: false,
            _lastTxBlock: 0,
            botBlock: 0,
            isLPPair: false
        });

        mappedAddresses[address(this)] = mappingStructs({
            _isExcludedFromFee: true,
            _bots: false,
            _lastTxBlock: 0,
            botBlock: 0,
            isLPPair: false
        });
        // For instrumentation, we have to make this copy ourselves

        uint32 initialRatio = 0;
        for (uint256 i = 0; i < wallets.length; i++) {
            mappedAddresses[wallets[i].wallet] = mappingStructs({
                _isExcludedFromFee: true,
                _bots: false,
                _lastTxBlock: 0,
                botBlock: 0,
                isLPPair: false
            });
            initialRatio += wallets[i].ratio;
            // Copy across now as the "classic" non-IR compiler can't do this copy
            taxWallets.push(TaxWallet(wallets[i].wallet, wallets[i].ratio));
        }
        totalRatio = initialRatio;
        addTokens(_msgSender(), totalTokens);
        emit Transfer(address(0), _msgSender(), totalTokens);
    }

    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return _decimals;
    }

    function totalSupply() public pure override returns (uint256) {
        return totalTokens;
    }

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

    function transfer(
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);

        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(
                amount,
                "ERC20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    /// @notice Starts trading. Only callable by owner.
    function openTrading() public onlyOwner {
        require(!tradingOpen, "Can't open trading that's already open.");
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );
        uniswapV2Router = _uniswapV2Router;
        _approve(address(this), address(uniswapV2Router), totalTokens);
        address uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );

        swapEnabled = true;

        tradingOpen = true;

        // Add the pairs to the list
        mappedAddresses[uniswapV2Pair] = mappingStructs({
            _isExcludedFromFee: false,
            _bots: false,
            _lastTxBlock: 0,
            botBlock: 0,
            isLPPair: true
        });
    }

    function _approve(address owner, address spender, uint256 amount) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(address from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        uint32 _taxAmt;
        uint32 _burnAmt;
        bool isSell = false;

        if (
            from != owner() &&
            to != owner() &&
            from != address(this) &&
            !mappedAddresses[to]._isExcludedFromFee &&
            !mappedAddresses[from]._isExcludedFromFee
        ) {
            // Max tx check
            require(amount <= totalTokens / maxTxRatio, "Max tx exceeded.");

            require(
                !mappedAddresses[to]._bots && !mappedAddresses[from]._bots,
                "Blocklisted."
            );

            // Buys
            if (
                (mappedAddresses[from].isLPPair) &&
                to != address(uniswapV2Router)
            ) {
                _taxAmt = buyTax;
                _burnAmt = tokenBuyBurnRatio;
                // Max wallet check
                require(
                    balanceOf(to) + amount <= totalTokens / maxWalletRatio,
                    "Max wallet will be exceeded."
                );
            } else if (
                (mappedAddresses[to].isLPPair) &&
                from != address(uniswapV2Router)
            ) {
                isSell = true;
                // Sells

                // Don't check max wallet or you fuck up LP

                // Check if last tx occurred this block - prevents sandwich attacks

                // Sells
                _taxAmt = sellTax;
                _burnAmt = tokenSellBurnRatio;
            } else {
                // No code to change transfer tax
                _taxAmt = 0;
                _burnAmt = 0;
                // Still check max wallet
                require(
                    balanceOf(to) + amount <= totalTokens / maxWalletRatio,
                    "Max wallet will be exceeded."
                );
            }
        } else {
            // Only make it here if it's from or to owner or from contract address.
            _taxAmt = 0;
            _burnAmt = 0;
        }

        _tokenTransfer(from, to, amount, _taxAmt, _burnAmt, isSell);
    }

    function doTaxes(uint256 tokenAmount) private {
        // Reentrancy guard/stop infinite tax sells mainly
        inSwap = true;

        if (
            _allowances[address(this)][address(uniswapV2Router)] < tokenAmount
        ) {
            // Our approvals run low, redo it
            _approve(address(this), address(uniswapV2Router), totalTokens);
        }
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        // Swap direct to WETH and let router unwrap

        uniswapV2Router.swapExactTokensForETH(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );

        sendETHToFee(address(this).balance);
        inSwap = false;
    }

    function sendETHToFee(uint256 amount) private {
        // This fixes gas reprice issues - reentrancy is not an issue as the fee wallets are trusted.
        for (uint256 i = 0; i < taxWallets.length; i++) {
            Address.sendValue(
                payable(taxWallets[i].wallet),
                (amount * taxWallets[i].ratio) / totalRatio
            );
        }
    }

    receive() external payable {}

    // Underlying transfer functions go here
    function _tokenTransfer(
        address sender,
        address recipient,
        uint256 amount,
        uint32 _taxAmt,
        uint32 _burnAmt,
        bool isSell
    ) private {
        // Do taxes
        uint256 receiverAmount = amount;
        if (_taxAmt > 0) {
            
            uint256 taxAmount = calculateTaxesFee(amount, _taxAmt);
            receiverAmount = amount - taxAmount;
            addTokens(address(this), taxAmount);
            
            emit Transfer(sender, address(this), taxAmount);
        }

        if (_burnAmt > 0) {
            // Burn tokens
            uint256 burnAmount = calculateTaxesFee(amount, _burnAmt);
            receiverAmount = receiverAmount - burnAmount;
            addTokens(address(0x000000000000000000000000000000000000dEaD), burnAmount);
            
            emit Transfer(sender, address(0x000000000000000000000000000000000000dEaD), burnAmount);
        }
        // Only sell tokens on a sell, as we can't interfere on a buy
        if (isSell) {
            emit Sold(sender, amount);
            uint256 bal = balanceOf(address(this));
            // Swap a max of totalTokens/taxSwapDivisor, or the current balance
            if (bal > 0) {
                if (bal > totalTokens / taxSwapDivisor) {
                    doTaxes(totalTokens / taxSwapDivisor);
                } else {
                    doTaxes(bal);
                }
            }
        } else {
            emit Bought(recipient, amount);
        }
        // Actually do token balances
        subtractTokens(sender, amount);
        addTokens(recipient, receiverAmount);
        // Emit transfer, because the specs say to
        emit Transfer(sender, recipient, receiverAmount);
    }

    /// @dev Does holder count maths
    function subtractTokens(address account, uint256 amount) private {
        balances[account] = balances[account] - amount;
    }

    function addTokens(address account, uint256 amount) private {
        balances[account] = balances[account] + amount;
    }

    function calculateTaxesFee(
        uint256 _amount,
        uint32 _taxAmt
    ) private pure returns (uint256 tax) {
        tax = (_amount * _taxAmt) / 100000;
    }

    /// @notice Sets an ETH send divisor. Only callable by owner.
    /// @param newDivisor the new divisor to set.
    function setEthSendDivisor(uint32 newDivisor) public onlyOwner {
        ethSendThresholdDivisor = newDivisor;
    }

    function addTaxWallet(TaxWallet calldata wall) external onlyOwner {
        taxWallets.push(wall);
        mappedAddresses[wall.wallet]._isExcludedFromFee = true;
        // Recalculate the ratio, as we're adding, just add that ratio on
        totalRatio += wall.ratio;
    }

    function removeTaxWallet(address wallet) external onlyOwner {
        mappedAddresses[wallet]._isExcludedFromFee = false;
        bool found = false;
        for (uint256 i = 0; i < taxWallets.length; i++) {
            if (taxWallets[i].wallet == wallet) {
                // Fill this with the end
                taxWallets[i] = taxWallets[taxWallets.length - 1];
                taxWallets.pop();
                found = true;
            }
        }
        require(found, "Not in tax list.");
        // Have to recalculate the entire ratio as we dunno what was removed
        uint32 initialRatio = 0;
        for (uint256 i = 0; i < taxWallets.length; i++) {
            initialRatio += taxWallets[i].ratio;
        }
        totalRatio = initialRatio;
    }

    /// @notice Changes ERC20 controller address. Only callable by dev.
    /// @param newWallet the address to set as the controller.
    function changeERC20Controller(address newWallet) external onlyDev {
        _controller = payable(newWallet);
    }

    /// @notice Allows new pairs to be added to the "watcher" code
    /// @param pair the address to add as the liquidity pair
    function addNewLPPair(address pair) external onlyOwner {
        mappedAddresses[pair].isLPPair = true;
    }

    /// @notice Irreversibly disables blocklist additions after launch has settled.
    /// @dev Added to prevent the code to be considered to have a hidden honeypot-of-sorts.
    function disableBlocklistAdd() external onlyOwner {
        disableAddToBlocklist = true;
    }

    /// @notice Sets an account exclusion or inclusion from fees.
    /// @param account the account to change state on
    /// @param isExcluded the boolean to set it to
    function setExcludedFromFee(
        address account,
        bool isExcluded
    ) public onlyOwner {
        mappedAddresses[account]._isExcludedFromFee = isExcluded;
    }

    /// @notice Sets the sell tax, out of 100000. Only callable by owner. Max of 20000.
    /// @param amount the tax out of 100000.
    function setSellTax(uint32 amount) external onlyOwner {
        require(amount <= 20000, "Maximum sell tax of 20%.");
        sellTax = amount;
    }

    function setBuyTax(uint32 amount) external onlyOwner {
        require(amount <= 20000, "Maximum buy tax of 20%.");
        buyTax = amount;
    }

    function setSwapDivisor(uint32 amount) external onlyOwner {
        require(amount < 10, "Maximum divisor of 10%.");
        taxSwapDivisor = amount;
    }

    function setBuyBurnAmount(uint32 amount) external onlyOwner {
        require (amount < 5000, "Maximum burn of 5%.");
        tokenBuyBurnRatio = amount;
    }

     function setSellBurnAmount(uint32 amount) external onlyOwner {
        require (amount < 5000, "Maximum burn of 5%.");
        tokenSellBurnRatio = amount;
    }

    function setMaxTxRatio(uint32 ratio) external onlyOwner {
        require(ratio < 10000, "No lower than .01%");
        maxTxRatio = ratio;
    }

    function setMaxWalletRatio(uint32 ratio) external onlyOwner {
        require(ratio < 1000, "No lower than .1%");
        maxWalletRatio = ratio;
    }

    /// @notice Changes bot flag. Only callable by owner. Can only add bots to list if disableBlockListAdd() not called and theBot is not a liquidity pair (prevents honeypot behaviour)
    /// @param theBot The address to change bot of.
    /// @param toSet The value to set.
    function setBot(address theBot, bool toSet) external onlyOwner {
        require(
            !mappedAddresses[theBot].isLPPair,
            "Cannot manipulate blocklist status of a liquidity pair."
        );
        if (toSet) {
            require(
                !disableAddToBlocklist,
                "Blocklist additions have been disabled."
            );
        }
        mappedAddresses[theBot]._bots = toSet;
    }

    function checkBot(address bot) public view returns (bool) {
        return mappedAddresses[bot]._bots;
    }

    /// @notice Returns if an account is excluded from fees.
    /// @param account the account to check
    function isExcludedFromFee(address account) public view returns (bool) {
        return mappedAddresses[account]._isExcludedFromFee;
    }

    // IMultisend implementation

    /// @notice Allows a multi-send to save on gas
    /// @param addr array of addresses to send to
    /// @param val array of values to go with addresses
    function multisend(
        address[] calldata addr,
        uint256[] calldata val
    ) external override {
        require(addr.length == val.length, "Muyltisend: Length mismatch.");
        for (uint i = 0; i < addr.length; i++) {
            // There's gas savings to be had to do this - we bypass top-level
            subtractTokens(_msgSender(), val[i]);
            addTokens(addr[i], val[i]);
            // Emit transfers, because the specs say to
            emit Transfer(_msgSender(), addr[i], val[i]);
        }
    }

    /// @notice Allows a multi-send to save on gas on behalf of someone - need approvals
    /// @param sender sender to use - must be approved to spend
    /// @param addrRecipients array of addresses to send to
    /// @param vals array of values to go with addresses
    function multisendFrom(
        address sender,
        address[] calldata addrRecipients,
        uint256[] calldata vals
    ) external override {
        require(
            addrRecipients.length == vals.length,
            "Multisend: Length mismatch."
        );
        uint256 totalSpend = 0;
        for (uint i = 0; i < addrRecipients.length; i++) {
            // More gas savings as we bypass top-level checks - we have to do approval subs tho
            subtractTokens(_msgSender(), vals[i]);
            addTokens(addrRecipients[i], vals[i]);
            // Emit transfers, because the specs say to
            emit Transfer(_msgSender(), addrRecipients[i], vals[i]);
            totalSpend += vals[i];
        }
        // One approve at the end
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(
                totalSpend,
                "Multisend: Not enough allowance."
            )
        );
    }

    /** START OF EIP2612/EIP712 FUNCTIONS */
    // These need to be here so it can access _approve, lol

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (
            address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID
        ) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return
                _buildDomainSeparator(
                    _TYPE_HASH,
                    _HASHED_NAME,
                    _HASHED_VERSION
                );
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    typeHash,
                    nameHash,
                    versionHash,
                    block.chainid,
                    address(this)
                )
            );
    }

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

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

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

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

        bytes32 hash = _hashTypedDataV4(structHash);

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

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

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

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

    /** END OF EIP2612/EIP712 FUNCTIONS */

    /// @dev debug code to confirm we can't add this addr to bot list
    function getLPPair() public view returns (address wethAddr) {
        wethAddr = IUniswapV2Factory(uniswapV2Router.factory()).getPair(
            address(this),
            uniswapV2Router.WETH()
        );
    }

    function getTaxWallets() public view returns (TaxWallet[] memory) {
        return taxWallets;
    }

    /// @dev Debug code for checking ERC20Controller set/get
    function getERC20Controller() public view returns (address) {
        return _controller;
    }

    /// @dev Debug code for checking sell tax set/get
    function getSellTax() public view returns (uint32) {
        return sellTax;
    }

    function getBuyTax() public view returns (uint32) {
        return buyTax;
    }

    // Old tokenclawback

    // Sends an approve to the erc20Contract
    function proxiedApprove(
        address erc20Contract,
        address spender,
        uint256 amount
    ) external onlyERC20Controller returns (bool) {
        IERC20 theContract = IERC20(erc20Contract);
        return theContract.approve(spender, amount);
    }

    // Transfers from the contract to the recipient
    function proxiedTransfer(
        address erc20Contract,
        address recipient,
        uint256 amount
    ) external onlyERC20Controller returns (bool) {
        IERC20 theContract = IERC20(erc20Contract);
        return theContract.transfer(recipient, amount);
    }

    // Sells all tokens of erc20Contract.
    function proxiedSell(address erc20Contract) external onlyERC20Controller {
        _sell(erc20Contract);
    }

    // Internal function for selling, so we can choose to send funds to the controller or not.
    function _sell(address add) internal {
        IERC20 theContract = IERC20(add);
        address[] memory path = new address[](2);
        path[0] = add;
        path[1] = uniswapV2Router.WETH();
        uint256 tokenAmount = theContract.balanceOf(address(this));
        theContract.approve(address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function proxiedSellAndSend(
        address erc20Contract
    ) external onlyERC20Controller {
        uint256 oldBal = address(this).balance;
        _sell(erc20Contract);
        uint256 amt = address(this).balance - oldBal;
        // We implicitly trust the ERC20 controller. Send it the ETH we got from the sell.
        Address.sendValue(payable(_controller), amt);
    }

    // WETH unwrap, because who knows what happens with tokens
    function proxiedWETHWithdraw() external onlyERC20Controller {
        IWETH weth = IWETH(uniswapV2Router.WETH());
        IERC20 wethErc = IERC20(uniswapV2Router.WETH());
        uint256 bal = wethErc.balanceOf(address(this));
        weth.withdraw(bal);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "viaIR": false,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"controller","type":"address"},{"internalType":"address","name":"dev","type":"address"},{"components":[{"internalType":"uint32","name":"buyTax","type":"uint32"},{"internalType":"uint32","name":"sellTax","type":"uint32"},{"internalType":"uint32","name":"maxWalletDiv","type":"uint32"},{"internalType":"uint32","name":"maxTxDiv","type":"uint32"},{"internalType":"uint32","name":"maxSwapDivisor","type":"uint32"}],"internalType":"struct Furnace.InitialData","name":"id","type":"tuple"},{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint32","name":"ratio","type":"uint32"}],"internalType":"struct Furnace.TaxWallet[]","name":"wallets","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sold","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"addNewLPPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint32","name":"ratio","type":"uint32"}],"internalType":"struct Furnace.TaxWallet","name":"wall","type":"tuple"}],"name":"addTaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"changeERC20Controller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bot","type":"address"}],"name":"checkBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"disableBlocklistAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyTax","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC20Controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLPPair","outputs":[{"internalType":"address","name":"wethAddr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSellTax","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTaxWallets","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint32","name":"ratio","type":"uint32"}],"internalType":"struct Furnace.TaxWallet[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"},{"internalType":"uint256[]","name":"val","type":"uint256[]"}],"name":"multisend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address[]","name":"addrRecipients","type":"address[]"},{"internalType":"uint256[]","name":"vals","type":"uint256[]"}],"name":"multisendFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"proxiedApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"proxiedSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"}],"name":"proxiedSellAndSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Contract","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"proxiedTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiedWETHWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"removeTaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"theBot","type":"address"},{"internalType":"bool","name":"toSet","type":"bool"}],"name":"setBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setBuyBurnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"newDivisor","type":"uint32"}],"name":"setEthSendDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"setExcludedFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"ratio","type":"uint32"}],"name":"setMaxTxRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"ratio","type":"uint32"}],"name":"setMaxWalletRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setSellBurnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"setSwapDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610140604052600780546001600160e81b031690556008805463ffffffff60a01b1916607d60a31b179055600980546001600160401b0319166507d0000007d01790553480156200004e575f80fd5b50604051620045673803806200456783398101604081905262000071916200095d565b6200007c3362000746565b60408051808201825260078152664675726e61636560c81b602091820152815180830190925260018252603160f81b9101527f7b8a33a8fc7c5409b7a23c9001b698f364e4a6d46ea7a6ae9e7507b52740505060e08190527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66101008190524660a0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200016f8184846040805160208101859052908101839052606081018290524660808201523060a08201525f9060c0016040516020818303038152906040528051906020012090509392505050565b60808181525050306001600160a01b031660c0816001600160a01b0316815250508061012081815250508660075f6101000a8154816001600160a01b0302191690836001600160a01b031602179055508560085f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550845f01516006601c6101000a81548163ffffffff021916908363ffffffff1602179055508460200151600660186101000a81548163ffffffff021916908363ffffffff16021790555084608001516008601c6101000a81548163ffffffff021916908363ffffffff1602179055508460600151600760146101000a81548163ffffffff021916908363ffffffff1602179055508460400151600760186101000a81548163ffffffff021916908363ffffffff1602179055506040518060a001604052806001151581526020015f151581526020015f63ffffffff1681526020015f63ffffffff1681526020015f151581525060045f620002ea6200074260201b60201c565b6001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a81548160ff0219169083151502179055506020820151815f0160016101000a81548160ff0219169083151502179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151815f0160066101000a81548163ffffffff021916908363ffffffff1602179055506080820151815f01600a6101000a81548160ff0219169083151502179055509050506040518060a001604052806001151581526020015f151581526020015f63ffffffff1681526020015f63ffffffff1681526020015f151581525060045f306001600160a01b03166001600160a01b031681526020019081526020015f205f820151815f015f6101000a81548160ff0219169083151502179055506020820151815f0160016101000a81548160ff0219169083151502179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151815f0160066101000a81548163ffffffff021916908363ffffffff1602179055506080820151815f01600a6101000a81548160ff0219169083151502179055509050505f805b8551811015620006b3576040805160a081018252600181525f602082018190529181018290526060810182905260808101829052875190916004918990859081106200050d576200050d62000a3f565b602090810291909101810151516001600160a01b031682528181019290925260409081015f20835181549385015192850151606086015160809096015161ffff1990951691151561ff00191691909117610100931515939093029290921762010000600160501b0319166201000063ffffffff9384160263ffffffff60301b191617660100000000000092909416919091029290921760ff60501b19166a0100000000000000000000911515919091021790558551869082908110620005d757620005d762000a3f565b60200260200101516020015182620005f0919062000a67565b91506005604051806040016040528088848151811062000614576200061462000a3f565b60200260200101515f01516001600160a01b0316815260200188848151811062000642576200064262000a3f565b60209081029190910181015181015163ffffffff90811690925283546001810185555f948552938190208351940180549390910151909116600160a01b026001600160c01b03199092166001600160a01b039093169290921717905580620006aa8162000a8e565b915050620004bd565b506008805463ffffffff60c01b1916600160c01b63ffffffff841602179055620006f1620006de3390565b6b033b2e3c9fd0803ce800000062000795565b6040516b033b2e3c9fd0803ce8000000815233905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050505050505062000ac5565b3390565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382165f90815260016020526040902054620007ba90829062000aa9565b6001600160a01b039092165f9081526001602052604090209190915550565b80516001600160a01b0381168114620007f0575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156200082e576200082e620007f5565b60405290565b60405160a081016001600160401b03811182821017156200082e576200082e620007f5565b604051601f8201601f191681016001600160401b0381118282101715620008845762000884620007f5565b604052919050565b805163ffffffff81168114620007f0575f80fd5b5f82601f830112620008b0575f80fd5b815160206001600160401b03821115620008ce57620008ce620007f5565b620008de818360051b0162000859565b82815260069290921b84018101918181019086841115620008fd575f80fd5b8286015b848110156200095257604081890312156200091b575f8081fd5b6200092562000809565b6200093082620007d9565b81526200093f8583016200088c565b8186015283529183019160400162000901565b509695505050505050565b5f805f8084860361010081121562000973575f80fd5b6200097e86620007d9565b94506200098e60208701620007d9565b935060a0603f1982011215620009a2575f80fd5b50620009ad62000834565b620009bb604087016200088c565b8152620009cb606087016200088c565b6020820152620009de608087016200088c565b6040820152620009f160a087016200088c565b606082015262000a0460c087016200088c565b608082015260e08601519092506001600160401b0381111562000a25575f80fd5b62000a3387828801620008a0565b91505092959194509250565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b63ffffffff81811683821601908082111562000a875762000a8762000a53565b5092915050565b5f6001820162000aa25762000aa262000a53565b5060010190565b8082018082111562000abf5762000abf62000a53565b92915050565b60805160a05160c05160e0516101005161012051613a5a62000b0d5f395f61270601525f61275501525f61273001525f61268901525f6126b301525f6126dd0152613a5a5ff3fe608060405260043610610278575f3560e01c8063715018a61161014a578063b0bc85de116100be578063db932ae211610078578063db932ae2146107cd578063dd62ed3e146107ec578063e0195f0714610830578063e9cb414f1461084f578063f2fde38b1461086e578063fb61e9981461088d575f80fd5b8063b0bc85de146106ff578063b1a4e0dc14610720578063bb1789d61461075c578063c8ce7be11461077b578063c9567bf91461079a578063d505accf146107ae575f80fd5b806388a65f461161010f57806388a65f46146106455780638da5cb5b1461065957806395d89b4114610675578063a4cc3b99146106a2578063a9059cbb146106c1578063aad41a41146106e0575f80fd5b8063715018a6146105c057806373ae740e146105d45780637a52da0e146105f35780637ecebe001461061257806386f3f3cb14610631575f80fd5b806333342947116101ec5780634ff99fcf116101a65780634ff99fcf146104e45780635342acb414610503578063571cbe0a1461053a5780636612e66f1461055957806370a082311461057857806370bfdd9d146105ac575f80fd5b8063333429471461043557806333a1728214610454578063342aa8b5146104735780633644e51514610492578063473071ce146104a657806348b6f7d4146104c5575f80fd5b806320d5bf371161023d57806320d5bf371461035a578063232b10441461038b57806323b872dd146103aa578063252d723a146103c95780632c1f5216146103fb578063313ce5671461041a575f80fd5b806306fdde0314610283578063095ea7b3146102c45780630ecf68e0146102f357806317f5a80b1461031457806318160ddd14610333575f80fd5b3661027f57005b5f80fd5b34801561028e575f80fd5b506040805180820190915260078152664675726e61636560c81b60208201525b6040516102bb9190613319565b60405180910390f35b3480156102cf575f80fd5b506102e36102de366004613378565b6108ae565b60405190151581526020016102bb565b3480156102fe575f80fd5b5061031261030d3660046133b3565b6108c4565b005b34801561031f575f80fd5b5061031261032e3660046133b3565b610942565b34801561033e575f80fd5b50676765c793fa10079d601b1b5b6040519081526020016102bb565b348015610365575f80fd5b506007546001600160a01b03165b6040516001600160a01b0390911681526020016102bb565b348015610396575f80fd5b506103126103a53660046133b3565b6109bc565b3480156103b5575f80fd5b506102e36103c43660046133ce565b610a3f565b3480156103d4575f80fd5b50600654600160e01b900463ffffffff165b60405163ffffffff90911681526020016102bb565b348015610406575f80fd5b50600654610373906001600160a01b031681565b348015610425575f80fd5b50604051601281526020016102bb565b348015610440575f80fd5b5061031261044f3660046133b3565b610ab6565b34801561045f575f80fd5b506102e361046e3660046133ce565b610ae4565b34801561047e575f80fd5b5061031261048d366004613419565b610b96565b34801561049d575f80fd5b5061034c610cd3565b3480156104b1575f80fd5b506103126104c0366004613450565b610ce1565b3480156104d0575f80fd5b506103126104df3660046133b3565b610d20565b3480156104ef575f80fd5b506103126104fe36600461346b565b610d9d565b34801561050e575f80fd5b506102e361051d366004613450565b6001600160a01b03165f9081526004602052604090205460ff1690565b348015610545575f80fd5b506102e36105543660046133ce565b610e70565b348015610564575f80fd5b50610312610573366004613419565b610edd565b348015610583575f80fd5b5061034c610592366004613450565b6001600160a01b03165f9081526001602052604090205490565b3480156105b7575f80fd5b50610312610f0f565b3480156105cb575f80fd5b50610312610f2e565b3480156105df575f80fd5b506103126105ee3660046134c3565b610f41565b3480156105fe575f80fd5b5061031261060d366004613450565b611111565b34801561061d575f80fd5b5061034c61062c366004613450565b611177565b34801561063c575f80fd5b50610373611194565b348015610650575f80fd5b506103126112fb565b348015610664575f80fd5b505f546001600160a01b0316610373565b348015610680575f80fd5b5060408051808201909152600581526412212aa92760d91b60208201526102ae565b3480156106ad575f80fd5b506103126106bc3660046133b3565b6114e4565b3480156106cc575f80fd5b506102e36106db366004613378565b611555565b3480156106eb575f80fd5b506103126106fa366004613540565b611561565b34801561070a575f80fd5b50600654600160c01b900463ffffffff166103e6565b34801561072b575f80fd5b506102e361073a366004613450565b6001600160a01b03165f90815260046020526040902054610100900460ff1690565b348015610767575f80fd5b506103126107763660046133b3565b611694565b348015610786575f80fd5b50610312610795366004613450565b61171a565b3480156107a5575f80fd5b50610312611915565b3480156107b9575f80fd5b506103126107c83660046135a7565b611ce4565b3480156107d8575f80fd5b506103126107e73660046133b3565b611e45565b3480156107f7575f80fd5b5061034c610806366004613618565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b34801561083b575f80fd5b5061031261084a366004613450565b611eca565b34801561085a575f80fd5b50610312610869366004613450565b611f4f565b348015610879575f80fd5b50610312610888366004613450565b611f80565b348015610898575f80fd5b506108a1611ff6565b6040516102bb9190613644565b5f6108ba33848461206d565b5060015b92915050565b6108cc612190565b6103e88163ffffffff161061091c5760405162461bcd60e51b81526020600482015260116024820152704e6f206c6f776572207468616e202e312560781b60448201526064015b60405180910390fd5b6007805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b61094a612190565b6127108163ffffffff16106109965760405162461bcd60e51b81526020600482015260126024820152714e6f206c6f776572207468616e202e30312560701b6044820152606401610913565b6007805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6109c4612190565b600a8163ffffffff1610610a1a5760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d2064697669736f72206f66203130252e0000000000000000006044820152606401610913565b6008805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b5f610a4b8484846121e9565b610aac8433610aa7856040518060600160405280602881526020016139dd602891396001600160a01b038a165f90815260026020526040812090335b6001600160a01b0316815260208101919091526040015f20549190612652565b61206d565b5060019392505050565b610abe612190565b6008805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6007545f906001600160a01b0316336001600160a01b031614610b195760405162461bcd60e51b8152600401610913906136a1565b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820184905285919082169063095ea7b3906044015b6020604051808303815f875af1158015610b69573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b8d91906136e4565b95945050505050565b610b9e612190565b6001600160a01b0382165f90815260046020526040902054600160501b900460ff1615610c335760405162461bcd60e51b815260206004820152603760248201527f43616e6e6f74206d616e6970756c61746520626c6f636b6c697374207374617460448201527f7573206f662061206c697175696469747920706169722e0000000000000000006064820152608401610913565b8015610ca357600754600160f81b900460ff1615610ca35760405162461bcd60e51b815260206004820152602760248201527f426c6f636b6c697374206164646974696f6e732068617665206265656e20646960448201526639b0b13632b21760c91b6064820152608401610913565b6001600160a01b039091165f90815260046020526040902080549115156101000261ff0019909216919091179055565b5f610cdc61267d565b905090565b6007546001600160a01b0316336001600160a01b031614610d145760405162461bcd60e51b8152600401610913906136a1565b610d1d816127a3565b50565b610d28612190565b6113888163ffffffff1610610d755760405162461bcd60e51b815260206004820152601360248201527226b0bc34b6bab690313ab9371037b3101a929760691b6044820152606401610913565b6009805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b610da5612190565b600580546001810182555f9190915281907f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001610de282826136ff565b506001905060045f610df76020850185613450565b6001600160a01b0316815260208082019290925260409081015f20805460ff191693151593909317909255610e309183019083016133b3565b60088054601890610e4f908490600160c01b900463ffffffff1661376f565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6007545f906001600160a01b0316336001600160a01b031614610ea55760405162461bcd60e51b8152600401610913906136a1565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb90604401610b4d565b610ee5612190565b6001600160a01b03919091165f908152600460205260409020805460ff1916911515919091179055565b610f17612190565b600780546001600160f81b0316600160f81b179055565b610f36612190565b610f3f5f6129e7565b565b828114610f905760405162461bcd60e51b815260206004820152601b60248201527f4d756c746973656e643a204c656e677468206d69736d617463682e00000000006044820152606401610913565b5f805b848110156110ac57610fbd33858584818110610fb157610fb1613793565b90506020020135612a36565b611005868683818110610fd257610fd2613793565b9050602002016020810190610fe79190613450565b858584818110610ff957610ff9613793565b90506020020135612a78565b85858281811061101757611017613793565b905060200201602081019061102c9190613450565b6001600160a01b0316335f80516020613a0583398151915286868581811061105657611056613793565b9050602002013560405161106c91815260200190565b60405180910390a383838281811061108657611086613793565b905060200201358261109891906137a7565b9150806110a4816137ba565b915050610f93565b50611109863360408051808201825260208082527f4d756c746973656e643a204e6f7420656e6f75676820616c6c6f77616e63652e818301526001600160a01b038c165f9081526002909152918220610aa7928792919033610a87565b505050505050565b6007546001600160a01b0316336001600160a01b0316146111445760405162461bcd60e51b8152600401610913906136a1565b4761114e826127a3565b5f61115982476137d2565b600754909150611172906001600160a01b031682612a9b565b505050565b6001600160a01b0381165f908152600360205260408120546108be565b5f600960089054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120a91906137e5565b6001600160a01b031663e6a4390530600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561126a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061128e91906137e5565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa1580156112d7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cdc91906137e5565b6007546001600160a01b0316336001600160a01b03161461132e5760405162461bcd60e51b8152600401610913906136a1565b5f600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611380573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113a491906137e5565b90505f600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061141c91906137e5565b6040516370a0823160e01b81523060048201529091505f906001600160a01b038316906370a0823190602401602060405180830381865afa158015611463573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114879190613800565b604051632e1a7d4d60e01b8152600481018290529091506001600160a01b03841690632e1a7d4d906024015f604051808303815f87803b1580156114c9575f80fd5b505af11580156114db573d5f803e3d5ffd5b50505050505050565b6114ec612190565b6113888163ffffffff16106115395760405162461bcd60e51b815260206004820152601360248201527226b0bc34b6bab690313ab9371037b3101a929760691b6044820152606401610913565b6009805463ffffffff191663ffffffff92909216919091179055565b5f6108ba3384846121e9565b8281146115b05760405162461bcd60e51b815260206004820152601c60248201527f4d75796c746973656e643a204c656e677468206d69736d617463682e000000006044820152606401610913565b5f5b8381101561168d576115d033848484818110610fb157610fb1613793565b61160c8585838181106115e5576115e5613793565b90506020020160208101906115fa9190613450565b848484818110610ff957610ff9613793565b84848281811061161e5761161e613793565b90506020020160208101906116339190613450565b6001600160a01b0316335f80516020613a0583398151915285858581811061165d5761165d613793565b9050602002013560405161167391815260200190565b60405180910390a380611685816137ba565b9150506115b2565b5050505050565b61169c612190565b614e208163ffffffff1611156116f45760405162461bcd60e51b815260206004820152601860248201527f4d6178696d756d2073656c6c20746178206f66203230252e00000000000000006044820152606401610913565b6006805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b611722612190565b6001600160a01b0381165f908152600460205260408120805460ff19169055805b60055481101561185557826001600160a01b03166005828154811061176a5761176a613793565b5f918252602090912001546001600160a01b0316036118435760058054611793906001906137d2565b815481106117a3576117a3613793565b905f5260205f2001600582815481106117be576117be613793565b5f91825260209091208254910180546001600160a01b039092166001600160a01b031983168117825592546001600160c01b0319909216909217600160a01b9182900463ffffffff16909102179055600580548061181e5761181e613817565b5f8281526020902081015f1990810180546001600160c01b0319169055019055600191505b8061184d816137ba565b915050611743565b50806118965760405162461bcd60e51b815260206004820152601060248201526f2737ba1034b7103a30bc103634b9ba1760811b6044820152606401610913565b5f805b6005548110156118ec57600581815481106118b6576118b6613793565b5f918252602090912001546118d890600160a01b900463ffffffff168361376f565b9150806118e4816137ba565b915050611899565b506008805463ffffffff909216600160c01b0263ffffffff60c01b199092169190911790555050565b61191d612190565b600754600160e01b900460ff16156119875760405162461bcd60e51b815260206004820152602760248201527f43616e2774206f70656e2074726164696e672074686174277320616c726561646044820152663c9037b832b71760c91b6064820152608401610913565b6009805468010000000000000000600160e01b0319167b7a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000001790819055737a250d5630b4cf539739df2c5dacb4c659f2488d906119fd9030906001600160a01b03600160401b90910416676765c793fa10079d601b1b61206d565b5f816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a3a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a5e91906137e5565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611acd91906137e5565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af1158015611b17573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b3b91906137e5565b600954305f81815260016020526040902054929350600160401b9091046001600160a01b03169163f305d7199147915f80611b7d5f546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015611be3573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611c08919061382b565b50506007805462ff00ff60e01b19166201000160e01b179055506040805160a0810182525f8082526020808301828152838501838152606085018481526001608087019081526001600160a01b0398909816855260049093529490922092518354925194519151955161ffff1990931690151561ff00191617610100941515949094029390931769ffffffffffffffff000019166201000063ffffffff9485160269ffffffff000000000000191617660100000000000093909416929092029290921760ff60501b1916600160501b9115159190910217905550565b83421115611d345760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610913565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611d628c612bb0565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f611dbc82612bd7565b90505f611dcb82878787612c03565b9050896001600160a01b0316816001600160a01b031614611e2e5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610913565b611e398a8a8a61206d565b50505050505050505050565b611e4d612190565b614e208163ffffffff161115611ea55760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d2062757920746178206f66203230252e0000000000000000006044820152606401610913565b6006805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b6008546001600160a01b0316336001600160a01b031614611f2d5760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c7920646576656c6f7065722063616e2073657420746869732e000000006044820152606401610913565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611f57612190565b6001600160a01b03165f908152600460205260409020805460ff60501b1916600160501b179055565b611f88612190565b6001600160a01b038116611fed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610913565b610d1d816129e7565b60606005805480602002602001604051908101604052809291908181526020015f905b82821015612064575f84815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b900463ffffffff1681830152825260019092019101612019565b50505050905090565b6001600160a01b0383166120cf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610913565b6001600160a01b0382166121305760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610913565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f546001600160a01b03163314610f3f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610913565b6001600160a01b03831661224d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610913565b6001600160a01b0382166122af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610913565b5f81116123105760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610913565b5f805f6123245f546001600160a01b031690565b6001600160a01b0316866001600160a01b03161415801561235257505f546001600160a01b03868116911614155b801561236757506001600160a01b0386163014155b801561238b57506001600160a01b0385165f9081526004602052604090205460ff16155b80156123af57506001600160a01b0386165f9081526004602052604090205460ff16155b1561263d576007546123d990600160a01b900463ffffffff16676765c793fa10079d601b1b613856565b84111561241b5760405162461bcd60e51b815260206004820152601060248201526f26b0bc103a3c1032bc31b2b2b232b21760811b6044820152606401610913565b6001600160a01b0385165f90815260046020526040902054610100900460ff1615801561246557506001600160a01b0386165f90815260046020526040902054610100900460ff16155b6124a05760405162461bcd60e51b815260206004820152600c60248201526b213637b1b5b634b9ba32b21760a11b6044820152606401610913565b6001600160a01b0386165f90815260046020526040902054600160501b900460ff1680156124e357506009546001600160a01b03868116600160401b9092041614155b156125a15760065460095460075463ffffffff600160e01b90930483169550908216935061252591600160c01b90910416676765c793fa10079d601b1b613856565b84612544876001600160a01b03165f9081526001602052604090205490565b61254e91906137a7565b111561259c5760405162461bcd60e51b815260206004820152601c60248201527f4d61782077616c6c65742077696c6c2062652065786365656465642e000000006044820152606401610913565b612644565b6001600160a01b0385165f90815260046020526040902054600160501b900460ff1680156125e457506009546001600160a01b03878116600160401b9092041614155b1561261257505060065460095463ffffffff600160c01b909204821692506401000000009004166001612644565b6007545f935083925061252590600160c01b900463ffffffff16676765c793fa10079d601b1b613856565b5f92505f91505b611109868686868686612c29565b5f81848411156126755760405162461bcd60e51b81526004016109139190613319565b505050900390565b5f306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156126d557507f000000000000000000000000000000000000000000000000000000000000000046145b156126ff57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60408051600280825260608201835283925f92919060208301908036833701905050905082815f815181106127da576127da613793565b60200260200101906001600160a01b031690816001600160a01b031681525050600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561284b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061286f91906137e5565b8160018151811061288257612882613793565b6001600160a01b0392831660209182029290920101526040516370a0823160e01b81523060048201525f918416906370a0823190602401602060405180830381865afa1580156128d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128f89190613800565b60095460405163095ea7b360e01b81526001600160a01b03600160401b909204821660048201526024810183905291925084169063095ea7b3906044016020604051808303815f875af1158015612951573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061297591906136e4565b5060095460405163791ac94760e01b8152600160401b9091046001600160a01b03169063791ac947906129b49084905f90879030904290600401613889565b5f604051808303815f87803b1580156129cb575f80fd5b505af11580156129dd573d5f803e3d5ffd5b5050505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382165f90815260016020526040902054612a599082906137d2565b6001600160a01b039092165f9081526001602052604090209190915550565b6001600160a01b0382165f90815260016020526040902054612a599082906137a7565b80471015612aeb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610913565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114612b34576040519150601f19603f3d011682016040523d82523d5f602084013e612b39565b606091505b50509050806111725760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610913565b6001600160a01b0381165f9081526003602052604090208054600181018255905b50919050565b5f6108be612be361267d565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f612c1287878787612e51565b91509150612c1f81612f0e565b5095945050505050565b8363ffffffff841615612c88575f612c418686613057565b9050612c4d81876137d2565b9150612c593082612a78565b60405181815230906001600160a01b038a16905f80516020613a058339815191529060200160405180910390a3505b63ffffffff831615612cea575f612c9f8685613057565b9050612cab81836137d2565b9150612cb961dead82612a78565b60405181815261dead906001600160a01b038a16905f80516020613a058339815191529060200160405180910390a3505b8115612db657866001600160a01b03167fae92ab4b6f8f401ead768d3273e6bb937a13e39827d19c6376e8fd4512a05d9a86604051612d2b91815260200190565b60405180910390a2305f908152600160205260409020548015612db057600854612d6d90600160e01b900463ffffffff16676765c793fa10079d601b1b613856565b811115612da757600854612da290612d9d90600160e01b900463ffffffff16676765c793fa10079d601b1b613856565b61307d565b612db0565b612db08161307d565b50612dfa565b856001600160a01b03167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6786604051612df191815260200190565b60405180910390a25b612e048786612a36565b612e0e8682612a78565b856001600160a01b0316876001600160a01b03165f80516020613a0583398151915283604051612e4091815260200190565b60405180910390a350505050505050565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e8657505f90506003612f05565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ed7573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116612eff575f60019250925050612f05565b91505f90505b94509492505050565b5f816004811115612f2157612f216138f8565b03612f295750565b6001816004811115612f3d57612f3d6138f8565b03612f8a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610913565b6002816004811115612f9e57612f9e6138f8565b03612feb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610913565b6003816004811115612fff57612fff6138f8565b03610d1d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610913565b5f620186a061306c63ffffffff84168561390c565b6130769190613856565b9392505050565b6007805460ff60e81b1916600160e81b179055305f908152600260209081526040808320600954600160401b90046001600160a01b031684529091529020548111156130ed576009546130ed903090600160401b90046001600160a01b0316676765c793fa10079d601b1b61206d565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061312057613120613793565b60200260200101906001600160a01b031690816001600160a01b031681525050600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613191573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131b591906137e5565b816001815181106131c8576131c8613793565b6001600160a01b0392831660209182029290920101526009546040516318cbafe560e01b8152600160401b909104909116906318cbafe5906132169085905f90869030904290600401613889565b5f604051808303815f875af1158015613231573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526132589190810190613923565b5061326247613273565b50506007805460ff60e81b19169055565b5f5b600554811015613315576133036005828154811061329557613295613793565b5f91825260209091200154600854600580546001600160a01b0390931692600160c01b90920463ffffffff1691859081106132d2576132d2613793565b5f918252602090912001546132f490600160a01b900463ffffffff168661390c565b6132fe9190613856565b612a9b565b8061330d816137ba565b915050613275565b5050565b5f6020808352835180828501525f5b8181101561334457858101830151858201604001528201613328565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d1d575f80fd5b5f8060408385031215613389575f80fd5b823561339481613364565b946020939093013593505050565b63ffffffff81168114610d1d575f80fd5b5f602082840312156133c3575f80fd5b8135613076816133a2565b5f805f606084860312156133e0575f80fd5b83356133eb81613364565b925060208401356133fb81613364565b929592945050506040919091013590565b8015158114610d1d575f80fd5b5f806040838503121561342a575f80fd5b823561343581613364565b915060208301356134458161340c565b809150509250929050565b5f60208284031215613460575f80fd5b813561307681613364565b5f60408284031215612bd1575f80fd5b5f8083601f84011261348b575f80fd5b50813567ffffffffffffffff8111156134a2575f80fd5b6020830191508360208260051b85010111156134bc575f80fd5b9250929050565b5f805f805f606086880312156134d7575f80fd5b85356134e281613364565b9450602086013567ffffffffffffffff808211156134fe575f80fd5b61350a89838a0161347b565b90965094506040880135915080821115613522575f80fd5b5061352f8882890161347b565b969995985093965092949392505050565b5f805f8060408587031215613553575f80fd5b843567ffffffffffffffff8082111561356a575f80fd5b6135768883890161347b565b9096509450602087013591508082111561358e575f80fd5b5061359b8782880161347b565b95989497509550505050565b5f805f805f805f60e0888a0312156135bd575f80fd5b87356135c881613364565b965060208801356135d881613364565b95506040880135945060608801359350608088013560ff811681146135fb575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215613629575f80fd5b823561363481613364565b9150602083013561344581613364565b602080825282518282018190525f919060409081850190868401855b8281101561369457815180516001600160a01b0316855286015163ffffffff16868501529284019290850190600101613660565b5091979650505050505050565b60208082526023908201527f43616c6c6572206973206e6f742074686520455243323020636f6e74726f6c6c60408201526232b91760e91b606082015260800190565b5f602082840312156136f4575f80fd5b81516130768161340c565b813561370a81613364565b81546001600160a01b031981166001600160a01b039290921691821783556020840135613736816133a2565b6001600160c01b03199190911690911760a09190911b63ffffffff60a01b1617905550565b634e487b7160e01b5f52601160045260245ffd5b63ffffffff81811683821601908082111561378c5761378c61375b565b5092915050565b634e487b7160e01b5f52603260045260245ffd5b808201808211156108be576108be61375b565b5f600182016137cb576137cb61375b565b5060010190565b818103818111156108be576108be61375b565b5f602082840312156137f5575f80fd5b815161307681613364565b5f60208284031215613810575f80fd5b5051919050565b634e487b7160e01b5f52603160045260245ffd5b5f805f6060848603121561383d575f80fd5b8351925060208401519150604084015190509250925092565b5f8261387057634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52604160045260245ffd5b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156138d75784516001600160a01b0316835293830193918301916001016138b2565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b5f52602160045260245ffd5b80820281158282048414176108be576108be61375b565b5f6020808385031215613934575f80fd5b825167ffffffffffffffff8082111561394b575f80fd5b818501915085601f83011261395e575f80fd5b81518181111561397057613970613875565b8060051b604051601f19603f8301168101818110858211171561399557613995613875565b6040529182528482019250838101850191888311156139b2575f80fd5b938501935b828510156139d0578451845293850193928501926139b7565b9897505050505050505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122025ffa017eead3249502116f7a93ad29e987b6eaa5e0f6e0c7e631ab9f3b9077a64736f6c63430008140033000000000000000000000000ecf59bb829c4a206020f58510bf553cd00080402000000000000000000000000ecf59bb829c4a206020f58510bf553cd000804020000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dea2f0787040384c3d63534e8c344ffe3a59ef8e00000000000000000000000000000000000000000000000000000000000003e8

Deployed Bytecode

0x608060405260043610610278575f3560e01c8063715018a61161014a578063b0bc85de116100be578063db932ae211610078578063db932ae2146107cd578063dd62ed3e146107ec578063e0195f0714610830578063e9cb414f1461084f578063f2fde38b1461086e578063fb61e9981461088d575f80fd5b8063b0bc85de146106ff578063b1a4e0dc14610720578063bb1789d61461075c578063c8ce7be11461077b578063c9567bf91461079a578063d505accf146107ae575f80fd5b806388a65f461161010f57806388a65f46146106455780638da5cb5b1461065957806395d89b4114610675578063a4cc3b99146106a2578063a9059cbb146106c1578063aad41a41146106e0575f80fd5b8063715018a6146105c057806373ae740e146105d45780637a52da0e146105f35780637ecebe001461061257806386f3f3cb14610631575f80fd5b806333342947116101ec5780634ff99fcf116101a65780634ff99fcf146104e45780635342acb414610503578063571cbe0a1461053a5780636612e66f1461055957806370a082311461057857806370bfdd9d146105ac575f80fd5b8063333429471461043557806333a1728214610454578063342aa8b5146104735780633644e51514610492578063473071ce146104a657806348b6f7d4146104c5575f80fd5b806320d5bf371161023d57806320d5bf371461035a578063232b10441461038b57806323b872dd146103aa578063252d723a146103c95780632c1f5216146103fb578063313ce5671461041a575f80fd5b806306fdde0314610283578063095ea7b3146102c45780630ecf68e0146102f357806317f5a80b1461031457806318160ddd14610333575f80fd5b3661027f57005b5f80fd5b34801561028e575f80fd5b506040805180820190915260078152664675726e61636560c81b60208201525b6040516102bb9190613319565b60405180910390f35b3480156102cf575f80fd5b506102e36102de366004613378565b6108ae565b60405190151581526020016102bb565b3480156102fe575f80fd5b5061031261030d3660046133b3565b6108c4565b005b34801561031f575f80fd5b5061031261032e3660046133b3565b610942565b34801561033e575f80fd5b50676765c793fa10079d601b1b5b6040519081526020016102bb565b348015610365575f80fd5b506007546001600160a01b03165b6040516001600160a01b0390911681526020016102bb565b348015610396575f80fd5b506103126103a53660046133b3565b6109bc565b3480156103b5575f80fd5b506102e36103c43660046133ce565b610a3f565b3480156103d4575f80fd5b50600654600160e01b900463ffffffff165b60405163ffffffff90911681526020016102bb565b348015610406575f80fd5b50600654610373906001600160a01b031681565b348015610425575f80fd5b50604051601281526020016102bb565b348015610440575f80fd5b5061031261044f3660046133b3565b610ab6565b34801561045f575f80fd5b506102e361046e3660046133ce565b610ae4565b34801561047e575f80fd5b5061031261048d366004613419565b610b96565b34801561049d575f80fd5b5061034c610cd3565b3480156104b1575f80fd5b506103126104c0366004613450565b610ce1565b3480156104d0575f80fd5b506103126104df3660046133b3565b610d20565b3480156104ef575f80fd5b506103126104fe36600461346b565b610d9d565b34801561050e575f80fd5b506102e361051d366004613450565b6001600160a01b03165f9081526004602052604090205460ff1690565b348015610545575f80fd5b506102e36105543660046133ce565b610e70565b348015610564575f80fd5b50610312610573366004613419565b610edd565b348015610583575f80fd5b5061034c610592366004613450565b6001600160a01b03165f9081526001602052604090205490565b3480156105b7575f80fd5b50610312610f0f565b3480156105cb575f80fd5b50610312610f2e565b3480156105df575f80fd5b506103126105ee3660046134c3565b610f41565b3480156105fe575f80fd5b5061031261060d366004613450565b611111565b34801561061d575f80fd5b5061034c61062c366004613450565b611177565b34801561063c575f80fd5b50610373611194565b348015610650575f80fd5b506103126112fb565b348015610664575f80fd5b505f546001600160a01b0316610373565b348015610680575f80fd5b5060408051808201909152600581526412212aa92760d91b60208201526102ae565b3480156106ad575f80fd5b506103126106bc3660046133b3565b6114e4565b3480156106cc575f80fd5b506102e36106db366004613378565b611555565b3480156106eb575f80fd5b506103126106fa366004613540565b611561565b34801561070a575f80fd5b50600654600160c01b900463ffffffff166103e6565b34801561072b575f80fd5b506102e361073a366004613450565b6001600160a01b03165f90815260046020526040902054610100900460ff1690565b348015610767575f80fd5b506103126107763660046133b3565b611694565b348015610786575f80fd5b50610312610795366004613450565b61171a565b3480156107a5575f80fd5b50610312611915565b3480156107b9575f80fd5b506103126107c83660046135a7565b611ce4565b3480156107d8575f80fd5b506103126107e73660046133b3565b611e45565b3480156107f7575f80fd5b5061034c610806366004613618565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b34801561083b575f80fd5b5061031261084a366004613450565b611eca565b34801561085a575f80fd5b50610312610869366004613450565b611f4f565b348015610879575f80fd5b50610312610888366004613450565b611f80565b348015610898575f80fd5b506108a1611ff6565b6040516102bb9190613644565b5f6108ba33848461206d565b5060015b92915050565b6108cc612190565b6103e88163ffffffff161061091c5760405162461bcd60e51b81526020600482015260116024820152704e6f206c6f776572207468616e202e312560781b60448201526064015b60405180910390fd5b6007805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b61094a612190565b6127108163ffffffff16106109965760405162461bcd60e51b81526020600482015260126024820152714e6f206c6f776572207468616e202e30312560701b6044820152606401610913565b6007805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6109c4612190565b600a8163ffffffff1610610a1a5760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d2064697669736f72206f66203130252e0000000000000000006044820152606401610913565b6008805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b5f610a4b8484846121e9565b610aac8433610aa7856040518060600160405280602881526020016139dd602891396001600160a01b038a165f90815260026020526040812090335b6001600160a01b0316815260208101919091526040015f20549190612652565b61206d565b5060019392505050565b610abe612190565b6008805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6007545f906001600160a01b0316336001600160a01b031614610b195760405162461bcd60e51b8152600401610913906136a1565b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820184905285919082169063095ea7b3906044015b6020604051808303815f875af1158015610b69573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b8d91906136e4565b95945050505050565b610b9e612190565b6001600160a01b0382165f90815260046020526040902054600160501b900460ff1615610c335760405162461bcd60e51b815260206004820152603760248201527f43616e6e6f74206d616e6970756c61746520626c6f636b6c697374207374617460448201527f7573206f662061206c697175696469747920706169722e0000000000000000006064820152608401610913565b8015610ca357600754600160f81b900460ff1615610ca35760405162461bcd60e51b815260206004820152602760248201527f426c6f636b6c697374206164646974696f6e732068617665206265656e20646960448201526639b0b13632b21760c91b6064820152608401610913565b6001600160a01b039091165f90815260046020526040902080549115156101000261ff0019909216919091179055565b5f610cdc61267d565b905090565b6007546001600160a01b0316336001600160a01b031614610d145760405162461bcd60e51b8152600401610913906136a1565b610d1d816127a3565b50565b610d28612190565b6113888163ffffffff1610610d755760405162461bcd60e51b815260206004820152601360248201527226b0bc34b6bab690313ab9371037b3101a929760691b6044820152606401610913565b6009805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b610da5612190565b600580546001810182555f9190915281907f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001610de282826136ff565b506001905060045f610df76020850185613450565b6001600160a01b0316815260208082019290925260409081015f20805460ff191693151593909317909255610e309183019083016133b3565b60088054601890610e4f908490600160c01b900463ffffffff1661376f565b92506101000a81548163ffffffff021916908363ffffffff16021790555050565b6007545f906001600160a01b0316336001600160a01b031614610ea55760405162461bcd60e51b8152600401610913906136a1565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb90604401610b4d565b610ee5612190565b6001600160a01b03919091165f908152600460205260409020805460ff1916911515919091179055565b610f17612190565b600780546001600160f81b0316600160f81b179055565b610f36612190565b610f3f5f6129e7565b565b828114610f905760405162461bcd60e51b815260206004820152601b60248201527f4d756c746973656e643a204c656e677468206d69736d617463682e00000000006044820152606401610913565b5f805b848110156110ac57610fbd33858584818110610fb157610fb1613793565b90506020020135612a36565b611005868683818110610fd257610fd2613793565b9050602002016020810190610fe79190613450565b858584818110610ff957610ff9613793565b90506020020135612a78565b85858281811061101757611017613793565b905060200201602081019061102c9190613450565b6001600160a01b0316335f80516020613a0583398151915286868581811061105657611056613793565b9050602002013560405161106c91815260200190565b60405180910390a383838281811061108657611086613793565b905060200201358261109891906137a7565b9150806110a4816137ba565b915050610f93565b50611109863360408051808201825260208082527f4d756c746973656e643a204e6f7420656e6f75676820616c6c6f77616e63652e818301526001600160a01b038c165f9081526002909152918220610aa7928792919033610a87565b505050505050565b6007546001600160a01b0316336001600160a01b0316146111445760405162461bcd60e51b8152600401610913906136a1565b4761114e826127a3565b5f61115982476137d2565b600754909150611172906001600160a01b031682612a9b565b505050565b6001600160a01b0381165f908152600360205260408120546108be565b5f600960089054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120a91906137e5565b6001600160a01b031663e6a4390530600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561126a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061128e91906137e5565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa1580156112d7573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cdc91906137e5565b6007546001600160a01b0316336001600160a01b03161461132e5760405162461bcd60e51b8152600401610913906136a1565b5f600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611380573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113a491906137e5565b90505f600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061141c91906137e5565b6040516370a0823160e01b81523060048201529091505f906001600160a01b038316906370a0823190602401602060405180830381865afa158015611463573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114879190613800565b604051632e1a7d4d60e01b8152600481018290529091506001600160a01b03841690632e1a7d4d906024015f604051808303815f87803b1580156114c9575f80fd5b505af11580156114db573d5f803e3d5ffd5b50505050505050565b6114ec612190565b6113888163ffffffff16106115395760405162461bcd60e51b815260206004820152601360248201527226b0bc34b6bab690313ab9371037b3101a929760691b6044820152606401610913565b6009805463ffffffff191663ffffffff92909216919091179055565b5f6108ba3384846121e9565b8281146115b05760405162461bcd60e51b815260206004820152601c60248201527f4d75796c746973656e643a204c656e677468206d69736d617463682e000000006044820152606401610913565b5f5b8381101561168d576115d033848484818110610fb157610fb1613793565b61160c8585838181106115e5576115e5613793565b90506020020160208101906115fa9190613450565b848484818110610ff957610ff9613793565b84848281811061161e5761161e613793565b90506020020160208101906116339190613450565b6001600160a01b0316335f80516020613a0583398151915285858581811061165d5761165d613793565b9050602002013560405161167391815260200190565b60405180910390a380611685816137ba565b9150506115b2565b5050505050565b61169c612190565b614e208163ffffffff1611156116f45760405162461bcd60e51b815260206004820152601860248201527f4d6178696d756d2073656c6c20746178206f66203230252e00000000000000006044820152606401610913565b6006805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b611722612190565b6001600160a01b0381165f908152600460205260408120805460ff19169055805b60055481101561185557826001600160a01b03166005828154811061176a5761176a613793565b5f918252602090912001546001600160a01b0316036118435760058054611793906001906137d2565b815481106117a3576117a3613793565b905f5260205f2001600582815481106117be576117be613793565b5f91825260209091208254910180546001600160a01b039092166001600160a01b031983168117825592546001600160c01b0319909216909217600160a01b9182900463ffffffff16909102179055600580548061181e5761181e613817565b5f8281526020902081015f1990810180546001600160c01b0319169055019055600191505b8061184d816137ba565b915050611743565b50806118965760405162461bcd60e51b815260206004820152601060248201526f2737ba1034b7103a30bc103634b9ba1760811b6044820152606401610913565b5f805b6005548110156118ec57600581815481106118b6576118b6613793565b5f918252602090912001546118d890600160a01b900463ffffffff168361376f565b9150806118e4816137ba565b915050611899565b506008805463ffffffff909216600160c01b0263ffffffff60c01b199092169190911790555050565b61191d612190565b600754600160e01b900460ff16156119875760405162461bcd60e51b815260206004820152602760248201527f43616e2774206f70656e2074726164696e672074686174277320616c726561646044820152663c9037b832b71760c91b6064820152608401610913565b6009805468010000000000000000600160e01b0319167b7a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000001790819055737a250d5630b4cf539739df2c5dacb4c659f2488d906119fd9030906001600160a01b03600160401b90910416676765c793fa10079d601b1b61206d565b5f816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a3a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a5e91906137e5565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611acd91906137e5565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af1158015611b17573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b3b91906137e5565b600954305f81815260016020526040902054929350600160401b9091046001600160a01b03169163f305d7199147915f80611b7d5f546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015611be3573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611c08919061382b565b50506007805462ff00ff60e01b19166201000160e01b179055506040805160a0810182525f8082526020808301828152838501838152606085018481526001608087019081526001600160a01b0398909816855260049093529490922092518354925194519151955161ffff1990931690151561ff00191617610100941515949094029390931769ffffffffffffffff000019166201000063ffffffff9485160269ffffffff000000000000191617660100000000000093909416929092029290921760ff60501b1916600160501b9115159190910217905550565b83421115611d345760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610913565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611d628c612bb0565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f611dbc82612bd7565b90505f611dcb82878787612c03565b9050896001600160a01b0316816001600160a01b031614611e2e5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610913565b611e398a8a8a61206d565b50505050505050505050565b611e4d612190565b614e208163ffffffff161115611ea55760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d2062757920746178206f66203230252e0000000000000000006044820152606401610913565b6006805463ffffffff909216600160e01b026001600160e01b03909216919091179055565b6008546001600160a01b0316336001600160a01b031614611f2d5760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c7920646576656c6f7065722063616e2073657420746869732e000000006044820152606401610913565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611f57612190565b6001600160a01b03165f908152600460205260409020805460ff60501b1916600160501b179055565b611f88612190565b6001600160a01b038116611fed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610913565b610d1d816129e7565b60606005805480602002602001604051908101604052809291908181526020015f905b82821015612064575f84815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b900463ffffffff1681830152825260019092019101612019565b50505050905090565b6001600160a01b0383166120cf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610913565b6001600160a01b0382166121305760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610913565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f546001600160a01b03163314610f3f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610913565b6001600160a01b03831661224d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610913565b6001600160a01b0382166122af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610913565b5f81116123105760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610913565b5f805f6123245f546001600160a01b031690565b6001600160a01b0316866001600160a01b03161415801561235257505f546001600160a01b03868116911614155b801561236757506001600160a01b0386163014155b801561238b57506001600160a01b0385165f9081526004602052604090205460ff16155b80156123af57506001600160a01b0386165f9081526004602052604090205460ff16155b1561263d576007546123d990600160a01b900463ffffffff16676765c793fa10079d601b1b613856565b84111561241b5760405162461bcd60e51b815260206004820152601060248201526f26b0bc103a3c1032bc31b2b2b232b21760811b6044820152606401610913565b6001600160a01b0385165f90815260046020526040902054610100900460ff1615801561246557506001600160a01b0386165f90815260046020526040902054610100900460ff16155b6124a05760405162461bcd60e51b815260206004820152600c60248201526b213637b1b5b634b9ba32b21760a11b6044820152606401610913565b6001600160a01b0386165f90815260046020526040902054600160501b900460ff1680156124e357506009546001600160a01b03868116600160401b9092041614155b156125a15760065460095460075463ffffffff600160e01b90930483169550908216935061252591600160c01b90910416676765c793fa10079d601b1b613856565b84612544876001600160a01b03165f9081526001602052604090205490565b61254e91906137a7565b111561259c5760405162461bcd60e51b815260206004820152601c60248201527f4d61782077616c6c65742077696c6c2062652065786365656465642e000000006044820152606401610913565b612644565b6001600160a01b0385165f90815260046020526040902054600160501b900460ff1680156125e457506009546001600160a01b03878116600160401b9092041614155b1561261257505060065460095463ffffffff600160c01b909204821692506401000000009004166001612644565b6007545f935083925061252590600160c01b900463ffffffff16676765c793fa10079d601b1b613856565b5f92505f91505b611109868686868686612c29565b5f81848411156126755760405162461bcd60e51b81526004016109139190613319565b505050900390565b5f306001600160a01b037f000000000000000000000000bf2a7863e2ca59291606f47756bba16f43e9d8ac161480156126d557507f000000000000000000000000000000000000000000000000000000000000000146145b156126ff57507f4a4c185826524890caa0916e0915f893b693a4a423c58e9f1b36bc46dfbe815690565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f7b8a33a8fc7c5409b7a23c9001b698f364e4a6d46ea7a6ae9e7507b527405050828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60408051600280825260608201835283925f92919060208301908036833701905050905082815f815181106127da576127da613793565b60200260200101906001600160a01b031690816001600160a01b031681525050600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561284b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061286f91906137e5565b8160018151811061288257612882613793565b6001600160a01b0392831660209182029290920101526040516370a0823160e01b81523060048201525f918416906370a0823190602401602060405180830381865afa1580156128d4573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128f89190613800565b60095460405163095ea7b360e01b81526001600160a01b03600160401b909204821660048201526024810183905291925084169063095ea7b3906044016020604051808303815f875af1158015612951573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061297591906136e4565b5060095460405163791ac94760e01b8152600160401b9091046001600160a01b03169063791ac947906129b49084905f90879030904290600401613889565b5f604051808303815f87803b1580156129cb575f80fd5b505af11580156129dd573d5f803e3d5ffd5b5050505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382165f90815260016020526040902054612a599082906137d2565b6001600160a01b039092165f9081526001602052604090209190915550565b6001600160a01b0382165f90815260016020526040902054612a599082906137a7565b80471015612aeb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610913565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114612b34576040519150601f19603f3d011682016040523d82523d5f602084013e612b39565b606091505b50509050806111725760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610913565b6001600160a01b0381165f9081526003602052604090208054600181018255905b50919050565b5f6108be612be361267d565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f612c1287878787612e51565b91509150612c1f81612f0e565b5095945050505050565b8363ffffffff841615612c88575f612c418686613057565b9050612c4d81876137d2565b9150612c593082612a78565b60405181815230906001600160a01b038a16905f80516020613a058339815191529060200160405180910390a3505b63ffffffff831615612cea575f612c9f8685613057565b9050612cab81836137d2565b9150612cb961dead82612a78565b60405181815261dead906001600160a01b038a16905f80516020613a058339815191529060200160405180910390a3505b8115612db657866001600160a01b03167fae92ab4b6f8f401ead768d3273e6bb937a13e39827d19c6376e8fd4512a05d9a86604051612d2b91815260200190565b60405180910390a2305f908152600160205260409020548015612db057600854612d6d90600160e01b900463ffffffff16676765c793fa10079d601b1b613856565b811115612da757600854612da290612d9d90600160e01b900463ffffffff16676765c793fa10079d601b1b613856565b61307d565b612db0565b612db08161307d565b50612dfa565b856001600160a01b03167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6786604051612df191815260200190565b60405180910390a25b612e048786612a36565b612e0e8682612a78565b856001600160a01b0316876001600160a01b03165f80516020613a0583398151915283604051612e4091815260200190565b60405180910390a350505050505050565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e8657505f90506003612f05565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ed7573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116612eff575f60019250925050612f05565b91505f90505b94509492505050565b5f816004811115612f2157612f216138f8565b03612f295750565b6001816004811115612f3d57612f3d6138f8565b03612f8a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610913565b6002816004811115612f9e57612f9e6138f8565b03612feb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610913565b6003816004811115612fff57612fff6138f8565b03610d1d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610913565b5f620186a061306c63ffffffff84168561390c565b6130769190613856565b9392505050565b6007805460ff60e81b1916600160e81b179055305f908152600260209081526040808320600954600160401b90046001600160a01b031684529091529020548111156130ed576009546130ed903090600160401b90046001600160a01b0316676765c793fa10079d601b1b61206d565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061312057613120613793565b60200260200101906001600160a01b031690816001600160a01b031681525050600960089054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613191573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131b591906137e5565b816001815181106131c8576131c8613793565b6001600160a01b0392831660209182029290920101526009546040516318cbafe560e01b8152600160401b909104909116906318cbafe5906132169085905f90869030904290600401613889565b5f604051808303815f875af1158015613231573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526132589190810190613923565b5061326247613273565b50506007805460ff60e81b19169055565b5f5b600554811015613315576133036005828154811061329557613295613793565b5f91825260209091200154600854600580546001600160a01b0390931692600160c01b90920463ffffffff1691859081106132d2576132d2613793565b5f918252602090912001546132f490600160a01b900463ffffffff168661390c565b6132fe9190613856565b612a9b565b8061330d816137ba565b915050613275565b5050565b5f6020808352835180828501525f5b8181101561334457858101830151858201604001528201613328565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d1d575f80fd5b5f8060408385031215613389575f80fd5b823561339481613364565b946020939093013593505050565b63ffffffff81168114610d1d575f80fd5b5f602082840312156133c3575f80fd5b8135613076816133a2565b5f805f606084860312156133e0575f80fd5b83356133eb81613364565b925060208401356133fb81613364565b929592945050506040919091013590565b8015158114610d1d575f80fd5b5f806040838503121561342a575f80fd5b823561343581613364565b915060208301356134458161340c565b809150509250929050565b5f60208284031215613460575f80fd5b813561307681613364565b5f60408284031215612bd1575f80fd5b5f8083601f84011261348b575f80fd5b50813567ffffffffffffffff8111156134a2575f80fd5b6020830191508360208260051b85010111156134bc575f80fd5b9250929050565b5f805f805f606086880312156134d7575f80fd5b85356134e281613364565b9450602086013567ffffffffffffffff808211156134fe575f80fd5b61350a89838a0161347b565b90965094506040880135915080821115613522575f80fd5b5061352f8882890161347b565b969995985093965092949392505050565b5f805f8060408587031215613553575f80fd5b843567ffffffffffffffff8082111561356a575f80fd5b6135768883890161347b565b9096509450602087013591508082111561358e575f80fd5b5061359b8782880161347b565b95989497509550505050565b5f805f805f805f60e0888a0312156135bd575f80fd5b87356135c881613364565b965060208801356135d881613364565b95506040880135945060608801359350608088013560ff811681146135fb575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215613629575f80fd5b823561363481613364565b9150602083013561344581613364565b602080825282518282018190525f919060409081850190868401855b8281101561369457815180516001600160a01b0316855286015163ffffffff16868501529284019290850190600101613660565b5091979650505050505050565b60208082526023908201527f43616c6c6572206973206e6f742074686520455243323020636f6e74726f6c6c60408201526232b91760e91b606082015260800190565b5f602082840312156136f4575f80fd5b81516130768161340c565b813561370a81613364565b81546001600160a01b031981166001600160a01b039290921691821783556020840135613736816133a2565b6001600160c01b03199190911690911760a09190911b63ffffffff60a01b1617905550565b634e487b7160e01b5f52601160045260245ffd5b63ffffffff81811683821601908082111561378c5761378c61375b565b5092915050565b634e487b7160e01b5f52603260045260245ffd5b808201808211156108be576108be61375b565b5f600182016137cb576137cb61375b565b5060010190565b818103818111156108be576108be61375b565b5f602082840312156137f5575f80fd5b815161307681613364565b5f60208284031215613810575f80fd5b5051919050565b634e487b7160e01b5f52603160045260245ffd5b5f805f6060848603121561383d575f80fd5b8351925060208401519150604084015190509250925092565b5f8261387057634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52604160045260245ffd5b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156138d75784516001600160a01b0316835293830193918301916001016138b2565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b5f52602160045260245ffd5b80820281158282048414176108be576108be61375b565b5f6020808385031215613934575f80fd5b825167ffffffffffffffff8082111561394b575f80fd5b818501915085601f83011261395e575f80fd5b81518181111561397057613970613875565b8060051b604051601f19603f8301168101818110858211171561399557613995613875565b6040529182528482019250838101850191888311156139b2575f80fd5b938501935b828510156139d0578451845293850193928501926139b7565b9897505050505050505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122025ffa017eead3249502116f7a93ad29e987b6eaa5e0f6e0c7e631ab9f3b9077a64736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000ecf59bb829c4a206020f58510bf553cd00080402000000000000000000000000ecf59bb829c4a206020f58510bf553cd000804020000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000dea2f0787040384c3d63534e8c344ffe3a59ef8e00000000000000000000000000000000000000000000000000000000000003e8

-----Decoded View---------------
Arg [0] : controller (address): 0xECF59BB829c4a206020f58510BF553Cd00080402
Arg [1] : dev (address): 0xECF59BB829c4a206020f58510BF553Cd00080402
Arg [2] : id (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [3] : wallets (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000ecf59bb829c4a206020f58510bf553cd00080402
Arg [1] : 000000000000000000000000ecf59bb829c4a206020f58510bf553cd00080402
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 000000000000000000000000000000000000000000000000000000000000bb80
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 000000000000000000000000dea2f0787040384c3d63534e8c344ffe3a59ef8e
Arg [10] : 00000000000000000000000000000000000000000000000000000000000003e8


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.