ETH Price: $2,933.39 (-0.82%)

Contract

0x1e08c2899b2cD29a0026EBCDC9790dC3364Dc28B
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Send Tokens217802032025-07-13 1:30:21196 days ago1752370221IN
0x1e08c289...3364Dc28B
0 ETH0.000001450.00152248
Send Tokens216875092025-07-10 22:00:33198 days ago1752184833IN
0x1e08c289...3364Dc28B
0 ETH0.000000980.00104796
Send Tokens216875062025-07-10 22:00:27198 days ago1752184827IN
0x1e08c289...3364Dc28B
0 ETH0.000011410.00104779
Send Tokens216875012025-07-10 22:00:17198 days ago1752184817IN
0x1e08c289...3364Dc28B
0 ETH0.000011120.00104749
Send Tokens216737042025-07-10 14:20:23198 days ago1752157223IN
0x1e08c289...3364Dc28B
0 ETH0.000004430.00306347
Send Tokens216269152025-07-09 12:20:45199 days ago1752063645IN
0x1e08c289...3364Dc28B
0 ETH0.000001260.00100117
Send Tokens213962122025-07-04 4:10:39205 days ago1751602239IN
0x1e08c289...3364Dc28B
0 ETH0.000002060.00177867
Send Tokens213797052025-07-03 19:00:25205 days ago1751569225IN
0x1e08c289...3364Dc28B
0 ETH0.000015190.00197909
Send Tokens213797002025-07-03 19:00:15205 days ago1751569215IN
0x1e08c289...3364Dc28B
0 ETH0.000015350.0019702
Send Tokens213286882025-07-02 14:39:51206 days ago1751467191IN
0x1e08c289...3364Dc28B
0 ETH0.000002030.00192815
Send Tokens212881372025-07-01 16:08:09207 days ago1751386089IN
0x1e08c289...3364Dc28B
0 ETH0.000000890.00128029
Send Tokens211157132025-06-27 16:20:41211 days ago1751041241IN
0x1e08c289...3364Dc28B
0 ETH0.000001770.00128435
Send Tokens210814542025-06-26 21:18:43212 days ago1750972723IN
0x1e08c289...3364Dc28B
0 ETH0.000022770.00126543
Send Tokens210782032025-06-26 19:30:21212 days ago1750966221IN
0x1e08c289...3364Dc28B
0 ETH0.000000770.00127198
Send Tokens210777222025-06-26 19:14:19212 days ago1750965259IN
0x1e08c289...3364Dc28B
0 ETH0.000001050.00127574
Send Tokens210767322025-06-26 18:41:19212 days ago1750963279IN
0x1e08c289...3364Dc28B
0 ETH0.000001160.00136191
Send Tokens209852032025-06-24 15:50:21214 days ago1750780221IN
0x1e08c289...3364Dc28B
0 ETH0.00000130.00200826
Send Tokens209843062025-06-24 15:20:27214 days ago1750778427IN
0x1e08c289...3364Dc28B
0 ETH0.000001680.00197155
Send Tokens209429042025-06-23 16:20:23215 days ago1750695623IN
0x1e08c289...3364Dc28B
0 ETH0.000002310.00203662
Send Tokens209121952025-06-22 23:16:45216 days ago1750634205IN
0x1e08c289...3364Dc28B
0 ETH0.000001460.00142203
Send Tokens208178032025-06-20 18:50:21218 days ago1750445421IN
0x1e08c289...3364Dc28B
0 ETH0.000000760.00133424
Send Tokens208157052025-06-20 17:40:25218 days ago1750441225IN
0x1e08c289...3364Dc28B
0 ETH0.000001410.00119779
Send Tokens207803012025-06-19 22:00:17219 days ago1750370417IN
0x1e08c289...3364Dc28B
0 ETH0.000001170.00101141
Send Tokens207802982025-06-19 22:00:11219 days ago1750370411IN
0x1e08c289...3364Dc28B
0 ETH0.000007830.00101138
Send Tokens207749052025-06-19 19:00:25219 days ago1750359625IN
0x1e08c289...3364Dc28B
0 ETH0.000008020.00101176
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiSend

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;

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

