Contract

0xBF3922a0cEBbcD718e715e83d9187cC4BbA23f11

Overview

SOPH Balance

Sophon LogoSophon LogoSophon Logo0 SOPH

SOPH Value

-
Transaction Hash
Method
Block
From
To
Transfer Token48351662025-02-14 6:57:196 days ago1739516239IN
0xBF3922a0...4BbA23f11
0 SOPH0.304212752,095.25905856
Transfer Token48334932025-02-14 6:28:246 days ago1739514504IN
0xBF3922a0...4BbA23f11
0 SOPH0.247988642,095.01179981
Transfer Token48330542025-02-14 6:20:456 days ago1739514045IN
0xBF3922a0...4BbA23f11
0 SOPH0.246946982,097.92696616
Transfer Token48327032025-02-14 6:14:356 days ago1739513675IN
0xBF3922a0...4BbA23f11
0 SOPH0.267908222,096.47253419

Latest 1 internal transaction

Parent Transaction Hash Block From To
46548582025-02-12 2:43:098 days ago1739328189  Contract Creation0 SOPH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OrbiterXRouterV3

Compiler Version
v0.8.27+commit.40a35a09

ZkSolc Version
v1.5.11

Optimization Enabled:
Yes with Mode 3

Other Settings:
paris EvmVersion
File 1 of 9 : OrbiterXRouterV3.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.27;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/**
 * @title OrbiterXRouterV3
 * @dev A contract for batch transfers of Ether and tokens to multiple addresses.
 */
contract OrbiterXRouterV3 {
    using SafeERC20 for IERC20;
    bool private locked;
    event Transfer(address indexed to, uint256 amount);

    /**
     * @dev Modifier to prevent reentrancy attacks.
     */
    modifier nonReentrant() {
        require(!locked, "Reentrant call");
        locked = true;
        _;
        locked = false;
    }

    /**
     * @dev Batch transfers Ether to multiple addresses.
     * @param tos The array of destination addresses.
     * @param values The array of corresponding amounts to be transferred.
     */
    function transfers(
        address[] calldata tos,
        uint[] memory values
    ) external payable nonReentrant {
        require(tos.length == values.length, "Destination and amount arrays length mismatch");
        uint total = msg.value;
        uint value;
        for (uint i = 0; i < tos.length; i++) {
            value = values[i];
            require(total >= value, "Insufficient Balance");
            total -= value;
            (bool success, ) = tos[i].call{value: value}("");
            require(success, "Transfer failed");
            emit Transfer(tos[i], value);
        }
        require(total == 0, "There are many extra costs");
    }


    /**
     * @dev Batch transfers tokens to multiple addresses.
     * @param token The token contract address.
     * @param tos The array of destination addresses.
     * @param values The array of corresponding amounts to be transferred.
     */
    function transferTokens(
        IERC20 token,
        address[] calldata tos,
        uint[] memory values
    ) external payable nonReentrant {
        require(msg.value == 0, "Ether not accepted");
        require(tos.length == values.length, "Destination and amount arrays length mismatch");
        for (uint i = 0; i < tos.length; i++) {
            token.safeTransferFrom(msg.sender, tos[i], values[i]);
        }
    }

    /**
     * @dev Transfer Ether to a specified address.
     * @param to Maker address, obtained from the endpoint of the router interface
     * @param data Optional data included in the transaction.
     */
    function transfer(
        address to,
        bytes calldata data
    ) external payable nonReentrant {
        (bool success, ) = to.call{value: msg.value}("");
        require(success, "Transfer failed");
        emit Transfer(to, msg.value);
    }

    /**
     * @dev Transfer tokens to a specified address.
     * @param token The token contract address.
     * @param to Maker address, obtained from the endpoint of the router interface
     * @param value The amount of tokens to be transferred.
     * @param data Optional data included in the transaction.
     */
    function transferToken(
        IERC20 token,
        address to,
        uint value,
        bytes calldata data
    ) external payable nonReentrant {
        require(msg.value == 0, "Ether not accepted");
        token.safeTransferFrom(msg.sender, to, value);
    }
}

File 2 of 9 : 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 3 of 9 : 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 4 of 9 : 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 5 of 9 : 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 6 of 9 : 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 7 of 9 : 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";

