ETH Price: $3,665.89 (-1.75%)

Contract

0x39586a019BC8d12B14411f6A63e374F3602B97bc
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Amount:Between 1-100k
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

Update your filters to view other transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
136456032021-11-19 12:35:161109 days ago1637325316
0x39586a01...3602B97bc
0.06 ETH
136278192021-11-16 17:08:441111 days ago1637082524
0x39586a01...3602B97bc
0.06 ETH
135431292021-11-03 9:37:111125 days ago1635932231
0x39586a01...3602B97bc
0.06 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Purchase

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-11-03
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2 ;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}
abstract contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _transferOwnership(address(0));
    }

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

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

library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

interface x22IERC721 {
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
    function tokenOfOwnerByIndex(address _address , uint256 _index) external returns(uint256);
    function balanceOf(address _address) external returns(uint256);
    function ownerOf(uint256 _tokenId) external returns(address);
    function mint(address) external;
    function batchMint(address,uint256) external; 
    function faction() external returns(string memory);
}

interface SwapPair {
    function getReserves() external view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );
}

contract Purchase is Ownable,Pausable,ReentrancyGuard {
    
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    
    SwapPair public x22_eth_Pair;
    
    x22IERC721 public nft;
    IERC20 public x22;
    
    address payable public treasurerAddress;
    
    uint256 public constant DENOMINATOR = 10000;
    
    uint256 public maxTokenForOneSaleTransaction;
    uint256 public discount;
    uint256 public priceInETH;
    uint256 public priceInX22;

    bool public isDiscount;

    event BuyNFTforETH(address _buyer,uint256 _amount,uint256 _numberOfToken);
    event BuyNFTforX22(address _buyer,uint256 _amount,uint256 _numberOfToken);
    event UpdateWhitelist(bool _isWhitelist);
    event UpdateIsDiscount(bool _isDiscount);
    event SetPrices(uint256 _priceInETH);
    event SetPricesX22(uint256 _priceInX22);
    event SetDiscount(uint256 _discount);
    event SetTokensLimit(uint256 _normalSale);
    
    modifier validTokensAmount(uint256 _numberOfToken){
        require(_numberOfToken <= maxTokenForOneSaleTransaction,"Purchase: enter valid token amount for normal sale");
        _;
    }

    constructor(address _nft,address _x22,address _pair) public {
        require(_nft != address(0));
        require(_x22 != address(0));
        nft = x22IERC721(_nft);
        x22 = IERC20(_x22);
        x22_eth_Pair = SwapPair(_pair);
        priceInETH = 60000000000000000;
        priceInX22 = 100000000000000000000;
        discount = 5000;
        maxTokenForOneSaleTransaction = 20;
        _pause();
    }
    
    function setTokensLimit(uint256 _normalSale) public onlyOwner(){
        maxTokenForOneSaleTransaction = _normalSale;
        emit SetTokensLimit(maxTokenForOneSaleTransaction);
    }

    function updateIsDiscount(bool _isDiscount) public onlyOwner(){
        isDiscount = _isDiscount;
        emit UpdateIsDiscount(isDiscount);
    }
    
    function setPrices(uint256 _priceInETH) public onlyOwner() {
        require(_priceInETH > 0 ,"Purchase: Price must be greater than zero");
        priceInETH = _priceInETH;
        emit SetPrices(_priceInETH);
    }

    function setPricesX22(uint256 _priceInX22) public onlyOwner() {
        require(_priceInX22 > 0 ,"Purchase: Price must be greater than zero");
        priceInX22 = _priceInX22;
        emit SetPricesX22(_priceInX22);
    }
    
    function setDiscount(uint _discount) public onlyOwner(){
        require(_discount > 0 && _discount <= DENOMINATOR,"Purchase: Discount in not valid ");
        discount = _discount;
        emit SetDiscount(discount);
    }
    
    function setTreasurerAddress(address payable _treasurerAddress) public onlyOwner(){
        require(_treasurerAddress != address(0),"Purchase: _treasurerAddress not be zero address");
        treasurerAddress = _treasurerAddress ;
    }

    function batchNFTCreate(address[] memory _addresses) public onlyOwner(){
        require(_addresses.length != 0,"Purchase: use Valid addresses array ");
        for (uint256 i = 0; i < _addresses.length; i++) {
            nft.mint(_addresses[i]);
        }
    }

    function pause() public onlyOwner(){
        _pause();
    }
    
    function unpause() public onlyOwner(){
        _unpause();
    }
    
    
    function buyWithETH(uint256 _numberOfToken) public payable nonReentrant() validTokensAmount(_numberOfToken) whenNotPaused(){
        require (_numberOfToken > 0 ,"Purchase: _numberOfToken must be greater than zero");
        require(msg.value >= priceInETH.mul(_numberOfToken),"Purchase: amount of ETH must be equal to token price" ); 
        uint256 extraAmount = msg.value.sub(priceInETH.mul(_numberOfToken));
        if(_safeTransferETH(treasurerAddress,priceInETH.mul(_numberOfToken))){
            nft.batchMint(msg.sender,_numberOfToken);    
        }
        _safeTransferETH(msg.sender,extraAmount);
        emit BuyNFTforETH(msg.sender,priceInETH.mul(_numberOfToken),_numberOfToken);
    }
    
    function buyWithX22(uint256 amount,uint256 _numberOfToken) public nonReentrant() validTokensAmount(_numberOfToken) whenNotPaused(){
        require (_numberOfToken > 0 ,"Purchase: _numberOfToken must be greater than zero");
        uint256 _amount;
        if(isDiscount){
            _amount = amountToPay().mul(_numberOfToken);
            require(amount >= _amount.mul(9500).div(DENOMINATOR), "Purchase: amount of x22 must be equal to token price");
        }
        else{
            _amount = priceInX22.mul(_numberOfToken);
            require(amount >= _amount, "Purchase: amount of x22 must be equal to token price");
        }
        x22.transferFrom(msg.sender, treasurerAddress, _amount);
        nft.batchMint(msg.sender,_numberOfToken);
        emit BuyNFTforX22(msg.sender,_amount,_numberOfToken);
    }
    
    function amountToPay() public view returns(uint256) {
        uint256 temp = priceInETH.mul(DENOMINATOR.sub(discount)).div(DENOMINATOR);
        return getPriceInx22(temp);
    }
    
    function getPriceInx22(uint256 _amount) public view returns(uint256){
        (uint256 reserve0,uint256 reserve1,) = x22_eth_Pair.getReserves();
        uint256 temp = reserve0.mul(10**18).div(reserve1);
        return temp.mul(_amount).div(10**18);
    }
    
    function _safeTransferETH(address to, uint256 value) internal returns (bool) {
        (bool success, ) = to.call{value: value}(new bytes(0));
        return success;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"address","name":"_x22","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_numberOfToken","type":"uint256"}],"name":"BuyNFTforETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_numberOfToken","type":"uint256"}],"name":"BuyNFTforX22","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_discount","type":"uint256"}],"name":"SetDiscount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_priceInETH","type":"uint256"}],"name":"SetPrices","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_priceInX22","type":"uint256"}],"name":"SetPricesX22","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_normalSale","type":"uint256"}],"name":"SetTokensLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_isDiscount","type":"bool"}],"name":"UpdateIsDiscount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_isWhitelist","type":"bool"}],"name":"UpdateWhitelist","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountToPay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"batchNFTCreate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfToken","type":"uint256"}],"name":"buyWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_numberOfToken","type":"uint256"}],"name":"buyWithX22","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"discount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getPriceInx22","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDiscount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenForOneSaleTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nft","outputs":[{"internalType":"contract x22IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInX22","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_discount","type":"uint256"}],"name":"setDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceInETH","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceInX22","type":"uint256"}],"name":"setPricesX22","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_normalSale","type":"uint256"}],"name":"setTokensLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasurerAddress","type":"address"}],"name":"setTreasurerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasurerAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isDiscount","type":"bool"}],"name":"updateIsDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"x22","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"x22_eth_Pair","outputs":[{"internalType":"contract SwapPair","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162001b1b38038062001b1b8339810160408190526200003491620001ff565b6200004862000042620000f4565b620000f8565b6000805460ff60a01b19169055600180556001600160a01b0383166200006d57600080fd5b6001600160a01b0382166200008157600080fd5b600380546001600160a01b038086166001600160a01b03199283161790925560048054858416908316179055600280549284169290911691909117905566d529ae9e86000060085568056bc75e2d631000006009556113886007556014600655620000eb62000148565b50505062000286565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000152620001d2565b156200017b5760405162461bcd60e51b815260040162000172906200025c565b60405180910390fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001b9620000f4565b604051620001c8919062000248565b60405180910390a1565b600054600160a01b900460ff1690565b80516001600160a01b0381168114620001fa57600080fd5b919050565b60008060006060848603121562000214578283fd5b6200021f84620001e2565b92506200022f60208501620001e2565b91506200023f60408501620001e2565b90509250925092565b6001600160a01b0391909116815260200190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b61188580620002966000396000f3fe60806040526004361061019c5760003560e01c8063715018a6116100ec578063a351f75a1161008a578063d7a75ef611610064578063d7a75ef614610401578063dabd271914610416578063f2fde38b14610436578063fc3266df146104565761019c565b8063a351f75a146103a1578063b1f5b6da146103c1578063d4ca9ff7146103e15761019c565b80638da5cb5b116100c65780638da5cb5b14610344578063918f86741461035957806394dc9cf31461036e578063a3201daa146103815761019c565b8063715018a6146103055780637ba136801461031a5780638456cb591461032f5761019c565b806347ccca02116101595780636b34a45a116101335780636b34a45a146102a65780636b6f4a9d146102bb5780636bc3d2b8146102d05780636e0967ed146102e55761019c565b806347ccca021461025a5780634e1402741461026f5780635c975abb146102915761019c565b8063042df522146101a157806310d3ae71146101cc5780632f66125a146101ee5780632f7f11751461020e5780633a536a4b146102305780633f4ba83a14610245575b600080fd5b3480156101ad57600080fd5b506101b6610476565b6040516101c391906113a2565b60405180910390f35b3480156101d857600080fd5b506101ec6101e7366004611348565b610485565b005b3480156101fa57600080fd5b506101ec6102093660046112aa565b6106df565b34801561021a57600080fd5b5061022361076d565b6040516101c39190611786565b34801561023c57600080fd5b50610223610773565b34801561025157600080fd5b506101ec610779565b34801561026657600080fd5b506101b66107c2565b34801561027b57600080fd5b506102846107d1565b6040516101c39190611414565b34801561029d57600080fd5b506102846107da565b3480156102b257600080fd5b506101b66107ea565b3480156102c757600080fd5b506102236107f9565b3480156102dc57600080fd5b506101b66107ff565b3480156102f157600080fd5b506101ec6103003660046111e9565b61080e565b34801561031157600080fd5b506101ec61091b565b34801561032657600080fd5b50610223610964565b34801561033b57600080fd5b506101ec6109a1565b34801561035057600080fd5b506101b66109e8565b34801561036557600080fd5b506102236109f7565b6101ec61037c366004611330565b6109fd565b34801561038d57600080fd5b506101ec61039c366004611330565b610bd0565b3480156103ad57600080fd5b506101ec6103bc3660046111cd565b610c64565b3480156103cd57600080fd5b506101ec6103dc366004611330565b610ceb565b3480156103ed57600080fd5b506101ec6103fc366004611330565b610d5f565b34801561040d57600080fd5b50610223610df3565b34801561042257600080fd5b506101ec610431366004611330565b610df9565b34801561044257600080fd5b506101ec6104513660046111cd565b610e9b565b34801561046257600080fd5b50610223610471366004611330565b610f0c565b6002546001600160a01b031681565b600260015414156104b15760405162461bcd60e51b81526004016104a890611700565b60405180910390fd5b600260015560065481908111156104da5760405162461bcd60e51b81526004016104a8906116ae565b6104e26107da565b156104ff5760405162461bcd60e51b81526004016104a8906115fb565b6000821161051f5760405162461bcd60e51b81526004016104a890611511565b600a5460009060ff161561057d5761053f83610539610964565b90610fe3565b90506105596127106105538361251c610fe3565b90610ff6565b8410156105785760405162461bcd60e51b81526004016104a89061165a565b6105ac565b60095461058a9084610fe3565b9050808410156105ac5760405162461bcd60e51b81526004016104a89061165a565b600480546005546040516323b872dd60e01b81526001600160a01b03928316936323b872dd936105e39333939116918791016113b6565b602060405180830381600087803b1580156105fd57600080fd5b505af1158015610611573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063591906112c6565b506003546040516343508b0560e01b81526001600160a01b03909116906343508b059061066890339087906004016113da565b600060405180830381600087803b15801561068257600080fd5b505af1158015610696573d6000803e3d6000fd5b505050507fc0a7001798ac9025c43cea953af9335c459462a9dbeae32048e424b39b3ee9613382856040516106cd939291906113f3565b60405180910390a15050600180555050565b6106e7611002565b6001600160a01b03166106f86109e8565b6001600160a01b03161461071e5760405162461bcd60e51b81526004016104a890611625565b600a805460ff191682151517908190556040517f7370732a4f4dae84130d1d99c091574ac951981ba4a59cae1c803dc92bb1811a916107629160ff90911690611414565b60405180910390a150565b60085481565b60095481565b610781611002565b6001600160a01b03166107926109e8565b6001600160a01b0316146107b85760405162461bcd60e51b81526004016104a890611625565b6107c0611006565b565b6003546001600160a01b031681565b600a5460ff1681565b600054600160a01b900460ff1690565b6005546001600160a01b031681565b60075481565b6004546001600160a01b031681565b610816611002565b6001600160a01b03166108276109e8565b6001600160a01b03161461084d5760405162461bcd60e51b81526004016104a890611625565b805161086b5760405162461bcd60e51b81526004016104a8906115b7565b60005b81518110156109175760035482516001600160a01b0390911690636a627842908490849081106108ae57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016108d291906113a2565b600060405180830381600087803b1580156108ec57600080fd5b505af1158015610900573d6000803e3d6000fd5b50505050808061090f906117e5565b91505061086e565b5050565b610923611002565b6001600160a01b03166109346109e8565b6001600160a01b03161461095a5760405162461bcd60e51b81526004016104a890611625565b6107c06000611077565b6000806109906127106105536109876007546127106110c790919063ffffffff16565b60085490610fe3565b905061099b81610f0c565b91505090565b6109a9611002565b6001600160a01b03166109ba6109e8565b6001600160a01b0316146109e05760405162461bcd60e51b81526004016104a890611625565b6107c06110d3565b6000546001600160a01b031690565b61271081565b60026001541415610a205760405162461bcd60e51b81526004016104a890611700565b60026001556006548190811115610a495760405162461bcd60e51b81526004016104a8906116ae565b610a516107da565b15610a6e5760405162461bcd60e51b81526004016104a8906115fb565b60008211610a8e5760405162461bcd60e51b81526004016104a890611511565b600854610a9b9083610fe3565b341015610aba5760405162461bcd60e51b81526004016104a890611563565b6000610adb610ad484600854610fe390919063ffffffff16565b34906110c7565b600554600854919250610b03916001600160a01b0390911690610afe9086610fe3565b611134565b15610b6d576003546040516343508b0560e01b81526001600160a01b03909116906343508b0590610b3a90339087906004016113da565b600060405180830381600087803b158015610b5457600080fd5b505af1158015610b68573d6000803e3d6000fd5b505050505b610b773382611134565b507f13a331e29c4aa2707513fb26e1e4b237f68f6ad1024e2633dd1d8bcb9ede898233610baf85600854610fe390919063ffffffff16565b85604051610bbf939291906113f3565b60405180910390a150506001805550565b610bd8611002565b6001600160a01b0316610be96109e8565b6001600160a01b031614610c0f5760405162461bcd60e51b81526004016104a890611625565b60008111610c2f5760405162461bcd60e51b81526004016104a8906114c8565b60088190556040517facf812fbea101046c23dc98f3bf6aac759ebfe061237f1c28bcd8a5e9968838690610762908390611786565b610c6c611002565b6001600160a01b0316610c7d6109e8565b6001600160a01b031614610ca35760405162461bcd60e51b81526004016104a890611625565b6001600160a01b038116610cc95760405162461bcd60e51b81526004016104a890611737565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610cf3611002565b6001600160a01b0316610d046109e8565b6001600160a01b031614610d2a5760405162461bcd60e51b81526004016104a890611625565b60068190556040517fcf03ddfc12f33c0cd59f3cc72d0289c56833d2470d5ac63e092010c02660e63f90610762908390611786565b610d67611002565b6001600160a01b0316610d786109e8565b6001600160a01b031614610d9e5760405162461bcd60e51b81526004016104a890611625565b60008111610dbe5760405162461bcd60e51b81526004016104a8906114c8565b60098190556040517f9ee2196faf7d0829d67bba5bfe531240ddf20c2d4ad4f7cc7d4e2013675f057990610762908390611786565b60065481565b610e01611002565b6001600160a01b0316610e126109e8565b6001600160a01b031614610e385760405162461bcd60e51b81526004016104a890611625565b600081118015610e4a57506127108111155b610e665760405162461bcd60e51b81526004016104a89061141f565b60078190556040517ff247e4dd947ab13ba6c46412e403447a26e67109ba13945a20e3170e9acef88390610762908390611786565b610ea3611002565b6001600160a01b0316610eb46109e8565b6001600160a01b031614610eda5760405162461bcd60e51b81526004016104a890611625565b6001600160a01b038116610f005760405162461bcd60e51b81526004016104a890611482565b610f0981611077565b50565b6000806000600260009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610f5f57600080fd5b505afa158015610f73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9791906112e2565b506001600160701b0391821693501690506000610fc08261055385670de0b6b3a7640000610fe3565b9050610fd8670de0b6b3a76400006105538388610fe3565b93505050505b919050565b6000610fef82846117af565b9392505050565b6000610fef828461178f565b3390565b61100e6107da565b61102a5760405162461bcd60e51b81526004016104a890611454565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611060611002565b60405161106d91906113a2565b60405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610fef82846117ce565b6110db6107da565b156110f85760405162461bcd60e51b81526004016104a8906115fb565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611060611002565b60408051600080825260208201928390529182916001600160a01b03861691859161115e91611369565b60006040518083038185875af1925050503d806000811461119b576040519150601f19603f3d011682016040523d82523d6000602084013e6111a0565b606091505b509095945050505050565b8035610fde8161182c565b80516001600160701b0381168114610fde57600080fd5b6000602082840312156111de578081fd5b8135610fef8161182c565b600060208083850312156111fb578182fd5b823567ffffffffffffffff80821115611212578384fd5b818501915085601f830112611225578384fd5b81358181111561123757611237611816565b8381026040518582820101818110858211171561125657611256611816565b604052828152858101935084860182860187018a1015611274578788fd5b8795505b8386101561129d57611289816111ab565b855260019590950194938601938601611278565b5098975050505050505050565b6000602082840312156112bb578081fd5b8135610fef81611841565b6000602082840312156112d7578081fd5b8151610fef81611841565b6000806000606084860312156112f6578182fd5b6112ff846111b6565b925061130d602085016111b6565b9150604084015163ffffffff81168114611325578182fd5b809150509250925092565b600060208284031215611341578081fd5b5035919050565b6000806040838503121561135a578182fd5b50508035926020909101359150565b60008251815b81811015611389576020818601810151858301520161136f565b818111156113975782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b6020808252818101527f50757263686173653a20446973636f756e7420696e206e6f742076616c696420604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526029908201527f50757263686173653a205072696365206d7573742062652067726561746572206040820152687468616e207a65726f60b81b606082015260800190565b60208082526032908201527f50757263686173653a205f6e756d6265724f66546f6b656e206d7573742062656040820152712067726561746572207468616e207a65726f60701b606082015260800190565b60208082526034908201527f50757263686173653a20616d6f756e74206f6620455448206d75737420626520604082015273657175616c20746f20746f6b656e20707269636560601b606082015260800190565b60208082526024908201527f50757263686173653a207573652056616c69642061646472657373657320617260408201526303930bc960e51b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526034908201527f50757263686173653a20616d6f756e74206f6620783232206d75737420626520604082015273657175616c20746f20746f6b656e20707269636560601b606082015260800190565b60208082526032908201527f50757263686173653a20656e7465722076616c696420746f6b656e20616d6f756040820152716e7420666f72206e6f726d616c2073616c6560701b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602f908201527f50757263686173653a205f74726561737572657241646472657373206e6f742060408201526e6265207a65726f206164647265737360881b606082015260800190565b90815260200190565b6000826117aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156117c9576117c9611800565b500290565b6000828210156117e0576117e0611800565b500390565b60006000198214156117f9576117f9611800565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f0957600080fd5b8015158114610f0957600080fdfea2646970667358221220220c4f5417b8bf62b43950116b4f2aefe062ba952b3779e80cb3a38f6b968eaf64736f6c63430008000033000000000000000000000000ae6a07ad57ccde4ff2faeb25330c5d80e9e18c4500000000000000000000000041045282901e90bda7578d628e479e5421d1cdd50000000000000000000000008635c7d895711abf4c8a0eb5e2cc54b30b90bd8a

Deployed Bytecode

0x60806040526004361061019c5760003560e01c8063715018a6116100ec578063a351f75a1161008a578063d7a75ef611610064578063d7a75ef614610401578063dabd271914610416578063f2fde38b14610436578063fc3266df146104565761019c565b8063a351f75a146103a1578063b1f5b6da146103c1578063d4ca9ff7146103e15761019c565b80638da5cb5b116100c65780638da5cb5b14610344578063918f86741461035957806394dc9cf31461036e578063a3201daa146103815761019c565b8063715018a6146103055780637ba136801461031a5780638456cb591461032f5761019c565b806347ccca02116101595780636b34a45a116101335780636b34a45a146102a65780636b6f4a9d146102bb5780636bc3d2b8146102d05780636e0967ed146102e55761019c565b806347ccca021461025a5780634e1402741461026f5780635c975abb146102915761019c565b8063042df522146101a157806310d3ae71146101cc5780632f66125a146101ee5780632f7f11751461020e5780633a536a4b146102305780633f4ba83a14610245575b600080fd5b3480156101ad57600080fd5b506101b6610476565b6040516101c391906113a2565b60405180910390f35b3480156101d857600080fd5b506101ec6101e7366004611348565b610485565b005b3480156101fa57600080fd5b506101ec6102093660046112aa565b6106df565b34801561021a57600080fd5b5061022361076d565b6040516101c39190611786565b34801561023c57600080fd5b50610223610773565b34801561025157600080fd5b506101ec610779565b34801561026657600080fd5b506101b66107c2565b34801561027b57600080fd5b506102846107d1565b6040516101c39190611414565b34801561029d57600080fd5b506102846107da565b3480156102b257600080fd5b506101b66107ea565b3480156102c757600080fd5b506102236107f9565b3480156102dc57600080fd5b506101b66107ff565b3480156102f157600080fd5b506101ec6103003660046111e9565b61080e565b34801561031157600080fd5b506101ec61091b565b34801561032657600080fd5b50610223610964565b34801561033b57600080fd5b506101ec6109a1565b34801561035057600080fd5b506101b66109e8565b34801561036557600080fd5b506102236109f7565b6101ec61037c366004611330565b6109fd565b34801561038d57600080fd5b506101ec61039c366004611330565b610bd0565b3480156103ad57600080fd5b506101ec6103bc3660046111cd565b610c64565b3480156103cd57600080fd5b506101ec6103dc366004611330565b610ceb565b3480156103ed57600080fd5b506101ec6103fc366004611330565b610d5f565b34801561040d57600080fd5b50610223610df3565b34801561042257600080fd5b506101ec610431366004611330565b610df9565b34801561044257600080fd5b506101ec6104513660046111cd565b610e9b565b34801561046257600080fd5b50610223610471366004611330565b610f0c565b6002546001600160a01b031681565b600260015414156104b15760405162461bcd60e51b81526004016104a890611700565b60405180910390fd5b600260015560065481908111156104da5760405162461bcd60e51b81526004016104a8906116ae565b6104e26107da565b156104ff5760405162461bcd60e51b81526004016104a8906115fb565b6000821161051f5760405162461bcd60e51b81526004016104a890611511565b600a5460009060ff161561057d5761053f83610539610964565b90610fe3565b90506105596127106105538361251c610fe3565b90610ff6565b8410156105785760405162461bcd60e51b81526004016104a89061165a565b6105ac565b60095461058a9084610fe3565b9050808410156105ac5760405162461bcd60e51b81526004016104a89061165a565b600480546005546040516323b872dd60e01b81526001600160a01b03928316936323b872dd936105e39333939116918791016113b6565b602060405180830381600087803b1580156105fd57600080fd5b505af1158015610611573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063591906112c6565b506003546040516343508b0560e01b81526001600160a01b03909116906343508b059061066890339087906004016113da565b600060405180830381600087803b15801561068257600080fd5b505af1158015610696573d6000803e3d6000fd5b505050507fc0a7001798ac9025c43cea953af9335c459462a9dbeae32048e424b39b3ee9613382856040516106cd939291906113f3565b60405180910390a15050600180555050565b6106e7611002565b6001600160a01b03166106f86109e8565b6001600160a01b03161461071e5760405162461bcd60e51b81526004016104a890611625565b600a805460ff191682151517908190556040517f7370732a4f4dae84130d1d99c091574ac951981ba4a59cae1c803dc92bb1811a916107629160ff90911690611414565b60405180910390a150565b60085481565b60095481565b610781611002565b6001600160a01b03166107926109e8565b6001600160a01b0316146107b85760405162461bcd60e51b81526004016104a890611625565b6107c0611006565b565b6003546001600160a01b031681565b600a5460ff1681565b600054600160a01b900460ff1690565b6005546001600160a01b031681565b60075481565b6004546001600160a01b031681565b610816611002565b6001600160a01b03166108276109e8565b6001600160a01b03161461084d5760405162461bcd60e51b81526004016104a890611625565b805161086b5760405162461bcd60e51b81526004016104a8906115b7565b60005b81518110156109175760035482516001600160a01b0390911690636a627842908490849081106108ae57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016108d291906113a2565b600060405180830381600087803b1580156108ec57600080fd5b505af1158015610900573d6000803e3d6000fd5b50505050808061090f906117e5565b91505061086e565b5050565b610923611002565b6001600160a01b03166109346109e8565b6001600160a01b03161461095a5760405162461bcd60e51b81526004016104a890611625565b6107c06000611077565b6000806109906127106105536109876007546127106110c790919063ffffffff16565b60085490610fe3565b905061099b81610f0c565b91505090565b6109a9611002565b6001600160a01b03166109ba6109e8565b6001600160a01b0316146109e05760405162461bcd60e51b81526004016104a890611625565b6107c06110d3565b6000546001600160a01b031690565b61271081565b60026001541415610a205760405162461bcd60e51b81526004016104a890611700565b60026001556006548190811115610a495760405162461bcd60e51b81526004016104a8906116ae565b610a516107da565b15610a6e5760405162461bcd60e51b81526004016104a8906115fb565b60008211610a8e5760405162461bcd60e51b81526004016104a890611511565b600854610a9b9083610fe3565b341015610aba5760405162461bcd60e51b81526004016104a890611563565b6000610adb610ad484600854610fe390919063ffffffff16565b34906110c7565b600554600854919250610b03916001600160a01b0390911690610afe9086610fe3565b611134565b15610b6d576003546040516343508b0560e01b81526001600160a01b03909116906343508b0590610b3a90339087906004016113da565b600060405180830381600087803b158015610b5457600080fd5b505af1158015610b68573d6000803e3d6000fd5b505050505b610b773382611134565b507f13a331e29c4aa2707513fb26e1e4b237f68f6ad1024e2633dd1d8bcb9ede898233610baf85600854610fe390919063ffffffff16565b85604051610bbf939291906113f3565b60405180910390a150506001805550565b610bd8611002565b6001600160a01b0316610be96109e8565b6001600160a01b031614610c0f5760405162461bcd60e51b81526004016104a890611625565b60008111610c2f5760405162461bcd60e51b81526004016104a8906114c8565b60088190556040517facf812fbea101046c23dc98f3bf6aac759ebfe061237f1c28bcd8a5e9968838690610762908390611786565b610c6c611002565b6001600160a01b0316610c7d6109e8565b6001600160a01b031614610ca35760405162461bcd60e51b81526004016104a890611625565b6001600160a01b038116610cc95760405162461bcd60e51b81526004016104a890611737565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610cf3611002565b6001600160a01b0316610d046109e8565b6001600160a01b031614610d2a5760405162461bcd60e51b81526004016104a890611625565b60068190556040517fcf03ddfc12f33c0cd59f3cc72d0289c56833d2470d5ac63e092010c02660e63f90610762908390611786565b610d67611002565b6001600160a01b0316610d786109e8565b6001600160a01b031614610d9e5760405162461bcd60e51b81526004016104a890611625565b60008111610dbe5760405162461bcd60e51b81526004016104a8906114c8565b60098190556040517f9ee2196faf7d0829d67bba5bfe531240ddf20c2d4ad4f7cc7d4e2013675f057990610762908390611786565b60065481565b610e01611002565b6001600160a01b0316610e126109e8565b6001600160a01b031614610e385760405162461bcd60e51b81526004016104a890611625565b600081118015610e4a57506127108111155b610e665760405162461bcd60e51b81526004016104a89061141f565b60078190556040517ff247e4dd947ab13ba6c46412e403447a26e67109ba13945a20e3170e9acef88390610762908390611786565b610ea3611002565b6001600160a01b0316610eb46109e8565b6001600160a01b031614610eda5760405162461bcd60e51b81526004016104a890611625565b6001600160a01b038116610f005760405162461bcd60e51b81526004016104a890611482565b610f0981611077565b50565b6000806000600260009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610f5f57600080fd5b505afa158015610f73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9791906112e2565b506001600160701b0391821693501690506000610fc08261055385670de0b6b3a7640000610fe3565b9050610fd8670de0b6b3a76400006105538388610fe3565b93505050505b919050565b6000610fef82846117af565b9392505050565b6000610fef828461178f565b3390565b61100e6107da565b61102a5760405162461bcd60e51b81526004016104a890611454565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611060611002565b60405161106d91906113a2565b60405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610fef82846117ce565b6110db6107da565b156110f85760405162461bcd60e51b81526004016104a8906115fb565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611060611002565b60408051600080825260208201928390529182916001600160a01b03861691859161115e91611369565b60006040518083038185875af1925050503d806000811461119b576040519150601f19603f3d011682016040523d82523d6000602084013e6111a0565b606091505b509095945050505050565b8035610fde8161182c565b80516001600160701b0381168114610fde57600080fd5b6000602082840312156111de578081fd5b8135610fef8161182c565b600060208083850312156111fb578182fd5b823567ffffffffffffffff80821115611212578384fd5b818501915085601f830112611225578384fd5b81358181111561123757611237611816565b8381026040518582820101818110858211171561125657611256611816565b604052828152858101935084860182860187018a1015611274578788fd5b8795505b8386101561129d57611289816111ab565b855260019590950194938601938601611278565b5098975050505050505050565b6000602082840312156112bb578081fd5b8135610fef81611841565b6000602082840312156112d7578081fd5b8151610fef81611841565b6000806000606084860312156112f6578182fd5b6112ff846111b6565b925061130d602085016111b6565b9150604084015163ffffffff81168114611325578182fd5b809150509250925092565b600060208284031215611341578081fd5b5035919050565b6000806040838503121561135a578182fd5b50508035926020909101359150565b60008251815b81811015611389576020818601810151858301520161136f565b818111156113975782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b6020808252818101527f50757263686173653a20446973636f756e7420696e206e6f742076616c696420604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526029908201527f50757263686173653a205072696365206d7573742062652067726561746572206040820152687468616e207a65726f60b81b606082015260800190565b60208082526032908201527f50757263686173653a205f6e756d6265724f66546f6b656e206d7573742062656040820152712067726561746572207468616e207a65726f60701b606082015260800190565b60208082526034908201527f50757263686173653a20616d6f756e74206f6620455448206d75737420626520604082015273657175616c20746f20746f6b656e20707269636560601b606082015260800190565b60208082526024908201527f50757263686173653a207573652056616c69642061646472657373657320617260408201526303930bc960e51b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526034908201527f50757263686173653a20616d6f756e74206f6620783232206d75737420626520604082015273657175616c20746f20746f6b656e20707269636560601b606082015260800190565b60208082526032908201527f50757263686173653a20656e7465722076616c696420746f6b656e20616d6f756040820152716e7420666f72206e6f726d616c2073616c6560701b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602f908201527f50757263686173653a205f74726561737572657241646472657373206e6f742060408201526e6265207a65726f206164647265737360881b606082015260800190565b90815260200190565b6000826117aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156117c9576117c9611800565b500290565b6000828210156117e0576117e0611800565b500390565b60006000198214156117f9576117f9611800565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f0957600080fd5b8015158114610f0957600080fdfea2646970667358221220220c4f5417b8bf62b43950116b4f2aefe062ba952b3779e80cb3a38f6b968eaf64736f6c63430008000033

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

000000000000000000000000ae6a07ad57ccde4ff2faeb25330c5d80e9e18c4500000000000000000000000041045282901e90bda7578d628e479e5421d1cdd50000000000000000000000008635c7d895711abf4c8a0eb5e2cc54b30b90bd8a

-----Decoded View---------------
Arg [0] : _nft (address): 0xae6A07AD57cCDE4fF2faeb25330c5D80E9E18c45
Arg [1] : _x22 (address): 0x41045282901E90BDa7578D628e479E5421D1cDD5
Arg [2] : _pair (address): 0x8635c7D895711abf4c8A0eb5e2cC54b30B90BD8A

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000ae6a07ad57ccde4ff2faeb25330c5d80e9e18c45
Arg [1] : 00000000000000000000000041045282901e90bda7578d628e479e5421d1cdd5
Arg [2] : 0000000000000000000000008635c7d895711abf4c8a0eb5e2cc54b30b90bd8a


Deployed Bytecode Sourcemap

26946:5546:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27085:28;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;31005:833;;;;;;;;;;-1:-1:-1;31005:833:0;;;;;:::i;:::-;;:::i;:::-;;28737:149;;;;;;;;;;-1:-1:-1;28737:149:0;;;;;:::i;:::-;;:::i;27373:25::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;27405:::-;;;;;;;;;;;;;:::i;30200:66::-;;;;;;;;;;;;;:::i;27126:21::-;;;;;;;;;;;;;:::i;27439:22::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;875:86::-;;;;;;;;;;;;;:::i;27184:39::-;;;;;;;;;;;;;:::i;27343:23::-;;;;;;;;;;;;;:::i;27154:17::-;;;;;;;;;;;;;:::i;29850:268::-;;;;;;;;;;-1:-1:-1;29850:268:0;;;;;:::i;:::-;;:::i;3122:103::-;;;;;;;;;;;;;:::i;31850:181::-;;;;;;;;;;;;;:::i;30126:62::-;;;;;;;;;;;;;:::i;2471:87::-;;;;;;;;;;;;;:::i;27236:43::-;;;;;;;;;;;;;:::i;30284:709::-;;;;;;:::i;:::-;;:::i;28898:220::-;;;;;;;;;;-1:-1:-1;28898:220:0;;;;;:::i;:::-;;:::i;29603:239::-;;;;;;;;;;-1:-1:-1;29603:239:0;;;;;:::i;:::-;;:::i;28543:186::-;;;;;;;;;;-1:-1:-1;28543:186:0;;;;;:::i;:::-;;:::i;29126:226::-;;;;;;;;;;-1:-1:-1;29126:226:0;;;;;:::i;:::-;;:::i;27292:44::-;;;;;;;;;;;;;:::i;29364:227::-;;;;;;;;;;-1:-1:-1;29364:227:0;;;;;:::i;:::-;;:::i;3380:201::-;;;;;;;;;;-1:-1:-1;3380:201:0;;;;;:::i;:::-;;:::i;32043:259::-;;;;;;;;;;-1:-1:-1;32043:259:0;;;;;:::i;:::-;;:::i;27085:28::-;;;-1:-1:-1;;;;;27085:28:0;;:::o;31005:833::-;25308:1;25904:7;;:19;;25896:63;;;;-1:-1:-1;;;25896:63:0;;;;;;;:::i;:::-;;;;;;;;;25308:1;26037:7;:18;27997:29:::1;::::0;31104:14;;27979:47;::::1;;27971:109;;;;-1:-1:-1::0;;;27971:109:0::1;;;;;;;:::i;:::-;1201:8:::2;:6;:8::i;:::-;1200:9;1192:38;;;;-1:-1:-1::0;;;1192:38:0::2;;;;;;;:::i;:::-;31172:1:::3;31155:14;:18;31146:82;;;;-1:-1:-1::0;;;31146:82:0::3;;;;;;;:::i;:::-;31268:10;::::0;31239:15:::3;::::0;31268:10:::3;;31265:386;;;31304:33;31322:14;31304:13;:11;:13::i;:::-;:17:::0;::::3;:33::i;:::-;31294:43:::0;-1:-1:-1;31370:34:0::3;27274:5;31370:17;31294:43:::0;31382:4:::3;31370:11;:17::i;:::-;:21:::0;::::3;:34::i;:::-;31360:6;:44;;31352:109;;;;-1:-1:-1::0;;;31352:109:0::3;;;;;;;:::i;:::-;31265:386;;;31512:10;::::0;:30:::3;::::0;31527:14;31512::::3;:30::i;:::-;31502:40;;31575:7;31565:6;:17;;31557:82;;;;-1:-1:-1::0;;;31557:82:0::3;;;;;;;:::i;:::-;31661:3;::::0;;31690:16:::3;::::0;31661:55:::3;::::0;-1:-1:-1;;;31661:55:0;;-1:-1:-1;;;;;31661:3:0;;::::3;::::0;:16:::3;::::0;:55:::3;::::0;31678:10:::3;::::0;31690:16;::::3;::::0;31708:7;;31661:55:::3;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;31727:3:0::3;::::0;:40:::3;::::0;-1:-1:-1;;;31727:40:0;;-1:-1:-1;;;;;31727:3:0;;::::3;::::0;:13:::3;::::0;:40:::3;::::0;31741:10:::3;::::0;31752:14;;31727:40:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;31783:47;31796:10;31807:7;31815:14;31783:47;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;25264:1:0;26216:22;;-1:-1:-1;;31005:833:0:o;28737:149::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;28810:10:::1;:24:::0;;-1:-1:-1;;28810:24:0::1;::::0;::::1;;;::::0;;;;28850:28:::1;::::0;::::1;::::0;::::1;::::0;28810:24:::1;28867:10:::0;;::::1;::::0;28850:28:::1;:::i;:::-;;;;;;;;28737:149:::0;:::o;27373:25::-;;;;:::o;27405:::-;;;;:::o;30200:66::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;30248:10:::1;:8;:10::i;:::-;30200:66::o:0;27126:21::-;;;-1:-1:-1;;;;;27126:21:0;;:::o;27439:22::-;;;;;;:::o;875:86::-;922:4;946:7;-1:-1:-1;;;946:7:0;;;;;875:86::o;27184:39::-;;;-1:-1:-1;;;;;27184:39:0;;:::o;27343:23::-;;;;:::o;27154:17::-;;;-1:-1:-1;;;;;27154:17:0;;:::o;29850:268::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;29940:17;;29932:70:::1;;;;-1:-1:-1::0;;;29932:70:0::1;;;;;;;:::i;:::-;30018:9;30013:98;30037:10;:17;30033:1;:21;30013:98;;;30076:3;::::0;30085:13;;-1:-1:-1;;;;;30076:3:0;;::::1;::::0;:8:::1;::::0;30085:10;;30096:1;;30085:13;::::1;;;-1:-1:-1::0;;;30085:13:0::1;;;;;;;;;;;;;;;30076:23;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;30056:3;;;;;:::i;:::-;;;;30013:98;;;;29850:268:::0;:::o;3122:103::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;3187:30:::1;3214:1;3187:18;:30::i;31850:181::-:0;31893:7;31913:12;31928:58;27274:5;31928:41;31943:25;31959:8;;27274:5;31943:15;;:25;;;;:::i;:::-;31928:10;;;:14;:41::i;:58::-;31913:73;;32004:19;32018:4;32004:13;:19::i;:::-;31997:26;;;31850:181;:::o;30126:62::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;30172:8:::1;:6;:8::i;2471:87::-:0;2517:7;2544:6;-1:-1:-1;;;;;2544:6:0;2471:87;:::o;27236:43::-;27274:5;27236:43;:::o;30284:709::-;25308:1;25904:7;;:19;;25896:63;;;;-1:-1:-1;;;25896:63:0;;;;;;;:::i;:::-;25308:1;26037:7;:18;27997:29:::1;::::0;30376:14;;27979:47;::::1;;27971:109;;;;-1:-1:-1::0;;;27971:109:0::1;;;;;;;:::i;:::-;1201:8:::2;:6;:8::i;:::-;1200:9;1192:38;;;;-1:-1:-1::0;;;1192:38:0::2;;;;;;;:::i;:::-;30444:1:::3;30427:14;:18;30418:82;;;;-1:-1:-1::0;;;30418:82:0::3;;;;;;;:::i;:::-;30532:10;::::0;:30:::3;::::0;30547:14;30532::::3;:30::i;:::-;30519:9;:43;;30511:108;;;;-1:-1:-1::0;;;30511:108:0::3;;;;;;;:::i;:::-;30631:19;30653:45;30667:30;30682:14;30667:10;;:14;;:30;;;;:::i;:::-;30653:9;::::0;:13:::3;:45::i;:::-;30729:16;::::0;30746:10:::3;::::0;30631:67;;-1:-1:-1;30712:65:0::3;::::0;-1:-1:-1;;;;;30729:16:0;;::::3;::::0;30746:30:::3;::::0;30761:14;30746::::3;:30::i;:::-;30712:16;:65::i;:::-;30709:140;;;30793:3;::::0;:40:::3;::::0;-1:-1:-1;;;30793:40:0;;-1:-1:-1;;;;;30793:3:0;;::::3;::::0;:13:::3;::::0;:40:::3;::::0;30807:10:::3;::::0;30818:14;;30793:40:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;30709:140;30859:40;30876:10;30887:11;30859:16;:40::i;:::-;;30915:70;30928:10;30939:30;30954:14;30939:10;;:14;;:30;;;;:::i;:::-;30970:14;30915:70;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;25264:1:0;26216:22;;-1:-1:-1;30284:709:0:o;28898:220::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;28990:1:::1;28976:11;:15;28968:69;;;;-1:-1:-1::0;;;28968:69:0::1;;;;;;;:::i;:::-;29048:10;:24:::0;;;29088:22:::1;::::0;::::1;::::0;::::1;::::0;29061:11;;29088:22:::1;:::i;29603:239::-:0;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29704:31:0;::::1;29696:90;;;;-1:-1:-1::0;;;29696:90:0::1;;;;;;;:::i;:::-;29797:16;:36:::0;;-1:-1:-1;;;;;;29797:36:0::1;-1:-1:-1::0;;;;;29797:36:0;;;::::1;::::0;;;::::1;::::0;;29603:239::o;28543:186::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;28617:29:::1;:43:::0;;;28676:45:::1;::::0;::::1;::::0;::::1;::::0;28649:11;;28676:45:::1;:::i;29126:226::-:0;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;29221:1:::1;29207:11;:15;29199:69;;;;-1:-1:-1::0;;;29199:69:0::1;;;;;;;:::i;:::-;29279:10;:24:::0;;;29319:25:::1;::::0;::::1;::::0;::::1;::::0;29292:11;;29319:25:::1;:::i;27292:44::-:0;;;;:::o;29364:227::-;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;29450:1:::1;29438:9;:13;:41;;;;;27274:5;29455:9;:24;;29438:41;29430:85;;;;-1:-1:-1::0;;;29430:85:0::1;;;;;;;:::i;:::-;29526:8;:20:::0;;;29562:21:::1;::::0;::::1;::::0;::::1;::::0;29537:9;;29562:21:::1;:::i;3380:201::-:0;2702:12;:10;:12::i;:::-;-1:-1:-1;;;;;2691:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2691:23:0;;2683:68;;;;-1:-1:-1;;;2683:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3469:22:0;::::1;3461:73;;;;-1:-1:-1::0;;;3461:73:0::1;;;;;;;:::i;:::-;3545:28;3564:8;3545:18;:28::i;:::-;3380:201:::0;:::o;32043:259::-;32103:7;32123:16;32140;32161:12;;;;;;;;;-1:-1:-1;;;;;32161:12:0;-1:-1:-1;;;;;32161:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;32122:65:0;;;;-1:-1:-1;32122:65:0;;-1:-1:-1;32198:12:0;32213:34;32122:65;32213:20;32122:65;32226:6;32213:12;:20::i;:34::-;32198:49;-1:-1:-1;32265:29:0;32287:6;32265:17;32198:49;32274:7;32265:8;:17::i;:29::-;32258:36;;;;;32043:259;;;;:::o;20997:98::-;21055:7;21082:5;21086:1;21082;:5;:::i;:::-;21075:12;20997:98;-1:-1:-1;;;20997:98:0:o;21396:::-;21454:7;21481:5;21485:1;21481;:5;:::i;129:98::-;209:10;129:98;:::o;1934:120::-;1478:8;:6;:8::i;:::-;1470:41;;;;-1:-1:-1;;;1470:41:0;;;;;;;:::i;:::-;2003:5:::1;1993:15:::0;;-1:-1:-1;;;;1993:15:0::1;::::0;;2024:22:::1;2033:12;:10;:12::i;:::-;2024:22;;;;;;:::i;:::-;;;;;;;;1934:120::o:0;3741:191::-;3815:16;3834:6;;-1:-1:-1;;;;;3851:17:0;;;-1:-1:-1;;;;;;3851:17:0;;;;;;3884:40;;3834:6;;;;;;;3884:40;;3815:16;3884:40;3741:191;;:::o;20640:98::-;20698:7;20725:5;20729:1;20725;:5;:::i;1675:118::-;1201:8;:6;:8::i;:::-;1200:9;1192:38;;;;-1:-1:-1;;;1192:38:0;;;;;;;:::i;:::-;1735:7:::1;:14:::0;;-1:-1:-1;;;;1735:14:0::1;-1:-1:-1::0;;;1735:14:0::1;::::0;;1765:20:::1;1772:12;:10;:12::i;32314:175::-:0;32443:12;;;32385:4;32443:12;;;;;;;;;;32385:4;;;-1:-1:-1;;;;;32421:7:0;;;32436:5;;32421:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32402:54:0;;32314:175;-1:-1:-1;;;;;32314:175:0:o;14:138:1:-;84:20;;113:33;84:20;113:33;:::i;157:190::-;238:13;;-1:-1:-1;;;;;280:42:1;;270:53;;260:2;;337:1;334;327:12;352:259;;464:2;452:9;443:7;439:23;435:32;432:2;;;485:6;477;470:22;432:2;529:9;516:23;548:33;575:5;548:33;:::i;888:1166::-;;1003:2;1046;1034:9;1025:7;1021:23;1017:32;1014:2;;;1067:6;1059;1052:22;1014:2;1112:9;1099:23;1141:18;1182:2;1174:6;1171:14;1168:2;;;1203:6;1195;1188:22;1168:2;1246:6;1235:9;1231:22;1221:32;;1291:7;1284:4;1280:2;1276:13;1272:27;1262:2;;1318:6;1310;1303:22;1262:2;1359;1346:16;1381:2;1377;1374:10;1371:2;;;1387:18;;:::i;:::-;1434:2;1430;1426:11;1466:2;1460:9;1517:2;1512;1504:6;1500:15;1496:24;1570:6;1558:10;1555:22;1550:2;1538:10;1535:18;1532:46;1529:2;;;1581:18;;:::i;:::-;1617:2;1610:22;1667:18;;;1701:15;;;;-1:-1:-1;1736:11:1;;;1766;;;1762:20;;1759:33;-1:-1:-1;1756:2:1;;;1810:6;1802;1795:22;1756:2;1837:6;1828:15;;1852:171;1866:2;1863:1;1860:9;1852:171;;;1923:25;1944:3;1923:25;:::i;:::-;1911:38;;1884:1;1877:9;;;;;1969:12;;;;2001;;1852:171;;;-1:-1:-1;2042:6:1;983:1071;-1:-1:-1;;;;;;;;983:1071:1:o;2059:253::-;;2168:2;2156:9;2147:7;2143:23;2139:32;2136:2;;;2189:6;2181;2174:22;2136:2;2233:9;2220:23;2252:30;2276:5;2252:30;:::i;2317:257::-;;2437:2;2425:9;2416:7;2412:23;2408:32;2405:2;;;2458:6;2450;2443:22;2405:2;2495:9;2489:16;2514:30;2538:5;2514:30;:::i;2579:474::-;;;;2735:2;2723:9;2714:7;2710:23;2706:32;2703:2;;;2756:6;2748;2741:22;2703:2;2784:42;2816:9;2784:42;:::i;:::-;2774:52;;2845:51;2892:2;2881:9;2877:18;2845:51;:::i;:::-;2835:61;;2939:2;2928:9;2924:18;2918:25;2983:10;2976:5;2972:22;2965:5;2962:33;2952:2;;3014:6;3006;2999:22;2952:2;3042:5;3032:15;;;2693:360;;;;;:::o;3058:190::-;;3170:2;3158:9;3149:7;3145:23;3141:32;3138:2;;;3191:6;3183;3176:22;3138:2;-1:-1:-1;3219:23:1;;3128:120;-1:-1:-1;3128:120:1:o;3253:258::-;;;3382:2;3370:9;3361:7;3357:23;3353:32;3350:2;;;3403:6;3395;3388:22;3350:2;-1:-1:-1;;3431:23:1;;;3501:2;3486:18;;;3473:32;;-1:-1:-1;3340:171:1:o;3516:430::-;;3683:6;3677:13;3708:3;3720:129;3734:6;3731:1;3728:13;3720:129;;;3832:4;3816:14;;;3812:25;;3806:32;3793:11;;;3786:53;3749:12;3720:129;;;3867:6;3864:1;3861:13;3858:2;;;3902:3;3893:6;3888:3;3884:16;3877:29;3858:2;-1:-1:-1;3924:16:1;;;;;3653:293;-1:-1:-1;;3653:293:1:o;3951:203::-;-1:-1:-1;;;;;4115:32:1;;;;4097:51;;4085:2;4070:18;;4052:102::o;4383:383::-;-1:-1:-1;;;;;4649:15:1;;;4631:34;;4701:15;;;;4696:2;4681:18;;4674:43;4748:2;4733:18;;4726:34;;;;4581:2;4566:18;;4548:218::o;4771:274::-;-1:-1:-1;;;;;4963:32:1;;;;4945:51;;5027:2;5012:18;;5005:34;4933:2;4918:18;;4900:145::o;5050:345::-;-1:-1:-1;;;;;5270:32:1;;;;5252:51;;5334:2;5319:18;;5312:34;;;;5377:2;5362:18;;5355:34;5240:2;5225:18;;5207:188::o;5400:187::-;5565:14;;5558:22;5540:41;;5528:2;5513:18;;5495:92::o;6266:356::-;6468:2;6450:21;;;6487:18;;;6480:30;6546:34;6541:2;6526:18;;6519:62;6613:2;6598:18;;6440:182::o;6627:344::-;6829:2;6811:21;;;6868:2;6848:18;;;6841:30;-1:-1:-1;;;6902:2:1;6887:18;;6880:50;6962:2;6947:18;;6801:170::o;6976:402::-;7178:2;7160:21;;;7217:2;7197:18;;;7190:30;7256:34;7251:2;7236:18;;7229:62;-1:-1:-1;;;7322:2:1;7307:18;;7300:36;7368:3;7353:19;;7150:228::o;7383:405::-;7585:2;7567:21;;;7624:2;7604:18;;;7597:30;7663:34;7658:2;7643:18;;7636:62;-1:-1:-1;;;7729:2:1;7714:18;;7707:39;7778:3;7763:19;;7557:231::o;7793:414::-;7995:2;7977:21;;;8034:2;8014:18;;;8007:30;8073:34;8068:2;8053:18;;8046:62;-1:-1:-1;;;8139:2:1;8124:18;;8117:48;8197:3;8182:19;;7967:240::o;8212:416::-;8414:2;8396:21;;;8453:2;8433:18;;;8426:30;8492:34;8487:2;8472:18;;8465:62;-1:-1:-1;;;8558:2:1;8543:18;;8536:50;8618:3;8603:19;;8386:242::o;8633:400::-;8835:2;8817:21;;;8874:2;8854:18;;;8847:30;8913:34;8908:2;8893:18;;8886:62;-1:-1:-1;;;8979:2:1;8964:18;;8957:34;9023:3;9008:19;;8807:226::o;9038:340::-;9240:2;9222:21;;;9279:2;9259:18;;;9252:30;-1:-1:-1;;;9313:2:1;9298:18;;9291:46;9369:2;9354:18;;9212:166::o;9383:356::-;9585:2;9567:21;;;9604:18;;;9597:30;9663:34;9658:2;9643:18;;9636:62;9730:2;9715:18;;9557:182::o;9744:416::-;9946:2;9928:21;;;9985:2;9965:18;;;9958:30;10024:34;10019:2;10004:18;;9997:62;-1:-1:-1;;;10090:2:1;10075:18;;10068:50;10150:3;10135:19;;9918:242::o;10165:414::-;10367:2;10349:21;;;10406:2;10386:18;;;10379:30;10445:34;10440:2;10425:18;;10418:62;-1:-1:-1;;;10511:2:1;10496:18;;10489:48;10569:3;10554:19;;10339:240::o;10584:355::-;10786:2;10768:21;;;10825:2;10805:18;;;10798:30;10864:33;10859:2;10844:18;;10837:61;10930:2;10915:18;;10758:181::o;10944:411::-;11146:2;11128:21;;;11185:2;11165:18;;;11158:30;11224:34;11219:2;11204:18;;11197:62;-1:-1:-1;;;11290:2:1;11275:18;;11268:45;11345:3;11330:19;;11118:237::o;11360:177::-;11506:25;;;11494:2;11479:18;;11461:76::o;11542:217::-;;11608:1;11598:2;;-1:-1:-1;;;11633:31:1;;11687:4;11684:1;11677:15;11715:4;11640:1;11705:15;11598:2;-1:-1:-1;11744:9:1;;11588:171::o;11764:168::-;;11870:1;11866;11862:6;11858:14;11855:1;11852:21;11847:1;11840:9;11833:17;11829:45;11826:2;;;11877:18;;:::i;:::-;-1:-1:-1;11917:9:1;;11816:116::o;11937:125::-;;12005:1;12002;11999:8;11996:2;;;12010:18;;:::i;:::-;-1:-1:-1;12047:9:1;;11986:76::o;12067:135::-;;-1:-1:-1;;12127:17:1;;12124:2;;;12147:18;;:::i;:::-;-1:-1:-1;12194:1:1;12183:13;;12114:88::o;12207:127::-;12268:10;12263:3;12259:20;12256:1;12249:31;12299:4;12296:1;12289:15;12323:4;12320:1;12313:15;12339:127;12400:10;12395:3;12391:20;12388:1;12381:31;12431:4;12428:1;12421:15;12455:4;12452:1;12445:15;12471:133;-1:-1:-1;;;;;12548:31:1;;12538:42;;12528:2;;12594:1;12591;12584:12;12609:120;12697:5;12690:13;12683:21;12676:5;12673:32;12663:2;;12719:1;12716;12709:12

Swarm Source

ipfs://220c4f5417b8bf62b43950116b4f2aefe062ba952b3779e80cb3a38f6b968eaf

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.