ETH Price: $3,371.00 (-0.12%)

Contract

0x4E0A925C5a252242EE6e825B6257297595E4D6f5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve212248812024-11-19 22:51:113 days ago1732056671IN
0x4E0A925C...595E4D6f5
0 ETH0.0007257215.53940643
Transfer211978412024-11-16 4:23:117 days ago1731730991IN
0x4E0A925C...595E4D6f5
0 ETH0.0011046621.36978975
Approve211134612024-11-04 9:42:5918 days ago1730713379IN
0x4E0A925C...595E4D6f5
0 ETH0.000234465.0203576
Approve210968482024-11-02 2:02:3521 days ago1730512955IN
0x4E0A925C...595E4D6f5
0 ETH0.000196544.20851404
Approve210968412024-11-02 2:01:1121 days ago1730512871IN
0x4E0A925C...595E4D6f5
0 ETH0.000209844.49323935
Approve210968362024-11-02 2:00:1121 days ago1730512811IN
0x4E0A925C...595E4D6f5
0 ETH0.0001934.13268793
Approve210968312024-11-02 1:59:1121 days ago1730512751IN
0x4E0A925C...595E4D6f5
0 ETH0.000203754.36290365
Approve210968272024-11-02 1:58:2321 days ago1730512703IN
0x4E0A925C...595E4D6f5
0 ETH0.000207084.43428527
Approve210968272024-11-02 1:58:2321 days ago1730512703IN
0x4E0A925C...595E4D6f5
0 ETH0.000205654.40929611
Approve210968222024-11-02 1:57:2321 days ago1730512643IN
0x4E0A925C...595E4D6f5
0 ETH0.00020984.49249321
Approve210968182024-11-02 1:56:3521 days ago1730512595IN
0x4E0A925C...595E4D6f5
0 ETH0.000213794.583837
Approve210968182024-11-02 1:56:3521 days ago1730512595IN
0x4E0A925C...595E4D6f5
0 ETH0.000214074.583837
Approve210968132024-11-02 1:55:3521 days ago1730512535IN
0x4E0A925C...595E4D6f5
0 ETH0.000214924.60803486
Approve210968132024-11-02 1:55:3521 days ago1730512535IN
0x4E0A925C...595E4D6f5
0 ETH0.00021524.60803486
Approve210968082024-11-02 1:54:3521 days ago1730512475IN
0x4E0A925C...595E4D6f5
0 ETH0.000199144.26967385
Approve210968032024-11-02 1:53:3521 days ago1730512415IN
0x4E0A925C...595E4D6f5
0 ETH0.000217494.65714345
Approve210928752024-11-01 12:43:5921 days ago1730465039IN
0x4E0A925C...595E4D6f5
0 ETH0.0002819911.54885395
Approve210772932024-10-30 8:33:3524 days ago1730277215IN
0x4E0A925C...595E4D6f5
0 ETH0.0005156911.09938068
Approve210650182024-10-28 15:26:5925 days ago1730129219IN
0x4E0A925C...595E4D6f5
0 ETH0.0005347418.22699164
Approve210650172024-10-28 15:26:4725 days ago1730129207IN
0x4E0A925C...595E4D6f5
0 ETH0.0008801318.84581296
Approve210608922024-10-28 1:36:2326 days ago1730079383IN
0x4E0A925C...595E4D6f5
0 ETH0.000267385.7253337
Approve210607502024-10-28 1:07:3526 days ago1730077655IN
0x4E0A925C...595E4D6f5
0 ETH0.000347737.49587617
Approve210607432024-10-28 1:06:1126 days ago1730077571IN
0x4E0A925C...595E4D6f5
0 ETH0.00030796.63733814
Approve210607332024-10-28 1:04:1126 days ago1730077451IN
0x4E0A925C...595E4D6f5
0 ETH0.000312556.73762335
Approve210606362024-10-28 0:44:4726 days ago1730076287IN
0x4E0A925C...595E4D6f5
0 ETH0.000248885.32916994
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
210556562024-10-27 8:05:3527 days ago1730016335
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
210556552024-10-27 8:05:2327 days ago1730016323
0x4E0A925C...595E4D6f5
0.5 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EveOneCat

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-10-26
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/interfaces/IERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


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

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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/contracts/interfaces/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/interfaces/IERC1363.sol


// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;



/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

// File: @openzeppelin/contracts/utils/Errors.sol


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

pragma solidity ^0.8.20;

/**
 * @dev Collection of common custom errors used in multiple contracts
 *
 * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
 * It is recommended to avoid relying on the error API for critical functionality.
 *
 * _Available since v5.1._
 */
library Errors {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error InsufficientBalance(uint256 balance, uint256 needed);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedCall();

    /**
     * @dev The deployment failed.
     */
    error FailedDeployment();

    /**
     * @dev A necessary precompile is missing.
     */
    error MissingPrecompile(address);
}

// File: @openzeppelin/contracts/utils/Address.sol


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

pragma solidity ^0.8.20;


