ETH Price: $3,093.94 (-6.07%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy211215272024-11-05 12:44:3588 days ago1730810675IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.001763176.64818288
Deploy207983202024-09-21 10:21:23133 days ago1726914083IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.002126638.57128859
Deploy207982212024-09-21 10:01:35133 days ago1726912895IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0035605914.35074144
Set Implementati...207981022024-09-21 9:37:35133 days ago1726911455IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0004679514.92070828
Deploy207977332024-09-21 8:23:35133 days ago1726907015IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.002381888.98105603
Deploy207957752024-09-21 1:48:35134 days ago1726883315IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.002616719.86649632
Deploy207951612024-09-20 23:44:11134 days ago1726875851IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0033593312.66658985
Deploy207939722024-09-20 19:44:47134 days ago1726861487IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0035127713.2451693
Deploy207042762024-09-08 7:03:47146 days ago1725779027IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.000278531.05024416
Deploy202710782024-07-09 19:39:23207 days ago1720553963IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.001053183.97109272
Deploy200168102024-06-04 6:56:59242 days ago1717484219IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.001748356.5922873
Deploy187370922023-12-07 21:29:47422 days ago1701984587IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0149252356.27660213
Set Implementati...186278412023-11-22 14:22:47437 days ago1700662967IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0021954170
Deploy184289232023-10-25 18:05:35465 days ago1698257135IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0111128341.9017107
Set Implementati...184274542023-10-25 13:10:11465 days ago1698239411IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0008098325.82142891
Set Implementati...184267762023-10-25 10:52:59465 days ago1698231179IN
0xEa13b6fA...9Ed5703Aa
0 ETH0.0004077113

Latest 13 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
211215272024-11-05 12:44:3588 days ago1730810675
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207983202024-09-21 10:21:23133 days ago1726914083
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207982212024-09-21 10:01:35133 days ago1726912895
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207977332024-09-21 8:23:35133 days ago1726907015
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207957752024-09-21 1:48:35134 days ago1726883315
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207951612024-09-20 23:44:11134 days ago1726875851
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207939722024-09-20 19:44:47134 days ago1726861487
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
207042762024-09-08 7:03:47146 days ago1725779027
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
202710782024-07-09 19:39:23207 days ago1720553963
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
200168102024-06-04 6:56:59242 days ago1717484219
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
187370922023-12-07 21:29:47422 days ago1701984587
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
184289232023-10-25 18:05:35465 days ago1698257135
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
184126232023-10-23 11:18:47467 days ago1698059927
0xEa13b6fA...9Ed5703Aa
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OpenPeerEscrowsDeployer

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-10-23
*/

// File: interfaces/IOpenPeerDeployer.sol


pragma solidity ^0.8.17;

interface IOpenPeerDeployer {
  function partnerFeeBps(address _partner) external view returns (uint256);
}
// File: libs/ERC2771Context.sol



pragma solidity ^0.8.0;

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

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

/**
 * @dev Context variant with ERC2771 support.
 */
abstract contract ERC2771Context is Context {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    address internal _trustedForwarder;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(address trustedForwarder) {
        _trustedForwarder = trustedForwarder;
    }

    function isTrustedForwarder(address forwarder) public view virtual returns (bool) {
        return forwarder == _trustedForwarder;
    }

    function _msgSender() internal view virtual override returns (address sender) {
        if (isTrustedForwarder(msg.sender)) {
            // The assembly code is more direct than the Solidity version using `abi.decode`.
            assembly {
                sender := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return super._msgSender();
        }
    }

    function _msgData() internal view virtual override returns (bytes calldata) {
        if (isTrustedForwarder(msg.sender)) {
            return msg.data[:msg.data.length - 20];
        } else {
            return super._msgData();
        }
    }
}
// File: libs/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions 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);
    }
}
// File: @openzeppelin/[email protected]/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Permit.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

// File: @openzeppelin/[email protected]/utils/AddressUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/proxy/utils/Initializable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

// File: @openzeppelin/[email protected]/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/[email protected]/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// File: @openzeppelin/[email protected]/interfaces/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;


// File: @openzeppelin/[email protected]/proxy/Clones.sol


