ETH Price: $3,266.05 (+4.26%)

Contract

0x7dF4E182Da01EbA2FF902b3F13b7a7b12bB87dEa

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Delegatecall Mul...5270192025-01-30 22:47:2612 secs ago1738277246IN
0x7dF4E182...12bB87dEa
0.010849 ETH0.000012320.04525
Delegatecall Mul...5270172025-01-30 22:47:2414 secs ago1738277244IN
0x7dF4E182...12bB87dEa
0.004 ETH0.000009240.04525
Delegatecall Mul...5270142025-01-30 22:47:2117 secs ago1738277241IN
0x7dF4E182...12bB87dEa
0.01 ETH0.000009240.04525
Delegatecall Mul...5270132025-01-30 22:47:2018 secs ago1738277240IN
0x7dF4E182...12bB87dEa
0.011 ETH0.000008980.04525
Delegatecall Mul...5270072025-01-30 22:47:1424 secs ago1738277234IN
0x7dF4E182...12bB87dEa
0.003 ETH0.0000080.04525
Delegatecall Mul...5270022025-01-30 22:47:0830 secs ago1738277228IN
0x7dF4E182...12bB87dEa
0.0001 ETH0.000008720.04525
Delegatecall Mul...5269942025-01-30 22:47:0038 secs ago1738277220IN
0x7dF4E182...12bB87dEa
0.012 ETH0.000007830.04525
Delegatecall Mul...5269862025-01-30 22:46:5246 secs ago1738277212IN
0x7dF4E182...12bB87dEa
0.001 ETH0.000008720.04525
Delegatecall Mul...5269582025-01-30 22:46:241 min ago1738277184IN
0x7dF4E182...12bB87dEa
0.01 ETH0.000010480.04525
Delegatecall Mul...5269542025-01-30 22:46:201 min ago1738277180IN
0x7dF4E182...12bB87dEa
0.00012428 ETH0.000008880.04525
Delegatecall Mul...5269522025-01-30 22:46:181 min ago1738277178IN
0x7dF4E182...12bB87dEa
0.0031 ETH0.000008380.04525
Delegatecall Mul...5269412025-01-30 22:46:071 min ago1738277167IN
0x7dF4E182...12bB87dEa
0.001 ETH0.000010880.04525
Delegatecall Mul...5269292025-01-30 22:45:551 min ago1738277155IN
0x7dF4E182...12bB87dEa
0.01522456 ETH0.000008390.04525
Delegatecall Mul...5269292025-01-30 22:45:551 min ago1738277155IN
0x7dF4E182...12bB87dEa
0.01429244 ETH0.00001010.04525
Delegatecall Mul...5269262025-01-30 22:45:521 min ago1738277152IN
0x7dF4E182...12bB87dEa
0.011 ETH0.000007810.04525
Delegatecall Mul...5269212025-01-30 22:45:471 min ago1738277147IN
0x7dF4E182...12bB87dEa
0.0153 ETH0.000009110.04525
Delegatecall Mul...5269142025-01-30 22:45:401 min ago1738277140IN
0x7dF4E182...12bB87dEa
0.00012 ETH0.000009580.04525
Delegatecall Mul...5269142025-01-30 22:45:401 min ago1738277140IN
0x7dF4E182...12bB87dEa
0.01 ETH0.000011430.04525
Delegatecall Mul...5269122025-01-30 22:45:382 mins ago1738277138IN
0x7dF4E182...12bB87dEa
0.00062146 ETH0.000009150.04525
Delegatecall Mul...5269122025-01-30 22:45:382 mins ago1738277138IN
0x7dF4E182...12bB87dEa
0.0001 ETH0.000008560.04525
Delegatecall Mul...5269092025-01-30 22:45:352 mins ago1738277135IN
0x7dF4E182...12bB87dEa
0.004 ETH0.000008060.04525
Delegatecall Mul...5269042025-01-30 22:45:302 mins ago1738277130IN
0x7dF4E182...12bB87dEa
0.013 ETH0.000009440.04525
Delegatecall Mul...5269042025-01-30 22:45:302 mins ago1738277130IN
0x7dF4E182...12bB87dEa
0.01455 ETH0.000010320.04525
Delegatecall Mul...5268962025-01-30 22:45:222 mins ago1738277122IN
0x7dF4E182...12bB87dEa
0.029 ETH0.000009440.04525
Delegatecall Mul...5268952025-01-30 22:45:212 mins ago1738277121IN
0x7dF4E182...12bB87dEa
0.001 ETH0.000011880.04525
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
5270222025-01-30 22:47:299 secs ago1738277249
0x7dF4E182...12bB87dEa
0.01457062 ETH
5270222025-01-30 22:47:299 secs ago1738277249
0x7dF4E182...12bB87dEa
0.01457062 ETH
5270222025-01-30 22:47:299 secs ago1738277249
0x7dF4E182...12bB87dEa
0.01457062 ETH
5270222025-01-30 22:47:299 secs ago1738277249
0x7dF4E182...12bB87dEa
0.00001645 ETH
5270222025-01-30 22:47:299 secs ago1738277249
0x7dF4E182...12bB87dEa
0.00001645 ETH
5270222025-01-30 22:47:299 secs ago1738277249
0x7dF4E182...12bB87dEa
0.00001645 ETH
5270192025-01-30 22:47:2612 secs ago1738277246
0x7dF4E182...12bB87dEa
0.010849 ETH
5270192025-01-30 22:47:2612 secs ago1738277246
0x7dF4E182...12bB87dEa
0x7dF4E182...12bB87dEa
0.010849 ETH
5270192025-01-30 22:47:2612 secs ago1738277246
0x7dF4E182...12bB87dEa
0.010849 ETH
5270192025-01-30 22:47:2612 secs ago1738277246
0x7dF4E182...12bB87dEa
0.010849 ETH
5270172025-01-30 22:47:2414 secs ago1738277244
0x7dF4E182...12bB87dEa
0.003996 ETH
5270172025-01-30 22:47:2414 secs ago1738277244
0x7dF4E182...12bB87dEa
0.003996 ETH
5270172025-01-30 22:47:2414 secs ago1738277244
0x7dF4E182...12bB87dEa
0.000004 ETH
5270172025-01-30 22:47:2414 secs ago1738277244
0x7dF4E182...12bB87dEa
0.004 ETH
5270172025-01-30 22:47:2414 secs ago1738277244
0x7dF4E182...12bB87dEa
0.004 ETH
5270162025-01-30 22:47:2315 secs ago1738277243
0x7dF4E182...12bB87dEa
0.00390335 ETH
5270162025-01-30 22:47:2315 secs ago1738277243
0x7dF4E182...12bB87dEa
0.00390335 ETH
5270162025-01-30 22:47:2315 secs ago1738277243
0x7dF4E182...12bB87dEa
0.00390335 ETH
5270162025-01-30 22:47:2315 secs ago1738277243
0x7dF4E182...12bB87dEa
0.00000393 ETH
5270162025-01-30 22:47:2315 secs ago1738277243
0x7dF4E182...12bB87dEa
0.00000393 ETH
5270162025-01-30 22:47:2315 secs ago1738277243
0x7dF4E182...12bB87dEa
0.00000393 ETH
5270152025-01-30 22:47:2216 secs ago1738277242
0x7dF4E182...12bB87dEa
0.0031658 ETH
5270152025-01-30 22:47:2216 secs ago1738277242
0x7dF4E182...12bB87dEa
0.0031658 ETH
5270152025-01-30 22:47:2216 secs ago1738277242
0x7dF4E182...12bB87dEa
0.0031658 ETH
5270152025-01-30 22:47:2216 secs ago1738277242
0x7dF4E182...12bB87dEa
0.00000316 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC20Router

Compiler Version
v0.8.25+commit.b61c2a91

ZkSolc Version
v1.5.3

Optimization Enabled:
Yes with Mode 3

Other Settings:
cancun EvmVersion
File 1 of 17 : ERC20Router.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;

import {Ownable} from "solady/src/auth/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IAllowanceTransfer} from "permit2-relay/src/interfaces/IAllowanceTransfer.sol";
import {ISignatureTransfer} from "permit2-relay/src/interfaces/ISignatureTransfer.sol";
import {IPermit2} from "permit2-relay/src/interfaces/IPermit2.sol";
import {IMulticaller} from "./interfaces/IMulticaller.sol";

struct RelayerWitness {
    address relayer;
}