File 8 of 9 : 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 9 of 9 : 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);
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "outputSelection": {
    "*": {
      "*": [
        "abi"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"transferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"transfers","outputs":[],"stateMutability":"payable","type":"function"}]

9c4d535b000000000000000000000000000000000000000000000000000000000000000001000103f3052f67ebb8ecea8b2f7ec309b607acfb7366bf2de6041df8ad8e3f00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x0001000000000002000600000000000200000000000103550000008003000039000000400030043f0000000100200190000000620000c13d0000006002100270000000db02200197000000040020008c000002440000413d000000000401043b000000e004400270000000dd0040009c0000006a0000213d000000e00040009c0000009b0000613d000000e10040009c000002440000c13d000000440020008c000002440000413d0000000403100370000000000303043b000000e30030009c000002440000213d0000002304300039000000000024004b000002440000813d0000000404300039000000000441034f000000000404043b000200000004001d000000e30040009c000002440000213d000100240030003d000000020300002900000005033002100000000103300029000000000023004b000002440000213d0000002403100370000000000303043b000000e30030009c000002440000213d0000002304300039000000000024004b000002440000813d0000000404300039000000000441034f000000000504043b000000e30050009c000002460000213d00000005045002100000003f06400039000000e406600197000000e50060009c000002460000213d0000008006600039000000400060043f000000800050043f00000024033000390000000004340019000000000024004b000002440000213d000000000005004b0000004a0000613d0000008002000039000000000531034f000000000505043b000000200220003900000000005204350000002003300039000000000043004b000000430000413d000000000100041a000000ff00100190000001c70000c13d000000fe0110019700000001011001bf000000000010041b000000800100043d0000000202000029000000000012004b000001ce0000c13d00000000010200190000000002000416000600000002001d000000000001004b000001e20000c13d000000060000006b000001c20000613d000000400100043d0000004402100039000000fb03000041000000000032043500000024021000390000001a03000039000002520000013d0000000001000416000000000001004b000002440000c13d000000200100003900000100001004430000012000000443000000dc010000410000036a0001042e000000de0040009c000000c10000613d000000df0040009c000002440000c13d000000840020008c000002440000413d0000000403100370000000000403043b000000e20040009c000002440000213d0000002403100370000000000303043b000000e20030009c000002440000213d0000006401100370000000000101043b000000e30010009c000002440000213d0000000401100039000500000004001d000600000003001d036902960000040f000000000100041a000400000001001d000000ff0010019000000000010000390000000101006039036902af0000040f000001000100008a000000040110017f00000001011001bf000000000010041b0000000001000416000000000001004b00000000010000390000000101006039036902c30000040f00000044010000390000000001100367000000000401043b000000000200041100000005010000290000000603000029036902d70000040f000000000100041a000000fe01100197000000000010041b00000000010000190000036a0001042e000000440020008c000002440000413d0000000403100370000000000503043b000000e20050009c000002440000213d0000002403100370000000000303043b000000e30030009c000002440000213d0000002304300039000000000024004b000002440000813d0000000404300039000000000141034f000000000101043b000000e30010009c000002440000213d00000000011300190000002401100039000000000021004b000002440000213d000000000100041a000000ff00100190000001760000c13d000000fe0110019700000001011001bf000000000010041b0000000001000414000000db0010009c000000db01008041000000c0011002100000000003000416000000000003004b000600000005001d000001800000c13d0000000002050019000001840000013d000000640020008c000002440000413d0000000404100370000000000404043b000500000004001d000000e20040009c000002440000213d0000002404100370000000000404043b000000e30040009c000002440000213d0000002305400039000000000025004b000002440000813d0000000405400039000000000551034f000000000505043b000400000005001d000000e30050009c000002440000213d000300240040003d000000040400002900000005044002100000000304400029000000000024004b000002440000213d0000004404100370000000000404043b000000e30040009c000002440000213d0000002305400039000000000025004b000002440000813d0000000405400039000000000551034f000000000605043b000000e30060009c000002460000213d00000005056002100000003f07500039000000e407700197000000e50070009c000002460000213d0000008007700039000000400070043f000000800060043f00000024044000390000000005450019000000000025004b000002440000213d000000000006004b000000fc0000613d000000000241034f000000000202043b000000200330003900000000002304350000002004400039000000000054004b000000f50000413d000000000100041a000000ff00100190000001c70000c13d000000fe0110019700000001021001bf000000000020041b0000000002000416000000000002004b0000025d0000c13d000000800200043d000000040020006b000001ce0000c13d000000040000006b000000980000613d0000000501000029000100e20010019b0000000001000411000200e20010019b0000000004000019000000050140021000000003021000290000000002200367000000000202043b000000e20020009c000002440000213d000000800300043d000000000043004b000002640000a13d000600000004001d000000a0011000390000000003010433000000400100043d00000064041000390000000000340435000000440310003900000000002304350000002002100039000000e903000041000000000032043500000024031000390000000204000029000000000043043500000064030000390000000000310435000000ea0010009c000002460000213d000000a003100039000000400030043f000000db0020009c000000db0200804100000040022002100000000001010433000000db0010009c000000db010080410000006001100210000000000121019f0000000002000414000000db0020009c000000db02008041000000c002200210000000000121019f00000005020000290369035f0000040f0000006003100270000000db03300197000000200030008c000000200500003900000000050340190000002004500190000001480000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000001440000c13d0000001f05500190000001550000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f00000000005404350000000100200190000002710000613d000000000003004b0000000604000029000001610000613d000000000100043d000000010010008c00000000010000390000000101006039000000000001004b000001720000c13d0000028f0000013d000000ec010000410000000000100443000000010100002900000004001004430000000001000414000000db0010009c000000db01008041000000c001100210000000ed011001c70000800202000039036903640000040f0000000100200190000002950000613d000000000101043b0000000604000029000000000001004b0000028f0000613d0000000104400039000000040040006c0000010f0000413d000000960000013d000000e701000041000000800010043f0000002001000039000000840010043f0000000e01000039000000a40010043f000000f001000041000000c40010043f000000fc010000410000036b00010430000000f5011001c70000800902000039000000000405001900000000050000190369035f0000040f0000006003100270000000db03300198000001ad0000613d0000001f04300039000000f6044001970000003f04400039000000f704400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000000e30040009c000002460000213d0000000100600190000002460000c13d000000400040043f0000001f0430018f0000000006350436000000eb053001980000000003560019000001a00000613d000000000701034f000000007807043c0000000006860436000000000036004b0000019c0000c13d000000000004004b000001ad0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000001002001900000024c0000613d000000400100043d00000000020004160000000000210435000000db0010009c000000db0100804100000040011002100000000002000414000000db0020009c000000db02008041000000c002200210000000000112019f000000f8011001c70000800d020000390000000203000039000000f90400004100000006050000290369035f0000040f0000000100200190000002440000613d000000000200041a000000fe01200197000000000010041b00000000010000190000036a0001042e000000400100043d0000004402100039000000f003000041000000000032043500000024021000390000000e03000039000002520000013d000000400100043d0000006402100039000000f10300004100000000003204350000004402100039000000f203000041000000000032043500000024021000390000002d030000390000000000320435000000e7020000410000000000210435000000040210003900000020030000390000000000320435000000db0010009c000000db010080410000004001100210000000f3011001c70000036b000104300000000004000019000000800100043d000000000041004b000002640000a13d0000000501400210000000a002100039000000000302043300060006003000730000026a0000413d000300000004001d00000001021000290000000001200367000000000401043b000000e20040009c000002440000213d000400000002001d0000000001000414000000db0010009c000000db01008041000000c001100210000000000003004b000500000003001d000001fd0000613d000000f5011001c700008009020000390000000005000019000001fe0000013d00000000020400190369035f0000040f0000006003100270000000db03300198000002260000613d0000001f04300039000000f6044001970000003f04400039000000f705400197000000400400043d0000000005540019000000000045004b00000000060000390000000106004039000000e30050009c000002460000213d0000000100600190000002460000c13d000000400050043f0000000006340436000000eb053001980000000004560019000002190000613d000000000701034f000000007807043c0000000006860436000000000046004b000002150000c13d0000001f03300190000002260000613d000000000151034f0000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f000000000014043500000001002001900000024c0000613d00000004010000290000000001100367000000000501043b000000e20050009c0000000502000029000002440000213d000000400100043d0000000000210435000000db0010009c000000db0100804100000040011002100000000002000414000000db0020009c000000db02008041000000c002200210000000000112019f000000f8011001c70000800d020000390000000203000039000000f9040000410369035f0000040f0000000100200190000002440000613d00000003040000290000000104400039000000020040006c000001e30000413d000000590000013d00000000010000190000036b00010430000000f401000041000000000010043f0000004101000039000000040010043f000000ef010000410000036b00010430000000400100043d0000004402100039000000fd03000041000000000032043500000024021000390000000f030000390000000000320435000000e7020000410000000000210435000000040210003900000020030000390000000000320435000000db0010009c000000db010080410000004001100210000000e8011001c70000036b00010430000000400100043d0000004402100039000000e603000041000000000032043500000024021000390000001203000039000002520000013d000000f401000041000000000010043f0000003201000039000000040010043f000000ef010000410000036b00010430000000400100043d0000004402100039000000fa03000041000000000032043500000024021000390000001403000039000002520000013d0000001f0530018f000000eb06300198000000400200043d00000000046200190000027c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002780000c13d000000000005004b000002890000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000000db0020009c000000db020080410000004002200210000000000112019f0000036b00010430000000ee01000041000000000010043f0000000101000029000000040010043f000000ef010000410000036b00010430000000000001042f0000001f03100039000000000023004b0000000004000019000000ff04004041000000ff05200197000000ff03300197000000000653013f000000000053004b0000000003000019000000ff03002041000000ff0060009c000000000304c019000000000003004b000002ad0000613d0000000003100367000000000303043b000000e30030009c000002ad0000213d00000000013100190000002001100039000000000021004b000002ad0000213d000000000001042d00000000010000190000036b00010430000000000001004b000002b20000613d000000000001042d000000400100043d0000004402100039000000f003000041000000000032043500000024021000390000000e030000390000000000320435000000e7020000410000000000210435000000040210003900000020030000390000000000320435000000db0010009c000000db010080410000004001100210000000e8011001c70000036b00010430000000000001004b000002c60000613d000000000001042d000000400100043d0000004402100039000000e6030000410000000000320435000000240210003900000012030000390000000000320435000000e7020000410000000000210435000000040210003900000020030000390000000000320435000000db0010009c000000db010080410000004001100210000000e8011001c70000036b0001043000010000000000020000000006010019000000400100043d00000064051000390000000000450435000000e203300197000000440410003900000000003404350000002003100039000000e9040000410000000000430435000000e2022001970000002404100039000000000024043500000064020000390000000000210435000001000010009c000003390000813d000000a002100039000000400020043f000000db0030009c000000db0300804100000040023002100000000001010433000000db0010009c000000db010080410000006001100210000000000121019f0000000002000414000000db0020009c000000db02008041000000c002200210000000000121019f000100000006001d00000000020600190369035f0000040f0000006003100270000000db03300197000000200030008c000000200400003900000000040340190000001f0540018f0000002004400190000003090000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000003050000c13d000000000005004b000003160000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000054043500000001002001900000033f0000613d000000000003004b0000000102000029000003220000613d000000000100043d000000010010008c00000000010000390000000101006039000000000001004b000003330000613d000000000001042d000000ec010000410000000000100443000000e20120019700000004001004430000000001000414000000db0010009c000000db01008041000000c001100210000000ed011001c70000800202000039036903640000040f00000001002001900000035d0000613d000000000101043b0000000102000029000000000001004b000003210000c13d000000ee01000041000000000010043f000000e201200197000000040010043f000000ef010000410000036b00010430000000f401000041000000000010043f0000004101000039000000040010043f000000ef010000410000036b000104300000001f0530018f000000eb06300198000000400200043d00000000046200190000034a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003460000c13d000000000005004b000003570000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000000db0020009c000000db020080410000004002200210000000000112019f0000036b00010430000000000001042f000000000001042f00000362002104210000000102000039000000000001042d0000000002000019000000000001042d00000367002104230000000102000039000000000001042d0000000002000019000000000001042d00000369000004320000036a0001042e0000036b0001043000000000000000000000000000000000000000000000000000000000ffffffff000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000d54cefc000000000000000000000000000000000000000000000000000000000d54cefc100000000000000000000000000000000000000000000000000000000f9c028ec00000000000000000000000000000000000000000000000000000000297235110000000000000000000000000000000000000000000000000000000052346412000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff7f4574686572206e6f74206163636570746564000000000000000000000000000008c379a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f00000000000000000000000000000000000000000000000000000000ffffffe01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b8302000002000000000000000000000000000000240000000000000000000000005274afe70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000005265656e7472616e742063616c6c0000000000000000000000000000000000006e677468206d69736d617463680000000000000000000000000000000000000044657374696e6174696f6e20616e6420616d6f756e7420617272617973206c6500000000000000000000000000000000000000840000000000000000000000004e487b7100000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0020000000000000000000000000000000000002000000000000000000000000069ca02dd4edd7bf0a4abb9ed3b7af3f14778db5d61921c7dc7cd545266326de2496e73756666696369656e742042616c616e6365000000000000000000000000546865726520617265206d616e7920657874726120636f73747300000000000000000000000000000000000000000000000000640000008000000000000000005472616e73666572206661696c65640000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff6000000000000000000000000000000000000000000000000000000000000000001247928bb4b10beb4e88d62dcf42df73dc75e87a4aa1ccd3f06ce7a360b8a16f

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.