// OpenZeppelin Contracts (last updated v4.9.0) (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
            // of the `implementation` address with the bytecode before the address.
            mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
            mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
            instance := create(0, 0x09, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
            // of the `implementation` address with the bytecode before the address.
            mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
            mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
            instance := create2(0, 0x09, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(add(ptr, 0x38), deployer)
            mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff)
            mstore(add(ptr, 0x14), implementation)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73)
            mstore(add(ptr, 0x58), salt)
            mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37))
            predicted := keccak256(add(ptr, 0x43), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt
    ) internal view returns (address predicted) {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

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

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

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

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

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

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

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

// File: OpenPeerEscrow.sol


pragma solidity ^0.8.17;







contract OpenPeerEscrow is ERC2771Context, Initializable {
    using SafeERC20 for IERC20;
    mapping(bytes32 => Escrow) public escrows;

    address payable public seller;
    address public deployer;
    address public arbitrator;
    address payable public feeRecipient;
    address public feeDiscountNFT;
    uint256 public feeBps;
    uint256 public disputeFee;
    mapping(bytes32 => mapping(address => bool)) public disputePayments;
    mapping(address => uint256) public balancesInUse;

    /**********************
    +   Events            +
    ***********************/
    event EscrowCreated(bytes32 indexed _orderHash);
    event Released(bytes32 indexed _orderHash);
    event CancelledByBuyer(bytes32 indexed _orderHash);
    event SellerCancelDisabled(bytes32 indexed _orderHash);
    event CancelledBySeller(bytes32 indexed _orderHash);
    event DisputeOpened(bytes32 indexed _orderHash, address indexed _sender);
    event DisputeResolved(bytes32 indexed _orderHash, address indexed _winner);

    struct Escrow {
        // So we know the escrow exists
        bool exists;
        // This is the timestamp in which the seller can cancel the escrow after.
        // It has a special value:
        // 1 : Permanently locked by the buyer (i.e. marked as paid; the seller can never cancel)
        uint32 sellerCanCancelAfter;
        uint256 fee;
        bool dispute;
        address payable partner;
        uint256 openPeerFee;
        bool automaticEscrow;
    }

    /// @param _trustedForwarder Forwarder address
    constructor(address _trustedForwarder) ERC2771Context(_trustedForwarder) {
        _disableInitializers();
    }

    /// @param _seller Seller address
    /// @param _feeBps OP fee (bps) ex: 30 == 0.3%
    /// @param _arbitrator Address of the arbitrator (currently OP staff)
    /// @param _feeRecipient Address to receive the fees
    /// @param trustedForwarder Forwarder address
    /// @param _feeDiscountNFT NFT contract for fee discounts
    /// @param _disputeFee Fee to open a dispute
    function initialize(
        address payable _seller,
        uint256 _feeBps,
        address _arbitrator,
        address payable _feeRecipient,
        address trustedForwarder,
        address _feeDiscountNFT,
        uint256 _disputeFee
    ) external virtual initializer {
        require(_seller != address(0), "Invalid seller");
        require(_feeRecipient != address(0), "Invalid fee recipient");
        require(_arbitrator != address(0), "Invalid arbitrator");
        require(trustedForwarder != address(0), "Invalid trust forwarder");

        seller = _seller;
        feeBps = _feeBps;
        arbitrator = _arbitrator;
        feeRecipient = _feeRecipient;
        _trustedForwarder = trustedForwarder;
        feeDiscountNFT = _feeDiscountNFT;
        disputeFee = _disputeFee;
        deployer = _msgSender();
    }

    // Modifiers
    modifier onlySeller() {
        require(_msgSender() == seller, "Must be seller");
        _;
    }

    modifier onlyArbitrator() {
        require(_msgSender() == arbitrator, "Must be arbitrator");
        _;
    }

    // Errors
    error EscrowNotFound();

    function createNativeEscrow(
        bytes32 _orderID,
        address payable _buyer,
        uint256 _amount,
        address payable _partner,
        uint32 _sellerWaitingTime,
        bool _automaticEscrow
    ) external payable {
        create(
            _orderID,
            _buyer,
            address(0),
            _amount,
            _partner,
            _sellerWaitingTime,
            _automaticEscrow
        );
    }

    function createERC20Escrow(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount,
        address payable _partner,
        uint32 _sellerWaitingTime,
        bool _automaticEscrow
    ) external {
        create(
            _orderID,
            _buyer,
            _token,
            _amount,
            _partner,
            _sellerWaitingTime,
            _automaticEscrow
        );
    }

    function create(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount,
        address payable _partner,
        uint32 _sellerWaitingTime,
        bool _automaticEscrow
    ) private {
        require(_amount > 0, "Invalid amount");
        require(_buyer != address(0), "Invalid buyer");
        require(_buyer != seller, "Seller and buyer must be different");
        require(
            _sellerWaitingTime >= 15 minutes && _sellerWaitingTime <= 1 days,
            "Invalid seller waiting time"
        );
        if (_automaticEscrow) {
            require(msg.value == 0, "Cannot send tokens with automatic escrow");
        }

        bytes32 _orderHash = keccak256(
            abi.encodePacked(_orderID, seller, _buyer, _token, _amount)
        );
        require(!escrows[_orderHash].exists, "Order already exists");

        uint256 opFee = ((_amount * openPeerFee()) / 10_000);
        uint256 orderFee = ((_amount * sellerFee(_partner)) / 10_000);
        uint256 amount = orderFee + _amount;

        validateAndPullTokens(_token, amount, _automaticEscrow);

        Escrow memory escrow = Escrow(
            true,
            uint32(block.timestamp) + _sellerWaitingTime,
            orderFee,
            false,
            _partner,
            opFee,
            _automaticEscrow
        );
        escrows[_orderHash] = escrow;
        emit EscrowCreated(_orderHash);
    }

    function validateAndPullTokens(
        address _token,
        uint256 _amount,
        bool _automaticEscrow
    ) internal {
        if (_automaticEscrow) {
            require(balances(_token) >= _amount, "Not enough tokens in escrow");
            balancesInUse[_token] += _amount;
        } else {
            if (_token == address(0)) {
                require(msg.value == _amount, "Incorrect amount sent");
            } else {
                uint256 balanceBefore = IERC20(_token).balanceOf(address(this));
                IERC20(_token).safeTransferFrom(
                    _msgSender(),
                    address(this),
                    _amount
                );
                uint256 balanceAfter = IERC20(_token).balanceOf(address(this));
                require(
                    (balanceAfter - balanceBefore) == _amount,
                    "Wrong ERC20 amount"
                );
            }
        }
    }

    /// @notice Disable the seller from cancelling
    /// @return bool
    function markAsPaid(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount
    ) external returns (bool) {
        require(_msgSender() == _buyer, "Must be buyer");

        Escrow memory _escrow;
        bytes32 _orderHash;
        (_escrow, _orderHash) = getEscrowAndHash(
            _orderID,
            _buyer,
            _token,
            _amount
        );
        if (!_escrow.exists) {
            revert EscrowNotFound();
        }
        if (_escrow.sellerCanCancelAfter == 1) return false;

        escrows[_orderHash].sellerCanCancelAfter = 1;
        emit SellerCancelDisabled(_orderHash);
        return true;
    }

    /// @notice Release ether or token in escrow to the buyer.
    /// @return bool
    function release(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount
    ) external onlySeller returns (bool) {
        Escrow memory _escrow;
        bytes32 _orderHash;
        (_escrow, _orderHash) = getEscrowAndHash(
            _orderID,
            _buyer,
            _token,
            _amount
        );
        if (!_escrow.exists) {
            revert EscrowNotFound();
        }

        transferEscrowAndFees(
            _orderHash,
            _buyer,
            _token,
            _buyer,
            _amount,
            _escrow.fee,
            _escrow.partner,
            _escrow.openPeerFee,
            false,
            _escrow.automaticEscrow
        );
        emit Released(_orderHash);
        return true;
    }

    /// @notice Cancel the escrow as a buyer with 0 fees
    /// @return bool
    function buyerCancel(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount
    ) external returns (bool) {
        require(_msgSender() == _buyer, "Must be buyer");

        Escrow memory _escrow;
        bytes32 _orderHash;
        (_escrow, _orderHash) = getEscrowAndHash(
            _orderID,
            _buyer,
            _token,
            _amount
        );
        if (!_escrow.exists) {
            revert EscrowNotFound();
        }

        transferEscrowAndFees(
            _orderHash,
            _buyer,
            _token,
            seller,
            _amount + _escrow.fee,
            0,
            _escrow.partner,
            0,
            false,
            _escrow.automaticEscrow
        );
        emit CancelledByBuyer(_orderHash);
        return true;
    }

    /// @notice Cancel the escrow as a seller
    /// @return bool
    function sellerCancel(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount
    ) external onlySeller returns (bool) {
        Escrow memory _escrow;
        bytes32 _orderHash;
        (_escrow, _orderHash) = getEscrowAndHash(
            _orderID,
            _buyer,
            _token,
            _amount
        );
        if (!_escrow.exists) {
            revert EscrowNotFound();
        }

        if (
            _escrow.sellerCanCancelAfter <= 1 ||
            _escrow.sellerCanCancelAfter > block.timestamp
        ) {
            return false;
        }

        transferEscrowAndFees(
            _orderHash,
            _buyer,
            _token,
            seller,
            _amount + _escrow.fee,
            0,
            _escrow.partner,
            0,
            false,
            _escrow.automaticEscrow
        );
        emit CancelledBySeller(_orderHash);
        return true;
    }

    /// @notice Allow seller or buyer to open a dispute
    function openDispute(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount
    ) external payable returns (bool) {
        require(
            _msgSender() == seller || _msgSender() == _buyer,
            "Must be seller or buyer"
        );
        Escrow memory _escrow;
        bytes32 _orderHash;
        (_escrow, _orderHash) = getEscrowAndHash(
            _orderID,
            _buyer,
            _token,
            _amount
        );
        if (!_escrow.exists) {
            revert EscrowNotFound();
        }

        require(_escrow.sellerCanCancelAfter == 1, "Cannot open a dispute yet");
        require(
            msg.value == disputeFee,
            "To open a dispute, you must pay 1 MATIC"
        );
        require(
            !disputePayments[_orderHash][_msgSender()],
            "This address already paid for the dispute"
        );

        escrows[_orderHash].dispute = true;
        disputePayments[_orderHash][_msgSender()] = true;
        emit DisputeOpened(_orderHash, _msgSender());
        return true;
    }

    /// @notice Allow arbitrator to resolve a dispute
    /// @param _winner Address to receive the escrowed values - fees
    function resolveDispute(
        bytes32 _orderID,
        address payable _buyer,
        address _token,
        uint256 _amount,
        address payable _winner
    ) external onlyArbitrator returns (bool) {
        Escrow memory _escrow;
        bytes32 _orderHash;
        (_escrow, _orderHash) = getEscrowAndHash(
            _orderID,
            _buyer,
            _token,
            _amount
        );
        if (!_escrow.exists) {
            revert EscrowNotFound();
        }

        require(_escrow.dispute, "Dispute is not open");
        require(
            _winner == seller || _winner == _buyer,
            "Winner must be seller or buyer"
        );

        emit DisputeResolved(_orderHash, _winner);

        uint256 _fee = _winner == _buyer ? _escrow.fee : 0; // no fees if the trade is not done
        uint256 _openPeerFee = _winner == _buyer ? _escrow.openPeerFee : 0;

        transferEscrowAndFees(
            _orderHash,
            _buyer,
            _token,
            _winner,
            _winner == _buyer ? _amount : _amount + _escrow.fee,
            _fee,
            _escrow.partner,
            _openPeerFee,
            true,
            _escrow.automaticEscrow
        );
        return true;
    }

    /// @notice Transfer the value of an escrow
    /// @param _to Recipient address
    /// @param _amount Amount to be transfered
    /// @param _fee Fee to be transfered
    /// @param _disputeResolution Is a dispute being resolved?
    /// @param _automaticEscrow The escrow was done automatically
    function transferEscrowAndFees(
        bytes32 _orderHash,
        address payable _buyer,
        address _token,
        address payable _to,
        uint256 _amount,
        uint256 _fee,
        address payable _partner,
        uint256 _openPeerFee,
        bool _disputeResolution,
        bool _automaticEscrow
    ) private {
        delete escrows[_orderHash];
        bool sellerPaid = disputePayments[_orderHash][seller];
        bool buyerPaid = disputePayments[_orderHash][_buyer];
        delete disputePayments[_orderHash][seller];
        delete disputePayments[_orderHash][_buyer];

        // transfers the amount to the seller | buyer | this contract
        withdraw(_token, _to, _amount, _automaticEscrow);
        if (_openPeerFee > 0) {
            // transfers the OP fee to the fee recipient
            withdraw(_token, feeRecipient, _openPeerFee, false);
        }

        if (_fee - _openPeerFee > 0) {
            // transfers the OP fee to the fee recipient
            withdraw(_token, _partner, _fee - _openPeerFee, false);
        }

        if (_disputeResolution) {
            (bool sentToWinner, ) = _to.call{value: disputeFee}("");
            require(sentToWinner, "Failed to send the fee MATIC to the winner");

            if (sellerPaid && buyerPaid) {
                (bool sent, ) = feeRecipient.call{value: disputeFee}("");
                require(
                    sent,
                    "Failed to send the fee MATIC to the fee recipient"
                );
            }
        } else if (sellerPaid && !buyerPaid) {
            // only the seller paid for the dispute, returns the fee to the seller
            (bool sent, ) = seller.call{value: disputeFee}("");
            require(sent, "Failed to send the fee MATIC to the seller");
        } else if (buyerPaid && !sellerPaid) {
            // only the buyer paid for the dispute, returns the fee to the buyer
            (bool sent, ) = _buyer.call{value: disputeFee}("");
            require(sent, "Failed to send the fee MATIC to the buyer");
        } else if (buyerPaid && sellerPaid) {
            // seller and buyer paid for the dispute, split the fee between the winner and the fee recipient
            (bool sentToWinner, ) = _to.call{value: disputeFee}("");
            require(sentToWinner, "Failed to send the fee MATIC to winner");

            (bool sent, ) = feeRecipient.call{value: disputeFee}("");
            require(sent, "Failed to send the fee MATIC to the fee recipient");
        }
    }

    /// @notice Withdraw values in the contract
    /// @param _token Address of the token to withdraw fees in to
    /// @param _to Address to withdraw fees in to
    /// @param _amount Amount to withdraw
    /// @param _updateBalancesOnly Update internal balances
    function withdraw(
        address _token,
        address payable _to,
        uint256 _amount,
        bool _updateBalancesOnly
    ) private {
        if (_updateBalancesOnly && _to == seller) {
            balancesInUse[_token] -= _amount;
        } else {
            if (_token == address(0)) {
                (bool sent, ) = _to.call{value: _amount}("");
                require(sent, "Failed to send tokens");
            } else {
                require(
                    IERC20(_token).transfer(_to, _amount),
                    "Failed to send tokens"
                );
            }
        }
    }

    /// @notice Version recipient
    function versionRecipient() external pure returns (string memory) {
        return "1.0";
    }

    /// @notice Hashes the values and returns the matching escrow object and trade hash.
    /// @dev Returns an empty escrow struct and 0 _orderHash if not found.
    /// @param _orderID Escrow "_orderID" parameter
    /// @param _buyer Escrow "buyer" parameter
    /// @param _token Escrow "token" parameter
    /// @param _amount Escrow "amount" parameter
    /// @return Escrow
    function getEscrowAndHash(
        bytes32 _orderID,
        address _buyer,
        address _token,
        uint256 _amount
    ) private view returns (Escrow memory, bytes32) {
        bytes32 _orderHash = keccak256(
            abi.encodePacked(_orderID, seller, _buyer, _token, _amount)
        );
        return (escrows[_orderHash], _orderHash);
    }

    /***********************
    +   Getters           +
    ***********************/

    function openPeerFee() public view returns (uint256) {
        IERC721 discountNFT = IERC721(feeDiscountNFT);

        if (
            feeDiscountNFT != address(0) &&
            discountNFT.balanceOf(_msgSender()) > 0
        ) {
            return 0;
        }

        return feeBps;
    }

    function sellerFee(address _partner) public view returns (uint256) {
        return
            openPeerFee() + IOpenPeerDeployer(deployer).partnerFeeBps(_partner);
    }

    /***********************************
    +   Deposit and withdraw           +
    ***********************************/

    // accept ETH deposits
    receive() external payable {}

    function withdrawBalance(address _token, uint256 _amount) external {
        require(balances(_token) >= _amount, "Not enough tokens in escrow");

        withdraw(_token, seller, _amount, false);
    }

    function balances(address _token) public view returns (uint256) {
        uint256 balance;
        if (_token == address(0)) {
            balance = address(this).balance;
        } else {
            balance = IERC20(_token).balanceOf(address(this));
        }

        return balance - balancesInUse[_token];
    }
}

// File: OpenPeerEscrowsDeployer.sol


pragma solidity ^0.8.17;







contract OpenPeerEscrowsDeployer is ERC2771Context, Ownable {
    mapping(address => address) public sellerContracts;
    mapping(address => uint256) public partnerFeeBps;

    /***********************
    +   Global settings   +
    ***********************/
    address public arbitrator;
    address payable public feeRecipient;
    uint256 private fee;
    uint256 public disputeFee;

    bool public stopped;

    address public implementation;

    // NFT contract for fee discounts
    address public feeDiscountNFT;

    /**********************
    +   Events            +
    ***********************/
    event ContractCreated(address _seller, address _deployment);

    /// @notice Settings
    /// @param _arbitrator Address of the arbitrator (currently OP staff)
    /// @param _feeRecipient Address to receive the fees
    /// @param _fee OP fee (bps) ex: 30 == 0.3%
    /// @param _trustedForwarder Forwarder address
    /// @param _feeDiscountNFT NFT contract for fee discounts
    /// @param _disputeFee Dispute fee
    constructor(
        address _arbitrator,
        address payable _feeRecipient,
        uint256 _fee,
        address _trustedForwarder,
        address _feeDiscountNFT,
        uint256 _disputeFee
    ) ERC2771Context(_trustedForwarder) {
        arbitrator = _arbitrator;
        feeRecipient = _feeRecipient;
        fee = _fee;
        feeDiscountNFT = _feeDiscountNFT;
        disputeFee = _disputeFee;
        implementation = address(new OpenPeerEscrow(_trustedForwarder));
    }

    /***********************
    +   Modifiers          +
    ***********************/

    // circuit breaker modifiers
    modifier stopInEmergency() {
        if (stopped) {
            revert("Paused");
        } else {
            _;
        }
    }

    function deploy() external returns (address) {
        address deployment = Clones.clone(implementation);
        OpenPeerEscrow(payable(deployment)).initialize(
            payable(_msgSender()),
            fee,
            arbitrator,
            feeRecipient,
            _trustedForwarder,
            feeDiscountNFT,
            disputeFee
        );
        sellerContracts[_msgSender()] = deployment;
        emit ContractCreated(_msgSender(), deployment);

        return deployment;
    }

    /***********************
    +   Setters           +
    ***********************/

    /// @notice Updates the arbitrator
    /// @param _arbitrator Address of the arbitrator
    function setArbitrator(address _arbitrator) public onlyOwner {
        require(_arbitrator != address(0), "Invalid arbitrator");
        arbitrator = _arbitrator;
    }

    /// @notice Updates the fee recipient
    /// @param _feeRecipient Address of the arbitrator
    function setFeeRecipient(address payable _feeRecipient) public onlyOwner {
        require(_feeRecipient != address(0), "Invalid fee recipient");
        feeRecipient = _feeRecipient;
    }

    /// @notice Updates the fee
    /// @param _fee fee amount (bps)
    function setFee(uint256 _fee) public onlyOwner {
        require(_fee <= 100);

        fee = _fee;
    }

    /// @notice Updates the forwarder
    /// @param trustedForwarder biconomy forwarder
    function setTrustedForwarder(address trustedForwarder) external onlyOwner {
        require(trustedForwarder != address(0), "Invalid trust forwarder");
        _trustedForwarder = trustedForwarder;
    }

    /// @notice Updates the implementation
    /// @param _implementation Address of the implementation
    function setImplementation(
        address payable _implementation
    ) public onlyOwner {
        require(_implementation != address(0), "Invalid implementation");
        implementation = _implementation;
    }

    /// @notice Pauses and activate the contract
    function toggleContractActive() public onlyOwner {
        stopped = !stopped;
    }

    /// @notice Version recipient
    function versionRecipient() external pure returns (string memory) {
        return "1.0";
    }

    /// @notice Updates the NFT contract for fee discounts
    function setFeeDiscountNFT(address _feeDiscountNFT) external onlyOwner {
        feeDiscountNFT = _feeDiscountNFT;
    }

    function updatePartnerFeeBps(
        address[] calldata _partners,
        uint256[] calldata _fees
    ) external onlyOwner {
        require(_partners.length == _fees.length, "Invalid input");

        for (uint256 i = 0; i < _partners.length; i++) {
            require(_fees[i] <= 100, "Invalid fee bps");
            require(_partners[i] != address(0), "Invalid partner address");

            partnerFeeBps[_partners[i]] = _fees[i];
        }
    }

    /***********************
    +   Getters           +
    ***********************/

    function openPeerFee() public view returns (uint256) {
        IERC721 discountNFT = IERC721(feeDiscountNFT);

        if (
            feeDiscountNFT != address(0) &&
            discountNFT.balanceOf(_msgSender()) > 0
        ) {
            return 0;
        }

        return fee;
    }

    function sellerFee(address _partner) public view returns (uint256) {
        return openPeerFee() + partnerFeeBps[_partner];
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_arbitrator","type":"address"},{"internalType":"address payable","name":"_feeRecipient","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_trustedForwarder","type":"address"},{"internalType":"address","name":"_feeDiscountNFT","type":"address"},{"internalType":"uint256","name":"_disputeFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_seller","type":"address"},{"indexed":false,"internalType":"address","name":"_deployment","type":"address"}],"name":"ContractCreated","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"},{"inputs":[],"name":"arbitrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deploy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disputeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDiscountNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPeerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"partnerFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sellerContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"}],"name":"sellerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_arbitrator","type":"address"}],"name":"setArbitrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountNFT","type":"address"}],"name":"setFeeDiscountNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_implementation","type":"address"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"trustedForwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleContractActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_partners","type":"address[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"}],"name":"updatePartnerFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]