contract ERC20Router is Ownable {
    using SafeERC20 for IERC20;

    // --- Errors --- //

    /// @notice Revert if array lengths do not match
    error ArrayLengthsMismatch();

    /// @notice Revert if this contract is set as the recipient
    error InvalidRecipient(address recipient);

    /// @notice Revert if the native transfer failed
    error NativeTransferFailed();

    IPermit2 private immutable PERMIT2;
    address private immutable MULTICALLER;

    string public constant _RELAYER_WITNESS_TYPE_STRING =
        "RelayerWitness witness)RelayerWitness(address relayer)TokenPermissions(address token,uint256 amount)";
    bytes32 public constant _EIP_712_RELAYER_WITNESS_TYPE_HASH =
        keccak256("RelayerWitness(address relayer)");

    constructor(address permit2, address multicaller, address owner) {
        // Set the address of the Permit2 contract
        PERMIT2 = IPermit2(permit2);

        // Set the address of the multicaller contract
        MULTICALLER = multicaller;

        // Set the owner that can withdraw funds stuck in the contract
        _initializeOwner(owner);
    }

    receive() external payable {}

    function withdraw() external onlyOwner {
        _send(msg.sender, address(this).balance);
    }

    /// @notice Pull user ERC20 tokens through a signed batch permit
    ///         and perform an arbitrary multicall. Pass in an empty
    ///         permitSignature to only perform the multicall.
    /// @dev msg.value will persist across all calls in the multicall
    /// @param user The address of the user
    /// @param permit The permit details
    /// @param targets The addresses of the contracts to call
    /// @param datas The calldata for each call
    /// @param values The value to send with each call
    /// @param refundTo The address to refund any leftover ETH to
    /// @param permitSignature The signature for the permit
    function permitMulticall(
        address user,
        ISignatureTransfer.PermitBatchTransferFrom memory permit,
        address[] calldata targets,
        bytes[] calldata datas,
        uint256[] calldata values,
        address refundTo,
        bytes memory permitSignature
    ) external payable returns (bytes memory) {
        // Revert if array lengths do not match
        if (targets.length != datas.length || datas.length != values.length) {
            revert ArrayLengthsMismatch();
        }

        if (permitSignature.length != 0) {
            // Use permit to transfer tokens from user to router
            _handlePermitBatch(user, permit, permitSignature);
        }

        // Perform the multicall and send leftover to refundTo
        bytes memory data = _delegatecallMulticall(
            targets,
            datas,
            values,
            refundTo
        );

        return data;
    }

    /// @notice Call the Multicaller with a delegatecall to set the ERC20Router as the
    ///         sender of the calls to the targets.
    /// @dev    If a multicall is expecting to mint ERC721s or ERC1155s, the recipient must be explicitly set
    ///         All calls to ERC721s and ERC1155s in the multicall will have the same recipient set in refundTo
    ///         If refundTo is address(this), be sure to transfer tokens out of the router as part of the multicall
    /// @param targets The addresses of the contracts to call
    /// @param datas The calldata for each call
    /// @param values The value to send with each call
    /// @param refundTo The address to send any leftover ETH and set as recipient of ERC721/ERC1155 mints
    function delegatecallMulticall(
        address[] calldata targets,
        bytes[] calldata datas,
        uint256[] calldata values,
        address refundTo
    ) external payable returns (bytes memory) {
        // Revert if array lengths do not match
        if (targets.length != datas.length || datas.length != values.length) {
            revert ArrayLengthsMismatch();
        }

        // Perform the multicall
        bytes memory data = _delegatecallMulticall(
            targets,
            datas,
            values,
            refundTo
        );

        return data;
    }

    /// @notice Send leftover ERC20 tokens to the refundTo address
    /// @dev Should be included in the multicall if the router is expecting to receive tokens
    /// @param token The address of the ERC20 token
    /// @param refundTo The address to refund the tokens to
    function cleanupERC20(address token, address refundTo) external {
        // Check the router's balance for the token
        uint256 balance = IERC20(token).balanceOf(address(this));

        // Transfer the token to the refundTo address
        if (balance > 0) {
            IERC20(token).safeTransfer(refundTo, balance);
        }
    }

    /// @notice Internal function to handle a permit batch transfer
    /// @param user The address of the user
    /// @param permit The permit details
    /// @param permitSignature The signature for the permit
    function _handlePermitBatch(
        address user,
        ISignatureTransfer.PermitBatchTransferFrom memory permit,
        bytes memory permitSignature
    ) internal {
        // Create the witness that should be signed over
        bytes32 witness = keccak256(
            abi.encode(_EIP_712_RELAYER_WITNESS_TYPE_HASH, msg.sender)
        );

        // Create the SignatureTransferDetails array
        ISignatureTransfer.SignatureTransferDetails[]
            memory signatureTransferDetails = new ISignatureTransfer.SignatureTransferDetails[](
                permit.permitted.length
            );
        for (uint256 i = 0; i < permit.permitted.length; i++) {
            uint256 amount = permit.permitted[i].amount;

            signatureTransferDetails[i] = ISignatureTransfer
                .SignatureTransferDetails({
                    to: address(this),
                    requestedAmount: amount
                });
        }

        // Use the SignatureTransferDetails and permit signature to transfer tokens to the router
        PERMIT2.permitWitnessTransferFrom(
            permit,
            signatureTransferDetails,
            // When using a permit signature, cannot deposit on behalf of someone else other than `user`
            user,
            witness,
            _RELAYER_WITNESS_TYPE_STRING,
            permitSignature
        );
    }

    /// @notice Internal function to delegatecall the Multicaller contract
    /// @param targets The addresses of the contracts to call
    /// @param datas The calldata for each call
    /// @param values The value to send with each call
    /// @param refundTo The address to send any leftover ETH and set as recipient of ERC721/ERC1155 mints
    function _delegatecallMulticall(
        address[] calldata targets,
        bytes[] calldata datas,
        uint256[] calldata values,
        address refundTo
    ) internal returns (bytes memory) {
        // Perform the multicall and refund to the user
        (bool success, bytes memory data) = MULTICALLER.delegatecall(
            abi.encodeWithSignature(
                "aggregate(address[],bytes[],uint256[],address)",
                targets,
                datas,
                values,
                refundTo
            )
        );

        if (!success) {
            assembly {
                let returnDataSize := mload(data)
                revert(add(data, 32), returnDataSize)
            }
        }

        return data;
    }

    function _send(address to, uint256 value) internal {
        bool success;
        assembly {
            // Save gas by avoiding copying the return data to memory.
            // Provide at most 100k gas to the internal call, which is
            // more than enough to cover common use-cases of logic for
            // receiving native tokens (eg. SCW payable fallbacks).
            success := call(100000, to, value, 0, 0, 0, 0)
        }

        if (!success) {
            revert NativeTransferFailed();
        }
    }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Simple single owner authorization mixin.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)
