ETH Price: $2,629.86 (+2.20%)

Token

SpectrolFinance (SPT)
 

Overview

Max Total Supply

1,000,000 SPT

Holders

46

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Filtered by Token Holder
gamblerinho.eth
Balance
9,011.659008182 SPT

Value
$0.00
0xba68e07e9af8ba8b2fdd5cf9a000edb5af9a3ec1
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:
SpectrolFinance

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : SpectrolFinance.sol
//https://spectrol.finance/
//https://twitter.com/SpectrolFinance
//https://t.me/Spectrolfinance

// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity >=0.7.5;


/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* 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;

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

    /* solhint-enable var-name-mixedcase */

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

        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = chainID;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {

        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        if (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) {
        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        return keccak256(abi.encode(typeHash, nameHash, versionHash, 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);
    }
}
// File: interfaces/IERC20Permit.sol


pragma solidity >=0.7.5;

/**
 * @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 th xe 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: interfaces/IERC20.sol


pragma solidity >=0.7.5;

interface IERC20 {
  /**
   * @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 `recipient`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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

// File: interfaces/ISpectrol.sol


pragma solidity >=0.7.5;


pragma solidity >=0.7.5;

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

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // 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) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @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) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// File: libraries/SafeMath.sol

pragma solidity >=0.7.5;


// TODO(zx): Replace all instances of SafeMath with OZ implementation
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) {
        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;
    }

    // Only used in the  BondingCalculator.sol
    function sqrrt(uint256 a) internal pure returns (uint c) {
        if (a > 3) {
            c = a;
            uint b = add( div( a, 2), 1 );
            while (b < c) {
                c = b;
                b = div( add( div( a, b ), b), 2 );
            }
        } else if (a != 0) {
            c = 1;
        }
    }

}
// File: libraries/Counters.sol

library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }


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

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


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

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

pragma solidity >=0.7.5;


library Counters {
    using SafeMath for uint256;

    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 {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}
// File: types/ERC20.sol


pragma solidity >=0.7.5;


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


pragma solidity >=0.7.5;

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


abstract contract ERC20 is Context, IERC20{

    using SafeMath for uint256;

    // TODO comment actual hash value.
    bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" );
    
    mapping (address => uint256) internal _balances;

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

    uint256 internal _totalSupply;

    string internal _name;
    
    string internal _symbol;
    
    uint8 internal immutable _decimals;

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

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

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

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

    function totalSupply() public view 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(msg.sender, 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(msg.sender, spender, amount);
        return true;
    }

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

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

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][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 { }
}

// File: types/ERC20Permit.sol


pragma solidity >=0.7.5;






/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

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

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

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

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

// File: SpectrolERC20.sol


pragma solidity >=0.7.5;



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

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




contract SpectrolFinance is ERC20Permit, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;
    address public constant deadAddress = address(0xdead);

    address public marketingWallet;
    address public treasuryWallet;

    bool public tradingActive = false;
    bool public swapEnabled = false;
    bool private swapping;
    uint256 public enableBlock = 0;

    uint256 public buyTotalFees;
    uint256 public buyMarketingFee;
    uint256 public buyLiquidityFee;
    uint256 public buyBurnFee;
    uint256 public buyTreasuryFee;
    
    uint256 public sellTotalFees;
    uint256 public sellMarketingFee;
    uint256 public sellLiquidityFee;
    uint256 public sellBurnFee;
    uint256 public sellTreasuryFee;

    uint256 public tokensForMarketing;
    uint256 public tokensForLiquidity;
    uint256 public tokensForBurn;
    uint256 public tokensForTreasury;

    bool public limitsInEffect = true;
    // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
    bool public transferDelayEnabled = true;

     // exlcude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;
    uint256 public maxTransactionAmount;
    uint256 public maxWallet;
    uint256 public initialSupply;
    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;
    mapping (address => bool) public launchMarketMaker;

    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);
    event treasuryWalletUpdated(address indexed newWallet, address indexed oldWallet);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    constructor(address _marketingWallet, address _treasuryWallet) 
    ERC20("SpectrolFinance", "SPT", 9) 
    ERC20Permit("SpectrolFinance") 
    {

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        initialSupply = 1000000*1e9;
        maxTransactionAmount = initialSupply * 10 / 1000; // 1% maxTransactionAmountTxn
        maxWallet = initialSupply * 10 / 1000; // 1% maxWallet
        _mint(owner(), initialSupply);
        
        uint256 _buyMarketingFee = 2;
        uint256 _buyLiquidityFee = 2;
        uint256 _buyBurnFee = 0;
        uint256 _buyTreasuryFee = 2;

        uint256 _sellMarketingFee = 4;
        uint256 _sellLiquidityFee = 2;
        uint256 _sellBurnFee = 0;
        uint256 _sellTreasuryFee = 2;
        
    
        buyMarketingFee = _buyMarketingFee;
        buyLiquidityFee = _buyLiquidityFee;
        buyBurnFee = _buyBurnFee;
        buyTreasuryFee = _buyTreasuryFee;
        buyTotalFees = buyMarketingFee + buyLiquidityFee + buyBurnFee + buyTreasuryFee;

        sellMarketingFee = _sellMarketingFee;
        sellLiquidityFee = _sellLiquidityFee;
        sellBurnFee = _sellBurnFee;
        sellTreasuryFee = _sellTreasuryFee;
        sellTotalFees = sellMarketingFee + sellLiquidityFee + sellBurnFee + sellTreasuryFee;
        
        marketingWallet = address(_marketingWallet);
        treasuryWallet = address(_treasuryWallet);

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        
    }

    receive() external payable {

  	}

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool){
        limitsInEffect = false;
        return true;
    }


    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 1000)/1e9, "Cannot set maxTransactionAmount lower than 0.1%");
        maxTransactionAmount = newNum * (10**9);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 5 / 1000)/1e9, "Cannot set maxWallet lower than 0.5%");
        maxWallet = newNum * (10**9);
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }
    
    // disable Transfer delay - cannot be reenabled
    function disableTransferDelay() external onlyOwner returns (bool){
        transferDelayEnabled = false;
        return true;
    }



    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        require(!tradingActive);
        tradingActive = true;
        swapEnabled = true;
        enableBlock = block.number;
    }

    function pauseTrading() external onlyOwner {
    	// Can only be done when limits are in place
        tradingActive = false;
    }

    function setLaunchMarketMaker(address _add, bool _isTrue) external onlyOwner{
    	if (_isTrue){
		// Can only be done when limits are in place
		require(limitsInEffect);
	}
        launchMarketMaker[_add] = _isTrue;
    }

    function resumeTrading() external onlyOwner {
        tradingActive = true;
    }


    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }


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

    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner{
        swapEnabled = enabled;
    }

    function updateBuyFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _burnFee, uint256 _treasuryFee) external onlyOwner {
        buyMarketingFee = _marketingFee;
        buyLiquidityFee = _liquidityFee;
        buyBurnFee = _burnFee;
        buyTreasuryFee = _treasuryFee;
        buyTotalFees = buyMarketingFee + buyLiquidityFee + buyBurnFee + buyTreasuryFee;
        require(buyTotalFees <= 10, "Must keep fees at 10% or less");
    }
    
    function updateSellFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _burnFee, uint256 _treasuryFee) external onlyOwner {
        sellMarketingFee = _marketingFee;
        sellLiquidityFee = _liquidityFee;
        sellBurnFee = _burnFee;
        sellTreasuryFee = _treasuryFee;
        sellTotalFees = sellMarketingFee + sellLiquidityFee + sellBurnFee + sellTreasuryFee;
        require(sellTotalFees <= 10, "Must keep fees at 10% or less");
    }

    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    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");
        
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
        uint256 fees = 0;

        if(limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if(!tradingActive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }

                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.  
                if (transferDelayEnabled){
                    if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                    }
                }


                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }

                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if(!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
                // Add to marketmakers for launch
                if (automatedMarketMakerPairs[from] && enableBlock != 0 && block.number <= enableBlock+1){
                    launchMarketMaker[to] = true;
                    fees = amount.mul(99).div(100);
                    super._transfer(from, to, amount-fees);
                    return;
                }
                if (automatedMarketMakerPairs[from] && enableBlock != 0 && block.number <= enableBlock+3){
                    fees = amount.mul(49).div(100);
                    super._transfer(from, to, amount-fees);
                    return;
                }
            }
        }

        if (launchMarketMaker[from] || launchMarketMaker[to]){
            super._transfer(from, to, 0);
            return;
        }
		
        if( 
            swapEnabled &&
            !swapping &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to] &&
            !automatedMarketMakerPairs[from]
        ) {
            swapping = true;
            
            swapBack();

            swapping = false;
        }
        

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }
        
        tokensForBurn = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if(takeFee){
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForBurn = fees * sellBurnFee / sellTotalFees;
                tokensForTreasury += fees * sellTreasuryFee / sellTotalFees;
                tokensForMarketing += fees * sellMarketingFee / sellTotalFees;
            }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
        	    fees = amount.mul(buyTotalFees).div(100);
        	    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForBurn = fees * buyBurnFee / buyTotalFees;
                tokensForTreasury += fees * buyTreasuryFee / buyTotalFees;
                tokensForMarketing += fees * buyMarketingFee / buyTotalFees;
            }
            
            if(fees-tokensForBurn > 0){    
                super._transfer(from, address(this), fees.sub(tokensForBurn));
            }
            if (tokensForBurn > 0){
                super._transfer(from, deadAddress, tokensForBurn);
            }
        	
        	amount -= fees;
        }

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

    function swapTokensForEth(uint256 tokenAmount) private {

        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
        
    }


    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            owner(),
            block.timestamp
        );
    }


    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForTreasury;
        bool success;
        
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
        
        if(contractBalance > totalSupply() * 5 / 10000 * 20){
          contractBalance = totalSupply() * 5 / 10000 * 20;
        }
        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
        
        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH); 
        

        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        

        uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
        uint256 ethForTreasury = ethBalance.mul(tokensForTreasury).div(totalTokensToSwap);
        
        uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForTreasury;

        
        tokensForLiquidity = 0;
        tokensForMarketing = 0;
        tokensForTreasury = 0;
        
        (success,) = address(treasuryWallet).call{value: ethForTreasury}("");
        
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
        
        
        (success,) = address(marketingWallet).call{value: address(this).balance}("");
    }

    function withdrawEthPool() external onlyOwner() {
        bool success;
        (success,) = address(msg.sender).call{value: address(this).balance}("");
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_marketingWallet","type":"address"},{"internalType":"address","name":"_treasuryWallet","type":"address"}],"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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","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":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"marketingWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"treasuryWalletUpdated","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableTransferDelay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"launchMarketMaker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseTrading","outputs":[],"stateMutability":"nonpayable","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":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"bool","name":"_isTrue","type":"bool"}],"name":"setLaunchMarketMaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForMarketing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"transferDelayEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_burnFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_burnFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEthPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c961014052600a805461ffff60a01b191690556000600b55601a805460ff199081166001908117909255601c805490911690911790553480156200006857600080fd5b5060405162003efb38038062003efb833981810160405260408110156200008e57600080fd5b508051602091820151604080518082018252600f8082526e5370656374726f6c46696e616e636560881b8287018190528351808501855260018152603160f81b8189015284518086018652928352828801918252845180860190955260038086526214d41560ea1b9886019890985282519697959693958695919491926009926200011b929190620007a7565b50815162000131906004906020850190620007a7565b5060f81b7fff00000000000000000000000000000000000000000000000000000000000000166080525050815160208084019190912082519183019190912060e08290526101008190524660c081905291907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001b1818484620004b8565b60a052610120525060009450620001cd935050620004fd915050565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600780546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b81529051829163c45a0155916004808301926020929190829003018186803b1580156200027c57600080fd5b505afa15801562000291573d6000803e3d6000fd5b505050506040513d6020811015620002a857600080fd5b5051600754604080516315ab88c960e31b815290516001600160a01b039384169363c9c6539693309391169163ad5c464891600480820192602092909190829003018186803b158015620002fb57600080fd5b505afa15801562000310573d6000803e3d6000fd5b505050506040513d60208110156200032757600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b1580156200037a57600080fd5b505af11580156200038f573d6000803e3d6000fd5b505050506040513d6020811015620003a657600080fd5b5051600880546001600160a01b0319166001600160a01b039283161790819055620003d49116600162000501565b66038d7ea4c680006021556509184e72a000601f81905560205562000405620003fc62000555565b60215462000564565b6002600d819055600e8190556000600f81905560108290556006600c55600460128190556013839055601482905560158390556008601155600980546001600160a01b038089166001600160a01b031992831617909255600a80549288169290911691909117905582919082908183816200048b6200048362000555565b600162000673565b6200049830600162000673565b620004a761dead600162000673565b505050505050505050505062000853565b604080516020808201959095528082019390935260608301919091524660808301523060a0808401919091528151808403909101815260c09092019052805191012090565b3390565b6001600160a01b038216600081815260226020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6006546001600160a01b031690565b6001600160a01b038216620005c0576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620005ce6000838362000740565b620005ea816002546200074560201b62001cf41790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200061d91839062001cf462000745821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6200067d620004fd565b6006546001600160a01b03908116911614620006e0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0382166000818152601d6020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b505050565b600082820183811015620007a0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620007df57600085556200082a565b82601f10620007fa57805160ff19168380011785556200082a565b828001600101855582156200082a579182015b828111156200082a5782518255916020019190600101906200080d565b50620008389291506200083c565b5090565b5b808211156200083857600081556001016200083d565b60805160f81c60a05160c05160e051610100516101205161014051613651620008aa600039806119435250806127b85250806127fa5250806127d952508061276452508061278c52508061114a52506136516000f3fe6080604052600436106103bc5760003560e01c806375f0a874116101f2578063c2a4bcc31161010d578063dd62ed3e116100a0578063f11a24d31161006f578063f11a24d314610c76578063f2fde38b14610c8b578063f637434214610cbe578063f8b45b0514610cd3576103c3565b8063dd62ed3e14610bd5578063e71dc3f514610c10578063e7ad9fcd14610c25578063e884f26014610c61576103c3565b8063cfd05e83116100dc578063cfd05e8314610b1a578063d505accf14610b2f578063d709dce114610b8d578063d85ba06314610bc0576103c3565b8063c2a4bcc314610aa0578063c876d0b914610adb578063c8c8ebe414610af0578063cc2ffe7c14610b05576103c3565b80639a7a23d611610185578063b62496f511610154578063b62496f5146109f3578063bbc0c74214610a26578063c024666814610a3b578063c18bc19514610a76576103c3565b80639a7a23d614610931578063a457c2d71461096c578063a9059cbb146109a5578063adb873bd146109de576103c3565b80638da5cb5b116101c15780638da5cb5b146108c657806392136913146108db578063924de9b7146108f057806395d89b411461091c576103c3565b806375f0a874146108545780637bce5a04146108695780637ecebe001461087e5780638a8c523c146108b1576103c3565b8063313ce567116102e25780635c068a8c1161027557806370a082311161024457806370a08231146107bc578063715018a6146107ef578063751039fc146108045780637571336a14610819576103c3565b80635c068a8c146107685780636a486a8e1461077d5780636b2fb124146107925780636ddd1713146107a7576103c3565b80634626402b116102b15780634626402b146106f657806349bd5a5e1461070b5780634a62bb65146107205780634fbee19314610735576103c3565b8063313ce567146106685780633644e51514610693578063378dc3dc146106a857806339509351146106bd576103c3565b806318160ddd1161035a578063203e727e11610329578063203e727e146105aa57806323b872dd146105d457806327c8f835146106175780632e6ed7ef1461062c576103c3565b806318160ddd146105445780631a8145bb1461056b5780631d777856146105805780631f3fed8f14610595576103c3565b80630e3d57eb116103965780630e3d57eb146104b65780631031e36e146104cb57806310d5de53146104e05780631694505e14610513576103c3565b80630694db1e146103c857806306fdde03146103df578063095ea7b314610469576103c3565b366103c357005b600080fd5b3480156103d457600080fd5b506103dd610ce8565b005b3480156103eb57600080fd5b506103f4610d55565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042e578181015183820152602001610416565b50505050905090810190601f16801561045b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561047557600080fd5b506104a26004803603604081101561048c57600080fd5b506001600160a01b038135169060200135610dec565b604080519115158252519081900360200190f35b3480156104c257600080fd5b506103dd610e03565b3480156104d757600080fd5b506103dd610ea8565b3480156104ec57600080fd5b506104a26004803603602081101561050357600080fd5b50356001600160a01b0316610f0f565b34801561051f57600080fd5b50610528610f24565b604080516001600160a01b039092168252519081900360200190f35b34801561055057600080fd5b50610559610f33565b60408051918252519081900360200190f35b34801561057757600080fd5b50610559610f39565b34801561058c57600080fd5b50610559610f3f565b3480156105a157600080fd5b50610559610f45565b3480156105b657600080fd5b506103dd600480360360208110156105cd57600080fd5b5035610f4b565b3480156105e057600080fd5b506104a2600480360360608110156105f757600080fd5b506001600160a01b0381358116916020810135909116906040013561100c565b34801561062357600080fd5b50610528611075565b34801561063857600080fd5b506103dd6004803603608081101561064f57600080fd5b508035906020810135906040810135906060013561107b565b34801561067457600080fd5b5061067d611148565b6040805160ff9092168252519081900360200190f35b34801561069f57600080fd5b5061055961116c565b3480156106b457600080fd5b5061055961117b565b3480156106c957600080fd5b506104a2600480360360408110156106e057600080fd5b506001600160a01b038135169060200135611181565b34801561070257600080fd5b506105286111b7565b34801561071757600080fd5b506105286111c6565b34801561072c57600080fd5b506104a26111d5565b34801561074157600080fd5b506104a26004803603602081101561075857600080fd5b50356001600160a01b03166111de565b34801561077457600080fd5b506105596111fc565b34801561078957600080fd5b50610559611202565b34801561079e57600080fd5b50610559611208565b3480156107b357600080fd5b506104a261120e565b3480156107c857600080fd5b50610559600480360360208110156107df57600080fd5b50356001600160a01b031661121e565b3480156107fb57600080fd5b506103dd611239565b34801561081057600080fd5b506104a26112db565b34801561082557600080fd5b506103dd6004803603604081101561083c57600080fd5b506001600160a01b0381351690602001351515611345565b34801561086057600080fd5b506105286113c8565b34801561087557600080fd5b506105596113d7565b34801561088a57600080fd5b50610559600480360360208110156108a157600080fd5b50356001600160a01b03166113dd565b3480156108bd57600080fd5b506103dd6113fe565b3480156108d257600080fd5b50610528611495565b3480156108e757600080fd5b506105596114a4565b3480156108fc57600080fd5b506103dd6004803603602081101561091357600080fd5b503515156114aa565b34801561092857600080fd5b506103f4611520565b34801561093d57600080fd5b506103dd6004803603604081101561095457600080fd5b506001600160a01b0381351690602001351515611581565b34801561097857600080fd5b506104a26004803603604081101561098f57600080fd5b506001600160a01b038135169060200135611634565b3480156109b157600080fd5b506104a2600480360360408110156109c857600080fd5b506001600160a01b038135169060200135611683565b3480156109ea57600080fd5b50610559611690565b3480156109ff57600080fd5b506104a260048036036020811015610a1657600080fd5b50356001600160a01b0316611696565b348015610a3257600080fd5b506104a26116ab565b348015610a4757600080fd5b506103dd60048036036040811015610a5e57600080fd5b506001600160a01b03813516906020013515156116bb565b348015610a8257600080fd5b506103dd60048036036020811015610a9957600080fd5b5035611773565b348015610aac57600080fd5b506103dd60048036036040811015610ac357600080fd5b506001600160a01b0381351690602001351515611837565b348015610ae757600080fd5b506104a26118cf565b348015610afc57600080fd5b506105596118d8565b348015610b1157600080fd5b506105596118de565b348015610b2657600080fd5b506105596118e4565b348015610b3b57600080fd5b506103dd600480360360e0811015610b5257600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356118ea565b348015610b9957600080fd5b506104a260048036036020811015610bb057600080fd5b50356001600160a01b0316611a66565b348015610bcc57600080fd5b50610559611a7b565b348015610be157600080fd5b5061055960048036036040811015610bf857600080fd5b506001600160a01b0381358116916020013516611a81565b348015610c1c57600080fd5b50610559611aac565b348015610c3157600080fd5b506103dd60048036036080811015610c4857600080fd5b5080359060208101359060408101359060600135611ab2565b348015610c6d57600080fd5b506104a2611b7f565b348015610c8257600080fd5b50610559611be9565b348015610c9757600080fd5b506103dd60048036036020811015610cae57600080fd5b50356001600160a01b0316611bef565b348015610cca57600080fd5b50610559611ce8565b348015610cdf57600080fd5b50610559611cee565b610cf0611d55565b6006546001600160a01b03908116911614610d40576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a805460ff60a01b1916600160a01b179055565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610de15780601f10610db657610100808354040283529160200191610de1565b820191906000526020600020905b815481529060010190602001808311610dc457829003601f168201915b505050505090505b90565b6000610df9338484611d59565b5060015b92915050565b610e0b611d55565b6006546001600160a01b03908116911614610e5b576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b604051600090339047908381818185875af1925050503d8060008114610e9d576040519150601f19603f3d011682016040523d82523d6000602084013e610ea2565b606091505b50505050565b610eb0611d55565b6006546001600160a01b03908116911614610f00576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a805460ff60a01b19169055565b601e6020526000908152604090205460ff1681565b6007546001600160a01b031681565b60025490565b60175481565b60185481565b60165481565b610f53611d55565b6006546001600160a01b03908116911614610fa3576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b633b9aca006103e8610fb3610f33565b81610fba57fe5b0481610fc257fe5b048110156110015760405162461bcd60e51b815260040180806020018281038252602f8152602001806135ed602f913960400191505060405180910390fd5b633b9aca0002601f55565b6000611019848484611e45565b61106b843361106685604051806060016040528060288152602001613537602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906126c8565b611d59565b5060019392505050565b61dead81565b611083611d55565b6006546001600160a01b039081169116146110d3576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600d849055600e839055600f829055601081905582840182018101600c819055600a1015610ea2576040805162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000090565b600061117661275f565b905090565b60215481565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610df99185906110669086611cf4565b600a546001600160a01b031681565b6008546001600160a01b031681565b601a5460ff1681565b6001600160a01b03166000908152601d602052604090205460ff1690565b60105481565b60115481565b60155481565b600a54600160a81b900460ff1681565b6001600160a01b031660009081526020819052604090205490565b611241611d55565b6006546001600160a01b03908116911614611291576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b60006112e5611d55565b6006546001600160a01b03908116911614611335576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b50601a805460ff19169055600190565b61134d611d55565b6006546001600160a01b0390811691161461139d576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6009546001600160a01b031681565b600d5481565b6001600160a01b0381166000908152600560205260408120610dfd90612826565b611406611d55565b6006546001600160a01b03908116911614611456576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a54600160a01b900460ff161561146d57600080fd5b600a805460ff60a81b1960ff60a01b19909116600160a01b1716600160a81b17905543600b55565b6006546001600160a01b031690565b60125481565b6114b2611d55565b6006546001600160a01b03908116911614611502576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a8054911515600160a81b0260ff60a81b19909216919091179055565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610de15780601f10610db657610100808354040283529160200191610de1565b611589611d55565b6006546001600160a01b039081169116146115d9576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6008546001600160a01b03838116911614156116265760405162461bcd60e51b81526004018080602001828103825260398152602001806133bf6039913960400191505060405180910390fd5b611630828261282a565b5050565b6000610df93384611066856040518060600160405280602581526020016135c8602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906126c8565b6000610df9338484611e45565b60145481565b60226020526000908152604090205460ff1681565b600a54600160a01b900460ff1681565b6116c3611d55565b6006546001600160a01b03908116911614611713576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152601d6020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b61177b611d55565b6006546001600160a01b039081169116146117cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b633b9aca006103e86117db610f33565b600502816117e557fe5b04816117ed57fe5b0481101561182c5760405162461bcd60e51b815260040180806020018281038252602481526020018061339b6024913960400191505060405180910390fd5b633b9aca0002602055565b61183f611d55565b6006546001600160a01b0390811691161461188f576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b80156118a457601a5460ff166118a457600080fd5b6001600160a01b03919091166000908152602360205260409020805460ff1916911515919091179055565b601c5460ff1681565b601f5481565b60195481565b600b5481565b8342111561193f576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000088888861196e8c61287e565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b03168152602001848152602001838152602001828152602001965050505050505060405160208183030381529060405280519060200120905060006119d7826128b0565b905060006119e7828787876128c3565b9050896001600160a01b0316816001600160a01b031614611a4f576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b611a5a8a8a8a611d59565b50505050505050505050565b60236020526000908152604090205460ff1681565b600c5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600f5481565b611aba611d55565b6006546001600160a01b03908116911614611b0a576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6012849055601383905560148290556015819055828401820181016011819055600a1015610ea2576040805162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015290519081900360640190fd5b6000611b89611d55565b6006546001600160a01b03908116911614611bd9576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b50601c805460ff19169055600190565b600e5481565b611bf7611d55565b6006546001600160a01b03908116911614611c47576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6001600160a01b038116611c8c5760405162461bcd60e51b81526004018080602001828103825260268152602001806133536026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60135481565b60205481565b600082820183811015611d4e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316611d9e5760405162461bcd60e51b81526004018080602001828103825260248152602001806135a46024913960400191505060405180910390fd5b6001600160a01b038216611de35760405162461bcd60e51b81526004018080602001828103825260228152602001806133796022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611e8a5760405162461bcd60e51b815260040180806020018281038252602581526020018061357f6025913960400191505060405180910390fd5b6001600160a01b038216611ecf5760405162461bcd60e51b81526004018080602001828103825260238152602001806133306023913960400191505060405180910390fd5b80611ee557611ee0838360006128eb565b6126c3565b601a5460009060ff161561239357611efb611495565b6001600160a01b0316846001600160a01b031614158015611f355750611f1f611495565b6001600160a01b0316836001600160a01b031614155b8015611f4957506001600160a01b03831615155b8015611f6057506001600160a01b03831661dead14155b8015611f765750600a54600160b01b900460ff16155b1561239357600a54600160a01b900460ff16612015576001600160a01b0384166000908152601d602052604090205460ff1680611fcb57506001600160a01b0383166000908152601d602052604090205460ff165b612015576040805162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b604482015290519081900360640190fd5b601c5460ff16156120d657612028611495565b6001600160a01b0316836001600160a01b03161415801561205757506007546001600160a01b03848116911614155b801561207157506008546001600160a01b03848116911614155b156120d657326000908152601b602052604090205443116120c35760405162461bcd60e51b81526004018080602001828103825260498152602001806134ab6049913960600191505060405180910390fd5b326000908152601b602052604090204390555b6001600160a01b03841660009081526022602052604090205460ff16801561211757506001600160a01b0383166000908152601e602052604090205460ff16155b156121b957601f5482111561215d5760405162461bcd60e51b81526004018080602001828103825260358152602001806134766035913960400191505060405180910390fd5b6020546121698461121e565b830111156121b4576040805162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015290519081900360640190fd5b6122b7565b6001600160a01b03831660009081526022602052604090205460ff1680156121fa57506001600160a01b0384166000908152601e602052604090205460ff16155b1561224057601f548211156121b45760405162461bcd60e51b815260040180806020018281038252603681526020018061341e6036913960400191505060405180910390fd5b6001600160a01b0383166000908152601e602052604090205460ff166122b75760205461226c8461121e565b830111156122b7576040805162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015290519081900360640190fd5b6001600160a01b03841660009081526022602052604090205460ff1680156122e05750600b5415155b80156122f15750600b546001014311155b15612344576001600160a01b0383166000908152602360205260409020805460ff1916600117905561232f6064612329846063612a46565b90612a9f565b905061233e84848385036128eb565b506126c3565b6001600160a01b03841660009081526022602052604090205460ff16801561236d5750600b5415155b801561237e5750600b546003014311155b156123935761232f6064612329846031612a46565b6001600160a01b03841660009081526023602052604090205460ff16806123d257506001600160a01b03831660009081526023602052604090205460ff165b156123e35761233e848460006128eb565b600a54600160a81b900460ff1680156124065750600a54600160b01b900460ff16155b801561242b57506001600160a01b0384166000908152601d602052604090205460ff16155b801561245057506001600160a01b0383166000908152601d602052604090205460ff16155b801561247557506001600160a01b03841660009081526022602052604090205460ff16155b156124a357600a805460ff60b01b1916600160b01b179055612495612ae1565b600a805460ff60b01b191690555b600a546001600160a01b0385166000908152601d602052604090205460ff600160b01b9092048216159116806124f157506001600160a01b0384166000908152601d602052604090205460ff165b156124fa575060005b600060185580156126b5576001600160a01b03841660009081526022602052604090205460ff16801561252f57506000601154115b156125bc5761254e606461232960115486612a4690919063ffffffff16565b915060115460135483028161255f57fe5b6017805492909104909101905560115460145483028161257b57fe5b0460185560115460155483028161258e57fe5b601980549290910490910190556011546012548302816125aa57fe5b6016805492909104909101905561266f565b6001600160a01b03851660009081526022602052604090205460ff1680156125e657506000600c54115b1561266f576126056064612329600c5486612a4690919063ffffffff16565b9150600c54600e5483028161261657fe5b60178054929091049091019055600c54600f5483028161263257fe5b04601855600c5460105483028161264557fe5b60198054929091049091019055600c54600d5483028161266157fe5b601680549290910490910190555b60185482031561269857612698853061269360185486612d0490919063ffffffff16565b6128eb565b601854156126af576126af8561dead6018546128eb565b81830392505b6126c08585856128eb565b50505b505050565b600081848411156127575760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561271c578181015183820152602001612704565b50505050905090810190601f1680156127495780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000467f00000000000000000000000000000000000000000000000000000000000000008114156127b3577f0000000000000000000000000000000000000000000000000000000000000000915050610de9565b61281e7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612d46565b915050610de9565b5490565b6001600160a01b038216600081815260226020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038116600090815260056020526040812061289f81612826565b91506128aa81612d8b565b50919050565b6000610dfd6128bd61275f565b83612d94565b60008060006128d487878787612dcf565b915091506128e181612ec4565b5095945050505050565b6001600160a01b0383166129305760405162461bcd60e51b815260040180806020018281038252602581526020018061357f6025913960400191505060405180910390fd5b6001600160a01b0382166129755760405162461bcd60e51b81526004018080602001828103825260238152602001806133306023913960400191505060405180910390fd5b6129808383836126c3565b6129bd816040518060600160405280602681526020016133f8602691396001600160a01b03861660009081526020819052604090205491906126c8565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546129ec9082611cf4565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600082612a5557506000610dfd565b82820282848281612a6257fe5b0414611d4e5760405162461bcd60e51b81526004018080602001828103825260218152602001806135166021913960400191505060405180910390fd5b6000611d4e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613038565b6000612aec3061121e565b905060006019546016546017540101905060008260001480612b0c575081155b15612b1957505050612d02565b612710612b24610f33565b60050281612b2e57fe5b04601402831115612b5557612710612b44610f33565b60050281612b4e57fe5b0460140292505b6000600283601754860281612b6657fe5b0481612b6e57fe5b0490506000612b7d8583612d04565b905047612b89826130b4565b6000612b954783612d04565b90506000612bb28761232960165485612a4690919063ffffffff16565b90506000612bcf8861232960195486612a4690919063ffffffff16565b6000601781905560168190556019819055600a54604051929350848603849003926001600160a01b039091169184919081818185875af1925050503d8060008114612c36576040519150601f19603f3d011682016040523d82523d6000602084013e612c3b565b606091505b50909850508615801590612c4f5750600081115b15612ca257612c5e8782613262565b601754604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6009546040516001600160a01b03909116904790600081818185875af1925050503d8060008114612cef576040519150601f19603f3d011682016040523d82523d6000602084013e612cf4565b606091505b505050505050505050505050505b565b6000611d4e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126c8565b604080516020808201959095528082019390935260608301919091524660808301523060a0808401919091528151808403909101815260c09092019052805191012090565b80546001019055565b6040805161190160f01b6020808301919091526022820194909452604280820193909352815180820390930183526062019052805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e065750600090506003612ebb565b8460ff16601b14158015612e1e57508460ff16601c14155b15612e2f5750600090506004612ebb565b600060018787878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612e8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612eb457600060019250925050612ebb565b9150600090505b94509492505050565b6000816004811115612ed257fe5b1415612edd57613035565b6001816004811115612eeb57fe5b1415612f3e576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b6002816004811115612f4c57fe5b1415612f9f576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b6003816004811115612fad57fe5b1415612fea5760405162461bcd60e51b81526004018080602001828103825260228152602001806134546022913960400191505060405180910390fd5b6004816004811115612ff857fe5b14156130355760405162461bcd60e51b81526004018080602001828103825260228152602001806134f46022913960400191505060405180910390fd5b50565b600081836130875760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561271c578181015183820152602001612704565b50600083858161309357fe5b04905083858161309f57fe5b068185020185146130ac57fe5b949350505050565b604080516002808252606080830184529260208301908036833701905050905030816000815181106130e257fe5b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561313657600080fd5b505afa15801561314a573d6000803e3d6000fd5b505050506040513d602081101561316057600080fd5b505181518290600190811061317157fe5b6001600160a01b0392831660209182029290920101526007546131979130911684611d59565b60075460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561321d578181015183820152602001613205565b505050509050019650505050505050600060405180830381600087803b15801561324657600080fd5b505af115801561325a573d6000803e3d6000fd5b505050505050565b60075461327a9030906001600160a01b031684611d59565b6007546001600160a01b031663f305d719823085600080613299611495565b426040518863ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506060604051808303818588803b15801561330457600080fd5b505af1158015613318573d6000803e3d6000fd5b50505050506040513d6060811015610ea257600080fdfe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737343616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20302e352554686520706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636553656c6c207472616e7366657220616d6f756e74206578636565647320746865206d61785472616e73616374696f6e416d6f756e742e45434453413a20696e76616c6964207369676e6174757265202773272076616c7565427579207472616e7366657220616d6f756e74206578636565647320746865206d61785472616e73616374696f6e416d6f756e742e5f7472616e736665723a3a205472616e736665722044656c617920656e61626c65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b20616c6c6f7765642e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74206c6f776572207468616e20302e3125a26469706673582212206ec1a5c906745bbf74eddda2845a7a6b3acda33337ba9eb6779eb89cd3cd26bf64736f6c634300070500330000000000000000000000009ef86d336a121d7fcf1a2d9bacf6362e384c0da50000000000000000000000009ef86d336a121d7fcf1a2d9bacf6362e384c0da5

Deployed Bytecode

0x6080604052600436106103bc5760003560e01c806375f0a874116101f2578063c2a4bcc31161010d578063dd62ed3e116100a0578063f11a24d31161006f578063f11a24d314610c76578063f2fde38b14610c8b578063f637434214610cbe578063f8b45b0514610cd3576103c3565b8063dd62ed3e14610bd5578063e71dc3f514610c10578063e7ad9fcd14610c25578063e884f26014610c61576103c3565b8063cfd05e83116100dc578063cfd05e8314610b1a578063d505accf14610b2f578063d709dce114610b8d578063d85ba06314610bc0576103c3565b8063c2a4bcc314610aa0578063c876d0b914610adb578063c8c8ebe414610af0578063cc2ffe7c14610b05576103c3565b80639a7a23d611610185578063b62496f511610154578063b62496f5146109f3578063bbc0c74214610a26578063c024666814610a3b578063c18bc19514610a76576103c3565b80639a7a23d614610931578063a457c2d71461096c578063a9059cbb146109a5578063adb873bd146109de576103c3565b80638da5cb5b116101c15780638da5cb5b146108c657806392136913146108db578063924de9b7146108f057806395d89b411461091c576103c3565b806375f0a874146108545780637bce5a04146108695780637ecebe001461087e5780638a8c523c146108b1576103c3565b8063313ce567116102e25780635c068a8c1161027557806370a082311161024457806370a08231146107bc578063715018a6146107ef578063751039fc146108045780637571336a14610819576103c3565b80635c068a8c146107685780636a486a8e1461077d5780636b2fb124146107925780636ddd1713146107a7576103c3565b80634626402b116102b15780634626402b146106f657806349bd5a5e1461070b5780634a62bb65146107205780634fbee19314610735576103c3565b8063313ce567146106685780633644e51514610693578063378dc3dc146106a857806339509351146106bd576103c3565b806318160ddd1161035a578063203e727e11610329578063203e727e146105aa57806323b872dd146105d457806327c8f835146106175780632e6ed7ef1461062c576103c3565b806318160ddd146105445780631a8145bb1461056b5780631d777856146105805780631f3fed8f14610595576103c3565b80630e3d57eb116103965780630e3d57eb146104b65780631031e36e146104cb57806310d5de53146104e05780631694505e14610513576103c3565b80630694db1e146103c857806306fdde03146103df578063095ea7b314610469576103c3565b366103c357005b600080fd5b3480156103d457600080fd5b506103dd610ce8565b005b3480156103eb57600080fd5b506103f4610d55565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042e578181015183820152602001610416565b50505050905090810190601f16801561045b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561047557600080fd5b506104a26004803603604081101561048c57600080fd5b506001600160a01b038135169060200135610dec565b604080519115158252519081900360200190f35b3480156104c257600080fd5b506103dd610e03565b3480156104d757600080fd5b506103dd610ea8565b3480156104ec57600080fd5b506104a26004803603602081101561050357600080fd5b50356001600160a01b0316610f0f565b34801561051f57600080fd5b50610528610f24565b604080516001600160a01b039092168252519081900360200190f35b34801561055057600080fd5b50610559610f33565b60408051918252519081900360200190f35b34801561057757600080fd5b50610559610f39565b34801561058c57600080fd5b50610559610f3f565b3480156105a157600080fd5b50610559610f45565b3480156105b657600080fd5b506103dd600480360360208110156105cd57600080fd5b5035610f4b565b3480156105e057600080fd5b506104a2600480360360608110156105f757600080fd5b506001600160a01b0381358116916020810135909116906040013561100c565b34801561062357600080fd5b50610528611075565b34801561063857600080fd5b506103dd6004803603608081101561064f57600080fd5b508035906020810135906040810135906060013561107b565b34801561067457600080fd5b5061067d611148565b6040805160ff9092168252519081900360200190f35b34801561069f57600080fd5b5061055961116c565b3480156106b457600080fd5b5061055961117b565b3480156106c957600080fd5b506104a2600480360360408110156106e057600080fd5b506001600160a01b038135169060200135611181565b34801561070257600080fd5b506105286111b7565b34801561071757600080fd5b506105286111c6565b34801561072c57600080fd5b506104a26111d5565b34801561074157600080fd5b506104a26004803603602081101561075857600080fd5b50356001600160a01b03166111de565b34801561077457600080fd5b506105596111fc565b34801561078957600080fd5b50610559611202565b34801561079e57600080fd5b50610559611208565b3480156107b357600080fd5b506104a261120e565b3480156107c857600080fd5b50610559600480360360208110156107df57600080fd5b50356001600160a01b031661121e565b3480156107fb57600080fd5b506103dd611239565b34801561081057600080fd5b506104a26112db565b34801561082557600080fd5b506103dd6004803603604081101561083c57600080fd5b506001600160a01b0381351690602001351515611345565b34801561086057600080fd5b506105286113c8565b34801561087557600080fd5b506105596113d7565b34801561088a57600080fd5b50610559600480360360208110156108a157600080fd5b50356001600160a01b03166113dd565b3480156108bd57600080fd5b506103dd6113fe565b3480156108d257600080fd5b50610528611495565b3480156108e757600080fd5b506105596114a4565b3480156108fc57600080fd5b506103dd6004803603602081101561091357600080fd5b503515156114aa565b34801561092857600080fd5b506103f4611520565b34801561093d57600080fd5b506103dd6004803603604081101561095457600080fd5b506001600160a01b0381351690602001351515611581565b34801561097857600080fd5b506104a26004803603604081101561098f57600080fd5b506001600160a01b038135169060200135611634565b3480156109b157600080fd5b506104a2600480360360408110156109c857600080fd5b506001600160a01b038135169060200135611683565b3480156109ea57600080fd5b50610559611690565b3480156109ff57600080fd5b506104a260048036036020811015610a1657600080fd5b50356001600160a01b0316611696565b348015610a3257600080fd5b506104a26116ab565b348015610a4757600080fd5b506103dd60048036036040811015610a5e57600080fd5b506001600160a01b03813516906020013515156116bb565b348015610a8257600080fd5b506103dd60048036036020811015610a9957600080fd5b5035611773565b348015610aac57600080fd5b506103dd60048036036040811015610ac357600080fd5b506001600160a01b0381351690602001351515611837565b348015610ae757600080fd5b506104a26118cf565b348015610afc57600080fd5b506105596118d8565b348015610b1157600080fd5b506105596118de565b348015610b2657600080fd5b506105596118e4565b348015610b3b57600080fd5b506103dd600480360360e0811015610b5257600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356118ea565b348015610b9957600080fd5b506104a260048036036020811015610bb057600080fd5b50356001600160a01b0316611a66565b348015610bcc57600080fd5b50610559611a7b565b348015610be157600080fd5b5061055960048036036040811015610bf857600080fd5b506001600160a01b0381358116916020013516611a81565b348015610c1c57600080fd5b50610559611aac565b348015610c3157600080fd5b506103dd60048036036080811015610c4857600080fd5b5080359060208101359060408101359060600135611ab2565b348015610c6d57600080fd5b506104a2611b7f565b348015610c8257600080fd5b50610559611be9565b348015610c9757600080fd5b506103dd60048036036020811015610cae57600080fd5b50356001600160a01b0316611bef565b348015610cca57600080fd5b50610559611ce8565b348015610cdf57600080fd5b50610559611cee565b610cf0611d55565b6006546001600160a01b03908116911614610d40576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a805460ff60a01b1916600160a01b179055565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610de15780601f10610db657610100808354040283529160200191610de1565b820191906000526020600020905b815481529060010190602001808311610dc457829003601f168201915b505050505090505b90565b6000610df9338484611d59565b5060015b92915050565b610e0b611d55565b6006546001600160a01b03908116911614610e5b576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b604051600090339047908381818185875af1925050503d8060008114610e9d576040519150601f19603f3d011682016040523d82523d6000602084013e610ea2565b606091505b50505050565b610eb0611d55565b6006546001600160a01b03908116911614610f00576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a805460ff60a01b19169055565b601e6020526000908152604090205460ff1681565b6007546001600160a01b031681565b60025490565b60175481565b60185481565b60165481565b610f53611d55565b6006546001600160a01b03908116911614610fa3576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b633b9aca006103e8610fb3610f33565b81610fba57fe5b0481610fc257fe5b048110156110015760405162461bcd60e51b815260040180806020018281038252602f8152602001806135ed602f913960400191505060405180910390fd5b633b9aca0002601f55565b6000611019848484611e45565b61106b843361106685604051806060016040528060288152602001613537602891396001600160a01b038a16600090815260016020908152604080832033845290915290205491906126c8565b611d59565b5060019392505050565b61dead81565b611083611d55565b6006546001600160a01b039081169116146110d3576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600d849055600e839055600f829055601081905582840182018101600c819055600a1015610ea2576040805162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000990565b600061117661275f565b905090565b60215481565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610df99185906110669086611cf4565b600a546001600160a01b031681565b6008546001600160a01b031681565b601a5460ff1681565b6001600160a01b03166000908152601d602052604090205460ff1690565b60105481565b60115481565b60155481565b600a54600160a81b900460ff1681565b6001600160a01b031660009081526020819052604090205490565b611241611d55565b6006546001600160a01b03908116911614611291576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b60006112e5611d55565b6006546001600160a01b03908116911614611335576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b50601a805460ff19169055600190565b61134d611d55565b6006546001600160a01b0390811691161461139d576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6009546001600160a01b031681565b600d5481565b6001600160a01b0381166000908152600560205260408120610dfd90612826565b611406611d55565b6006546001600160a01b03908116911614611456576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a54600160a01b900460ff161561146d57600080fd5b600a805460ff60a81b1960ff60a01b19909116600160a01b1716600160a81b17905543600b55565b6006546001600160a01b031690565b60125481565b6114b2611d55565b6006546001600160a01b03908116911614611502576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b600a8054911515600160a81b0260ff60a81b19909216919091179055565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610de15780601f10610db657610100808354040283529160200191610de1565b611589611d55565b6006546001600160a01b039081169116146115d9576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6008546001600160a01b03838116911614156116265760405162461bcd60e51b81526004018080602001828103825260398152602001806133bf6039913960400191505060405180910390fd5b611630828261282a565b5050565b6000610df93384611066856040518060600160405280602581526020016135c8602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906126c8565b6000610df9338484611e45565b60145481565b60226020526000908152604090205460ff1681565b600a54600160a01b900460ff1681565b6116c3611d55565b6006546001600160a01b03908116911614611713576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152601d6020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b61177b611d55565b6006546001600160a01b039081169116146117cb576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b633b9aca006103e86117db610f33565b600502816117e557fe5b04816117ed57fe5b0481101561182c5760405162461bcd60e51b815260040180806020018281038252602481526020018061339b6024913960400191505060405180910390fd5b633b9aca0002602055565b61183f611d55565b6006546001600160a01b0390811691161461188f576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b80156118a457601a5460ff166118a457600080fd5b6001600160a01b03919091166000908152602360205260409020805460ff1916911515919091179055565b601c5460ff1681565b601f5481565b60195481565b600b5481565b8342111561193f576040805162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015290519081900360640190fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861196e8c61287e565b8960405160200180878152602001866001600160a01b03168152602001856001600160a01b03168152602001848152602001838152602001828152602001965050505050505060405160208183030381529060405280519060200120905060006119d7826128b0565b905060006119e7828787876128c3565b9050896001600160a01b0316816001600160a01b031614611a4f576040805162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b611a5a8a8a8a611d59565b50505050505050505050565b60236020526000908152604090205460ff1681565b600c5481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600f5481565b611aba611d55565b6006546001600160a01b03908116911614611b0a576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6012849055601383905560148290556015819055828401820181016011819055600a1015610ea2576040805162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015290519081900360640190fd5b6000611b89611d55565b6006546001600160a01b03908116911614611bd9576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b50601c805460ff19169055600190565b600e5481565b611bf7611d55565b6006546001600160a01b03908116911614611c47576040805162461bcd60e51b8152602060048201819052602482015260008051602061355f833981519152604482015290519081900360640190fd5b6001600160a01b038116611c8c5760405162461bcd60e51b81526004018080602001828103825260268152602001806133536026913960400191505060405180910390fd5b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b60135481565b60205481565b600082820183811015611d4e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316611d9e5760405162461bcd60e51b81526004018080602001828103825260248152602001806135a46024913960400191505060405180910390fd5b6001600160a01b038216611de35760405162461bcd60e51b81526004018080602001828103825260228152602001806133796022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611e8a5760405162461bcd60e51b815260040180806020018281038252602581526020018061357f6025913960400191505060405180910390fd5b6001600160a01b038216611ecf5760405162461bcd60e51b81526004018080602001828103825260238152602001806133306023913960400191505060405180910390fd5b80611ee557611ee0838360006128eb565b6126c3565b601a5460009060ff161561239357611efb611495565b6001600160a01b0316846001600160a01b031614158015611f355750611f1f611495565b6001600160a01b0316836001600160a01b031614155b8015611f4957506001600160a01b03831615155b8015611f6057506001600160a01b03831661dead14155b8015611f765750600a54600160b01b900460ff16155b1561239357600a54600160a01b900460ff16612015576001600160a01b0384166000908152601d602052604090205460ff1680611fcb57506001600160a01b0383166000908152601d602052604090205460ff165b612015576040805162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b604482015290519081900360640190fd5b601c5460ff16156120d657612028611495565b6001600160a01b0316836001600160a01b03161415801561205757506007546001600160a01b03848116911614155b801561207157506008546001600160a01b03848116911614155b156120d657326000908152601b602052604090205443116120c35760405162461bcd60e51b81526004018080602001828103825260498152602001806134ab6049913960600191505060405180910390fd5b326000908152601b602052604090204390555b6001600160a01b03841660009081526022602052604090205460ff16801561211757506001600160a01b0383166000908152601e602052604090205460ff16155b156121b957601f5482111561215d5760405162461bcd60e51b81526004018080602001828103825260358152602001806134766035913960400191505060405180910390fd5b6020546121698461121e565b830111156121b4576040805162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015290519081900360640190fd5b6122b7565b6001600160a01b03831660009081526022602052604090205460ff1680156121fa57506001600160a01b0384166000908152601e602052604090205460ff16155b1561224057601f548211156121b45760405162461bcd60e51b815260040180806020018281038252603681526020018061341e6036913960400191505060405180910390fd5b6001600160a01b0383166000908152601e602052604090205460ff166122b75760205461226c8461121e565b830111156122b7576040805162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015290519081900360640190fd5b6001600160a01b03841660009081526022602052604090205460ff1680156122e05750600b5415155b80156122f15750600b546001014311155b15612344576001600160a01b0383166000908152602360205260409020805460ff1916600117905561232f6064612329846063612a46565b90612a9f565b905061233e84848385036128eb565b506126c3565b6001600160a01b03841660009081526022602052604090205460ff16801561236d5750600b5415155b801561237e5750600b546003014311155b156123935761232f6064612329846031612a46565b6001600160a01b03841660009081526023602052604090205460ff16806123d257506001600160a01b03831660009081526023602052604090205460ff165b156123e35761233e848460006128eb565b600a54600160a81b900460ff1680156124065750600a54600160b01b900460ff16155b801561242b57506001600160a01b0384166000908152601d602052604090205460ff16155b801561245057506001600160a01b0383166000908152601d602052604090205460ff16155b801561247557506001600160a01b03841660009081526022602052604090205460ff16155b156124a357600a805460ff60b01b1916600160b01b179055612495612ae1565b600a805460ff60b01b191690555b600a546001600160a01b0385166000908152601d602052604090205460ff600160b01b9092048216159116806124f157506001600160a01b0384166000908152601d602052604090205460ff165b156124fa575060005b600060185580156126b5576001600160a01b03841660009081526022602052604090205460ff16801561252f57506000601154115b156125bc5761254e606461232960115486612a4690919063ffffffff16565b915060115460135483028161255f57fe5b6017805492909104909101905560115460145483028161257b57fe5b0460185560115460155483028161258e57fe5b601980549290910490910190556011546012548302816125aa57fe5b6016805492909104909101905561266f565b6001600160a01b03851660009081526022602052604090205460ff1680156125e657506000600c54115b1561266f576126056064612329600c5486612a4690919063ffffffff16565b9150600c54600e5483028161261657fe5b60178054929091049091019055600c54600f5483028161263257fe5b04601855600c5460105483028161264557fe5b60198054929091049091019055600c54600d5483028161266157fe5b601680549290910490910190555b60185482031561269857612698853061269360185486612d0490919063ffffffff16565b6128eb565b601854156126af576126af8561dead6018546128eb565b81830392505b6126c08585856128eb565b50505b505050565b600081848411156127575760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561271c578181015183820152602001612704565b50505050905090810190601f1680156127495780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000467f00000000000000000000000000000000000000000000000000000000000000018114156127b3577f11e404211c88661fef7bc0aec8f46c2d8fcacd61dfb96649282a472a0906f15f915050610de9565b61281e7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fcc9c382939745d939ea065576df5656be36a762b199d89f958c52bf13ecc905e7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6612d46565b915050610de9565b5490565b6001600160a01b038216600081815260226020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038116600090815260056020526040812061289f81612826565b91506128aa81612d8b565b50919050565b6000610dfd6128bd61275f565b83612d94565b60008060006128d487878787612dcf565b915091506128e181612ec4565b5095945050505050565b6001600160a01b0383166129305760405162461bcd60e51b815260040180806020018281038252602581526020018061357f6025913960400191505060405180910390fd5b6001600160a01b0382166129755760405162461bcd60e51b81526004018080602001828103825260238152602001806133306023913960400191505060405180910390fd5b6129808383836126c3565b6129bd816040518060600160405280602681526020016133f8602691396001600160a01b03861660009081526020819052604090205491906126c8565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546129ec9082611cf4565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600082612a5557506000610dfd565b82820282848281612a6257fe5b0414611d4e5760405162461bcd60e51b81526004018080602001828103825260218152602001806135166021913960400191505060405180910390fd5b6000611d4e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613038565b6000612aec3061121e565b905060006019546016546017540101905060008260001480612b0c575081155b15612b1957505050612d02565b612710612b24610f33565b60050281612b2e57fe5b04601402831115612b5557612710612b44610f33565b60050281612b4e57fe5b0460140292505b6000600283601754860281612b6657fe5b0481612b6e57fe5b0490506000612b7d8583612d04565b905047612b89826130b4565b6000612b954783612d04565b90506000612bb28761232960165485612a4690919063ffffffff16565b90506000612bcf8861232960195486612a4690919063ffffffff16565b6000601781905560168190556019819055600a54604051929350848603849003926001600160a01b039091169184919081818185875af1925050503d8060008114612c36576040519150601f19603f3d011682016040523d82523d6000602084013e612c3b565b606091505b50909850508615801590612c4f5750600081115b15612ca257612c5e8782613262565b601754604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6009546040516001600160a01b03909116904790600081818185875af1925050503d8060008114612cef576040519150601f19603f3d011682016040523d82523d6000602084013e612cf4565b606091505b505050505050505050505050505b565b6000611d4e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126c8565b604080516020808201959095528082019390935260608301919091524660808301523060a0808401919091528151808403909101815260c09092019052805191012090565b80546001019055565b6040805161190160f01b6020808301919091526022820194909452604280820193909352815180820390930183526062019052805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e065750600090506003612ebb565b8460ff16601b14158015612e1e57508460ff16601c14155b15612e2f5750600090506004612ebb565b600060018787878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612e8b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612eb457600060019250925050612ebb565b9150600090505b94509492505050565b6000816004811115612ed257fe5b1415612edd57613035565b6001816004811115612eeb57fe5b1415612f3e576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b6002816004811115612f4c57fe5b1415612f9f576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b6003816004811115612fad57fe5b1415612fea5760405162461bcd60e51b81526004018080602001828103825260228152602001806134546022913960400191505060405180910390fd5b6004816004811115612ff857fe5b14156130355760405162461bcd60e51b81526004018080602001828103825260228152602001806134f46022913960400191505060405180910390fd5b50565b600081836130875760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561271c578181015183820152602001612704565b50600083858161309357fe5b04905083858161309f57fe5b068185020185146130ac57fe5b949350505050565b604080516002808252606080830184529260208301908036833701905050905030816000815181106130e257fe5b6001600160a01b03928316602091820292909201810191909152600754604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561313657600080fd5b505afa15801561314a573d6000803e3d6000fd5b505050506040513d602081101561316057600080fd5b505181518290600190811061317157fe5b6001600160a01b0392831660209182029290920101526007546131979130911684611d59565b60075460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561321d578181015183820152602001613205565b505050509050019650505050505050600060405180830381600087803b15801561324657600080fd5b505af115801561325a573d6000803e3d6000fd5b505050505050565b60075461327a9030906001600160a01b031684611d59565b6007546001600160a01b031663f305d719823085600080613299611495565b426040518863ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506060604051808303818588803b15801561330457600080fd5b505af1158015613318573d6000803e3d6000fd5b50505050506040513d6060811015610ea257600080fdfe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737343616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20302e352554686520706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636553656c6c207472616e7366657220616d6f756e74206578636565647320746865206d61785472616e73616374696f6e416d6f756e742e45434453413a20696e76616c6964207369676e6174757265202773272076616c7565427579207472616e7366657220616d6f756e74206578636565647320746865206d61785472616e73616374696f6e416d6f756e742e5f7472616e736665723a3a205472616e736665722044656c617920656e61626c65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b20616c6c6f7765642e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74206c6f776572207468616e20302e3125a26469706673582212206ec1a5c906745bbf74eddda2845a7a6b3acda33337ba9eb6779eb89cd3cd26bf64736f6c63430007050033

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

0000000000000000000000009ef86d336a121d7fcf1a2d9bacf6362e384c0da50000000000000000000000009ef86d336a121d7fcf1a2d9bacf6362e384c0da5

-----Decoded View---------------
Arg [0] : _marketingWallet (address): 0x9ef86D336a121D7fcf1a2D9BAcF6362E384c0DA5
Arg [1] : _treasuryWallet (address): 0x9ef86D336a121D7fcf1a2D9BAcF6362E384c0DA5

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009ef86d336a121d7fcf1a2d9bacf6362e384c0da5
Arg [1] : 0000000000000000000000009ef86d336a121d7fcf1a2d9bacf6362e384c0da5


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.