60806040523480156200001157600080fd5b5060405162003bea38038062003bea8339810160408190526200003491620001d2565b600080546001600160a01b0319166001600160a01b038516179055620000636200005d6200011a565b62000155565b600480546001600160a01b038089166001600160a01b031992831617909255600580548884169083161790556006869055600980549285169290911691909117905560078190556040518390620000ba90620001ab565b6001600160a01b039091168152602001604051809103906000f080158015620000e7573d6000803e3d6000fd5b50600860016101000a8154816001600160a01b0302191690836001600160a01b031602179055505050505050506200024e565b600080546001600160a01b031633036200013b575060131936013560601c90565b62000150620001a760201b62000a341760201c565b905090565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3390565b612bcb806200101f83390190565b6001600160a01b0381168114620001cf57600080fd5b50565b60008060008060008060c08789031215620001ec57600080fd5b8651620001f981620001b9565b60208801519096506200020c81620001b9565b6040880151606089015191965094506200022681620001b9565b60808801519093506200023981620001b9565b8092505060a087015190509295509295509295565b610dc1806200025e6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80638d0504e2116100c3578063da7422281161007c578063da742228146102ee578063e0c8fb7114610301578063e74b981b14610314578063f1c9b1b314610327578063f2fde38b14610347578063f830baad1461035a57600080fd5b80638d0504e2146102855780638da5cb5b1461029b5780639b501116146102ac578063b0eefabe146102bf578063b9ce896b146102d2578063d784d426146102db57600080fd5b80635c60da1b116101155780635c60da1b1461022a57806369fe0e2d146102425780636cc6cde114610255578063715018a61461026857806375f12b2114610270578063775c300c1461027d57600080fd5b80630f3454281461015d578063130cd750146101a35780631385d24c146101b857806346904840146101c0578063486ff0cd146101d3578063572b6c05146101f8575b600080fd5b61018661016b366004610bd7565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101b66101b1366004610c47565b61036d565b005b6101b6610515565b600554610186906001600160a01b031681565b60408051808201825260038152620312e360ec1b6020820152905161019a9190610cb3565b61021a610206366004610bd7565b6000546001600160a01b0391821691161490565b604051901515815260200161019a565b6008546101869061010090046001600160a01b031681565b6101b6610250366004610d01565b610531565b600454610186906001600160a01b031681565b6101b661054c565b60085461021a9060ff1681565b610186610560565b61028d6106c3565b60405190815260200161019a565b6001546001600160a01b0316610186565b6101b66102ba366004610bd7565b610774565b6101b66102cd366004610bd7565b61079e565b61028d60075481565b6101b66102e9366004610bd7565b610813565b6101b66102fc366004610bd7565b610892565b61028d61030f366004610bd7565b610912565b6101b6610322366004610bd7565b610943565b61028d610335366004610bd7565b60036020526000908152604090205481565b6101b6610355366004610bd7565b6109bb565b600954610186906001600160a01b031681565b610375610a38565b8281146103b95760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064015b60405180910390fd5b60005b8381101561050e5760648383838181106103d8576103d8610d1a565b90506020020135111561041f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206665652062707360881b60448201526064016103b0565b600085858381811061043357610433610d1a565b90506020020160208101906104489190610bd7565b6001600160a01b03160361049e5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420706172746e6572206164647265737300000000000000000060448201526064016103b0565b8282828181106104b0576104b0610d1a565b90506020020135600360008787858181106104cd576104cd610d1a565b90506020020160208101906104e29190610bd7565b6001600160a01b031681526020810191909152604001600020558061050681610d46565b9150506103bc565b5050505050565b61051d610a38565b6008805460ff19811660ff90911615179055565b610539610a38565b606481111561054757600080fd5b600655565b610554610a38565b61055e6000610ab1565b565b600080610581600860019054906101000a90046001600160a01b0316610b03565b9050806001600160a01b0316633a91bf9a61059a610b9d565b6006546004805460055460005460095460075460405160e08a901b6001600160e01b03191681526001600160a01b0398891696810196909652602486019690965292861660448501529085166064840152841660848301529290921660a483015260c482015260e401600060405180830381600087803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b505050508060026000610642610b9d565b6001600160a01b039081168252602082019290925260400160002080546001600160a01b031916929091169190911790557f2d49c67975aadd2d389580b368cfff5b49965b0bd5da33c144922ce01e7a4d7b61069c610b9d565b604080516001600160a01b03928316815291841660208301520160405180910390a1919050565b6009546000906001600160a01b0316801580159061075f57506000816001600160a01b03166370a082316106f5610b9d565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d9190610d5f565b115b1561076c57600091505090565b505060065490565b61077c610a38565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6107a6610a38565b6001600160a01b0381166107f15760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21030b93134ba3930ba37b960711b60448201526064016103b0565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b61081b610a38565b6001600160a01b03811661086a5760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b21034b6b83632b6b2b73a30ba34b7b760511b60448201526064016103b0565b600880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61089a610a38565b6001600160a01b0381166108f05760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420747275737420666f7277617264657200000000000000000060448201526064016103b0565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600360205260408120546109336106c3565b61093d9190610d78565b92915050565b61094b610a38565b6001600160a01b0381166109995760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a5908199959481c9958da5c1a595b9d605a1b60448201526064016103b0565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6109c3610a38565b6001600160a01b038116610a285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b0565b610a3181610ab1565b50565b3390565b610a40610b9d565b6001600160a01b0316610a5b6001546001600160a01b031690565b6001600160a01b03161461055e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b0565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116610b985760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b60448201526064016103b0565b919050565b600080546001600160a01b03163303610bbd575060131936013560601c90565b503390565b6001600160a01b0381168114610a3157600080fd5b600060208284031215610be957600080fd5b8135610bf481610bc2565b9392505050565b60008083601f840112610c0d57600080fd5b50813567ffffffffffffffff811115610c2557600080fd5b6020830191508360208260051b8501011115610c4057600080fd5b9250929050565b60008060008060408587031215610c5d57600080fd5b843567ffffffffffffffff80821115610c7557600080fd5b610c8188838901610bfb565b90965094506020870135915080821115610c9a57600080fd5b50610ca787828801610bfb565b95989497509550505050565b600060208083528351808285015260005b81811015610ce057858101830151858201604001528201610cc4565b506000604082860101526040601f19601f8301168501019250505092915050565b600060208284031215610d1357600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610d5857610d58610d30565b5060010190565b600060208284031215610d7157600080fd5b5051919050565b8082018082111561093d5761093d610d3056fea26469706673582212208bf11128bfdac7f86a0441a7a634167df1a8df596bc965a05d8cb980565fdefc64736f6c6343000812003360806040523480156200001157600080fd5b5060405162002bcb38038062002bcb83398101604081905262000034916200012e565b600080546001600160a01b0319166001600160a01b0383161790556200005962000060565b5062000160565b600054600160a81b900460ff1615620000cf5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b600054600160a01b900460ff908116146200012c576000805460ff60a01b191660ff60a01b17905560405160ff81527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6000602082840312156200014157600080fd5b81516001600160a01b03811681146200015957600080fd5b9392505050565b612a5b80620001706000396000f3fe60806040526004361061016a5760003560e01c80635ff798af116100d1578063cbdef6331161008a578063df7e1cbc11610064578063df7e1cbc146104f8578063e0c8fb7114610525578063f830baad14610545578063ff3d8cce1461056557600080fd5b8063cbdef63314610498578063d0c95e8a146104b8578063d5f39488146104d857600080fd5b80635ff798af146103ed5780636cc6cde11461040d5780638d0504e21461042d5780638f9c296714610442578063b9ce896b14610462578063c5194dc61461047857600080fd5b806331e0a5631161012357806331e0a563146102fe5780633a91bf9a146103395780634690484014610359578063486ff0cd146103795780634f004b15146103ab578063572b6c05146103be57600080fd5b806308551a53146101765780630cf20cc9146101b35780631e93f143146101d557806324a9d8531461020557806327e235e3146102295780632d83549c1461024957600080fd5b3661017157005b600080fd5b34801561018257600080fd5b50600254610196906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101bf57600080fd5b506101d36101ce366004612576565b610578565b005b3480156101e157600080fd5b506101f56101f03660046125a2565b6105f3565b60405190151581526020016101aa565b34801561021157600080fd5b5061021b60075481565b6040519081526020016101aa565b34801561023557600080fd5b5061021b6102443660046125ea565b6106f8565b34801561025557600080fd5b506102b7610264366004612607565b60016020819052600091825260409091208054918101546002820154600383015460049093015460ff808616956101009081900463ffffffff169582851694919091046001600160a01b03169290911687565b60408051971515885263ffffffff90961660208801529486019390935290151560608501526001600160a01b0316608084015260a0830152151560c082015260e0016101aa565b34801561030a57600080fd5b506101f5610319366004612620565b600960209081526000928352604080842090915290825290205460ff1681565b34801561034557600080fd5b506101d3610354366004612650565b6107a5565b34801561036557600080fd5b50600554610196906001600160a01b031681565b34801561038557600080fd5b5060408051808201825260038152620312e360ec1b602082015290516101aa91906126f8565b6101f56103b93660046125a2565b610a8e565b3480156103ca57600080fd5b506101f56103d93660046125ea565b6000546001600160a01b0391821691161490565b3480156103f957600080fd5b506101f561040836600461272b565b610d48565b34801561041957600080fd5b50600454610196906001600160a01b031681565b34801561043957600080fd5b5061021b610f87565b34801561044e57600080fd5b506101f561045d3660046125a2565b611038565b34801561046e57600080fd5b5061021b60085481565b34801561048457600080fd5b506101f56104933660046125a2565b611140565b3480156104a457600080fd5b506101f56104b33660046125a2565b611233565b3480156104c457600080fd5b506101d36104d33660046127b1565b61135e565b3480156104e457600080fd5b50600354610196906001600160a01b031681565b34801561050457600080fd5b5061021b6105133660046125ea565b600a6020526000908152604090205481565b34801561053157600080fd5b5061021b6105403660046125ea565b611376565b34801561055157600080fd5b50600654610196906001600160a01b031681565b6101d3610573366004612833565b6113fd565b80610582836106f8565b10156105d55760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320696e20657363726f77000000000060448201526064015b60405180910390fd5b6002546105ef9083906001600160a01b0316836000611415565b5050565b6000836001600160a01b03166106076115d3565b6001600160a01b03161461064d5760405162461bcd60e51b815260206004820152600d60248201526c26bab9ba10313290313abcb2b960991b60448201526064016105cc565b610655612522565b6000610663878787876115f8565b815191935091506106875760405163f1d80ab160e01b815260040160405180910390fd5b816020015163ffffffff166001036106a4576000925050506106f0565b600081815260016020526040808220805464ffffffff0019166101001790555182917fe95fa7985c7585e90dab2dc46470726468662be06f67d79a31a5012e4bc0edeb91a26001925050505b949350505050565b6000806001600160a01b03831661071057504761077b565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610754573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077891906128a1565b90505b6001600160a01b0383166000908152600a602052604090205461079e90826128d0565b9392505050565b600054600160a81b900460ff16158080156107cd57506000546001600160a01b90910460ff16105b806107ee5750303b1580156107ee5750600054600160a01b900460ff166001145b6108515760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016105cc565b6000805460ff60a01b1916600160a01b179055801561087e576000805460ff60a81b1916600160a81b1790555b6001600160a01b0388166108c55760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b2b63632b960911b60448201526064016105cc565b6001600160a01b0385166109135760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a5908199959481c9958da5c1a595b9d605a1b60448201526064016105cc565b6001600160a01b03861661095e5760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21030b93134ba3930ba37b960711b60448201526064016105cc565b6001600160a01b0384166109b45760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420747275737420666f7277617264657200000000000000000060448201526064016105cc565b600280546001600160a01b03199081166001600160a01b038b8116919091179092556007899055600480548216898416179055600580548216888416179055600080548216878416179055600680549091169185169190911790556008829055610a1c6115d3565b600380546001600160a01b0319166001600160a01b03929092169190911790558015610a84576000805460ff60a81b19169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b6002546000906001600160a01b0316610aa56115d3565b6001600160a01b03161480610ad25750836001600160a01b0316610ac76115d3565b6001600160a01b0316145b610b1e5760405162461bcd60e51b815260206004820152601760248201527f4d7573742062652073656c6c6572206f7220627579657200000000000000000060448201526064016105cc565b610b26612522565b6000610b34878787876115f8565b81519193509150610b585760405163f1d80ab160e01b815260040160405180910390fd5b816020015163ffffffff16600114610bb25760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206f70656e20612064697370757465207965740000000000000060448201526064016105cc565b6008543414610c135760405162461bcd60e51b815260206004820152602760248201527f546f206f70656e206120646973707574652c20796f75206d757374207061792060448201526631204d4154494360c81b60648201526084016105cc565b600081815260096020526040812090610c2a6115d3565b6001600160a01b0316815260208101919091526040016000205460ff1615610ca65760405162461bcd60e51b815260206004820152602960248201527f54686973206164647265737320616c7265616479207061696420666f7220746860448201526865206469737075746560b81b60648201526084016105cc565b6000818152600160208181526040808420600201805460ff191684179055600990915282209091610cd56115d3565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610d056115d3565b6001600160a01b0316817fe7b614d99462ab012c8191c9348164cd62a4aec6d211f42371fd1f0759e5c22060405160405180910390a35060019695505050505050565b6004546000906001600160a01b0316610d5f6115d3565b6001600160a01b031614610daa5760405162461bcd60e51b815260206004820152601260248201527126bab9ba1031329030b93134ba3930ba37b960711b60448201526064016105cc565b610db2612522565b6000610dc0888888886115f8565b81519193509150610de45760405163f1d80ab160e01b815260040160405180910390fd5b8160600151610e2b5760405162461bcd60e51b81526020600482015260136024820152722234b9b83aba329034b9903737ba1037b832b760691b60448201526064016105cc565b6002546001600160a01b0385811691161480610e585750866001600160a01b0316846001600160a01b0316145b610ea45760405162461bcd60e51b815260206004820152601e60248201527f57696e6e6572206d7573742062652073656c6c6572206f72206275796572000060448201526064016105cc565b6040516001600160a01b0385169082907fc513157869d5df7583154f47d70526162925e137610792515fae2d874b519daa90600090a36000876001600160a01b0316856001600160a01b031614610efc576000610f02565b82604001515b90506000886001600160a01b0316866001600160a01b031614610f26576000610f2c565b8360a001515b9050610f77838a8a898d6001600160a01b03168b6001600160a01b031614610f62576040890151610f5d908d6128e3565b610f64565b8b5b878a608001518860018d60c001516116c5565b5060019998505050505050505050565b6006546000906001600160a01b0316801580159061102357506000816001600160a01b03166370a08231610fb96115d3565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102191906128a1565b115b1561103057600091505090565b505060075490565b6000836001600160a01b031661104c6115d3565b6001600160a01b0316146110925760405162461bcd60e51b815260206004820152600d60248201526c26bab9ba10313290313abcb2b960991b60448201526064016105cc565b61109a612522565b60006110a8878787876115f8565b815191935091506110cc5760405163f1d80ab160e01b815260040160405180910390fd5b6002546040830151611108918391899189916001600160a01b03909116906110f4908a6128e3565b600088608001516000808b60c001516116c5565b60405181907fd9b627ddaa414e8e6c82366cc9c179f6281d73968827cc17038a56852e28ac8b90600090a25060019695505050505050565b6002546000906001600160a01b03166111576115d3565b6001600160a01b03161461119e5760405162461bcd60e51b815260206004820152600e60248201526d26bab9ba1031329039b2b63632b960911b60448201526064016105cc565b6111a6612522565b60006111b4878787876115f8565b815191935091506111d85760405163f1d80ab160e01b815260040160405180910390fd5b6111fb8187878988876040015188608001518960a0015160008b60c001516116c5565b60405181907f6eec2dd2382427616d4ea7ef183b16091feac4e2e63c8b55f25215f132df8d1490600090a25060019695505050505050565b6002546000906001600160a01b031661124a6115d3565b6001600160a01b0316146112915760405162461bcd60e51b815260206004820152600e60248201526d26bab9ba1031329039b2b63632b960911b60448201526064016105cc565b611299612522565b60006112a7878787876115f8565b815191935091506112cb5760405163f1d80ab160e01b815260040160405180910390fd5b6001826020015163ffffffff161115806112ee575042826020015163ffffffff16115b156112fe576000925050506106f0565b6002546040830151611326918391899189916001600160a01b03909116906110f4908a6128e3565b60405181907f366d2b4e6cc37ecebb3d7d41df6d581634fd8137412710a1e086e4ca4656bb5890600090a25060019695505050505050565b61136d87878787878787611cc3565b50505050505050565b60035460405163f1c9b1b360e01b81526001600160a01b038381166004830152600092169063f1c9b1b390602401602060405180830381865afa1580156113c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e591906128a1565b6113ed610f87565b6113f791906128e3565b92915050565b61140d8686600087878787611cc3565b505050505050565b80801561142f57506002546001600160a01b038481169116145b15611467576001600160a01b0384166000908152600a60205260408120805484929061145c9084906128d0565b909155506115cd9050565b6001600160a01b038416611516576000836001600160a01b03168360405160006040518083038185875af1925050503d80600081146114c2576040519150601f19603f3d011682016040523d82523d6000602084013e6114c7565b606091505b50509050806115105760405162461bcd60e51b81526020600482015260156024820152744661696c656420746f2073656e6420746f6b656e7360581b60448201526064016105cc565b506115cd565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285169063a9059cbb906044016020604051808303816000875af1158015611565573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158991906128f6565b6115cd5760405162461bcd60e51b81526020600482015260156024820152744661696c656420746f2073656e6420746f6b656e7360581b60448201526064016105cc565b50505050565b600080546001600160a01b031633036115f3575060131936013560601c90565b503390565b611600612522565b600254604051600091829161162b9189916001600160a01b0390911690899089908990602001612913565b60408051808303601f190181528282528051602091820120600081815260018084529084902060e086018552805460ff808216151588526101009182900463ffffffff16958801959095529181015494860194909452600284015480841615156060870152046001600160a01b03166080850152600383015460a085015260049092015416151560c0830152909890975095505050505050565b600160008b8152602001908152602001600020600080820160006101000a81549060ff02191690556000820160016101000a81549063ffffffff021916905560018201600090556002820160006101000a81549060ff02191690556002820160016101000a8154906001600160a01b03021916905560038201600090556004820160006101000a81549060ff021916905550506000600960008c81526020019081526020016000206000600260009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff1690506000600960008d815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff169050600960008d81526020019081526020016000206000600260009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81549060ff0219169055600960008d815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81549060ff02191690556118aa8a8a8a86611415565b84156118ca576005546118ca908b906001600160a01b0316876000611415565b60006118d686896128d0565b11156118f2576118f28a876118eb888b6128d0565b6000611415565b8315611a27576008546040516000916001600160a01b038c16918381818185875af1925050503d8060008114611944576040519150601f19603f3d011682016040523d82523d6000602084013e611949565b606091505b505090508061199b5760405162461bcd60e51b815260206004820152602a6024820152600080516020612a068339815191526044820152693a3432903bb4b73732b960b11b60648201526084016105cc565b8280156119a55750815b15611a21576005546008546040516000926001600160a01b031691908381818185875af1925050503d80600081146119f9576040519150601f19603f3d011682016040523d82523d6000602084013e6119fe565b606091505b5050905080611a1f5760405162461bcd60e51b81526004016105cc9061294d565b505b50611cb5565b818015611a32575080155b15611add576002546008546040516000926001600160a01b031691908381818185875af1925050503d8060008114611a86576040519150601f19603f3d011682016040523d82523d6000602084013e611a8b565b606091505b5050905080611a215760405162461bcd60e51b815260206004820152602a6024820152600080516020612a068339815191526044820152693a34329039b2b63632b960b11b60648201526084016105cc565b808015611ae8575081155b15611b8f576008546040516000916001600160a01b038e16918381818185875af1925050503d8060008114611b39576040519150601f19603f3d011682016040523d82523d6000602084013e611b3e565b606091505b5050905080611a215760405162461bcd60e51b81526020600482015260296024820152600080516020612a068339815191526044820152683a343290313abcb2b960b91b60648201526084016105cc565b808015611b995750815b15611cb5576008546040516000916001600160a01b038c16918381818185875af1925050503d8060008114611bea576040519150601f19603f3d011682016040523d82523d6000602084013e611bef565b606091505b5050905080611c3d5760405162461bcd60e51b81526020600482015260266024820152600080516020612a068339815191526044820152653bb4b73732b960d11b60648201526084016105cc565b6005546008546040516000926001600160a01b031691908381818185875af1925050503d8060008114611c8c576040519150601f19603f3d011682016040523d82523d6000602084013e611c91565b606091505b5050905080611cb25760405162461bcd60e51b81526004016105cc9061294d565b50505b505050505050505050505050565b60008411611d045760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016105cc565b6001600160a01b038616611d4a5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210313abcb2b960991b60448201526064016105cc565b6002546001600160a01b0390811690871603611db35760405162461bcd60e51b815260206004820152602260248201527f53656c6c657220616e64206275796572206d75737420626520646966666572656044820152611b9d60f21b60648201526084016105cc565b6103848263ffffffff1610158015611dd45750620151808263ffffffff1611155b611e205760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642073656c6c65722077616974696e672074696d65000000000060448201526064016105cc565b8015611e85573415611e855760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742073656e6420746f6b656e732077697468206175746f6d6174696044820152676320657363726f7760c01b60648201526084016105cc565b600254604051600091611eac918a916001600160a01b0316908a908a908a90602001612913565b60408051601f1981840301815291815281516020928301206000818152600190935291205490915060ff1615611f1b5760405162461bcd60e51b81526020600482015260146024820152734f7264657220616c72656164792065786973747360601b60448201526064016105cc565b6000612710611f28610f87565b611f32908861298c565b611f3c91906129a3565b90506000612710611f4c87611376565b611f56908961298c565b611f6091906129a3565b90506000611f6e88836128e3565b9050611f7b8982876120b1565b6040805160e081019091526001815260009060208101611f9b89426129c5565b63ffffffff90811682526020808301879052600060408085018290526001600160a01b038e811660608088019190915260808088018d90528e151560a0988901528d855260018087528486208a518154988c015164ffffffffff1990991690151564ffffffff00191617610100989099168802989098178855898501519088015590880151600287018054928a01516001600160a81b0319909316911515610100600160a81b03191691909117919092169094029390931790925592840151600383015560c08401516004909201805460ff1916921515929092179091555191925086917f172bd7c7b396e5e48c349fc8e1c845f01eefba35dff18954119870b39fd05e799190a2505050505050505050505050565b801561214257816120c1846106f8565b101561210f5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320696e20657363726f77000000000060448201526064016105cc565b6001600160a01b0383166000908152600a6020526040812080548492906121379084906128e3565b909155506121979050565b6001600160a01b03831661219c578134146121975760405162461bcd60e51b8152602060048201526015602482015274125b98dbdc9c9958dd08185b5bdd5b9d081cd95b9d605a1b60448201526064016105cc565b505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa1580156121e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220791906128a1565b90506122266122146115d3565b6001600160a01b0386169030866122e7565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa15801561226d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229191906128a1565b90508361229e83836128d0565b146122e05760405162461bcd60e51b815260206004820152601260248201527115dc9bdb99c8115490cc8c08185b5bdd5b9d60721b60448201526064016105cc565b5050505050565b604080516001600160a01b038581166024830152848116604483015260648083018590528351808403909101815260849092018352602080830180516001600160e01b03166323b872dd60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564908401526115cd9287929160009161237f9185169084906123ff565b90508051600014806123a05750808060200190518101906123a091906128f6565b6121975760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105cc565b60606106f0848460008585600080866001600160a01b0316858760405161242691906129e9565b60006040518083038185875af1925050503d8060008114612463576040519150601f19603f3d011682016040523d82523d6000602084013e612468565b606091505b509150915061247987838387612484565b979650505050505050565b606083156124f35782516000036124ec576001600160a01b0385163b6124ec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105cc565b50816106f0565b6106f083838151156125085781518083602001fd5b8060405162461bcd60e51b81526004016105cc91906126f8565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b6001600160a01b038116811461257357600080fd5b50565b6000806040838503121561258957600080fd5b82356125948161255e565b946020939093013593505050565b600080600080608085870312156125b857600080fd5b8435935060208501356125ca8161255e565b925060408501356125da8161255e565b9396929550929360600135925050565b6000602082840312156125fc57600080fd5b813561079e8161255e565b60006020828403121561261957600080fd5b5035919050565b6000806040838503121561263357600080fd5b8235915060208301356126458161255e565b809150509250929050565b600080600080600080600060e0888a03121561266b57600080fd5b87356126768161255e565b965060208801359550604088013561268d8161255e565b9450606088013561269d8161255e565b935060808801356126ad8161255e565b925060a08801356126bd8161255e565b8092505060c0880135905092959891949750929550565b60005b838110156126ef5781810151838201526020016126d7565b50506000910152565b60208152600082518060208401526127178160408501602087016126d4565b601f01601f19169190910160400192915050565b600080600080600060a0868803121561274357600080fd5b8535945060208601356127558161255e565b935060408601356127658161255e565b925060608601359150608086013561277c8161255e565b809150509295509295909350565b803563ffffffff8116811461279e57600080fd5b919050565b801515811461257357600080fd5b600080600080600080600060e0888a0312156127cc57600080fd5b8735965060208801356127de8161255e565b955060408801356127ee8161255e565b94506060880135935060808801356128058161255e565b925061281360a0890161278a565b915060c0880135612823816127a3565b8091505092959891949750929550565b60008060008060008060c0878903121561284c57600080fd5b86359550602087013561285e8161255e565b94506040870135935060608701356128758161255e565b92506128836080880161278a565b915060a0870135612893816127a3565b809150509295509295509295565b6000602082840312156128b357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156113f7576113f76128ba565b808201808211156113f7576113f76128ba565b60006020828403121561290857600080fd5b815161079e816127a3565b9485526bffffffffffffffffffffffff19606094851b8116602087015292841b83166034860152921b166048830152605c820152607c0190565b6020808252603190820152600080516020612a068339815191526040820152701d1a1948199959481c9958da5c1a595b9d607a1b606082015260800190565b80820281158282048414176113f7576113f76128ba565b6000826129c057634e487b7160e01b600052601260045260246000fd5b500490565b63ffffffff8181168382160190808211156129e2576129e26128ba565b5092915050565b600082516129fb8184602087016126d4565b919091019291505056fe4661696c656420746f2073656e642074686520666565204d4154494320746f20a2646970667358221220a01e58acd5b5fbc904dc1a8285b5a87b7860267fc638b40b3d078f15c84e81d964736f6c63430008120033000000000000000000000000630220d00cf136270f553c8577af18300f7b812c000000000000000000000000e872e7e3664f6ae78b62b360aca667877bfef088000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c68000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c80638d0504e2116100c3578063da7422281161007c578063da742228146102ee578063e0c8fb7114610301578063e74b981b14610314578063f1c9b1b314610327578063f2fde38b14610347578063f830baad1461035a57600080fd5b80638d0504e2146102855780638da5cb5b1461029b5780639b501116146102ac578063b0eefabe146102bf578063b9ce896b146102d2578063d784d426146102db57600080fd5b80635c60da1b116101155780635c60da1b1461022a57806369fe0e2d146102425780636cc6cde114610255578063715018a61461026857806375f12b2114610270578063775c300c1461027d57600080fd5b80630f3454281461015d578063130cd750146101a35780631385d24c146101b857806346904840146101c0578063486ff0cd146101d3578063572b6c05146101f8575b600080fd5b61018661016b366004610bd7565b6002602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101b66101b1366004610c47565b61036d565b005b6101b6610515565b600554610186906001600160a01b031681565b60408051808201825260038152620312e360ec1b6020820152905161019a9190610cb3565b61021a610206366004610bd7565b6000546001600160a01b0391821691161490565b604051901515815260200161019a565b6008546101869061010090046001600160a01b031681565b6101b6610250366004610d01565b610531565b600454610186906001600160a01b031681565b6101b661054c565b60085461021a9060ff1681565b610186610560565b61028d6106c3565b60405190815260200161019a565b6001546001600160a01b0316610186565b6101b66102ba366004610bd7565b610774565b6101b66102cd366004610bd7565b61079e565b61028d60075481565b6101b66102e9366004610bd7565b610813565b6101b66102fc366004610bd7565b610892565b61028d61030f366004610bd7565b610912565b6101b6610322366004610bd7565b610943565b61028d610335366004610bd7565b60036020526000908152604090205481565b6101b6610355366004610bd7565b6109bb565b600954610186906001600160a01b031681565b610375610a38565b8281146103b95760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064015b60405180910390fd5b60005b8381101561050e5760648383838181106103d8576103d8610d1a565b90506020020135111561041f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206665652062707360881b60448201526064016103b0565b600085858381811061043357610433610d1a565b90506020020160208101906104489190610bd7565b6001600160a01b03160361049e5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420706172746e6572206164647265737300000000000000000060448201526064016103b0565b8282828181106104b0576104b0610d1a565b90506020020135600360008787858181106104cd576104cd610d1a565b90506020020160208101906104e29190610bd7565b6001600160a01b031681526020810191909152604001600020558061050681610d46565b9150506103bc565b5050505050565b61051d610a38565b6008805460ff19811660ff90911615179055565b610539610a38565b606481111561054757600080fd5b600655565b610554610a38565b61055e6000610ab1565b565b600080610581600860019054906101000a90046001600160a01b0316610b03565b9050806001600160a01b0316633a91bf9a61059a610b9d565b6006546004805460055460005460095460075460405160e08a901b6001600160e01b03191681526001600160a01b0398891696810196909652602486019690965292861660448501529085166064840152841660848301529290921660a483015260c482015260e401600060405180830381600087803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b505050508060026000610642610b9d565b6001600160a01b039081168252602082019290925260400160002080546001600160a01b031916929091169190911790557f2d49c67975aadd2d389580b368cfff5b49965b0bd5da33c144922ce01e7a4d7b61069c610b9d565b604080516001600160a01b03928316815291841660208301520160405180910390a1919050565b6009546000906001600160a01b0316801580159061075f57506000816001600160a01b03166370a082316106f5610b9d565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d9190610d5f565b115b1561076c57600091505090565b505060065490565b61077c610a38565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6107a6610a38565b6001600160a01b0381166107f15760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21030b93134ba3930ba37b960711b60448201526064016103b0565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b61081b610a38565b6001600160a01b03811661086a5760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b21034b6b83632b6b2b73a30ba34b7b760511b60448201526064016103b0565b600880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61089a610a38565b6001600160a01b0381166108f05760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420747275737420666f7277617264657200000000000000000060448201526064016103b0565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600360205260408120546109336106c3565b61093d9190610d78565b92915050565b61094b610a38565b6001600160a01b0381166109995760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a5908199959481c9958da5c1a595b9d605a1b60448201526064016103b0565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6109c3610a38565b6001600160a01b038116610a285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103b0565b610a3181610ab1565b50565b3390565b610a40610b9d565b6001600160a01b0316610a5b6001546001600160a01b031690565b6001600160a01b03161461055e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b0565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116610b985760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b60448201526064016103b0565b919050565b600080546001600160a01b03163303610bbd575060131936013560601c90565b503390565b6001600160a01b0381168114610a3157600080fd5b600060208284031215610be957600080fd5b8135610bf481610bc2565b9392505050565b60008083601f840112610c0d57600080fd5b50813567ffffffffffffffff811115610c2557600080fd5b6020830191508360208260051b8501011115610c4057600080fd5b9250929050565b60008060008060408587031215610c5d57600080fd5b843567ffffffffffffffff80821115610c7557600080fd5b610c8188838901610bfb565b90965094506020870135915080821115610c9a57600080fd5b50610ca787828801610bfb565b95989497509550505050565b600060208083528351808285015260005b81811015610ce057858101830151858201604001528201610cc4565b506000604082860101526040601f19601f8301168501019250505092915050565b600060208284031215610d1357600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610d5857610d58610d30565b5060010190565b600060208284031215610d7157600080fd5b5051919050565b8082018082111561093d5761093d610d3056fea26469706673582212208bf11128bfdac7f86a0441a7a634167df1a8df596bc965a05d8cb980565fdefc64736f6c63430008120033

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