///
/// @dev Note:
/// This implementation does NOT auto-initialize the owner to `msg.sender`.
/// You MUST call the `_initializeOwner` in the constructor / initializer.
///
/// While the ownable portion follows
/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,
/// the nomenclature for the 2-step ownership handover may be unique to this codebase.
abstract contract Ownable {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The caller is not authorized to call the function.
    error Unauthorized();

    /// @dev The `newOwner` cannot be the zero address.
    error NewOwnerIsZeroAddress();

    /// @dev The `pendingOwner` does not have a valid handover request.
    error NoHandoverRequest();

    /// @dev Cannot double-initialize.
    error AlreadyInitialized();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           EVENTS                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.
    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be
    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),
    /// despite it not being as lightweight as a single argument event.
    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);

    /// @dev An ownership handover to `pendingOwner` has been requested.
    event OwnershipHandoverRequested(address indexed pendingOwner);

    /// @dev The ownership handover to `pendingOwner` has been canceled.
    event OwnershipHandoverCanceled(address indexed pendingOwner);

    /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`.
    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =
        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;

    /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =
        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;

    /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =
        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          STORAGE                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The owner slot is given by:
    /// `bytes32(~uint256(uint32(bytes4(keccak256("_OWNER_SLOT_NOT")))))`.
    /// It is intentionally chosen to be a high value
    /// to avoid collision with lower slots.
    /// The choice of manual storage layout is to enable compatibility
    /// with both regular and upgradeable contracts.
    bytes32 internal constant _OWNER_SLOT =
        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;

    /// The ownership handover slot of `newOwner` is given by:
    /// ```
    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))
    ///     let handoverSlot := keccak256(0x00, 0x20)
    /// ```
    /// It stores the expiry timestamp of the two-step ownership handover.
    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     INTERNAL FUNCTIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.
    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}

    /// @dev Initializes the owner directly without authorization guard.
    /// This function must be called upon initialization,
    /// regardless of whether the contract is upgradeable or not.
    /// This is to enable generalization to both regular and upgradeable contracts,
    /// and to save gas in case the initial owner is not the caller.
    /// For performance reasons, this function will not check if there
    /// is an existing owner.
    function _initializeOwner(address newOwner) internal virtual {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                if sload(ownerSlot) {
                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.
                    revert(0x1c, 0x04)
                }
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(_OWNER_SLOT, newOwner)
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        }
    }

    /// @dev Sets the owner directly without authorization guard.
    function _setOwner(address newOwner) internal virtual {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
                // Store the new value.
                sstore(ownerSlot, newOwner)
            }
        }
    }

    /// @dev Throws if the sender is not the owner.
    function _checkOwner() internal view virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // If the caller is not the stored owner, revert.
            if iszero(eq(caller(), sload(_OWNER_SLOT))) {
                mstore(0x00, 0x82b42900) // `Unauthorized()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Returns how long a two-step ownership handover is valid for in seconds.
    /// Override to return a different value if needed.
    /// Made internal to conserve bytecode. Wrap it in a public function if needed.
    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {
        return 48 * 3600;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  PUBLIC UPDATE FUNCTIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Allows the owner to transfer the ownership to `newOwner`.
    function transferOwnership(address newOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(shl(96, newOwner)) {
                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.
                revert(0x1c, 0x04)
            }
        }
        _setOwner(newOwner);
    }

    /// @dev Allows the owner to renounce their ownership.
    function renounceOwnership() public payable virtual onlyOwner {
        _setOwner(address(0));
    }

    /// @dev Request a two-step ownership handover to the caller.
    /// The request will automatically expire in 48 hours (172800 seconds) by default.
    function requestOwnershipHandover() public payable virtual {
        unchecked {
            uint256 expires = block.timestamp + _ownershipHandoverValidFor();
            /// @solidity memory-safe-assembly
            assembly {
                // Compute and set the handover slot to `expires`.
                mstore(0x0c, _HANDOVER_SLOT_SEED)
                mstore(0x00, caller())
                sstore(keccak256(0x0c, 0x20), expires)
                // Emit the {OwnershipHandoverRequested} event.
                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())
            }
        }
    }

    /// @dev Cancels the two-step ownership handover to the caller, if any.
    function cancelOwnershipHandover() public payable virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, caller())
            sstore(keccak256(0x0c, 0x20), 0)
            // Emit the {OwnershipHandoverCanceled} event.
            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())
        }
    }

    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.
    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.
    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            let handoverSlot := keccak256(0x0c, 0x20)
            // If the handover does not exist, or has expired.
            if gt(timestamp(), sload(handoverSlot)) {
                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.
                revert(0x1c, 0x04)
            }
            // Set the handover slot to 0.
            sstore(handoverSlot, 0)
        }
        _setOwner(pendingOwner);
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   PUBLIC READ FUNCTIONS                    */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the owner of the contract.
    function owner() public view virtual returns (address result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := sload(_OWNER_SLOT)
        }
    }

    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.
    function ownershipHandoverExpiresAt(address pendingOwner)
        public
        view
        virtual
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the handover slot.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            // Load the handover slot.
            result := sload(keccak256(0x0c, 0x20))
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         MODIFIERS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Marks a function as only callable by the owner.
    modifier onlyOwner() virtual {
        _checkOwner();
        _;
    }
}

File 3 of 17 : IPermit2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {ISignatureTransfer} from "./ISignatureTransfer.sol";
import {IAllowanceTransfer} from "./IAllowanceTransfer.sol";

/// @notice Permit2 handles signature-based transfers in SignatureTransfer and allowance-based transfers in AllowanceTransfer.
/// @dev Users must approve Permit2 before calling any of the transfer functions.
interface IPermit2 is ISignatureTransfer, IAllowanceTransfer {
// IPermit2 unifies the two interfaces so users have maximal flexibility with their approval.
}

File 4 of 17 : IMulticaller.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/**
 * @title IMulticaller
 * @notice Interface for the Multicaller contract.
 */
interface IMulticaller {
    /**
     * @dev Aggregates multiple calls in a single transaction.
     * @param targets  An array of addresses to call.
     * @param data     An array of calldata to forward to the targets.
     * @param values   How much ETH to forward to each target.
     * @param refundTo The address to transfer any remaining ETH in the contract after the calls.
     *                 If `address(0)`, remaining ETH will NOT be refunded.
     *                 If `address(1)`, remaining ETH will be refunded to `msg.sender`.
     *                 If anything else, remaining ETH will be refunded to `refundTo`.
     * @return An array of the returndata from each call.
     */
    function aggregate(
        address[] calldata targets,
        bytes[] calldata data,
        uint256[] calldata values,
        address refundTo
    ) external payable returns (bytes[] memory);
}

File 5 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// 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 6 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 17 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC-1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[ERC].
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the zero address.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155Received} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `value` amount.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * WARNING: This function can potentially allow a reentrancy attack when transferring tokens
     * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver.
     * Ensure to follow the checks-effects-interactions pattern and consider employing
     * reentrancy guards when interacting with untrusted contracts.
     *
     * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments.
     *
     * Requirements:
     *
     * - `ids` and `values` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external;
}

File 8 of 17 : IAllowanceTransfer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IEIP712} from "./IEIP712.sol";

/// @title AllowanceTransfer
/// @notice Handles ERC20 token permissions through signature based allowance setting and ERC20 token transfers by checking allowed amounts
/// @dev Requires user's token approval on the Permit2 contract
interface IAllowanceTransfer is IEIP712 {
    /// @notice Thrown when an allowance on a token has expired.
    /// @param deadline The timestamp at which the allowed amount is no longer valid
    error AllowanceExpired(uint256 deadline);

    /// @notice Thrown when an allowance on a token has been depleted.
    /// @param amount The maximum amount allowed
    error InsufficientAllowance(uint256 amount);

    /// @notice Thrown when too many nonces are invalidated.
    error ExcessiveInvalidation();

    /// @notice Emits an event when the owner successfully invalidates an ordered nonce.
    event NonceInvalidation(
        address indexed owner, address indexed token, address indexed spender, uint48 newNonce, uint48 oldNonce
    );

    /// @notice Emits an event when the owner successfully sets permissions on a token for the spender.
    event Approval(
        address indexed owner, address indexed token, address indexed spender, uint160 amount, uint48 expiration
    );

    /// @notice Emits an event when the owner successfully sets permissions using a permit signature on a token for the spender.
    event Permit(
        address indexed owner,
        address indexed token,
        address indexed spender,
        uint160 amount,
        uint48 expiration,
        uint48 nonce
    );

    /// @notice Emits an event when the owner sets the allowance back to 0 with the lockdown function.
    event Lockdown(address indexed owner, address token, address spender);

    /// @notice The permit data for a token
    struct PermitDetails {
        // ERC20 token address
        address token;
        // the maximum amount allowed to spend
        uint160 amount;
        // timestamp at which a spender's token allowances become invalid
        uint48 expiration;
        // an incrementing value indexed per owner,token,and spender for each signature
        uint48 nonce;
    }

    /// @notice The permit message signed for a single token allowance
    struct PermitSingle {
        // the permit data for a single token alownce
        PermitDetails details;
        // address permissioned on the allowed tokens
        address spender;
        // deadline on the permit signature
        uint256 sigDeadline;
    }

    /// @notice The permit message signed for multiple token allowances
    struct PermitBatch {
        // the permit data for multiple token allowances
        PermitDetails[] details;
        // address permissioned on the allowed tokens
        address spender;
        // deadline on the permit signature
        uint256 sigDeadline;
    }

    /// @notice The saved permissions
    /// @dev This info is saved per owner, per token, per spender and all signed over in the permit message
    /// @dev Setting amount to type(uint160).max sets an unlimited approval
    struct PackedAllowance {
        // amount allowed
        uint160 amount;
        // permission expiry
        uint48 expiration;
        // an incrementing value indexed per owner,token,and spender for each signature
        uint48 nonce;
    }

    /// @notice A token spender pair.
    struct TokenSpenderPair {
        // the token the spender is approved
        address token;
        // the spender address
        address spender;
    }

    /// @notice Details for a token transfer.
    struct AllowanceTransferDetails {
        // the owner of the token
        address from;
        // the recipient of the token
        address to;
        // the amount of the token
        uint160 amount;
        // the token to be transferred
        address token;
    }