/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert Errors.InsufficientBalance(address(this).balance, amount);
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert Errors.FailedCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {Errors.FailedCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert Errors.InsufficientBalance(address(this).balance, value);
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
     * of an unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {Errors.FailedCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
     */
    function _revert(bytes memory returndata) 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
            assembly ("memory-safe") {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert Errors.FailedCall();
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


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

pragma solidity ^0.8.20;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @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.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

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

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


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

pragma solidity ^0.8.20;


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

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

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

// File: @openzeppelin/contracts/utils/Context.sol


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

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol


// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

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

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

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

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

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

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

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


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

pragma solidity ^0.8.20;





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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol


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

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

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

    constructor() {
        _status = NOT_ENTERED;
    }

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

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

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

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

// File: contracts/cat.sol



pragma solidity ^0.8.19;





interface IUniswapV2Router01 {
    function WETH() external pure returns (address);

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

interface IUniswapV2Factory {
    function getPair(
        address tokenA,
        address tokenB
    ) external view returns (address pair);

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

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

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint);

    function balanceOf(address owner) external view returns (uint);

    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);

    function transfer(address to, uint value) external returns (bool);

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function price0CumulativeLast() external view returns (uint);

    function price1CumulativeLast() external view returns (uint);

    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);

    function burn(address to) external returns (uint amount0, uint amount1);

    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

contract EveOneCat is ERC20, ReentrancyGuard, Ownable {
    using SafeERC20 for IERC20;

    event AddLiquidityEvent(
        address indexed to,
        uint256 amount,
        uint256 ethAmount,
        uint256 liquidity
    );

    address public uniswapRouter;
    address public uniswapFactory;
    uint256 public mintLimit;
    uint256 public mintTimes;
    uint256 public mintPrice;
    address public _pair;
    mapping(address => uint256) public mintsPerAddress;
    bool public mintEnabled;

    constructor() ERC20("EveOneCAT", "CAT") Ownable(msg.sender) {
//        address _uniswapRouter = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24;
//        address _uniswapFactory = 0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6;

        address _uniswapRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
        address _uniswapFactory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f ;

        uint256 totalSupply = 5000000000;

        _mint(address(this), totalSupply * (10 ** 18));
        _mint(msg.sender, totalSupply * (10 ** 18));

        uniswapRouter = _uniswapRouter;
        uniswapFactory = _uniswapFactory;
        mintLimit = 10;
        mintPrice = 0.0005 ether;
        mintTimes = 0;
        mintEnabled = true; // Initialize minting as enabled

        _approve(address(this), uniswapRouter, type(uint256).max);

        address _weth = IUniswapV2Router01(uniswapRouter).WETH();
        _pair = IUniswapV2Factory(uniswapFactory).createPair(address(this), _weth);
    }


    // Function to enable or disable minting
    function setMintEnabled(bool _enabled) external onlyOwner {
        mintEnabled = _enabled;
    }

    function mint() public payable nonReentrant {
        require(mintEnabled, "Minting is currently disabled");
        require(!_isContract(msg.sender), "ERC123: cannot mint to contract");
        require(msg.sender == tx.origin, "ERC123: cannot mint via contract");
        require(mintsPerAddress[msg.sender] < mintLimit, "Mint limit reached");
        require(msg.value == mintPrice, "Incorrect ETH amount sent");
        require(mintTimes < 50000 , "Too many minting requests");

        uint256 amount = 100000 * (10 ** 18);

        _transfer(address(this), msg.sender, amount);
        mintsPerAddress[msg.sender] += 1; // Increment the mint count for the address
        mintTimes += 1;

        // Check if the mint count for this address has reached 10
        if (mintTimes % 1000 == 0) {
            addLiquidityETH(address(this).balance); // Add liquidity with the current ETH balance
        }
    }

    function addLiquidityETH(uint256 ethAmount) private {
        require(_pair != address(0), "Pair does not exist");
        uint256 tokenAmount = balanceOf(address(this));

        IUniswapV2Router01 router = IUniswapV2Router01(uniswapRouter);

        (uint256 amountToken, uint256 amountETH, uint256 liquidity) = router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            ethAmount,
            0x000000000000000000000000000000000000dEaD,  //black hole address
            block.timestamp + 1 days
        );

        emit AddLiquidityEvent(address(this), amountToken, amountETH, liquidity);
    }


    function reserves() public view returns (uint112, uint112) {
        (uint112 reserveETH, uint112 reserveToken,) = IUniswapV2Pair(_pair).getReserves();
        return (reserveETH, reserveToken);
    }

    function getCurrentTokenPrice() public view returns (uint256) {
        require(_pair != address(0), "Pair does not exist");

        (uint112 reserveETH, uint112 reserveToken,) = IUniswapV2Pair(_pair).getReserves();

        // Ensure we have both reserves
        require(reserveToken > 0 && reserveETH > 0, "Insufficient liquidity");

        // Calculate the price of the token in ETH
        // price = reserveETH / reserveToken
        uint256 tokenPriceInETH = (reserveETH * 10 ** 18) / reserveToken;

        return tokenPriceInETH;
    }

    function _isContract(address _addr) internal view returns (bool) {
        uint32 size;
        assembly {
            size := extcodesize(_addr)
        }
        return (size > 0);
    }

    // Function to withdraw ETH from the contract
    function withdrawETH() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "No ETH to withdraw");
        payable(owner()).transfer(balance);
    }

    // Function to withdraw ERC20 tokens from the contract
    function withdrawTokens(uint256 amount) external onlyOwner {
        _transfer(address(this), msg.sender, amount);
    }

    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"AddLiquidityEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserves","outputs":[{"internalType":"uint112","name":"","type":"uint112"},{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561000f575f80fd5b503360405180604001604052806009815260200168115d9953db9950d05560ba1b8152506040518060400160405280600381526020016210d05560ea1b815250816003908161005e919061059e565b50600461006b828261059e565b50506001600555506001600160a01b0381166100a157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100aa81610273565b50737a250d5630b4cf539739df2c5dacb4c659f2488d735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f64012a05f2006100f6306100f183670de0b6b3a764000061066c565b6102c4565b61010c336100f183670de0b6b3a764000061066c565b600780546001600160a01b038086166001600160a01b031992831681179093556008805491861691909216179055600a60098190556601c6bf52634000600b555f9055600e805460ff191660011790556101699030905f196102fc565b600754604080516315ab88c960e31b815290515f926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa1580156101b0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101d49190610689565b6008546040516364e329cb60e11b81523060048201526001600160a01b03808416602483015292935091169063c9c65396906044016020604051808303815f875af1158015610225573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102499190610689565b600c80546001600160a01b0319166001600160a01b0392909216919091179055506106c992505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166102ed5760405163ec442f0560e01b81525f6004820152602401610098565b6102f85f838361030e565b5050565b6103098383836001610434565b505050565b6001600160a01b038316610338578060025f82825461032d91906106b6565b909155506103a89050565b6001600160a01b0383165f908152602081905260409020548181101561038a5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610098565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166103c4576002805482900390556103e2565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161042791815260200190565b60405180910390a3505050565b6001600160a01b03841661045d5760405163e602df0560e01b81525f6004820152602401610098565b6001600160a01b03831661048657604051634a1406b160e11b81525f6004820152602401610098565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561050157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104f891815260200190565b60405180910390a35b50505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061052f57607f821691505b60208210810361054d57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561030957805f5260205f20601f840160051c810160208510156105785750805b601f840160051c820191505b81811015610597575f8155600101610584565b5050505050565b81516001600160401b038111156105b7576105b7610507565b6105cb816105c5845461051b565b84610553565b6020601f8211600181146105fd575f83156105e65750848201515b5f19600385901b1c1916600184901b178455610597565b5f84815260208120601f198516915b8281101561062c578785015182556020948501946001909201910161060c565b508482101561064957868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761068357610683610658565b92915050565b5f60208284031215610699575f80fd5b81516001600160a01b03811681146106af575f80fd5b9392505050565b8082018082111561068357610683610658565b6112e7806106d65f395ff3fe60806040526004361061017e575f3560e01c8063755cc41e116100cd578063b51449bb11610087578063e086e5ec11610062578063e086e5ec1461046b578063f2fde38b1461047f578063f46a04eb1461049e578063f751758b146104bd575f80fd5b8063b51449bb146103ef578063d12397301461040e578063dd62ed3e14610427575f80fd5b8063755cc41e146103565780638bdb2afa1461036b5780638da5cb5b1461038a57806395d89b41146103a7578063996517cf146103bb578063a9059cbb146103d0575f80fd5b8063313ce5671161013857806370a082311161011357806370a08231146102a3578063715018a6146102d7578063735de9f7146102eb57806375172a8b14610322575f80fd5b8063313ce56714610254578063315a095d1461026f5780636817c76c1461028e575f80fd5b806306fdde0314610189578063095ea7b3146101b35780631249c58b146101e257806318160ddd146101ec57806323b872dd1461020a5780633023eba614610229575f80fd5b3661018557005b5f80fd5b348015610194575f80fd5b5061019d6104d1565b6040516101aa919061100f565b60405180910390f35b3480156101be575f80fd5b506101d26101cd36600461105f565b610561565b60405190151581526020016101aa565b6101ea61057a565b005b3480156101f7575f80fd5b506002545b6040519081526020016101aa565b348015610215575f80fd5b506101d2610224366004611087565b6107f4565b348015610234575f80fd5b506101fc6102433660046110c1565b600d6020525f908152604090205481565b34801561025f575f80fd5b50604051601281526020016101aa565b34801561027a575f80fd5b506101ea6102893660046110e1565b610817565b348015610299575f80fd5b506101fc600b5481565b3480156102ae575f80fd5b506101fc6102bd3660046110c1565b6001600160a01b03165f9081526020819052604090205490565b3480156102e2575f80fd5b506101ea61082d565b3480156102f6575f80fd5b5060075461030a906001600160a01b031681565b6040516001600160a01b0390911681526020016101aa565b34801561032d575f80fd5b5061033661083e565b604080516001600160701b039384168152929091166020830152016101aa565b348015610361575f80fd5b506101fc600a5481565b348015610376575f80fd5b5060085461030a906001600160a01b031681565b348015610395575f80fd5b506006546001600160a01b031661030a565b3480156103b2575f80fd5b5061019d6108c2565b3480156103c6575f80fd5b506101fc60095481565b3480156103db575f80fd5b506101d26103ea36600461105f565b6108d1565b3480156103fa575f80fd5b50600c5461030a906001600160a01b031681565b348015610419575f80fd5b50600e546101d29060ff1681565b348015610432575f80fd5b506101fc6104413660046110f8565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610476575f80fd5b506101ea6108de565b34801561048a575f80fd5b506101ea6104993660046110c1565b610964565b3480156104a9575f80fd5b506101ea6104b8366004611129565b61099e565b3480156104c8575f80fd5b506101fc6109b9565b6060600380546104e090611148565b80601f016020809104026020016040519081016040528092919081815260200182805461050c90611148565b80156105575780601f1061052e57610100808354040283529160200191610557565b820191905f5260205f20905b81548152906001019060200180831161053a57829003601f168201915b5050505050905090565b5f3361056e818585610b18565b60019150505b92915050565b610582610b2a565b600e5460ff166105d95760405162461bcd60e51b815260206004820152601d60248201527f4d696e74696e672069732063757272656e746c792064697361626c656400000060448201526064015b60405180910390fd5b333b63ffffffff161561062e5760405162461bcd60e51b815260206004820152601f60248201527f4552433132333a2063616e6e6f74206d696e7420746f20636f6e74726163740060448201526064016105d0565b33321461067d5760405162461bcd60e51b815260206004820181905260248201527f4552433132333a2063616e6e6f74206d696e742076696120636f6e747261637460448201526064016105d0565b600954335f908152600d6020526040902054106106d15760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b60448201526064016105d0565b600b5434146107225760405162461bcd60e51b815260206004820152601960248201527f496e636f72726563742045544820616d6f756e742073656e740000000000000060448201526064016105d0565b61c350600a54106107755760405162461bcd60e51b815260206004820152601960248201527f546f6f206d616e79206d696e74696e672072657175657374730000000000000060448201526064016105d0565b69152d02c7e14af680000061078b303383610b54565b335f908152600d602052604081208054600192906107aa908490611194565b925050819055506001600a5f8282546107c39190611194565b9091555050600a546107d8906103e8906111bb565b5f036107e7576107e747610bb1565b506107f26001600555565b565b5f33610801858285610d1e565b61080c858585610b54565b506001949350505050565b61081f610d99565b61082a303383610b54565b50565b610835610d99565b6107f25f610dc6565b5f805f80600c5f9054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610892573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108b691906111e4565b50909590945092505050565b6060600480546104e090611148565b5f3361056e818585610b54565b6108e6610d99565b47806109295760405162461bcd60e51b81526020600482015260126024820152714e6f2045544820746f20776974686472617760701b60448201526064016105d0565b6006546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610960573d5f803e3d5ffd5b5050565b61096c610d99565b6001600160a01b03811661099557604051631e4fbdf760e01b81525f60048201526024016105d0565b61082a81610dc6565b6109a6610d99565b600e805460ff1916911515919091179055565b600c545f906001600160a01b0316610a095760405162461bcd60e51b815260206004820152601360248201527214185a5c88191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016105d0565b5f80600c5f9054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610a5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a7f91906111e4565b50915091505f816001600160701b0316118015610aa457505f826001600160701b0316115b610ae95760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c697175696469747960501b60448201526064016105d0565b5f81610afd84670de0b6b3a7640000611230565b610b079190611259565b6001600160701b0316949350505050565b610b258383836001610e17565b505050565b600260055403610b4d57604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b6001600160a01b038316610b7d57604051634b637e8f60e11b81525f60048201526024016105d0565b6001600160a01b038216610ba65760405163ec442f0560e01b81525f60048201526024016105d0565b610b25838383610ee9565b600c546001600160a01b0316610bff5760405162461bcd60e51b815260206004820152601360248201527214185a5c88191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016105d0565b305f908152602081905260408120546007549091506001600160a01b03165f80808363f305d719873088858361dead610c3b4262015180611194565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015610ca6573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610ccb9190611286565b6040805184815260208101849052908101829052929550909350915030907f225597b52a4856f446ebef0a7cd2dbf30dcd8d1d031ee26d60b005e314f027399060600160405180910390a2505050505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610d935781811015610d8557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105d0565b610d9384848484035f610e17565b50505050565b6006546001600160a01b031633146107f25760405163118cdaa760e01b81523360048201526024016105d0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610e405760405163e602df0560e01b81525f60048201526024016105d0565b6001600160a01b038316610e6957604051634a1406b160e11b81525f60048201526024016105d0565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610d9357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610edb91815260200190565b60405180910390a350505050565b6001600160a01b038316610f13578060025f828254610f089190611194565b90915550610f839050565b6001600160a01b0383165f9081526020819052604090205481811015610f655760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105d0565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610f9f57600280548290039055610fbd565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161100291815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461105a575f80fd5b919050565b5f8060408385031215611070575f80fd5b61107983611044565b946020939093013593505050565b5f805f60608486031215611099575f80fd5b6110a284611044565b92506110b060208501611044565b929592945050506040919091013590565b5f602082840312156110d1575f80fd5b6110da82611044565b9392505050565b5f602082840312156110f1575f80fd5b5035919050565b5f8060408385031215611109575f80fd5b61111283611044565b915061112060208401611044565b90509250929050565b5f60208284031215611139575f80fd5b813580151581146110da575f80fd5b600181811c9082168061115c57607f821691505b60208210810361117a57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057457610574611180565b634e487b7160e01b5f52601260045260245ffd5b5f826111c9576111c96111a7565b500690565b80516001600160701b038116811461105a575f80fd5b5f805f606084860312156111f6575f80fd5b6111ff846111ce565b925061120d602085016111ce565b9150604084015163ffffffff81168114611225575f80fd5b809150509250925092565b6001600160701b03818116838216029081169081811461125257611252611180565b5092915050565b5f6001600160701b03831680611271576112716111a7565b806001600160701b0384160491505092915050565b5f805f60608486031215611298575f80fd5b505081516020830151604090930151909492935091905056fea264697066735822122022f82d3ab257af23e3b232729911e3b9f1997b0db6c9653f69df526a9a30561b64736f6c634300081a0033

Deployed Bytecode

0x60806040526004361061017e575f3560e01c8063755cc41e116100cd578063b51449bb11610087578063e086e5ec11610062578063e086e5ec1461046b578063f2fde38b1461047f578063f46a04eb1461049e578063f751758b146104bd575f80fd5b8063b51449bb146103ef578063d12397301461040e578063dd62ed3e14610427575f80fd5b8063755cc41e146103565780638bdb2afa1461036b5780638da5cb5b1461038a57806395d89b41146103a7578063996517cf146103bb578063a9059cbb146103d0575f80fd5b8063313ce5671161013857806370a082311161011357806370a08231146102a3578063715018a6146102d7578063735de9f7146102eb57806375172a8b14610322575f80fd5b8063313ce56714610254578063315a095d1461026f5780636817c76c1461028e575f80fd5b806306fdde0314610189578063095ea7b3146101b35780631249c58b146101e257806318160ddd146101ec57806323b872dd1461020a5780633023eba614610229575f80fd5b3661018557005b5f80fd5b348015610194575f80fd5b5061019d6104d1565b6040516101aa919061100f565b60405180910390f35b3480156101be575f80fd5b506101d26101cd36600461105f565b610561565b60405190151581526020016101aa565b6101ea61057a565b005b3480156101f7575f80fd5b506002545b6040519081526020016101aa565b348015610215575f80fd5b506101d2610224366004611087565b6107f4565b348015610234575f80fd5b506101fc6102433660046110c1565b600d6020525f908152604090205481565b34801561025f575f80fd5b50604051601281526020016101aa565b34801561027a575f80fd5b506101ea6102893660046110e1565b610817565b348015610299575f80fd5b506101fc600b5481565b3480156102ae575f80fd5b506101fc6102bd3660046110c1565b6001600160a01b03165f9081526020819052604090205490565b3480156102e2575f80fd5b506101ea61082d565b3480156102f6575f80fd5b5060075461030a906001600160a01b031681565b6040516001600160a01b0390911681526020016101aa565b34801561032d575f80fd5b5061033661083e565b604080516001600160701b039384168152929091166020830152016101aa565b348015610361575f80fd5b506101fc600a5481565b348015610376575f80fd5b5060085461030a906001600160a01b031681565b348015610395575f80fd5b506006546001600160a01b031661030a565b3480156103b2575f80fd5b5061019d6108c2565b3480156103c6575f80fd5b506101fc60095481565b3480156103db575f80fd5b506101d26103ea36600461105f565b6108d1565b3480156103fa575f80fd5b50600c5461030a906001600160a01b031681565b348015610419575f80fd5b50600e546101d29060ff1681565b348015610432575f80fd5b506101fc6104413660046110f8565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610476575f80fd5b506101ea6108de565b34801561048a575f80fd5b506101ea6104993660046110c1565b610964565b3480156104a9575f80fd5b506101ea6104b8366004611129565b61099e565b3480156104c8575f80fd5b506101fc6109b9565b6060600380546104e090611148565b80601f016020809104026020016040519081016040528092919081815260200182805461050c90611148565b80156105575780601f1061052e57610100808354040283529160200191610557565b820191905f5260205f20905b81548152906001019060200180831161053a57829003601f168201915b5050505050905090565b5f3361056e818585610b18565b60019150505b92915050565b610582610b2a565b600e5460ff166105d95760405162461bcd60e51b815260206004820152601d60248201527f4d696e74696e672069732063757272656e746c792064697361626c656400000060448201526064015b60405180910390fd5b333b63ffffffff161561062e5760405162461bcd60e51b815260206004820152601f60248201527f4552433132333a2063616e6e6f74206d696e7420746f20636f6e74726163740060448201526064016105d0565b33321461067d5760405162461bcd60e51b815260206004820181905260248201527f4552433132333a2063616e6e6f74206d696e742076696120636f6e747261637460448201526064016105d0565b600954335f908152600d6020526040902054106106d15760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b60448201526064016105d0565b600b5434146107225760405162461bcd60e51b815260206004820152601960248201527f496e636f72726563742045544820616d6f756e742073656e740000000000000060448201526064016105d0565b61c350600a54106107755760405162461bcd60e51b815260206004820152601960248201527f546f6f206d616e79206d696e74696e672072657175657374730000000000000060448201526064016105d0565b69152d02c7e14af680000061078b303383610b54565b335f908152600d602052604081208054600192906107aa908490611194565b925050819055506001600a5f8282546107c39190611194565b9091555050600a546107d8906103e8906111bb565b5f036107e7576107e747610bb1565b506107f26001600555565b565b5f33610801858285610d1e565b61080c858585610b54565b506001949350505050565b61081f610d99565b61082a303383610b54565b50565b610835610d99565b6107f25f610dc6565b5f805f80600c5f9054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610892573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108b691906111e4565b50909590945092505050565b6060600480546104e090611148565b5f3361056e818585610b54565b6108e6610d99565b47806109295760405162461bcd60e51b81526020600482015260126024820152714e6f2045544820746f20776974686472617760701b60448201526064016105d0565b6006546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610960573d5f803e3d5ffd5b5050565b61096c610d99565b6001600160a01b03811661099557604051631e4fbdf760e01b81525f60048201526024016105d0565b61082a81610dc6565b6109a6610d99565b600e805460ff1916911515919091179055565b600c545f906001600160a01b0316610a095760405162461bcd60e51b815260206004820152601360248201527214185a5c88191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016105d0565b5f80600c5f9054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610a5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a7f91906111e4565b50915091505f816001600160701b0316118015610aa457505f826001600160701b0316115b610ae95760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e74206c697175696469747960501b60448201526064016105d0565b5f81610afd84670de0b6b3a7640000611230565b610b079190611259565b6001600160701b0316949350505050565b610b258383836001610e17565b505050565b600260055403610b4d57604051633ee5aeb560e01b815260040160405180910390fd5b6002600555565b6001600160a01b038316610b7d57604051634b637e8f60e11b81525f60048201526024016105d0565b6001600160a01b038216610ba65760405163ec442f0560e01b81525f60048201526024016105d0565b610b25838383610ee9565b600c546001600160a01b0316610bff5760405162461bcd60e51b815260206004820152601360248201527214185a5c88191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016105d0565b305f908152602081905260408120546007549091506001600160a01b03165f80808363f305d719873088858361dead610c3b4262015180611194565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015610ca6573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610ccb9190611286565b6040805184815260208101849052908101829052929550909350915030907f225597b52a4856f446ebef0a7cd2dbf30dcd8d1d031ee26d60b005e314f027399060600160405180910390a2505050505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610d935781811015610d8557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105d0565b610d9384848484035f610e17565b50505050565b6006546001600160a01b031633146107f25760405163118cdaa760e01b81523360048201526024016105d0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610e405760405163e602df0560e01b81525f60048201526024016105d0565b6001600160a01b038316610e6957604051634a1406b160e11b81525f60048201526024016105d0565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610d9357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610edb91815260200190565b60405180910390a350505050565b6001600160a01b038316610f13578060025f828254610f089190611194565b90915550610f839050565b6001600160a01b0383165f9081526020819052604090205481811015610f655760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105d0565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610f9f57600280548290039055610fbd565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161100291815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461105a575f80fd5b919050565b5f8060408385031215611070575f80fd5b61107983611044565b946020939093013593505050565b5f805f60608486031215611099575f80fd5b6110a284611044565b92506110b060208501611044565b929592945050506040919091013590565b5f602082840312156110d1575f80fd5b6110da82611044565b9392505050565b5f602082840312156110f1575f80fd5b5035919050565b5f8060408385031215611109575f80fd5b61111283611044565b915061112060208401611044565b90509250929050565b5f60208284031215611139575f80fd5b813580151581146110da575f80fd5b600181811c9082168061115c57607f821691505b60208210810361117a57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561057457610574611180565b634e487b7160e01b5f52601260045260245ffd5b5f826111c9576111c96111a7565b500690565b80516001600160701b038116811461105a575f80fd5b5f805f606084860312156111f6575f80fd5b6111ff846111ce565b925061120d602085016111ce565b9150604084015163ffffffff81168114611225575f80fd5b809150509250925092565b6001600160701b03818116838216029081169081811461125257611252611180565b5092915050565b5f6001600160701b03831680611271576112716111a7565b806001600160701b0384160491505092915050565b5f805f60608486031215611298575f80fd5b505081516020830151604090930151909492935091905056fea264697066735822122022f82d3ab257af23e3b232729911e3b9f1997b0db6c9653f69df526a9a30561b64736f6c634300081a0033

Deployed Bytecode Sourcemap

54699:4773:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35423:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;37716:190;;;;;;;;;;-1:-1:-1;37716:190:0;;;;;:::i;:::-;;:::i;:::-;;;1085:14:1;;1078:22;1060:41;;1048:2;1033:18;37716:190:0;920:187:1;56390:929:0;;;:::i;:::-;;36525:99;;;;;;;;;;-1:-1:-1;36604:12:0;;36525:99;;;1258:25:1;;;1246:2;1231:18;36525:99:0;1112:177:1;38516:249:0;;;;;;;;;;-1:-1:-1;38516:249:0;;;;;:::i;:::-;;:::i;55135:50::-;;;;;;;;;;-1:-1:-1;55135:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;36376:84;;;;;;;;;;-1:-1:-1;36376:84:0;;36450:2;2006:36:1;;1994:2;1979:18;36376:84:0;1864:184:1;59310:122:0;;;;;;;;;;-1:-1:-1;59310:122:0;;;;;:::i;:::-;;:::i;55077:24::-;;;;;;;;;;;;;;;;36687:118;;;;;;;;;;-1:-1:-1;36687:118:0;;;;;:::i;:::-;-1:-1:-1;;;;;36779:18:0;36752:7;36779:18;;;;;;;;;;;;36687:118;50650:103;;;;;;;;;;;;;:::i;54944:28::-;;;;;;;;;;-1:-1:-1;54944:28:0;;;;-1:-1:-1;;;;;54944:28:0;;;;;;-1:-1:-1;;;;;2448:32:1;;;2430:51;;2418:2;2403:18;54944:28:0;2284:203:1;58013::0;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;2684:43:1;;;2666:62;;2764:43;;;;2759:2;2744:18;;2737:71;2639:18;58013:203:0;2492:322:1;55046:24:0;;;;;;;;;;;;;;;;54979:29;;;;;;;;;;-1:-1:-1;54979:29:0;;;;-1:-1:-1;;;;;54979:29:0;;;49975:87;;;;;;;;;;-1:-1:-1;50048:6:0;;-1:-1:-1;;;;;50048:6:0;49975:87;;35633:95;;;;;;;;;;;;;:::i;55015:24::-;;;;;;;;;;;;;;;;37010:182;;;;;;;;;;-1:-1:-1;37010:182:0;;;;;:::i;:::-;;:::i;55108:20::-;;;;;;;;;;-1:-1:-1;55108:20:0;;;;-1:-1:-1;;;;;55108:20:0;;;55192:23;;;;;;;;;;-1:-1:-1;55192:23:0;;;;;;;;37255:142;;;;;;;;;;-1:-1:-1;37255:142:0;;;;;:::i;:::-;-1:-1:-1;;;;;37362:18:0;;;37335:7;37362:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;37255:142;59044:198;;;;;;;;;;;;;:::i;50908:220::-;;;;;;;;;;-1:-1:-1;50908:220:0;;;;;:::i;:::-;;:::i;56283:99::-;;;;;;;;;;-1:-1:-1;56283:99:0;;;;;:::i;:::-;;:::i;58224:559::-;;;;;;;;;;;;;:::i;35423:91::-;35468:13;35501:5;35494:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35423:91;:::o;37716:190::-;37789:4;26802:10;37845:31;26802:10;37861:7;37870:5;37845:8;:31::i;:::-;37894:4;37887:11;;;37716:190;;;;;:::o;56390:929::-;47390:21;:19;:21::i;:::-;56453:11:::1;::::0;::::1;;56445:53;;;::::0;-1:-1:-1;;;56445:53:0;;3949:2:1;56445:53:0::1;::::0;::::1;3931:21:1::0;3988:2;3968:18;;;3961:30;4027:31;4007:18;;;4000:59;4076:18;;56445:53:0::1;;;;;;;;;56530:10;58921:18:::0;58968:8;;;56509:68:::1;;;::::0;-1:-1:-1;;;56509:68:0;;4307:2:1;56509:68:0::1;::::0;::::1;4289:21:1::0;4346:2;4326:18;;;4319:30;4385:33;4365:18;;;4358:61;4436:18;;56509:68:0::1;4105:355:1::0;56509:68:0::1;56596:10;56610:9;56596:23;56588:68;;;::::0;-1:-1:-1;;;56588:68:0;;4667:2:1;56588:68:0::1;::::0;::::1;4649:21:1::0;;;4686:18;;;4679:30;4745:34;4725:18;;;4718:62;4797:18;;56588:68:0::1;4465:356:1::0;56588:68:0::1;56705:9;::::0;56691:10:::1;56675:27;::::0;;;:15:::1;:27;::::0;;;;;:39:::1;56667:70;;;::::0;-1:-1:-1;;;56667:70:0;;5028:2:1;56667:70:0::1;::::0;::::1;5010:21:1::0;5067:2;5047:18;;;5040:30;-1:-1:-1;;;5086:18:1;;;5079:48;5144:18;;56667:70:0::1;4826:342:1::0;56667:70:0::1;56769:9;;56756;:22;56748:60;;;::::0;-1:-1:-1;;;56748:60:0;;5375:2:1;56748:60:0::1;::::0;::::1;5357:21:1::0;5414:2;5394:18;;;5387:30;5453:27;5433:18;;;5426:55;5498:18;;56748:60:0::1;5173:349:1::0;56748:60:0::1;56839:5;56827:9;;:17;56819:56;;;::::0;-1:-1:-1;;;56819:56:0;;5729:2:1;56819:56:0::1;::::0;::::1;5711:21:1::0;5768:2;5748:18;;;5741:30;5807:27;5787:18;;;5780:55;5852:18;;56819:56:0::1;5527:349:1::0;56819:56:0::1;56905:19;56937:44;56955:4;56962:10;56905:19:::0;56937:9:::1;:44::i;:::-;57008:10;56992:27;::::0;;;:15:::1;:27;::::0;;;;:32;;57023:1:::1;::::0;56992:27;:32:::1;::::0;57023:1;;56992:32:::1;:::i;:::-;;;;;;;;57092:1;57079:9;;:14;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;57178:9:0::1;::::0;:16:::1;::::0;57190:4:::1;::::0;57178:16:::1;:::i;:::-;57198:1;57178:21:::0;57174:138:::1;;57216:38;57232:21;57216:15;:38::i;:::-;56434:885;47434:20:::0;46725:1;47976:7;:21;47793:212;47434:20;56390:929::o;38516:249::-;38603:4;26802:10;38661:37;38677:4;26802:10;38692:5;38661:15;:37::i;:::-;38709:26;38719:4;38725:2;38729:5;38709:9;:26::i;:::-;-1:-1:-1;38753:4:0;;38516:249;-1:-1:-1;;;;38516:249:0:o;59310:122::-;49861:13;:11;:13::i;:::-;59380:44:::1;59398:4;59405:10;59417:6;59380:9;:44::i;:::-;59310:122:::0;:::o;50650:103::-;49861:13;:11;:13::i;:::-;50715:30:::1;50742:1;50715:18;:30::i;58013:203::-:0;58054:7;58063;58084:18;58104:20;58144:5;;;;;;;;;-1:-1:-1;;;;;58144:5:0;-1:-1:-1;;;;;58129:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;58083:81:0;;;;-1:-1:-1;58013:203:0;-1:-1:-1;;;58013:203:0:o;35633:95::-;35680:13;35713:7;35706:14;;;;;:::i;37010:182::-;37079:4;26802:10;37135:27;26802:10;37152:2;37156:5;37135:9;:27::i;59044:198::-;49861:13;:11;:13::i;:::-;59115:21:::1;59155:11:::0;59147:42:::1;;;::::0;-1:-1:-1;;;59147:42:0;;7242:2:1;59147:42:0::1;::::0;::::1;7224:21:1::0;7281:2;7261:18;;;7254:30;-1:-1:-1;;;7300:18:1;;;7293:48;7358:18;;59147:42:0::1;7040:342:1::0;59147:42:0::1;50048:6:::0;;59200:34:::1;::::0;-1:-1:-1;;;;;50048:6:0;;;;59200:34;::::1;;;::::0;59226:7;;59200:34:::1;::::0;;;59226:7;50048:6;59200:34;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;59086:156;59044:198::o:0;50908:220::-;49861:13;:11;:13::i;:::-;-1:-1:-1;;;;;50993:22:0;::::1;50989:93;;51039:31;::::0;-1:-1:-1;;;51039:31:0;;51067:1:::1;51039:31;::::0;::::1;2430:51:1::0;2403:18;;51039:31:0::1;2284:203:1::0;50989:93:0::1;51092:28;51111:8;51092:18;:28::i;56283:99::-:0;49861:13;:11;:13::i;:::-;56352:11:::1;:22:::0;;-1:-1:-1;;56352:22:0::1;::::0;::::1;;::::0;;;::::1;::::0;;56283:99::o;58224:559::-;58305:5;;58277:7;;-1:-1:-1;;;;;58305:5:0;58297:51;;;;-1:-1:-1;;;58297:51:0;;7589:2:1;58297:51:0;;;7571:21:1;7628:2;7608:18;;;7601:30;-1:-1:-1;;;7647:18:1;;;7640:49;7706:18;;58297:51:0;7387:343:1;58297:51:0;58362:18;58382:20;58422:5;;;;;;;;;-1:-1:-1;;;;;58422:5:0;-1:-1:-1;;;;;58407:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58361:81;;;;;58519:1;58504:12;-1:-1:-1;;;;;58504:16:0;;:34;;;;;58537:1;58524:10;-1:-1:-1;;;;;58524:14:0;;58504:34;58496:69;;;;-1:-1:-1;;;58496:69:0;;7937:2:1;58496:69:0;;;7919:21:1;7976:2;7956:18;;;7949:30;-1:-1:-1;;;7995:18:1;;;7988:52;8057:18;;58496:69:0;7735:346:1;58496:69:0;58676:23;58728:12;58703:21;:10;58716:8;58703:21;:::i;:::-;58702:38;;;;:::i;:::-;-1:-1:-1;;;;;58676:64:0;;58224:559;-1:-1:-1;;;;58224:559:0:o;42575:130::-;42660:37;42669:5;42676:7;42685:5;42692:4;42660:8;:37::i;:::-;42575:130;;;:::o;47470:315::-;46768:1;47599:7;;:18;47595:88;;47641:30;;-1:-1:-1;;;47641:30:0;;;;;;;;;;;47595:88;46768:1;47760:7;:17;47470:315::o;39150:308::-;-1:-1:-1;;;;;39234:18:0;;39230:88;;39276:30;;-1:-1:-1;;;39276:30:0;;39303:1;39276:30;;;2430:51:1;2403:18;;39276:30:0;2284:203:1;39230:88:0;-1:-1:-1;;;;;39332:16:0;;39328:88;;39372:32;;-1:-1:-1;;;39372:32:0;;39401:1;39372:32;;;2430:51:1;2403:18;;39372:32:0;2284:203:1;39328:88:0;39426:24;39434:4;39440:2;39444:5;39426:7;:24::i;57327:676::-;57398:5;;-1:-1:-1;;;;;57398:5:0;57390:51;;;;-1:-1:-1;;;57390:51:0;;7589:2:1;57390:51:0;;;7571:21:1;7628:2;7608:18;;;7601:30;-1:-1:-1;;;7647:18:1;;;7640:49;7706:18;;57390:51:0;7387:343:1;57390:51:0;57492:4;57452:19;36779:18;;;;;;;;;;;57558:13;;57452:46;;-1:-1:-1;;;;;;57558:13:0;57511:25;;;57558:13;57647:22;57677:9;57710:4;57452:46;57511:25;57677:9;57796:42;57875:24;:15;57893:6;57875:24;:::i;:::-;57647:263;;;;;;-1:-1:-1;;;;;;57647:263:0;;;-1:-1:-1;;;;;8933:32:1;;;57647:263:0;;;8915:51:1;8982:18;;;8975:34;;;;9025:18;;;9018:34;;;;9068:18;;;9061:34;;;;9132:32;;;9111:19;;;9104:61;9181:19;;;9174:35;;;;8887:19;;57647:263:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57928:67;;;9883:25:1;;;9939:2;9924:18;;9917:34;;;9967:18;;;9960:34;;;57585:325:0;;-1:-1:-1;57585:325:0;;-1:-1:-1;57585:325:0;-1:-1:-1;57954:4:0;;57928:67;;9871:2:1;9856:18;57928:67:0;;;;;;;57379:624;;;;;57327:676;:::o;44307:487::-;-1:-1:-1;;;;;37362:18:0;;;44407:24;37362:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;44474:37:0;;44470:317;;44551:5;44532:16;:24;44528:132;;;44584:60;;-1:-1:-1;;;44584:60:0;;-1:-1:-1;;;;;10225:32:1;;44584:60:0;;;10207:51:1;10274:18;;;10267:34;;;10317:18;;;10310:34;;;10180:18;;44584:60:0;10005:345:1;44528:132:0;44703:57;44712:5;44719:7;44747:5;44728:16;:24;44754:5;44703:8;:57::i;:::-;44396:398;44307:487;;;:::o;50140:166::-;50048:6;;-1:-1:-1;;;;;50048:6:0;26802:10;50200:23;50196:103;;50247:40;;-1:-1:-1;;;50247:40:0;;26802:10;50247:40;;;2430:51:1;2403:18;;50247:40:0;2284:203:1;51288:191:0;51381:6;;;-1:-1:-1;;;;;51398:17:0;;;-1:-1:-1;;;;;;51398:17:0;;;;;;;51431:40;;51381:6;;;51398:17;51381:6;;51431:40;;51362:16;;51431:40;51351:128;51288:191;:::o;43572:443::-;-1:-1:-1;;;;;43685:19:0;;43681:91;;43728:32;;-1:-1:-1;;;43728:32:0;;43757:1;43728:32;;;2430:51:1;2403:18;;43728:32:0;2284:203:1;43681:91:0;-1:-1:-1;;;;;43786:21:0;;43782:92;;43831:31;;-1:-1:-1;;;43831:31:0;;43859:1;43831:31;;;2430:51:1;2403:18;;43831:31:0;2284:203:1;43782:92:0;-1:-1:-1;;;;;43884:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;43930:78;;;;43981:7;-1:-1:-1;;;;;43965:31:0;43974:5;-1:-1:-1;;;;;43965:31:0;;43990:5;43965:31;;;;1258:25:1;;1246:2;1231:18;;1112:177;43965:31:0;;;;;;;;43572:443;;;;:::o;39782:1135::-;-1:-1:-1;;;;;39872:18:0;;39868:552;;40026:5;40010:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;39868:552:0;;-1:-1:-1;39868:552:0;;-1:-1:-1;;;;;40086:15:0;;40064:19;40086:15;;;;;;;;;;;40120:19;;;40116:117;;;40167:50;;-1:-1:-1;;;40167:50:0;;-1:-1:-1;;;;;10225:32:1;;40167:50:0;;;10207:51:1;10274:18;;;10267:34;;;10317:18;;;10310:34;;;10180:18;;40167:50:0;10005:345:1;40116:117:0;-1:-1:-1;;;;;40356:15:0;;:9;:15;;;;;;;;;;40374:19;;;;40356:37;;39868:552;-1:-1:-1;;;;;40436:16:0;;40432:435;;40602:12;:21;;;;;;;40432:435;;;-1:-1:-1;;;;;40818:13:0;;:9;:13;;;;;;;;;;:22;;;;;;40432:435;40899:2;-1:-1:-1;;;;;40884:25:0;40893:4;-1:-1:-1;;;;;40884:25:0;;40903:5;40884:25;;;;1258::1;;1246:2;1231:18;;1112:177;40884:25:0;;;;;;;;39782:1135;;;:::o;14:418:1:-;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:300::-;683:6;691;744:2;732:9;723:7;719:23;715:32;712:52;;;760:1;757;750:12;712:52;783:29;802:9;783:29;:::i;:::-;773:39;881:2;866:18;;;;853:32;;-1:-1:-1;;;615:300:1:o;1294:374::-;1371:6;1379;1387;1440:2;1428:9;1419:7;1415:23;1411:32;1408:52;;;1456:1;1453;1446:12;1408:52;1479:29;1498:9;1479:29;:::i;:::-;1469:39;;1527:38;1561:2;1550:9;1546:18;1527:38;:::i;:::-;1294:374;;1517:48;;-1:-1:-1;;;1634:2:1;1619:18;;;;1606:32;;1294:374::o;1673:186::-;1732:6;1785:2;1773:9;1764:7;1760:23;1756:32;1753:52;;;1801:1;1798;1791:12;1753:52;1824:29;1843:9;1824:29;:::i;:::-;1814:39;1673:186;-1:-1:-1;;;1673:186:1:o;2053:226::-;2112:6;2165:2;2153:9;2144:7;2140:23;2136:32;2133:52;;;2181:1;2178;2171:12;2133:52;-1:-1:-1;2226:23:1;;2053:226;-1:-1:-1;2053:226:1:o;2819:260::-;2887:6;2895;2948:2;2936:9;2927:7;2923:23;2919:32;2916:52;;;2964:1;2961;2954:12;2916:52;2987:29;3006:9;2987:29;:::i;:::-;2977:39;;3035:38;3069:2;3058:9;3054:18;3035:38;:::i;:::-;3025:48;;2819:260;;;;;:::o;3084:273::-;3140:6;3193:2;3181:9;3172:7;3168:23;3164:32;3161:52;;;3209:1;3206;3199:12;3161:52;3248:9;3235:23;3301:5;3294:13;3287:21;3280:5;3277:32;3267:60;;3323:1;3320;3313:12;3362:380;3441:1;3437:12;;;;3484;;;3505:61;;3559:4;3551:6;3547:17;3537:27;;3505:61;3612:2;3604:6;3601:14;3581:18;3578:38;3575:161;;3658:10;3653:3;3649:20;3646:1;3639:31;3693:4;3690:1;3683:15;3721:4;3718:1;3711:15;3575:161;;3362:380;;;:::o;5881:127::-;5942:10;5937:3;5933:20;5930:1;5923:31;5973:4;5970:1;5963:15;5997:4;5994:1;5987:15;6013:125;6078:9;;;6099:10;;;6096:36;;;6112:18;;:::i;6143:127::-;6204:10;6199:3;6195:20;6192:1;6185:31;6235:4;6232:1;6225:15;6259:4;6256:1;6249:15;6275:112;6307:1;6333;6323:35;;6338:18;;:::i;:::-;-1:-1:-1;6372:9:1;;6275:112::o;6392:188::-;6471:13;;-1:-1:-1;;;;;6513:42:1;;6503:53;;6493:81;;6570:1;6567;6560:12;6585:450;6672:6;6680;6688;6741:2;6729:9;6720:7;6716:23;6712:32;6709:52;;;6757:1;6754;6747:12;6709:52;6780:40;6810:9;6780:40;:::i;:::-;6770:50;;6839:49;6884:2;6873:9;6869:18;6839:49;:::i;:::-;6829:59;;6931:2;6920:9;6916:18;6910:25;6975:10;6968:5;6964:22;6957:5;6954:33;6944:61;;7001:1;6998;6991:12;6944:61;7024:5;7014:15;;;6585:450;;;;;:::o;8086:305::-;-1:-1:-1;;;;;8171:38:1;;;8211;;;8167:83;8270:48;;;;8337:24;;;8327:58;;8365:18;;:::i;:::-;8327:58;8086:305;;;;:::o;8396:219::-;8436:1;-1:-1:-1;;;;;8467:1:1;8463:38;8520:3;8510:37;;8527:18;;:::i;:::-;8605:3;-1:-1:-1;;;;;8569:1:1;8565:38;8561:48;8556:53;;;8396:219;;;;:::o;9220:456::-;9308:6;9316;9324;9377:2;9365:9;9356:7;9352:23;9348:32;9345:52;;;9393:1;9390;9383:12;9345:52;-1:-1:-1;;9438:16:1;;9544:2;9529:18;;9523:25;9640:2;9625:18;;;9619:25;9438:16;;9523:25;;-1:-1:-1;9619:25:1;9220:456;-1:-1:-1;9220:456:1:o

Swarm Source

ipfs://22f82d3ab257af23e3b232729911e3b9f1997b0db6c9653f69df526a9a30561b

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.