/**
 * @title MultiSend
 * @dev A contract for sending multiple ETH/ERC20 Tokens to multiple addresses in various configurations.
 * This includes equal or different amounts to single or multiple addresses in one transaction.
 */
contract MultiSend is ReentrancyGuard {
    using SafeERC20 for IERC20;

    event Sent(address indexed token, address indexed to, uint256 amount);
    event EtherSent(address indexed to, uint256 amount);

    error DeadAddressNotAllowed();
    error WrongAmountNotAllowed();

    constructor() {}

    modifier noDeadAddressRecipientOrWrongAmount (address[] calldata recipients, uint256[] calldata amounts) {
        require(recipients.length == amounts.length, "MultiSend: recipients and amounts length mismatch");
        for(uint256 i = 0; i < recipients.length; i++) {
            if (recipients[i] == address(0x0000000000000000000000000000000000000000)) {
                revert DeadAddressNotAllowed();
            }
            if (amounts[i] <= 0) {
                revert WrongAmountNotAllowed();
            }
        }
        _;
    }

    function sendEther(address[] calldata recipients, uint256[] calldata amounts) external payable nonReentrant noDeadAddressRecipientOrWrongAmount(recipients, amounts) {
        require(recipients.length == amounts.length, "MultiSend: recipients and amounts length mismatch");

        uint256 total = 0;
        for (uint256 i = 0; i < amounts.length; i++) {
            total = total + amounts[i];
        }

        require(msg.value >= total, "MultiSend: insufficient ether sent");

        for (uint256 i = 0; i < recipients.length; i++) {
            payable(recipients[i]).transfer(amounts[i]);
            emit EtherSent(recipients[i], amounts[i]);
        }

        uint256 refund = msg.value - total;
        if (refund > 0) {
            payable(msg.sender).transfer(refund);
        }
    }

    function sendTokens(address token, address[] calldata recipients, uint256[] calldata amounts) external nonReentrant noDeadAddressRecipientOrWrongAmount(recipients, amounts) {
        require(token != address(0), "MultiSend: token is the zero address");
        require(recipients.length == amounts.length, "MultiSend: recipients and amounts length mismatch");

        uint256 total = 0;
        for (uint256 i = 0; i < amounts.length; i++) {
            total = total + amounts[i];
        }

        IERC20(token).safeTransferFrom(msg.sender, address(this), total);

        for (uint256 i = 0; i < recipients.length; i++) {
            IERC20(token).safeTransfer(recipients[i], amounts[i]);
            emit Sent(token, recipients[i], amounts[i]);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

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

    constructor() {
        _status = NOT_ENTERED;
    }

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

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

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

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            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 silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the 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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

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

    /**
     * @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 AddressInsufficientBalance(address(this));
        }

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

    /**
     * @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
     * {FailedInnerCall} 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 AddressInsufficientBalance(address(this));
        }
        (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 {FailedInnerCall}) 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 {FailedInnerCall} 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 {FailedInnerCall}.
     */
    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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

Settings
{
  "remappings": [
    "@std/=lib/forge-std/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@VRGDAs/=lib/VRGDAs/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "VRGDAs/=lib/VRGDAs/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/VRGDAs/lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"DeadAddressNotAllowed","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"WrongAmountNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sent","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"sendEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"sendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506001600055610b4d806100256000396000f3fe6080604052600436106100295760003560e01c8063bcc91d611461002e578063e83f967b14610043575b600080fd5b61004161003c3660046108e6565b610063565b005b34801561004f57600080fd5b5061004161005e36600461096e565b61036d565b61006b610635565b838383838083146100975760405162461bcd60e51b815260040161008e906109ef565b60405180910390fd5b60005b8381101561013d5760008585838181106100b6576100b6610a40565b90506020020160208101906100cb9190610a56565b6001600160a01b0316036100f25760405163026a914d60e01b815260040160405180910390fd5b600083838381811061010657610106610a40565b905060200201351161012b5760405163ad24b32560e01b815260040160405180910390fd5b8061013581610a87565b91505061009a565b5086851461015d5760405162461bcd60e51b815260040161008e906109ef565b6000805b868110156101a15787878281811061017b5761017b610a40565b905060200201358261018d9190610aa0565b91508061019981610a87565b915050610161565b50803410156101fd5760405162461bcd60e51b815260206004820152602260248201527f4d756c746953656e643a20696e73756666696369656e742065746865722073656044820152611b9d60f21b606482015260840161008e565b60005b888110156103135789898281811061021a5761021a610a40565b905060200201602081019061022f9190610a56565b6001600160a01b03166108fc89898481811061024d5761024d610a40565b905060200201359081150290604051600060405180830381858888f1935050505015801561027f573d6000803e3d6000fd5b5089898281811061029257610292610a40565b90506020020160208101906102a79190610a56565b6001600160a01b03167f6109e2559dfa766aaec7118351d48a523f0a4157f49c8d68749c8ac41318ad128989848181106102e3576102e3610a40565b905060200201356040516102f991815260200190565b60405180910390a28061030b81610a87565b915050610200565b5060006103208234610ab3565b9050801561035757604051339082156108fc029083906000818181858888f19350505050158015610355573d6000803e3d6000fd5b505b5050505050506103676001600055565b50505050565b610375610635565b838383838083146103985760405162461bcd60e51b815260040161008e906109ef565b60005b8381101561043e5760008585838181106103b7576103b7610a40565b90506020020160208101906103cc9190610a56565b6001600160a01b0316036103f35760405163026a914d60e01b815260040160405180910390fd5b600083838381811061040757610407610a40565b905060200201351161042c5760405163ad24b32560e01b815260040160405180910390fd5b8061043681610a87565b91505061039b565b506001600160a01b0389166104a15760405162461bcd60e51b8152602060048201526024808201527f4d756c746953656e643a20746f6b656e20697320746865207a65726f206164646044820152637265737360e01b606482015260840161008e565b8685146104c05760405162461bcd60e51b815260040161008e906109ef565b6000805b86811015610504578787828181106104de576104de610a40565b90506020020135826104f09190610aa0565b9150806104fc81610a87565b9150506104c4565b5061051a6001600160a01b038b1633308461065f565b60005b8881101561061e576105818a8a8381811061053a5761053a610a40565b905060200201602081019061054f9190610a56565b89898481811061056157610561610a40565b905060200201358d6001600160a01b03166106c69092919063ffffffff16565b89898281811061059357610593610a40565b90506020020160208101906105a89190610a56565b6001600160a01b03168b6001600160a01b03167f3990db2d31862302a685e8086b5755072a6e2b5b780af1ee81ece35ee3cd33458a8a858181106105ee576105ee610a40565b9050602002013560405161060491815260200190565b60405180910390a38061061681610a87565b91505061051d565b50505050505061062e6001600055565b5050505050565b60026000540361065857604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6040516001600160a01b0384811660248301528381166044830152606482018390526103679186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506106fc565b6040516001600160a01b038381166024830152604482018390526106f791859182169063a9059cbb90606401610694565b505050565b60006107116001600160a01b0384168361075f565b905080516000141580156107365750808060200190518101906107349190610ac6565b155b156106f757604051635274afe760e01b81526001600160a01b038416600482015260240161008e565b606061076d83836000610776565b90505b92915050565b60608147101561079b5760405163cd78605960e01b815230600482015260240161008e565b600080856001600160a01b031684866040516107b79190610ae8565b60006040518083038185875af1925050503d80600081146107f4576040519150601f19603f3d011682016040523d82523d6000602084013e6107f9565b606091505b5091509150610809868383610815565b925050505b9392505050565b60608261082a5761082582610871565b61080e565b815115801561084157506001600160a01b0384163b155b1561086a57604051639996b31560e01b81526001600160a01b038516600482015260240161008e565b508061080e565b8051156108815780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60008083601f8401126108ac57600080fd5b50813567ffffffffffffffff8111156108c457600080fd5b6020830191508360208260051b85010111156108df57600080fd5b9250929050565b600080600080604085870312156108fc57600080fd5b843567ffffffffffffffff8082111561091457600080fd5b6109208883890161089a565b9096509450602087013591508082111561093957600080fd5b506109468782880161089a565b95989497509550505050565b80356001600160a01b038116811461096957600080fd5b919050565b60008060008060006060868803121561098657600080fd5b61098f86610952565b9450602086013567ffffffffffffffff808211156109ac57600080fd5b6109b889838a0161089a565b909650945060408801359150808211156109d157600080fd5b506109de8882890161089a565b969995985093965092949392505050565b60208082526031908201527f4d756c746953656e643a20726563697069656e747320616e6420616d6f756e746040820152700e640d8cadccee8d040dad2e6dac2e8c6d607b1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610a6857600080fd5b61076d82610952565b634e487b7160e01b600052601160045260246000fd5b600060018201610a9957610a99610a71565b5060010190565b8082018082111561077057610770610a71565b8181038181111561077057610770610a71565b600060208284031215610ad857600080fd5b8151801515811461080e57600080fd5b6000825160005b81811015610b095760208186018101518583015201610aef565b50600092019182525091905056fea264697066735822122099ac61e9969aa90804e457522641de34c3d4ebad7fb1b9518245540432e2ecc864736f6c63430008140033

Deployed Bytecode

0x6080604052600436106100295760003560e01c8063bcc91d611461002e578063e83f967b14610043575b600080fd5b61004161003c3660046108e6565b610063565b005b34801561004f57600080fd5b5061004161005e36600461096e565b61036d565b61006b610635565b838383838083146100975760405162461bcd60e51b815260040161008e906109ef565b60405180910390fd5b60005b8381101561013d5760008585838181106100b6576100b6610a40565b90506020020160208101906100cb9190610a56565b6001600160a01b0316036100f25760405163026a914d60e01b815260040160405180910390fd5b600083838381811061010657610106610a40565b905060200201351161012b5760405163ad24b32560e01b815260040160405180910390fd5b8061013581610a87565b91505061009a565b5086851461015d5760405162461bcd60e51b815260040161008e906109ef565b6000805b868110156101a15787878281811061017b5761017b610a40565b905060200201358261018d9190610aa0565b91508061019981610a87565b915050610161565b50803410156101fd5760405162461bcd60e51b815260206004820152602260248201527f4d756c746953656e643a20696e73756666696369656e742065746865722073656044820152611b9d60f21b606482015260840161008e565b60005b888110156103135789898281811061021a5761021a610a40565b905060200201602081019061022f9190610a56565b6001600160a01b03166108fc89898481811061024d5761024d610a40565b905060200201359081150290604051600060405180830381858888f1935050505015801561027f573d6000803e3d6000fd5b5089898281811061029257610292610a40565b90506020020160208101906102a79190610a56565b6001600160a01b03167f6109e2559dfa766aaec7118351d48a523f0a4157f49c8d68749c8ac41318ad128989848181106102e3576102e3610a40565b905060200201356040516102f991815260200190565b60405180910390a28061030b81610a87565b915050610200565b5060006103208234610ab3565b9050801561035757604051339082156108fc029083906000818181858888f19350505050158015610355573d6000803e3d6000fd5b505b5050505050506103676001600055565b50505050565b610375610635565b838383838083146103985760405162461bcd60e51b815260040161008e906109ef565b60005b8381101561043e5760008585838181106103b7576103b7610a40565b90506020020160208101906103cc9190610a56565b6001600160a01b0316036103f35760405163026a914d60e01b815260040160405180910390fd5b600083838381811061040757610407610a40565b905060200201351161042c5760405163ad24b32560e01b815260040160405180910390fd5b8061043681610a87565b91505061039b565b506001600160a01b0389166104a15760405162461bcd60e51b8152602060048201526024808201527f4d756c746953656e643a20746f6b656e20697320746865207a65726f206164646044820152637265737360e01b606482015260840161008e565b8685146104c05760405162461bcd60e51b815260040161008e906109ef565b6000805b86811015610504578787828181106104de576104de610a40565b90506020020135826104f09190610aa0565b9150806104fc81610a87565b9150506104c4565b5061051a6001600160a01b038b1633308461065f565b60005b8881101561061e576105818a8a8381811061053a5761053a610a40565b905060200201602081019061054f9190610a56565b89898481811061056157610561610a40565b905060200201358d6001600160a01b03166106c69092919063ffffffff16565b89898281811061059357610593610a40565b90506020020160208101906105a89190610a56565b6001600160a01b03168b6001600160a01b03167f3990db2d31862302a685e8086b5755072a6e2b5b780af1ee81ece35ee3cd33458a8a858181106105ee576105ee610a40565b9050602002013560405161060491815260200190565b60405180910390a38061061681610a87565b91505061051d565b50505050505061062e6001600055565b5050505050565b60026000540361065857604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6040516001600160a01b0384811660248301528381166044830152606482018390526103679186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506106fc565b6040516001600160a01b038381166024830152604482018390526106f791859182169063a9059cbb90606401610694565b505050565b60006107116001600160a01b0384168361075f565b905080516000141580156107365750808060200190518101906107349190610ac6565b155b156106f757604051635274afe760e01b81526001600160a01b038416600482015260240161008e565b606061076d83836000610776565b90505b92915050565b60608147101561079b5760405163cd78605960e01b815230600482015260240161008e565b600080856001600160a01b031684866040516107b79190610ae8565b60006040518083038185875af1925050503d80600081146107f4576040519150601f19603f3d011682016040523d82523d6000602084013e6107f9565b606091505b5091509150610809868383610815565b925050505b9392505050565b60608261082a5761082582610871565b61080e565b815115801561084157506001600160a01b0384163b155b1561086a57604051639996b31560e01b81526001600160a01b038516600482015260240161008e565b508061080e565b8051156108815780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60008083601f8401126108ac57600080fd5b50813567ffffffffffffffff8111156108c457600080fd5b6020830191508360208260051b85010111156108df57600080fd5b9250929050565b600080600080604085870312156108fc57600080fd5b843567ffffffffffffffff8082111561091457600080fd5b6109208883890161089a565b9096509450602087013591508082111561093957600080fd5b506109468782880161089a565b95989497509550505050565b80356001600160a01b038116811461096957600080fd5b919050565b60008060008060006060868803121561098657600080fd5b61098f86610952565b9450602086013567ffffffffffffffff808211156109ac57600080fd5b6109b889838a0161089a565b909650945060408801359150808211156109d157600080fd5b506109de8882890161089a565b969995985093965092949392505050565b60208082526031908201527f4d756c746953656e643a20726563697069656e747320616e6420616d6f756e746040820152700e640d8cadccee8d040dad2e6dac2e8c6d607b1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215610a6857600080fd5b61076d82610952565b634e487b7160e01b600052601160045260246000fd5b600060018201610a9957610a99610a71565b5060010190565b8082018082111561077057610770610a71565b8181038181111561077057610770610a71565b600060208284031215610ad857600080fd5b8151801515811461080e57600080fd5b6000825160005b81811015610b095760208186018101518583015201610aef565b50600092019182525091905056fea264697066735822122099ac61e9969aa90804e457522641de34c3d4ebad7fb1b9518245540432e2ecc864736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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