    /// @notice A mapping from owner address to token address to spender address to PackedAllowance struct, which contains details and conditions of the approval.
    /// @notice The mapping is indexed in the above order see: allowance[ownerAddress][tokenAddress][spenderAddress]
    /// @dev The packed slot holds the allowed amount, expiration at which the allowed amount is no longer valid, and current nonce thats updated on any signature based approvals.
    function allowance(address user, address token, address spender)
        external
        view
        returns (uint160 amount, uint48 expiration, uint48 nonce);

    /// @notice Approves the spender to use up to amount of the specified token up until the expiration
    /// @param token The token to approve
    /// @param spender The spender address to approve
    /// @param amount The approved amount of the token
    /// @param expiration The timestamp at which the approval is no longer valid
    /// @dev The packed allowance also holds a nonce, which will stay unchanged in approve
    /// @dev Setting amount to type(uint160).max sets an unlimited approval
    function approve(address token, address spender, uint160 amount, uint48 expiration) external;

    /// @notice Permit a spender to a given amount of the owners token via the owner's EIP-712 signature
    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce
    /// @param owner The owner of the tokens being approved
    /// @param permitSingle Data signed over by the owner specifying the terms of approval
    /// @param signature The owner's signature over the permit data
    function permit(address owner, PermitSingle memory permitSingle, bytes calldata signature) external;

    /// @notice Permit a spender to the signed amounts of the owners tokens via the owner's EIP-712 signature
    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce
    /// @param owner The owner of the tokens being approved
    /// @param permitBatch Data signed over by the owner specifying the terms of approval
    /// @param signature The owner's signature over the permit data
    function permit(address owner, PermitBatch memory permitBatch, bytes calldata signature) external;

    /// @notice Transfer approved tokens from one address to another
    /// @param from The address to transfer from
    /// @param to The address of the recipient
    /// @param amount The amount of the token to transfer
    /// @param token The token address to transfer
    /// @dev Requires the from address to have approved at least the desired amount
    /// of tokens to msg.sender.
    function transferFrom(address from, address to, uint160 amount, address token) external;

    /// @notice Transfer approved tokens in a batch
    /// @param transferDetails Array of owners, recipients, amounts, and tokens for the transfers
    /// @dev Requires the from addresses to have approved at least the desired amount
    /// of tokens to msg.sender.
    function transferFrom(AllowanceTransferDetails[] calldata transferDetails) external;

    /// @notice Enables performing a "lockdown" of the sender's Permit2 identity
    /// by batch revoking approvals
    /// @param approvals Array of approvals to revoke.
    function lockdown(TokenSpenderPair[] calldata approvals) external;

    /// @notice Invalidate nonces for a given (token, spender) pair
    /// @param token The token to invalidate nonces for
    /// @param spender The spender to invalidate nonces for
    /// @param newNonce The new nonce to set. Invalidates all nonces less than it.
    /// @dev Can't invalidate more than 2**16 nonces per transaction.
    function invalidateNonces(address token, address spender, uint48 newNonce) external;
}

File 9 of 17 : ISignatureTransfer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IEIP712} from "./IEIP712.sol";

/// @title SignatureTransfer
/// @notice Handles ERC20 token transfers through signature based actions
/// @dev Requires user's token approval on the Permit2 contract
interface ISignatureTransfer is IEIP712 {
    /// @notice Thrown when the requested amount for a transfer is larger than the permissioned amount
    /// @param maxAmount The maximum amount a spender can request to transfer
    error InvalidAmount(uint256 maxAmount);

    /// @notice Thrown when the number of tokens permissioned to a spender does not match the number of tokens being transferred
    /// @dev If the spender does not need to transfer the number of tokens permitted, the spender can request amount 0 to be transferred
    error LengthMismatch();

    /// @notice Emits an event when the owner successfully invalidates an unordered nonce.
    event UnorderedNonceInvalidation(address indexed owner, uint256 word, uint256 mask);

    /// @notice The token and amount details for a transfer signed in the permit transfer signature
    struct TokenPermissions {
        // ERC20 token address
        address token;
        // the maximum amount that can be spent
        uint256 amount;
    }

    /// @notice The signed permit message for a single token transfer
    struct PermitTransferFrom {
        TokenPermissions permitted;
        // a unique value for every token owner's signature to prevent signature replays
        uint256 nonce;
        // deadline on the permit signature
        uint256 deadline;
    }

    /// @notice Specifies the recipient address and amount for batched transfers.
    /// @dev Recipients and amounts correspond to the index of the signed token permissions array.
    /// @dev Reverts if the requested amount is greater than the permitted signed amount.
    struct SignatureTransferDetails {
        // recipient address
        address to;
        // spender requested amount
        uint256 requestedAmount;
    }

    /// @notice Used to reconstruct the signed permit message for multiple token transfers
    /// @dev Do not need to pass in spender address as it is required that it is msg.sender
    /// @dev Note that a user still signs over a spender address
    struct PermitBatchTransferFrom {
        // the tokens and corresponding amounts permitted for a transfer
        TokenPermissions[] permitted;
        // a unique value for every token owner's signature to prevent signature replays
        uint256 nonce;
        // deadline on the permit signature
        uint256 deadline;
    }

    /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection
    /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order
    /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce
    /// @dev It returns a uint256 bitmap
    /// @dev The index, or wordPosition is capped at type(uint248).max
    function nonceBitmap(address, uint256) external view returns (uint256);

    /// @notice Transfers a token using a signed permit message
    /// @dev Reverts if the requested amount is greater than the permitted signed amount
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails The spender's requested transfer details for the permitted token
    /// @param signature The signature to verify
    function permitTransferFrom(
        PermitTransferFrom memory permit,
        SignatureTransferDetails calldata transferDetails,
        address owner,
        bytes calldata signature
    ) external;

    /// @notice Transfers a token using a signed permit message
    /// @notice Includes extra data provided by the caller to verify signature over
    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition
    /// @dev Reverts if the requested amount is greater than the permitted signed amount
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails The spender's requested transfer details for the permitted token
    /// @param witness Extra data to include when checking the user signature
    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash
    /// @param signature The signature to verify
    function permitWitnessTransferFrom(
        PermitTransferFrom memory permit,
        SignatureTransferDetails calldata transferDetails,
        address owner,
        bytes32 witness,
        string calldata witnessTypeString,
        bytes calldata signature
    ) external;

    /// @notice Transfers multiple tokens using a signed permit message
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails Specifies the recipient and requested amount for the token transfer
    /// @param signature The signature to verify
    function permitTransferFrom(
        PermitBatchTransferFrom memory permit,
        SignatureTransferDetails[] calldata transferDetails,
        address owner,
        bytes calldata signature
    ) external;

    /// @notice Transfers multiple tokens using a signed permit message
    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition
    /// @notice Includes extra data provided by the caller to verify signature over
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails Specifies the recipient and requested amount for the token transfer
    /// @param witness Extra data to include when checking the user signature
    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash
    /// @param signature The signature to verify
    function permitWitnessTransferFrom(
        PermitBatchTransferFrom memory permit,
        SignatureTransferDetails[] calldata transferDetails,
        address owner,
        bytes32 witness,
        string calldata witnessTypeString,
        bytes calldata signature
    ) external;

    /// @notice Invalidates the bits specified in mask for the bitmap at the word position
    /// @dev The wordPos is maxed at type(uint248).max
    /// @param wordPos A number to index the nonceBitmap at
    /// @param mask A bitmap masked against msg.sender's current bitmap at the word position
    function invalidateUnorderedNonces(uint256 wordPos, uint256 mask) external;
}

File 10 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @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 11 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// 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 12 of 17 : IERC1363.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @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 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)

pragma solidity ^0.8.20;

import {Errors} from "./Errors.sol";