000000000000000000000000630220d00cf136270f553c8577af18300f7b812c000000000000000000000000e872e7e3664f6ae78b62b360aca667877bfef088000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c68000

-----Decoded View---------------
Arg [0] : _arbitrator (address): 0x630220d00Cf136270f553c8577aF18300F7b812c
Arg [1] : _feeRecipient (address): 0xe872E7E3664F6AE78b62B360ACa667877bfEf088
Arg [2] : _fee (uint256): 30
Arg [3] : _trustedForwarder (address): 0x84a0856b038eaAd1cC7E297cF34A7e72685A8693
Arg [4] : _feeDiscountNFT (address): 0x0000000000000000000000000000000000000000
Arg [5] : _disputeFee (uint256): 1000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000630220d00cf136270f553c8577af18300f7b812c
Arg [1] : 000000000000000000000000e872e7e3664f6ae78b62b360aca667877bfef088
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [3] : 00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000000000000000000000000000000038d7ea4c68000


Deployed Bytecode Sourcemap

72859:5338:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72926:50;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;72926:50:0;;;;;;-1:-1:-1;;;;;566:32:1;;;548:51;;536:2;521:18;72926:50:0;;;;;;;;77187:467;;;;;;:::i;:::-;;:::i;:::-;;76763:86;;;:::i;73161:35::-;;;;;-1:-1:-1;;;;;73161:35:0;;;76892:97;76969:12;;;;;;;;;;;-1:-1:-1;;;76969:12:0;;;;76892:97;;;;76969:12;76892:97;:::i;1513:138::-;;;;;;:::i;:::-;1589:4;1626:17;-1:-1:-1;;;;;1613:30:0;;;1626:17;;1613:30;;1513:138;;;;2702:14:1;;2695:22;2677:41;;2665:2;2650:18;1513:138:0;2537:187:1;73291:29:0;;;;;;;;-1:-1:-1;;;;;73291:29:0;;;75958:109;;;;;;:::i;:::-;;:::i;73129:25::-;;;;;-1:-1:-1;;;;;73129:25:0;;;4195:103;;;:::i;73263:19::-;;;;;;;;;74703:513;;;:::i;77753:301::-;;;:::i;:::-;;;3060:25:1;;;3048:2;3033:18;77753:301:0;2914:177:1;3547:87:0;3620:6;;-1:-1:-1;;;;;3620:6:0;3547:87;;77057:122;;;;;;:::i;:::-;;:::i;75409:171::-;;;;;;:::i;:::-;;:::i;73229:25::-;;;;;;76486:219;;;;;;:::i;:::-;;:::i;76166:206::-;;;;;;:::i;:::-;;:::i;78062:132::-;;;;;;:::i;:::-;;:::i;75687:192::-;;;;;;:::i;:::-;;:::i;72983:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;4453:201;;;;;;:::i;:::-;;:::i;73368:29::-;;;;;-1:-1:-1;;;;;73368:29:0;;;77187:467;3433:13;:11;:13::i;:::-;77335:32;;::::1;77327:58;;;::::0;-1:-1:-1;;;77327:58:0;;3558:2:1;77327:58:0::1;::::0;::::1;3540:21:1::0;3597:2;3577:18;;;3570:30;-1:-1:-1;;;3616:18:1;;;3609:43;3669:18;;77327:58:0::1;;;;;;;;;77403:9;77398:249;77418:20:::0;;::::1;77398:249;;;77480:3;77468:5;;77474:1;77468:8;;;;;;;:::i;:::-;;;;;;;:15;;77460:43;;;::::0;-1:-1:-1;;;77460:43:0;;4032:2:1;77460:43:0::1;::::0;::::1;4014:21:1::0;4071:2;4051:18;;;4044:30;-1:-1:-1;;;4090:18:1;;;4083:45;4145:18;;77460:43:0::1;3830:339:1::0;77460:43:0::1;77550:1;77526:9:::0;;77536:1;77526:12;;::::1;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;77526:26:0::1;::::0;77518:62:::1;;;::::0;-1:-1:-1;;;77518:62:0;;4376:2:1;77518:62:0::1;::::0;::::1;4358:21:1::0;4415:2;4395:18;;;4388:30;4454:25;4434:18;;;4427:53;4497:18;;77518:62:0::1;4174:347:1::0;77518:62:0::1;77627:5;;77633:1;77627:8;;;;;;;:::i;:::-;;;;;;;77597:13;:27;77611:9;;77621:1;77611:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;77597:27:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;77597:27:0;:38;77440:3;::::1;::::0;::::1;:::i;:::-;;;;77398:249;;;;77187:467:::0;;;;:::o;76763:86::-;3433:13;:11;:13::i;:::-;76834:7:::1;::::0;;-1:-1:-1;;76823:18:0;::::1;76834:7;::::0;;::::1;76833:8;76823:18;::::0;;76763:86::o;75958:109::-;3433:13;:11;:13::i;:::-;76032:3:::1;76024:4;:11;;76016:20;;;::::0;::::1;;76049:3;:10:::0;75958:109::o;4195:103::-;3433:13;:11;:13::i;:::-;4260:30:::1;4287:1;4260:18;:30::i;:::-;4195:103::o:0;74703:513::-;74739:7;74759:18;74780:28;74793:14;;;;;;;;;-1:-1:-1;;;;;74793:14:0;74780:12;:28::i;:::-;74759:49;;74842:10;-1:-1:-1;;;;;74819:46:0;;74888:12;:10;:12::i;:::-;74916:3;;74934:10;;;74959:12;;74934:10;74986:17;75018:14;;75047:10;;74819:249;;;;;;-1:-1:-1;;;;;;74819:249:0;;;-1:-1:-1;;;;;5201:15:1;;;74819:249:0;;;5183:34:1;;;;5233:18;;;5226:34;;;;74934:10:0;;;5276:18:1;;;5269:43;74959:12:0;;;5328:18:1;;;5321:43;74986:17:0;;5380:19:1;;;5373:44;75018:14:0;;;;5433:19:1;;;5426:44;5486:19;;;5479:35;5117:19;;74819:249:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75111:10;75079:15;:29;75095:12;:10;:12::i;:::-;-1:-1:-1;;;;;75079:29:0;;;;;;;;;;;;;;-1:-1:-1;75079:29:0;:42;;-1:-1:-1;;;;;;75079:42:0;;;;;;;;;;;75137:41;75153:12;:10;:12::i;:::-;75137:41;;;-1:-1:-1;;;;;5755:15:1;;;5737:34;;5807:15;;;5802:2;5787:18;;5780:43;5672:18;75137:41:0;;;;;;;75198:10;74703:513;-1:-1:-1;74703:513:0:o;77753:301::-;77847:14;;77797:7;;-1:-1:-1;;;;;77847:14:0;77893:28;;;;;:84;;;77976:1;77938:11;-1:-1:-1;;;;;77938:21:0;;77960:12;:10;:12::i;:::-;77938:35;;-1:-1:-1;;;;;;77938:35:0;;;;;;;-1:-1:-1;;;;;566:32:1;;;77938:35:0;;;548:51:1;521:18;;77938:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:39;77893:84;77875:149;;;78011:1;78004:8;;;77753:301;:::o;77875:149::-;-1:-1:-1;;78043:3:0;;;77753:301::o;77057:122::-;3433:13;:11;:13::i;:::-;77139:14:::1;:32:::0;;-1:-1:-1;;;;;;77139:32:0::1;-1:-1:-1::0;;;;;77139:32:0;;;::::1;::::0;;;::::1;::::0;;77057:122::o;75409:171::-;3433:13;:11;:13::i;:::-;-1:-1:-1;;;;;75489:25:0;::::1;75481:56;;;::::0;-1:-1:-1;;;75481:56:0;;6225:2:1;75481:56:0::1;::::0;::::1;6207:21:1::0;6264:2;6244:18;;;6237:30;-1:-1:-1;;;6283:18:1;;;6276:48;6341:18;;75481:56:0::1;6023:342:1::0;75481:56:0::1;75548:10;:24:::0;;-1:-1:-1;;;;;;75548:24:0::1;-1:-1:-1::0;;;;;75548:24:0;;;::::1;::::0;;;::::1;::::0;;75409:171::o;76486:219::-;3433:13;:11;:13::i;:::-;-1:-1:-1;;;;;76598:29:0;::::1;76590:64;;;::::0;-1:-1:-1;;;76590:64:0;;6572:2:1;76590:64:0::1;::::0;::::1;6554:21:1::0;6611:2;6591:18;;;6584:30;-1:-1:-1;;;6630:18:1;;;6623:52;6692:18;;76590:64:0::1;6370:346:1::0;76590:64:0::1;76665:14;:32:::0;;-1:-1:-1;;;;;76665:32:0;;::::1;;;-1:-1:-1::0;;;;;;76665:32:0;;::::1;::::0;;;::::1;::::0;;76486:219::o;76166:206::-;3433:13;:11;:13::i;:::-;-1:-1:-1;;;;;76259:30:0;::::1;76251:66;;;::::0;-1:-1:-1;;;76251:66:0;;6923:2:1;76251:66:0::1;::::0;::::1;6905:21:1::0;6962:2;6942:18;;;6935:30;7001:25;6981:18;;;6974:53;7044:18;;76251:66:0::1;6721:347:1::0;76251:66:0::1;76328:17;:36:::0;;-1:-1:-1;;;;;;76328:36:0::1;-1:-1:-1::0;;;;;76328:36:0;;;::::1;::::0;;;::::1;::::0;;76166:206::o;78062:132::-;-1:-1:-1;;;;;78163:23:0;;78120:7;78163:23;;;:13;:23;;;;;;78147:13;:11;:13::i;:::-;:39;;;;:::i;:::-;78140:46;78062:132;-1:-1:-1;;78062:132:0:o;75687:192::-;3433:13;:11;:13::i;:::-;-1:-1:-1;;;;;75779:27:0;::::1;75771:61;;;::::0;-1:-1:-1;;;75771:61:0;;7405:2:1;75771:61:0::1;::::0;::::1;7387:21:1::0;7444:2;7424:18;;;7417:30;-1:-1:-1;;;7463:18:1;;;7456:51;7524:18;;75771:61:0::1;7203:345:1::0;75771:61:0::1;75843:12;:28:::0;;-1:-1:-1;;;;;;75843:28:0::1;-1:-1:-1::0;;;;;75843:28:0;;;::::1;::::0;;;::::1;::::0;;75687:192::o;4453:201::-;3433:13;:11;:13::i;:::-;-1:-1:-1;;;;;4542:22:0;::::1;4534:73;;;::::0;-1:-1:-1;;;4534:73:0;;7755:2:1;4534:73:0::1;::::0;::::1;7737:21:1::0;7794:2;7774:18;;;7767:30;7833:34;7813:18;;;7806:62;-1:-1:-1;;;7884:18:1;;;7877:36;7930:19;;4534:73:0::1;7553:402:1::0;4534:73:0::1;4618:28;4637:8;4618:18;:28::i;:::-;4453:201:::0;:::o;792:98::-;872:10;;792:98::o;3712:132::-;3787:12;:10;:12::i;:::-;-1:-1:-1;;;;;3776:23:0;:7;3620:6;;-1:-1:-1;;;;;3620:6:0;;3547:87;3776:7;-1:-1:-1;;;;;3776:23:0;;3768:68;;;;-1:-1:-1;;;3768:68:0;;8162:2:1;3768:68:0;;;8144:21:1;;;8181:18;;;8174:30;8240:34;8220:18;;;8213:62;8292:18;;3768:68:0;7960:356:1;4814:191:0;4907:6;;;-1:-1:-1;;;;;4924:17:0;;;-1:-1:-1;;;;;;4924:17:0;;;;;;;4957:40;;4907:6;;;4924:17;4907:6;;4957:40;;4888:16;;4957:40;4877:128;4814:191;:::o;40615:770::-;40672:16;41009:48;40991:14;40985:4;40981:25;40975:4;40971:36;40968:90;40962:4;40955:104;41218:32;41201:14;41195:4;41191:25;41188:63;41182:4;41175:77;41294:4;41288;41285:1;41278:21;41266:33;-1:-1:-1;;;;;;41328:22:0;;41320:57;;;;-1:-1:-1;;;41320:57:0;;8523:2:1;41320:57:0;;;8505:21:1;8562:2;8542:18;;;8535:30;-1:-1:-1;;;8581:18:1;;;8574:52;8643:18;;41320:57:0;8321:346:1;41320:57:0;40615:770;;;:::o;1659:410::-;1721:14;1626:17;;-1:-1:-1;;;;;1626:17:0;1771:10;1613:30;1748:314;;-1:-1:-1;;;1957:14:0;1953:23;1940:37;1936:2;1932:46;1659:410;:::o;1748:314::-;-1:-1:-1;872:10:0;;1659:410::o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:247;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;:::-;386:5;150:247;-1:-1:-1;;;150:247:1:o;610:367::-;673:8;683:6;737:3;730:4;722:6;718:17;714:27;704:55;;755:1;752;745:12;704:55;-1:-1:-1;778:20:1;;821:18;810:30;;807:50;;;853:1;850;843:12;807:50;890:4;882:6;878:17;866:29;;950:3;943:4;933:6;930:1;926:14;918:6;914:27;910:38;907:47;904:67;;;967:1;964;957:12;904:67;610:367;;;;;:::o;982:773::-;1104:6;1112;1120;1128;1181:2;1169:9;1160:7;1156:23;1152:32;1149:52;;;1197:1;1194;1187:12;1149:52;1237:9;1224:23;1266:18;1307:2;1299:6;1296:14;1293:34;;;1323:1;1320;1313:12;1293:34;1362:70;1424:7;1415:6;1404:9;1400:22;1362:70;:::i;:::-;1451:8;;-1:-1:-1;1336:96:1;-1:-1:-1;1539:2:1;1524:18;;1511:32;;-1:-1:-1;1555:16:1;;;1552:36;;;1584:1;1581;1574:12;1552:36;;1623:72;1687:7;1676:8;1665:9;1661:24;1623:72;:::i;:::-;982:773;;;;-1:-1:-1;1714:8:1;-1:-1:-1;;;;982:773:1:o;1984:548::-;2096:4;2125:2;2154;2143:9;2136:21;2186:6;2180:13;2229:6;2224:2;2213:9;2209:18;2202:34;2254:1;2264:140;2278:6;2275:1;2272:13;2264:140;;;2373:14;;;2369:23;;2363:30;2339:17;;;2358:2;2335:26;2328:66;2293:10;;2264:140;;;2268:3;2453:1;2448:2;2439:6;2428:9;2424:22;2420:31;2413:42;2523:2;2516;2512:7;2507:2;2499:6;2495:15;2491:29;2480:9;2476:45;2472:54;2464:62;;;;1984:548;;;;:::o;2729:180::-;2788:6;2841:2;2829:9;2820:7;2816:23;2812:32;2809:52;;;2857:1;2854;2847:12;2809:52;-1:-1:-1;2880:23:1;;2729:180;-1:-1:-1;2729:180:1:o;3698:127::-;3759:10;3754:3;3750:20;3747:1;3740:31;3790:4;3787:1;3780:15;3814:4;3811:1;3804:15;4526:127;4587:10;4582:3;4578:20;4575:1;4568:31;4618:4;4615:1;4608:15;4642:4;4639:1;4632:15;4658:135;4697:3;4718:17;;;4715:43;;4738:18;;:::i;:::-;-1:-1:-1;4785:1:1;4774:13;;4658:135::o;5834:184::-;5904:6;5957:2;5945:9;5936:7;5932:23;5928:32;5925:52;;;5973:1;5970;5963:12;5925:52;-1:-1:-1;5996:16:1;;5834:184;-1:-1:-1;5834:184:1:o;7073:125::-;7138:9;;;7159:10;;;7156:36;;;7172:18;;:::i

Swarm Source

ipfs://a01e58acd5b5fbc904dc1a8285b5a87b7860267fc638b40b3d078f15c84e81d9

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  ]
[ 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.