/**
 * @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 14 of 17 : IEIP712.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IEIP712 {
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 15 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 16 of 17 : Errors.sol
// SPDX-License-Identifier: MIT
// 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 17 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

Settings
{
  "viaIR": true,
  "evmVersion": "cancun",
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "outputSelection": {
    "*": {
      "*": [
        "abi"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": true,
  "libraries": {
    "contracts/usdc/util/SignatureChecker.sol": {
      "SignatureChecker": "0xbBB5d95A805b48E24f369127ECcDDF81e87f1A0F"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"permit2","type":"address"},{"internalType":"address","name":"multicaller","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"ArrayLengthsMismatch","type":"error"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"NativeTransferFailed","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"_EIP_712_RELAYER_WITNESS_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_RELAYER_WITNESS_TYPE_STRING","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"refundTo","type":"address"}],"name":"cleanupERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bytes[]","name":"datas","type":"bytes[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"address","name":"refundTo","type":"address"}],"name":"delegatecallMulticall","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ISignatureTransfer.TokenPermissions[]","name":"permitted","type":"tuple[]"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct ISignatureTransfer.PermitBatchTransferFrom","name":"permit","type":"tuple"},{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bytes[]","name":"datas","type":"bytes[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bytes","name":"permitSignature","type":"bytes"}],"name":"permitMulticall","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

3cda3351000000000000000000000000000000000000000000000000000000000000000101000251b58936ccf33b267c1e688d301084c0243c75f316394c541ec34bd7b9000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000225e31d15943971f47ad3022f714fa000000000000000000000000c6ee4f68126da8d707f875d3ff854445e5aa7cb3000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e

Deployed Bytecode

0x0004000000000002001300000000000200000000030100190000006003300270000002060630019700030000006103550002000000010355000002060030019d0000000100200190000000490000c13d0000008003000039000000400030043f000000040060008c0000008e0000413d000000000201043b000000e0022002700000020e0020009c000000920000a13d0000020f0020009c000000b90000a13d000002100020009c000000f90000213d000002130020009c000001100000613d000002140020009c000001f80000c13d000000240060008c000001f80000413d0000000401100370000000000101043b001300000001001d000002090010009c000001f80000213d0000020a01000041000000000101041a0000000002000411000000000012004b000001830000c13d0000021f010000410000000c0010043f0000001301000029000000000010043f0000000001000414000002060010009c0000020601008041000000c00110021000000223011001c700008010020000390815080b0000040f0000000100200190000001f80000613d000000000101043b001100000001001d000000000101041a001200000001001d000002240100004100000000001004430000000001000414000002060010009c0000020601008041000000c00110021000000225011001c70000800b020000390815080b0000040f00000001002001900000051d0000613d000000000101043b000000120010006c0000027c0000a13d0000022601000041000000000010043f000002220100004100000817000104300000000002000416000000000002004b000001f80000c13d0000001f026000390000020702200197000000c002200039000000400020043f0000001f0360018f0000020804600198000000c0024000390000005a0000613d000000c005000039000000000701034f000000007807043c0000000005850436000000000025004b000000560000c13d000000000003004b000000670000613d000000000141034f0000000303300210000000000402043300000000043401cf000000000434022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000141019f0000000000120435000000600060008c000001f80000413d000000c00100043d000002090010009c000001f80000213d000000e00200043d000002090020009c000001f80000213d000001000600043d000002090060009c000001f80000213d000000800010043f000000a00020043f0000020a01000041000000000061041b0000000001000414000002060010009c0000020601008041000000c0011002100000020b011001c70000800d0200003900000003030000390000020c040000410000000005000019081508060000040f0000000100200190000001f80000613d000000800100043d00000140000004430000016000100443000000a00100043d00000020020000390000018000200443000001a0001004430000010000200443000000020100003900000120001004430000020d01000041000008160001042e000000000006004b000001f80000c13d0000000001000019000008160001042e000002180020009c000000c80000213d0000021c0020009c000001870000613d0000021d0020009c000001ca0000613d0000021e0020009c000001f80000c13d0000000001000416000000000001004b000001f80000c13d0000020a01000041000000000201041a0000000001000411000000000021004b000001830000c13d001300000002001d00000246010000410000000000100443000000000100041000000004001004430000000001000414000002060010009c0000020601008041000000c0011002100000023b011001c70000800a020000390815080b0000040f00000001002001900000051d0000613d000000000301043b0000001301000029000000040010008c000000900000613d000000000003004b0000026a0000c13d000002480100004100000013020000290000026e0000013d000002150020009c000001280000613d000002160020009c0000016e0000613d000002170020009c000001f80000c13d0000000001000416000000000001004b000001f80000c13d0000020a01000041000000000101041a0000020901100197000000800010043f0000022001000041000008160001042e000002190020009c000001ae0000613d0000021a0020009c000001dd0000613d001300000003001d0000021b0020009c000001f80000c13d000000e40060008c000001f80000413d0000000402100370000000000202043b001200000002001d000002090020009c000001f80000213d0000002402100370000000000202043b000002280020009c000001f80000213d000000040220003900000000032600490000022b0030009c000001f80000213d000000600030008c000001f80000413d000000e003000039000000400030043f000000000421034f000000000404043b000002280040009c000001f80000213d00000000042400190000001f05400039000000000065004b000001f80000813d000000000541034f000000000705043b000002280070009c000000f30000213d00000005057002100000003f055000390000022c055001970000022d0050009c000002cb0000a13d0000023101000041000000000010043f0000004101000039000000040010043f00000232010000410000081700010430000002110020009c000001170000613d000002120020009c000001f80000c13d000000240060008c000001f80000413d0000000002000416000000000002004b000001f80000c13d0000000401100370000000000101043b000002090010009c000001f80000213d0000021f020000410000000c0020043f000000000010043f0000000c010000390000002002000039081507f10000040f000000000101041a000000800010043f0000022001000041000008160001042e0000000001000416000000000001004b000001f80000c13d0000022701000041000000800010043f0000022001000041000008160001042e000000240060008c000001f80000413d0000000401100370000000000101043b000002090010009c000001f80000213d0000020a02000041000000000202041a0000000003000411000000000023004b000001830000c13d000000000001004b0000027f0000c13d0000022101000041000000000010043f00000222010000410000081700010430000000840060008c000001f80000413d0000000402100370000000000302043b000002280030009c000001f80000213d0000002302300039000000000062004b000001f80000813d0000000402300039000000000221034f000000000202043b000002280020009c000001f80000213d000000240430003900000005032002100000000003430019000000000063004b000001f80000213d0000002403100370000000000303043b000002280030009c000001f80000213d0000002305300039000000000065004b000001f80000813d0000000405300039000000000551034f000000000805043b000002280080009c000001f80000213d000000240330003900000005058002100000000005350019000000000065004b000001f80000213d0000004405100370000000000505043b000002280050009c000001f80000213d0000002307500039000000000067004b000001f80000813d0000000407500039000000000771034f000000000907043b000002280090009c000001f80000213d000000240550003900000005079002100000000007570019000000000067004b000001f80000213d0000006401100370000000000701043b000002090070009c000001f80000213d000000000082004b000004140000c13d000000000098004b000004140000c13d000000000104001900000000040200190000000006020019081506c40000040f0000000002010019000000400100043d001300000001001d0815068f0000040f000001d30000013d0000020a01000041000000000501041a0000000001000411000000000051004b000001830000c13d0000000001000414000002060010009c0000020601008041000000c0011002100000020b011001c70000800d0200003900000003030000390000020c040000410000000006000019081508060000040f0000000100200190000001f80000613d0000020a01000041000000000001041b0000000001000019000008160001042e0000024501000041000000000010043f000002220100004100000817000104300000021f010000410000000c0010043f0000000001000411000000000010043f000002240100004100000000001004430000000001000414000002060010009c0000020601008041000000c00110021000000225011001c70000800b020000390815080b0000040f00000001002001900000051d0000613d000000000101043b001300000001001d0000000001000414000002060010009c0000020601008041000000c00110021000000223011001c700008010020000390815080b0000040f0000000100200190000001f80000613d000000000101043b00000013020000290000024a0220009a000000000021041b0000000001000414000002060010009c0000020601008041000000c0011002100000020b011001c70000800d0200003900000002030000390000024b04000041000001f40000013d000000440060008c000001f80000413d0000000002000416000000000002004b000001f80000c13d0000000402100370000000000202043b001300000002001d000002090020009c000001f80000213d0000002401100370000000000101043b001200000001001d000002090010009c000001f80000213d0000024101000041000000800010043f0000000001000410000000840010043f00000000010004140000001302000029000000040020008c000001fa0000c13d0000000103000031000000200030008c00000020040000390000000004034019000002200000013d0000000001000416000000000001004b000001f80000c13d081506430000040f0000002002000039000000400300043d001300000003001d00000000022304360815065d0000040f00000013020000290000000001210049000002060010009c00000206010080410000006001100210000002060020009c00000206020080410000004002200210000000000121019f000008160001042e0000021f010000410000000c0010043f0000000001000411000000000010043f0000000001000414000002060010009c0000020601008041000000c00110021000000223011001c700008010020000390815080b0000040f0000000100200190000001f80000613d000000000101043b000000000001041b0000000001000414000002060010009c0000020601008041000000c0011002100000020b011001c70000800d02000039000000020300003900000240040000410000000005000411081508060000040f0000000100200190000000900000c13d00000000010000190000081700010430000002060010009c0000020601008041000000c00110021000000242011001c70815080b0000040f000000000301001900000060033002700000020603300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf0000020f0000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000020b0000c13d000000000006004b0000021c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f000300000001035500000001002001900000024c0000613d0000001f01400039000000600210018f00000080012001bf000000400010043f000000200030008c000001f80000413d000000800300043d000000000003004b000000900000613d000000c4042000390000000000340435000000a00320003900000243040000410000000000430435000000a404200039000000120500002900000000005404350000004404000039000000000041043500000100022001bf000000400020043f000000000401043300000000010004140000001302000029000000040020008c000002820000c13d0000000001030433000000000010043f000000010010008c00000000010000390000000101006039000000000001004b000000900000c13d000000400100043d00000244020000410000000000210435000000040210003900000013030000290000000000320435000002060010009c0000020601008041000000400110021000000232011001c700000817000104300000001f0530018f0000020806300198000000400200043d0000000004620019000002570000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002530000c13d000000000005004b000002640000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000002060020009c00000206020080410000004002200210000000000112019f00000817000104300000800902000039000002470100004100000013040000290000000005000019081508060000040f00030000000103550000006001100270000102060010019d0000000100200190000000900000c13d000000400100043d00000249020000410000000000210435000002060010009c000002060100804100000040011002100000023f011001c700000817000104300000001101000029000000000001041b0000001301000029081507da0000040f0000000001000019000008160001042e0000004003300210000002060040009c00000206040080410000006004400210000000000334019f000002060010009c0000020601008041000000c001100210000000000113019f081508060000040f000000000301001900000060033002700000020603300197000000200030008c000000200400003900000000040340190000001f0540018f00000020044001900000029b0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000002970000c13d000000000005004b000002a80000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000100000003001f00030000000103550000000100200190000002bf0000613d000000000003004b000003f90000c13d0000023a010000410000000000100443000000130100002900000004001004430000000001000414000002060010009c0000020601008041000000c0011002100000023b011001c700008002020000390815080b0000040f00000001002001900000051d0000613d000000000101043b000000000001004b000000900000c13d000002410000013d0000001f0530018f0000020806300198000000400200043d0000000004620019000002570000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002c60000c13d000002570000013d000000e005500039000000400050043f000000e00070043f000000200440003900000006057002100000000005450019000000000065004b000001f80000213d000000000007004b000003fb0000c13d000000800030043f0000002003200039000000000331034f000000000303043b000000a00030043f0000004002200039000000000221034f000000000202043b000000c00020043f0000004402100370000000000202043b000002280020009c000001f80000213d0000002303200039000000000063004b00000000040000190000022f040080410000022f03300197000000000003004b00000000050000190000022f050040410000022f0030009c000000000504c019000000000005004b000001f80000c13d0000000403200039000000000331034f000000000303043b001000000003001d000002280030009c000001f80000213d000000240320003900000010020000290000000502200210000d00000002001d000c00000003001d0000000002320019000000000062004b000001f80000213d0000006402100370000000000202043b000e00000002001d000002280020009c000001f80000213d0000000e020000290000002302200039000000000062004b00000000030000190000022f030080410000022f02200197000000000002004b00000000040000190000022f040040410000022f0020009c000000000403c019000000000004004b000001f80000c13d0000000e020000290000000402200039000000000221034f000000000202043b000002280020009c000001f80000213d0000000e03000029000f00240030003d00000005032002100000000f03300029000000000063004b000001f80000213d0000008403100370000000000403043b000002280040009c000001f80000213d0000002303400039000000000063004b00000000050000190000022f050080410000022f03300197000000000003004b00000000070000190000022f070040410000022f0030009c000000000705c019000000000007004b000001f80000c13d0000000403400039000000000331034f000000000303043b000002280030009c000001f80000213d000a00240040003d00000005043002100000000a04400029000000000064004b000001f80000213d000000a404100370000000000404043b000900000004001d000002090040009c000001f80000213d000000c404100370000000000504043b000002280050009c000001f80000213d0000002304500039000000000064004b00000000070000190000022f070080410000022f04400197000000000004004b00000000080000190000022f080040410000022f0040009c000000000807c019000000000008004b000001f80000c13d0000000407500039000000000471034f000000000404043b000002280040009c000000f30000213d0000001f084000390000024c088001970000003f088000390000024c08800197000000400900043d0000000008890019000800000009001d000000000098004b00000000090000390000000109004039000002280080009c000000f30000213d0000000100900190000000f30000c13d000000400080043f00000008080000290000000008480436000700000008001d00000000054500190000002405500039000000000065004b000001f80000213d0000002005700039000000000551034f0000024c064001980000001f0740018f0000000701600029000003700000613d000000000805034f0000000709000029000000008a08043c0000000009a90436000000000019004b0000036c0000c13d000000000007004b0000037d0000613d000000000565034f0000000306700210000000000701043300000000076701cf000000000767022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000575019f000000000051043500000007014000290000000000010435000000400100043d000600000001001d000000100020006b000004180000c13d000000000032004b000004180000c13d00000008010000290000000001010433000000000001004b000004200000c13d0000000601000029001100c40010003d001200a40010003d000500240010003d000000060100002900000020021000390000023d01000041000b00000002001d0000000000120435000000800100003900000005020000290000000000120435000000100100002900000012020000290000000000120435000000000001004b000003aa0000613d000000020100036700000000020000190000000c040000290000000005040019000000000341034f000000000303043b000002090030009c000001f80000213d00000011040000290000000004340436001100000004001d000000000405001900000020044000390000000102200039000000100020006c0000039d0000413d000000060200002900000011030000290000000001230049000000240110008a00000044022000390000000000120435000000100200002900000000002304350000000d013000290000002001100039000000000002004b0000051e0000c13d00000006030000290000000002310049000000240220008a00000064033000390000000000230435000000100300002900000000023104360000023e0030009c000001f80000213d0000000d040000290000001f0340018f000000000004004b000003cb0000613d0000000a0400002900000002044003670000000d052000290000000006020019000000004704043c0000000006760436000000000056004b000003c70000c13d000000000003004b000000090300002900000209033001970000000605000029000000840450003900000000003404350000000d035000690000000002230019000000000131001900000000001504350000001f012000390000024c021001970000000001520019000000000021004b00000000020000390000000102004039000002280010009c000000f30000213d0000000100200190000000f30000c13d000000400010043f00000006010000290000000001010433001200000001001d0000023301000041000000000010044300000000010004120000000400100443000000200100003900000024001004430000000001000414000002060010009c0000020601008041000000c00110021000000234011001c700008005020000390815080b0000040f00000001002001900000051d0000613d000000000201043b0000000001000414000000040020008c0000056f0000c13d00000001010000310000000003000019000005820000013d000000000100043d0000023c0000013d000001000700003900000000084600490000022b0080009c000001f80000213d000000400080008c000001f80000413d000000400800043d0000022e0080009c000000f30000213d0000004009800039000000400090043f000000000941034f000000000909043b000002090090009c000001f80000213d0000000009980436000000200a400039000000000aa1034f000000000a0a043b0000000000a9043500000000078704360000004004400039000000000054004b000003fc0000413d000002d50000013d0000022901000041000000800010043f0000022a010000410000081700010430000002290100004100000006020000290000000000120435000002060020009c000002060200804100000040012002100000023f011001c70000081700010430000000000100041100000209011001970000000603000029000000400230003900000000001204350000004001000039000000000113043600000227020000410000000000210435000002300030009c000000f30000213d00000006030000290000006002300039000000400020043f000002060010009c000002060100804100000040011002100000000002030433000002060020009c00000206020080410000006002200210000000000112019f0000000002000414000002060020009c0000020602008041000000c002200210000000000112019f0000020b011001c700008010020000390815080b0000040f0000000100200190000001f80000613d000000000101043b000400000001001d000000800100043d0000000003010433000002280030009c000000f30000213d00000005013002100000003f021000390000022c02200197000000400400043d0000000002240019000b00000004001d000000000042004b00000000040000390000000104004039000002280020009c000000f30000213d0000000100400190000000f30000c13d000000400020043f0000000b020000290000000002320436000000000003004b000004660000613d0000000003000019000000400400043d0000022e0040009c000000f30000213d0000004005400039000000400050043f000000200540003900000000000504350000000000040435000000000532001900000000004504350000002003300039000000000013004b000004590000413d000000800300043d0000000001030433000000000001004b0000048a0000613d000000000100041000000209011001970000000002000019000000400400043d0000022e0040009c000000f30000213d0000000505200210000000200550003900000000033500190000000003030433000000200330003900000000030304330000004006400039000000400060043f0000002006400039000000000036043500000000001404350000000b030000290000000003030433000000000023004b000005bc0000a13d0000000b06000029000000000365001900000000004304350000000003060433000000000023004b000005bc0000a13d0000000102200039000000800300043d0000000004030433000000000042004b0000046d0000413d000002330100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000002060010009c0000020601008041000000c00110021000000234011001c700008005020000390815080b0000040f00000001002001900000051d0000613d000000000101043b000000400200043d000300000002001d000002350020009c000000f30000213d00000209031001970000000304000029000000a001400039000000400010043f000000800140003900000236020000410000000000210435000000600140003900000237020000410000000000210435000000400140003900000238020000410000000000210435000000640100003900000000021404360000023901000041000200000002001d00000000001204350000023a010000410000000000100443000100000003001d00000004003004430000000001000414000002060010009c0000020601008041000000c0011002100000023b011001c700008002020000390815080b0000040f00000001002001900000051d0000613d000000000101043b000000000001004b000001f80000613d000000400500043d0000023c0100004100000000001504350000000401500039000000c0020000390000000000210435000000c404500039000000800300043d0000006002000039001100000004001d0000000000240435000001240250003900000000040304330000000000420435000600000005001d0000014402500039000000000004004b000004dd0000613d0000000005000019000000200330003900000000060304330000000076060434000002090660019700000000066204360000000007070433000000000076043500000040022000390000000105500039000000000045004b000004d20000413d0000000605000029000000e403500039000000a00400043d00000000004304350000010403500039000000c00400043d000000000043043500000000031200490000002404500039000500000004001d00000000003404350000000b0300002900000000030304330000000002320436000000000003004b000004fb0000613d00000000040000190000000b050000290000002005500039000b00000005001d00000000050504330000000065050434000002090550019700000000055204360000000006060433000000000065043500000040022000390000000104400039000000000034004b000004ee0000413d000000000312004900000006050000290000008404500039000000000034043500000064035000390000000404000029000000000043043500000012030000290000020903300197000000440450003900000000003404350000000303000029000000000303043300000000023204360000024c053001970000001f0430018f000000020020006b000005c20000813d000000000005004b000005190000613d00000002074000290000000006420019000000200660008a000000200770008a0000000008560019000000000957001900000000090904330000000000980435000000200550008c000005130000c13d000000000004004b000005d90000613d0000000006020019000005ce0000013d000000000001042f00000000020000310000000e0420006a0000000203000367000000430440008a0000022f05400197000000000600001900000011070000290000000f08000029000005300000013d0000001f0a9000390000024c0aa001970000000009190019000000000009043500000000011a001900000020088000390000000106600039000000100060006c000003b60000813d000000110910006a000000200990008a00000020077000390000000000970435000000000983034f000000000909043b0000022f0a900197000000000b5a013f00000000005a004b000000000a0000190000022f0a002041000000000049004b000000000c0000190000022f0c0040410000022f00b0009c000000000a0cc01900000000000a004b000001f80000613d0000000f0a9000290000000009a3034f000000000909043b000002280090009c000001f80000213d000000200aa00039000000000b9200490000000000ba004b000000000c0000190000022f0c0020410000022f0bb001970000022f0da00197000000000ebd013f0000000000bd004b000000000b0000190000022f0b0040410000022f00e0009c000000000b0cc01900000000000b004b000001f80000c13d000000000ba3034f00000000019104360000024c0c900198000000000ac10019000005610000613d000000000d0b034f000000000e01001900000000df0d043c000000000efe04360000000000ae004b0000055d0000c13d0000001f0d900190000005270000613d000000000bcb034f000000030cd00210000000000d0a0433000000000dcd01cf000000000dcd022f000000000b0b043b000001000cc00089000000000bcb022f000000000bcb01cf000000000bdb019f0000000000ba0435000005270000013d0000000b03000029000002060030009c000002060300804100000040033002100000001204000029000002060040009c00000206040080410000006004400210000000000334019f000002060010009c0000020601008041000000c001100210000000000131019f081508100000040f000000010320015f00030000000103550000006001100270000102060010019d0000020601100197000000000001004b000005910000c13d000000600200003900000001003001900000016a0000613d0000001301000029000002060010009c000002060100804100000040011002100000000002020433000002060020009c00000206020080410000006002200210000000000112019f0000081700010430000002280010009c000000f30000213d0000001f021000390000024c022001970000003f022000390000024c04200197000000400200043d0000000004420019000000000024004b00000000050000390000000105004039000002280040009c000000f30000213d0000000100500190000000f30000c13d000000400040043f00000000061204360000024c041001980000001f0510018f001300000006001d00000000014600190000000306000367000005ae0000613d000000000706034f0000001308000029000000007907043c0000000008980436000000000018004b000005aa0000c13d000000000005004b000005850000613d000000000446034f0000000305500210000000000601043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f0000000000410435000005850000013d0000023101000041000000000010043f0000003201000039000000040010043f000002320100004100000817000104300000000006520019000000000005004b000005cb0000613d0000000207000029000000000802001900000000790704340000000008980436000000000068004b000005c70000c13d000000000004004b000005d90000613d000200020050002d0000000304400210000000000506043300000000054501cf000000000545022f000000020700002900000000070704330000010004400089000000000747022f00000000044701cf000000000454019f0000000000460435000000000423001900000000000404350000001f033000390000024c03300197000000000323001900000000011300490000000602000029000000a402200039001200000002001d00000000001204350000000801000029000000000201043300000000012304360000024c042001970000001f0320018f000000070010006b000005fa0000813d000000000004004b000005f60000613d00000007063000290000000005310019000000200550008a000000200660008a0000000007450019000000000846001900000000080804330000000000870435000000200440008c000005f00000c13d000000000003004b000006110000613d0000000005010019000006060000013d0000000005410019000000000004004b000006030000613d0000000706000029000000000701001900000000680604340000000007870436000000000057004b000005ff0000c13d000000000003004b000006110000613d000700070040002d0000000303300210000000000405043300000000043401cf000000000434022f000000070600002900000000060604330000010003300089000000000636022f00000000033601cf000000000343019f00000000003504350000000003120019000000000003043500000000030004140000000104000029000000040040008c000006300000613d0000001f022000390000024c02200197000000060400002900000000014100490000000001210019000002060010009c00000206010080410000006001100210000002060040009c000002060200004100000000020440190000004002200210000000000121019f000002060030009c0000020603008041000000c002300210000000000121019f0000000102000029081508060000040f00000000030100190000006003300270000102060030019d00030000000103550000000100200190000006360000613d0000000601000029000002280010009c000000f30000213d0000000601000029000000400010043f0000038d0000013d00000206033001970000001f0530018f0000020806300198000000400200043d0000000004620019000002570000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000063e0000c13d000002570000013d000000400100043d0000024d0010009c000006570000813d000000a002100039000000400020043f00000080021000390000023603000041000000000032043500000060021000390000023703000041000000000032043500000040021000390000023803000041000000000032043500000020021000390000023903000041000000000032043500000064020000390000000000210435000000000001042d0000023101000041000000000010043f0000004101000039000000040010043f00000232010000410000081700010430000000004301043400000000013204360000024c063001970000001f0530018f000000000014004b000006730000813d000000000006004b0000066f0000613d00000000085400190000000007510019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c000006690000c13d000000000005004b000006890000613d00000000070100190000067f0000013d0000000007610019000000000006004b0000067c0000613d00000000080400190000000009010019000000008a0804340000000009a90436000000000079004b000006780000c13d000000000005004b000006890000613d00000000046400190000000305500210000000000607043300000000065601cf000000000656022f00000000040404330000010005500089000000000454022f00000000045401cf000000000464019f0000000000470435000000000431001900000000000404350000001f033000390000024c023001970000000001210019000000000001042d00000020030000390000000003310436000000004202043400000000002304350000024c062001970000001f0520018f0000004001100039000000000014004b000006a80000813d000000000006004b000006a40000613d00000000085400190000000007510019000000200770008a000000200880008a0000000009670019000000000a680019000000000a0a04330000000000a90435000000200660008c0000069e0000c13d000000000005004b000006be0000613d0000000007010019000006b40000013d0000000007610019000000000006004b000006b10000613d00000000080400190000000009010019000000008a0804340000000009a90436000000000079004b000006ad0000c13d000000000005004b000006be0000613d00000000046400190000000305500210000000000607043300000000065601cf000000000656022f00000000040404330000010005500089000000000454022f00000000045401cf000000000464019f0000000000470435000000000412001900000000000404350000001f022000390000024c022001970000000001120019000000000001042d0008000000000002000300000007001d000400000006001d000200000005001d000800000004001d000700000003001d000000400500043d00000020045000390000023d03000041000100000004001d0000000000340435000000240350003900000080040000390000000000430435000000a4035000390000000000230435000500000005001d000000c409500039000000000002004b000006e30000613d00000002050003670000000006000019000000000315034f000000000303043b0000024e0030009c000007c80000813d000000000939043600000020011000390000000106600039000000000026004b000006da0000413d00000005020000290000000001290049000000240110008a0000004402200039000000000012043500000008020000290000000000290435000000050120021000000000019100190000002001100039000000000002004b000007400000613d000000070f00002900060000000000350000000002f00079000000020a0003670000001f0b20008a0000022f0cb00197000000000d000019000000000e090019000007010000013d0000001f018000390000024c01100197000000000238001900000000000204350000000001310019000000200ff00039000000010dd000390000000800d0006c000007400000813d0000000002910049000000200220008a000000200ee0003900000000002e04350000000002fa034f000000000502043b0000022f025001970000000003c2013f0000000000c2004b00000000020000190000022f020020410000000000b5004b00000000060000190000022f060040410000022f0030009c000000000206c019000000000002004b000007c80000613d000000070250002900000000032a034f000000000803043b000002280080009c000007c80000213d00000020052000390000000602800069000000000025004b00000000030000190000022f030020410000022f022001970000022f06500197000000000726013f000000000026004b00000000020000190000022f020040410000022f0070009c000000000203c019000000000002004b000007c80000c13d00000000025a034f00000000038104360000024c068001980000000005630019000007320000613d000000000702034f0000000001030019000000007407043c0000000001410436000000000051004b0000072e0000c13d0000001f01800190000006f80000613d000000000262034f0000000301100210000000000405043300000000041401cf000000000414022f000000000202043b0000010001100089000000000212022f00000000011201cf000000000141019f0000000000150435000006f80000013d00000005030000290000000002310049000000240220008a00000064033000390000000000230435000000040300002900000000023104360000023e0030009c000007c80000213d00000004030000290000000503300212000007540000613d0000000204000029000000020440036700000000053200190000000006020019000000004704043c0000000006760436000000000056004b000007500000c13d000000010000008b0000000304000029000002090440019700000005060000290000008405600039000000000045043500000000036300490000000002230019000000000113001900000000001604350000001f012000390000024c021001970000000001620019000000000021004b00000000020000390000000102004039000002280010009c000007ca0000213d0000000100200190000007ca0000c13d000000400010043f00000005010000290000000001010433000800000001001d0000023301000041000000000010044300000000010004120000000400100443000000200100003900000024001004430000000001000414000002060010009c0000020601008041000000c00110021000000234011001c700008005020000390815080b0000040f0000000100200190000007d00000613d000000000201043b0000000001000414000000040020008c000007ae0000c13d00000001030000310000000002000019000000800a000039000000000003004b000007c40000613d000002280030009c000007ca0000213d0000001f013000390000024c011001970000003f011000390000024c04100197000000400100043d0000000004410019000000000014004b00000000050000390000000105004039000002280040009c000007ca0000213d0000000100500190000007ca0000c13d000000400040043f000000000a3104360000024c043001980000001f0530018f00000000034a00190000000306000367000007a00000613d000000000706034f00000000080a0019000000007907043c0000000008980436000000000038004b0000079c0000c13d000000000005004b000007c50000613d000000000446034f0000000305500210000000000603043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f0000000000430435000007c50000013d0000000103000029000002060030009c000002060300804100000040033002100000000804000029000002060040009c00000206040080410000006004400210000000000334019f000002060010009c0000020601008041000000c001100210000000000131019f081508100000040f000000010220015f00030000000103550000006001100270000102060010019d0000020603100197000000800a000039000000000003004b000007840000c13d00000060010000390000000100200190000007d10000c13d000000000001042d000000000100001900000817000104300000023101000041000000000010043f0000004101000039000000040010043f00000232010000410000081700010430000000000001042f0000020600a0009c000002060a0080410000004002a002100000000001010433000002060010009c00000206010080410000006001100210000000000121019f000008170001043000010000000000020000020a02000041000000000502041a00000000020004140000020906100197000002060020009c0000020602008041000000c0012002100000020b011001c70000800d0200003900000003030000390000020c04000041000100000006001d081508060000040f0000000100200190000007ee0000613d0000020a010000410000000102000029000000000021041b000000000001042d00000000010000190000081700010430000000000001042f000002060010009c00000206010080410000004001100210000002060020009c00000206020080410000006002200210000000000112019f0000000002000414000002060020009c0000020602008041000000c002200210000000000112019f0000020b011001c700008010020000390815080b0000040f0000000100200190000008040000613d000000000101043b000000000001042d0000000001000019000008170001043000000809002104210000000102000039000000000001042d0000000002000019000000000001042d0000080e002104230000000102000039000000000001042d0000000002000019000000000001042d00000813002104250000000102000039000000000001042d0000000002000019000000000001042d0000081500000432000008160001042e000008170001043000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392702000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e000000002000000000000000000000000000000c0000001000000000000000000000000000000000000000000000000000000000000000000000000006e305f7f00000000000000000000000000000000000000000000000000000000c99a0d6400000000000000000000000000000000000000000000000000000000f2fde38a00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000fee81cf400000000000000000000000000000000000000000000000000000000c99a0d6500000000000000000000000000000000000000000000000000000000f04e283e000000000000000000000000000000000000000000000000000000006e305f8000000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000003dad0c9b000000000000000000000000000000000000000000000000000000003dad0c9c0000000000000000000000000000000000000000000000000000000054d1f13d0000000000000000000000000000000000000000000000000000000066b9ca7b0000000000000000000000000000000000000000000000000000000025692962000000000000000000000000000000000000000000000000000000003806a3cf000000000000000000000000000000000000000000000000000000003ccfd60b00000000000000000000000000000000000000000000000000000000389a75e10000000000000000000000000000000000000020000000800000000000000000000000000000000000000000000000000000000000000000000000007448fbae00000000000000000000000000000000000000040000001c000000000000000002000000000000000000000000000000000000200000000c0000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391320200000200000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000006f5e88184910260415865c6d3ecf96968c7d912a0d533a72c3479ab1e1df0f4eb86fb008000000000000000000000000000000000000000000000000ffffffffffffffff3b800a460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000008000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff1f000000000000000000000000000000000000000000000000ffffffffffffffbf8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff9f4e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e0200000200000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f756e7429000000000000000000000000000000000000000000000000000000007373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f746e65737328616464726573732072656c6179657229546f6b656e5065726d6952656c617965725769746e657373207769746e6573732952656c6179657257691806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000fe8ec1a700000000000000000000000000000000000000000000000000000000991f255f0000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000004000000000000000000000000fa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c9270a08231000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000800000000000000000a9059cbb000000000000000000000000000000000000000000000000000000005274afe7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082b429009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f3902000000000186a000000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000f4b3b1bc00000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd5d00dbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff6000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bde175510ede444a348a636c8972f0bf788124f0ce5f8e7928a422f9b7147f22

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

0000000000000000000000000000000000225e31d15943971f47ad3022f714fa000000000000000000000000c6ee4f68126da8d707f875d3ff854445e5aa7cb3000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e

-----Decoded View---------------
Arg [0] : permit2 (address): 0x0000000000225e31D15943971F47aD3022F714Fa
Arg [1] : multicaller (address): 0xC6Ee4f68126dA8D707F875d3FF854445e5Aa7cb3
Arg [2] : owner (address): 0xf3d63166F0Ca56C3c1A3508FcE03Ff0Cf3Fb691e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000225e31d15943971f47ad3022f714fa
Arg [1] : 000000000000000000000000c6ee4f68126da8d707f875d3ff854445e5aa7cb3
Arg [2] : 000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e


Block Transaction 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
[ 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.