ETH Price: $2,197.20 (-2.19%)
 

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
Snwap1501998512026-04-12 12:54:395 mins ago1775998479IN
SushiSwap: RedSnwapper
0.000050719182353 ETH0.0000003293260.00100245
Snwap1501997142026-04-12 12:50:059 mins ago1775998205IN
SushiSwap: RedSnwapper
0.000050713816716 ETH0.0000003262580.00100249
Snwap1501995762026-04-12 12:45:2914 mins ago1775997929IN
SushiSwap: RedSnwapper
0 ETH0.0000000350930.00010246
Snwap Multiple1501995492026-04-12 12:44:3515 mins ago1775997875IN
SushiSwap: RedSnwapper
0 ETH0.0000002743970.00100242
Snwap1501995392026-04-12 12:44:1515 mins ago1775997855IN
SushiSwap: RedSnwapper
0.000054884030604 ETH0.0000003301530.00100242
Snwap1501994092026-04-12 12:39:5519 mins ago1775997595IN
SushiSwap: RedSnwapper
0 ETH0.0000000385690.00010231
Snwap1501994092026-04-12 12:39:5519 mins ago1775997595IN
SushiSwap: RedSnwapper
0.00005078012649 ETH0.000000329440.00100229
Snwap Multiple1501992092026-04-12 12:33:1526 mins ago1775997195IN
SushiSwap: RedSnwapper
0 ETH0.0000003272050.0010023
Snwap1501991382026-04-12 12:30:5329 mins ago1775997053IN
SushiSwap: RedSnwapper
0.000048512900896 ETH0.0000003295780.00100232
Snwap Multiple1501990252026-04-12 12:27:0732 mins ago1775996827IN
SushiSwap: RedSnwapper
0 ETH0.0000003263040.00100235
Snwap Multiple1501989892026-04-12 12:25:5533 mins ago1775996755IN
SushiSwap: RedSnwapper
0 ETH0.0000002734280.00100234
Snwap Multiple1501989772026-04-12 12:25:3134 mins ago1775996731IN
SushiSwap: RedSnwapper
0 ETH0.000000326530.00100234
Snwap1501989102026-04-12 12:23:1736 mins ago1775996597IN
SushiSwap: RedSnwapper
0.000048601467045 ETH0.0000003298640.00100235
Snwap1501987862026-04-12 12:19:0940 mins ago1775996349IN
SushiSwap: RedSnwapper
0.00005087321312 ETH0.0000003263010.00100236
Snwap1501985472026-04-12 12:11:1148 mins ago1775995871IN
SushiSwap: RedSnwapper
0.000054945241782 ETH0.0000003302010.00100249
Snwap Multiple1501985012026-04-12 12:09:3950 mins ago1775995779IN
SushiSwap: RedSnwapper
0 ETH0.0000003280410.00100251
Snwap Multiple1501982652026-04-12 12:01:4758 mins ago1775995307IN
SushiSwap: RedSnwapper
0 ETH0.0000003180930.00100252
Snwap1501981622026-04-12 11:58:211 hr ago1775995101IN
SushiSwap: RedSnwapper
0.000050779721141 ETH0.0000002768820.00100247
Snwap Multiple1501981472026-04-12 11:57:511 hr ago1775995071IN
SushiSwap: RedSnwapper
0 ETH0.0000003272520.00100247
Snwap Multiple1501981032026-04-12 11:56:231 hr ago1775994983IN
SushiSwap: RedSnwapper
0 ETH0.0000003281440.00100249
Snwap Multiple1501979772026-04-12 11:52:111 hr ago1775994731IN
SushiSwap: RedSnwapper
0 ETH0.0000003279510.00100249
Snwap Multiple1501979262026-04-12 11:50:291 hr ago1775994629IN
SushiSwap: RedSnwapper
0 ETH0.0000003268530.0010025
Snwap1501975532026-04-12 11:38:031 hr ago1775993883IN
SushiSwap: RedSnwapper
0.000054904848702 ETH0.0000002771220.00100249
Snwap1501975402026-04-12 11:37:371 hr ago1775993857IN
SushiSwap: RedSnwapper
0.000050812930523 ETH0.0000002741070.00100249
Snwap1501975382026-04-12 11:37:331 hr ago1775993853IN
SushiSwap: RedSnwapper
0.000050798801002 ETH0.0000003302950.00100249
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1501998512026-04-12 12:54:395 mins ago1775998479
SushiSwap: RedSnwapper
0.000050719182353 ETH
1501997142026-04-12 12:50:059 mins ago1775998205
SushiSwap: RedSnwapper
0.000050713816716 ETH
1501995392026-04-12 12:44:1515 mins ago1775997855
SushiSwap: RedSnwapper
0.000054884030604 ETH
1501994092026-04-12 12:39:5519 mins ago1775997595
SushiSwap: RedSnwapper
0.00005078012649 ETH
1501991382026-04-12 12:30:5329 mins ago1775997053
SushiSwap: RedSnwapper
0.000048512900896 ETH
1501989102026-04-12 12:23:1736 mins ago1775996597
SushiSwap: RedSnwapper
0.000048601467045 ETH
1501987862026-04-12 12:19:0940 mins ago1775996349
SushiSwap: RedSnwapper
0.00005087321312 ETH
1501985472026-04-12 12:11:1148 mins ago1775995871
SushiSwap: RedSnwapper
0.000054945241782 ETH
1501981622026-04-12 11:58:211 hr ago1775995101
SushiSwap: RedSnwapper
0.000050779721141 ETH
1501975532026-04-12 11:38:031 hr ago1775993883
SushiSwap: RedSnwapper
0.000054904848702 ETH
1501975402026-04-12 11:37:371 hr ago1775993857
SushiSwap: RedSnwapper
0.000050812930523 ETH
1501975382026-04-12 11:37:331 hr ago1775993853
SushiSwap: RedSnwapper
0.000050798801002 ETH
1501971972026-04-12 11:26:111 hr ago1775993171
SushiSwap: RedSnwapper
0.000048509667761 ETH
1501969092026-04-12 11:16:351 hr ago1775992595
SushiSwap: RedSnwapper
0.000050889994564 ETH
1501968112026-04-12 11:13:191 hr ago1775992399
SushiSwap: RedSnwapper
0.000050875909273 ETH
1501965622026-04-12 11:05:011 hr ago1775991901
SushiSwap: RedSnwapper
0.000054964044894 ETH
1501962862026-04-12 10:55:492 hrs ago1775991349
SushiSwap: RedSnwapper
0.000050597315556 ETH
1501960872026-04-12 10:49:112 hrs ago1775990951
SushiSwap: RedSnwapper
0.000050583574379 ETH
1501958802026-04-12 10:42:172 hrs ago1775990537
SushiSwap: RedSnwapper
0.000050542255259 ETH
1501956622026-04-12 10:35:012 hrs ago1775990101
SushiSwap: RedSnwapper
0.000050542896819 ETH
1501955702026-04-12 10:31:572 hrs ago1775989917
SushiSwap: RedSnwapper
0.000054590647266 ETH
1501954832026-04-12 10:29:032 hrs ago1775989743
SushiSwap: RedSnwapper
0.000048272537787 ETH
1501953562026-04-12 10:24:492 hrs ago1775989489
SushiSwap: RedSnwapper
0.000050568100907 ETH
1501950382026-04-12 10:14:132 hrs ago1775988853
SushiSwap: RedSnwapper
0.000050554365969 ETH
1501948312026-04-12 10:07:192 hrs ago1775988439
SushiSwap: RedSnwapper
0.000050573344096 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RedSnwapper

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 10000000 runs

Other Settings:
cancun EvmVersion
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.24;

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

contract RedSnwapper {
  using SafeERC20 for IERC20;
  using Utils for IERC20;

  SafeExecutor public immutable safeExecutor;

  constructor() {
    safeExecutor = new SafeExecutor();
  }

  // @notice Swaps tokens
  // @notice 1. Transfers amountIn of tokens tokenIn to executor
  // @notice 2. launches executor with executorData and value = msg.value
  // @notice 3. Checks that recipient's tokenOut balance was increased at least amountOutMin
  function snwap(
    IERC20 tokenIn,
    uint amountIn, // if amountIn == 0 then amountIn = tokenIn.balance(this) - 1
    address recipient,
    IERC20 tokenOut,
    uint amountOutMin,
    address executor,
    bytes calldata executorData
  ) external payable returns (uint amountOut) {
    uint initialOutputBalance = tokenOut.universalBalanceOf(recipient);

    if (address(tokenIn) != NATIVE_ADDRESS) {
      if (amountIn > 0) tokenIn.safeTransferFrom(msg.sender, executor, amountIn);
      else tokenIn.safeTransfer(executor, tokenIn.balanceOf(address(this)) - 1); // -1 is slot undrain protection
    }

    safeExecutor.execute{value: msg.value}(executor, executorData);

    amountOut = tokenOut.universalBalanceOf(recipient) - initialOutputBalance;
    if (amountOut < amountOutMin)
      revert MinimalOutputBalanceViolation(address(tokenOut), amountOut);
  }

  // @notice Swaps multiple tokens
  // @notice 1. Transfers inputTokens to inputTokens[i].transferTo
  // @notice 2. launches executors
  // @notice 3. Checks that recipient's tokenOut balance was increased at least amountOutMin
  function snwapMultiple(
    InputToken[] calldata inputTokens,
    OutputToken[] calldata outputTokens,
    Executor[] calldata executors
  ) external payable returns (uint[] memory amountOut) {
    uint[] memory initialOutputBalance = new uint[](outputTokens.length);
    for (uint i = 0; i < outputTokens.length; i++) {
      initialOutputBalance[i] = outputTokens[i].token.universalBalanceOf(outputTokens[i].recipient);
    }

    for (uint i = 0; i < inputTokens.length; i++) {
      IERC20 tokenIn = inputTokens[i].token;
      if (address(tokenIn) != NATIVE_ADDRESS) {
        if (inputTokens[i].amountIn > 0) 
          tokenIn.safeTransferFrom(msg.sender, inputTokens[i].transferTo, inputTokens[i].amountIn);
        else tokenIn.safeTransfer(inputTokens[i].transferTo, tokenIn.balanceOf(address(this)) - 1); // -1 is slot undrain protection
      }
    }

    safeExecutor.executeMultiple{value: msg.value}(executors);

    amountOut = new uint[](outputTokens.length);
    for (uint i = 0; i < outputTokens.length; i++) {
      amountOut[i] = outputTokens[i].token.universalBalanceOf(outputTokens[i].recipient) - initialOutputBalance[i];
      if (amountOut[i] < outputTokens[i].amountOutMin)
        revert MinimalOutputBalanceViolation(address(outputTokens[i].token), amountOut[i]);
    }
  }
}


// This contract doesn't have token approves, so can safely call other contracts
contract SafeExecutor {  
  using Utils for address;

  function execute(address executor, bytes calldata executorData) external payable {
    executor.callRevertBubbleUp(msg.value, executorData);
  }

  function executeMultiple(Executor[] calldata executors) external payable {
    for (uint i = 0; i < executors.length; i++) {
      executors[i].executor.callRevertBubbleUp(executors[i].value, executors[i].data);
    }
  }
}

error MinimalOutputBalanceViolation(address tokenOut, uint256 amountOut);

address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

struct InputToken {
  IERC20 token;
  uint amountIn;
  address transferTo;
}

struct OutputToken {
  IERC20 token;
  address recipient;
  uint amountOutMin;
}

struct Executor {
  address executor;
  uint value;
  bytes data;
}

library Utils {
  using SafeERC20 for IERC20;
  
  function universalBalanceOf(IERC20 token, address user) internal view returns (uint256) {
    if (address(token) == NATIVE_ADDRESS) return address(user).balance;
    else return token.balanceOf(user);
  }

  function callRevertBubbleUp(address contr, uint256 value, bytes memory data) internal {
    (bool success, bytes memory returnBytes) = contr.call{value: value}(data);
    if (!success) {
      assembly {
        revert(add(32, returnBytes), mload(returnBytes))
      }
    }
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../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;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "evmVersion": "cancun",
  "optimizer": {
    "enabled": true,
    "runs": 10000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"MinimalOutputBalanceViolation","type":"error"},{"inputs":[],"name":"safeExecutor","outputs":[{"internalType":"contract SafeExecutor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"executorData","type":"bytes"}],"name":"snwap","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"transferTo","type":"address"}],"internalType":"struct InputToken[]","name":"inputTokens","type":"tuple[]"},{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"internalType":"struct OutputToken[]","name":"outputTokens","type":"tuple[]"},{"components":[{"internalType":"address","name":"executor","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct Executor[]","name":"executors","type":"tuple[]"}],"name":"snwapMultiple","outputs":[{"internalType":"uint256[]","name":"amountOut","type":"uint256[]"}],"stateMutability":"payable","type":"function"}]

60a060405234801561000f575f80fd5b5060405161001c90610047565b604051809103905ff080158015610035573d5f803e3d5ffd5b506001600160a01b0316608052610054565b6104a8806113eb83390190565b6080516113726100795f395f8181608e01528181610251015261066e01526113725ff3fe608060405260043610610033575f3560e01c80635f3bd1c814610037578063d33721a51461005d578063e8382b011461007d575b5f80fd5b61004a610045366004610df4565b6100d5565b6040519081526020015b60405180910390f35b61007061006b366004610f03565b61035b565b6040516100549190610fc2565b348015610088575f80fd5b506100b07f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610054565b5f806100f773ffffffffffffffffffffffffffffffffffffffff88168961088c565b905073ffffffffffffffffffffffffffffffffffffffff8a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146102145788156101575761015273ffffffffffffffffffffffffffffffffffffffff8b1633878c61097f565b610214565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261021490869060019073ffffffffffffffffffffffffffffffffffffffff8e16906370a0823190602401602060405180830381865afa1580156101c8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ec9190611005565b6101f6919061101c565b73ffffffffffffffffffffffffffffffffffffffff8d169190610a61565b6040517f1cff79cd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690631cff79cd90349061028c9089908990899060040161109b565b5f604051808303818588803b1580156102a3575f80fd5b505af11580156102b5573d5f803e3d5ffd5b5050505050806102e4898973ffffffffffffffffffffffffffffffffffffffff1661088c90919063ffffffff16565b6102ee919061101c565b91508582101561034e576040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152602481018390526044015b60405180910390fd5b5098975050505050505050565b60605f8467ffffffffffffffff811115610377576103776110d3565b6040519080825280602002602001820160405280156103a0578160200160208202803683370190505b5090505f5b858110156104435761041e8787838181106103c2576103c2611100565b90506060020160200160208101906103da919061112d565b8888848181106103ec576103ec611100565b610402926020606090920201908101915061112d565b73ffffffffffffffffffffffffffffffffffffffff169061088c565b82828151811061043057610430611100565b60209081029190910101526001016103a5565b505f5b87811015610630575f89898381811061046157610461611100565b610477926020606090920201908101915061112d565b905073ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610627575f8a8a848181106104bd576104bd611100565b9050606002016020013511156105435761053e338b8b858181106104e3576104e3611100565b90506060020160400160208101906104fb919061112d565b8c8c8681811061050d5761050d611100565b905060600201602001358473ffffffffffffffffffffffffffffffffffffffff1661097f909392919063ffffffff16565b610627565b6106278a8a8481811061055857610558611100565b9050606002016040016020810190610570919061112d565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260019073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff9190611005565b610609919061101c565b73ffffffffffffffffffffffffffffffffffffffff84169190610a61565b50600101610446565b506040517fe8ff45ca00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063e8ff45ca9034906106a7908890889060040161114f565b5f604051808303818588803b1580156106be575f80fd5b505af11580156106d0573d5f803e3d5ffd5b50889350505067ffffffffffffffff82111590506106f0576106f06110d3565b604051908082528060200260200182016040528015610719578160200160208202803683370190505b5091505f5b858110156108805781818151811061073857610738611100565b602002602001015161077f88888481811061075557610755611100565b905060600201602001602081019061076d919061112d565b8989858181106103ec576103ec611100565b610789919061101c565b83828151811061079b5761079b611100565b6020026020010181815250508686828181106107b9576107b9611100565b905060600201604001358382815181106107d5576107d5611100565b60200260200101511015610878578686828181106107f5576107f5611100565b61080b926020606090920201908101915061112d565b83828151811061081d5761081d611100565b60209081029190910101516040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401610345565b60010161071e565b50509695505050505050565b5f7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8416016108e8575073ffffffffffffffffffffffffffffffffffffffff811631610979565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa158015610952573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109769190611005565b90505b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a5b9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610abc565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ab79084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016109d9565b505050565b5f610b1d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bc79092919063ffffffff16565b805190915015610ab75780806020019051810190610b3b9190611290565b610ab7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610345565b6060610bd584845f85610bdd565b949350505050565b606082471015610c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610345565b5f808673ffffffffffffffffffffffffffffffffffffffff168587604051610c9791906112d1565b5f6040518083038185875af1925050503d805f8114610cd1576040519150601f19603f3d011682016040523d82523d5f602084013e610cd6565b606091505b5091509150610ce787838387610cf2565b979650505050505050565b60608315610d875782515f03610d805773ffffffffffffffffffffffffffffffffffffffff85163b610d80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610345565b5081610bd5565b610bd58383815115610d9c5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034591906112ec565b73ffffffffffffffffffffffffffffffffffffffff81168114610df1575f80fd5b50565b5f805f805f805f8060e0898b031215610e0b575f80fd5b8835610e1681610dd0565b9750602089013596506040890135610e2d81610dd0565b95506060890135610e3d81610dd0565b94506080890135935060a0890135610e5481610dd0565b925060c089013567ffffffffffffffff80821115610e70575f80fd5b818b0191508b601f830112610e83575f80fd5b813581811115610e91575f80fd5b8c6020828501011115610ea2575f80fd5b6020830194508093505050509295985092959890939650565b5f8083601f840112610ecb575f80fd5b50813567ffffffffffffffff811115610ee2575f80fd5b602083019150836020606083028501011115610efc575f80fd5b9250929050565b5f805f805f8060608789031215610f18575f80fd5b863567ffffffffffffffff80821115610f2f575f80fd5b610f3b8a838b01610ebb565b90985096506020890135915080821115610f53575f80fd5b610f5f8a838b01610ebb565b90965094506040890135915080821115610f77575f80fd5b818901915089601f830112610f8a575f80fd5b813581811115610f98575f80fd5b8a60208260051b8501011115610fac575f80fd5b6020830194508093505050509295509295509295565b602080825282518282018190525f9190848201906040850190845b81811015610ff957835183529284019291840191600101610fdd565b50909695505050505050565b5f60208284031215611015575f80fd5b5051919050565b81810381811115610979577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f6110ca604083018486611054565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561113d575f80fd5b813561114881610dd0565b9392505050565b60208082528181018390525f906040808401600586901b8501820187855b88811015611282577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18b36030181126111cd575f80fd5b8a01606081356111dc81610dd0565b73ffffffffffffffffffffffffffffffffffffffff168552818801358886015286820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112611230575f80fd5b90910187810191903567ffffffffffffffff81111561124d575f80fd5b80360383131561125b575f80fd5b818887015261126d8287018285611054565b9689019695505050918601915060010161116d565b509098975050505050505050565b5f602082840312156112a0575f80fd5b81518015158114611148575f80fd5b5f5b838110156112c95781810151838201526020016112b1565b50505f910152565b5f82516112e28184602087016112af565b9190910192915050565b602081525f825180602084015261130a8160408501602087016112af565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122063e4ea57388f5825c1a1858acc9bcc212a18eb1cfaeeed65cb00076b315f78b064736f6c63430008180033608060405234801561000f575f80fd5b5061048b8061001d5f395ff3fe608060405260043610610028575f3560e01c80631cff79cd1461002c578063e8ff45ca14610041575b5f80fd5b61003f61003a36600461024d565b610054565b005b61003f61004f3660046102c9565b6100b1565b6100ac3483838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152505073ffffffffffffffffffffffffffffffffffffffff881693929150506101a5565b505050565b5f5b818110156100ac5761019d8383838181106100d0576100d0610338565b90506020028101906100e29190610365565b602001358484848181106100f8576100f8610338565b905060200281019061010a9190610365565b6101189060408101906103a1565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525088925087915086905081811061016057610160610338565b90506020028101906101729190610365565b610180906020810190610409565b73ffffffffffffffffffffffffffffffffffffffff1691906101a5565b6001016100b3565b5f808473ffffffffffffffffffffffffffffffffffffffff1684846040516101cd9190610429565b5f6040518083038185875af1925050503d805f8114610207576040519150601f19603f3d011682016040523d82523d5f602084013e61020c565b606091505b50915091508161021e57805181602001fd5b5050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610248575f80fd5b919050565b5f805f6040848603121561025f575f80fd5b61026884610225565b9250602084013567ffffffffffffffff80821115610284575f80fd5b818601915086601f830112610297575f80fd5b8135818111156102a5575f80fd5b8760208285010111156102b6575f80fd5b6020830194508093505050509250925092565b5f80602083850312156102da575f80fd5b823567ffffffffffffffff808211156102f1575f80fd5b818501915085601f830112610304575f80fd5b813581811115610312575f80fd5b8660208260051b8501011115610326575f80fd5b60209290920196919550909350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f82357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112610397575f80fd5b9190910192915050565b5f8083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126103d4575f80fd5b83018035915067ffffffffffffffff8211156103ee575f80fd5b602001915036819003821315610402575f80fd5b9250929050565b5f60208284031215610419575f80fd5b61042282610225565b9392505050565b5f82515f5b81811015610448576020818601810151858301520161042e565b505f92019182525091905056fea2646970667358221220b3bfec88587cd8556eb0ea1aa9e38b422c0a9755208e59b297bf6f6cd82ee8f164736f6c63430008180033

Deployed Bytecode

0x608060405260043610610033575f3560e01c80635f3bd1c814610037578063d33721a51461005d578063e8382b011461007d575b5f80fd5b61004a610045366004610df4565b6100d5565b6040519081526020015b60405180910390f35b61007061006b366004610f03565b61035b565b6040516100549190610fc2565b348015610088575f80fd5b506100b07f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d81565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610054565b5f806100f773ffffffffffffffffffffffffffffffffffffffff88168961088c565b905073ffffffffffffffffffffffffffffffffffffffff8a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146102145788156101575761015273ffffffffffffffffffffffffffffffffffffffff8b1633878c61097f565b610214565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261021490869060019073ffffffffffffffffffffffffffffffffffffffff8e16906370a0823190602401602060405180830381865afa1580156101c8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ec9190611005565b6101f6919061101c565b73ffffffffffffffffffffffffffffffffffffffff8d169190610a61565b6040517f1cff79cd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d1690631cff79cd90349061028c9089908990899060040161109b565b5f604051808303818588803b1580156102a3575f80fd5b505af11580156102b5573d5f803e3d5ffd5b5050505050806102e4898973ffffffffffffffffffffffffffffffffffffffff1661088c90919063ffffffff16565b6102ee919061101c565b91508582101561034e576040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152602481018390526044015b60405180910390fd5b5098975050505050505050565b60605f8467ffffffffffffffff811115610377576103776110d3565b6040519080825280602002602001820160405280156103a0578160200160208202803683370190505b5090505f5b858110156104435761041e8787838181106103c2576103c2611100565b90506060020160200160208101906103da919061112d565b8888848181106103ec576103ec611100565b610402926020606090920201908101915061112d565b73ffffffffffffffffffffffffffffffffffffffff169061088c565b82828151811061043057610430611100565b60209081029190910101526001016103a5565b505f5b87811015610630575f89898381811061046157610461611100565b610477926020606090920201908101915061112d565b905073ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610627575f8a8a848181106104bd576104bd611100565b9050606002016020013511156105435761053e338b8b858181106104e3576104e3611100565b90506060020160400160208101906104fb919061112d565b8c8c8681811061050d5761050d611100565b905060600201602001358473ffffffffffffffffffffffffffffffffffffffff1661097f909392919063ffffffff16565b610627565b6106278a8a8481811061055857610558611100565b9050606002016040016020810190610570919061112d565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260019073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff9190611005565b610609919061101c565b73ffffffffffffffffffffffffffffffffffffffff84169190610a61565b50600101610446565b506040517fe8ff45ca00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d169063e8ff45ca9034906106a7908890889060040161114f565b5f604051808303818588803b1580156106be575f80fd5b505af11580156106d0573d5f803e3d5ffd5b50889350505067ffffffffffffffff82111590506106f0576106f06110d3565b604051908082528060200260200182016040528015610719578160200160208202803683370190505b5091505f5b858110156108805781818151811061073857610738611100565b602002602001015161077f88888481811061075557610755611100565b905060600201602001602081019061076d919061112d565b8989858181106103ec576103ec611100565b610789919061101c565b83828151811061079b5761079b611100565b6020026020010181815250508686828181106107b9576107b9611100565b905060600201604001358382815181106107d5576107d5611100565b60200260200101511015610878578686828181106107f5576107f5611100565b61080b926020606090920201908101915061112d565b83828151811061081d5761081d611100565b60209081029190910101516040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401610345565b60010161071e565b50509695505050505050565b5f7fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8416016108e8575073ffffffffffffffffffffffffffffffffffffffff811631610979565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa158015610952573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109769190611005565b90505b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a5b9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610abc565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ab79084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064016109d9565b505050565b5f610b1d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bc79092919063ffffffff16565b805190915015610ab75780806020019051810190610b3b9190611290565b610ab7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610345565b6060610bd584845f85610bdd565b949350505050565b606082471015610c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610345565b5f808673ffffffffffffffffffffffffffffffffffffffff168587604051610c9791906112d1565b5f6040518083038185875af1925050503d805f8114610cd1576040519150601f19603f3d011682016040523d82523d5f602084013e610cd6565b606091505b5091509150610ce787838387610cf2565b979650505050505050565b60608315610d875782515f03610d805773ffffffffffffffffffffffffffffffffffffffff85163b610d80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610345565b5081610bd5565b610bd58383815115610d9c5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034591906112ec565b73ffffffffffffffffffffffffffffffffffffffff81168114610df1575f80fd5b50565b5f805f805f805f8060e0898b031215610e0b575f80fd5b8835610e1681610dd0565b9750602089013596506040890135610e2d81610dd0565b95506060890135610e3d81610dd0565b94506080890135935060a0890135610e5481610dd0565b925060c089013567ffffffffffffffff80821115610e70575f80fd5b818b0191508b601f830112610e83575f80fd5b813581811115610e91575f80fd5b8c6020828501011115610ea2575f80fd5b6020830194508093505050509295985092959890939650565b5f8083601f840112610ecb575f80fd5b50813567ffffffffffffffff811115610ee2575f80fd5b602083019150836020606083028501011115610efc575f80fd5b9250929050565b5f805f805f8060608789031215610f18575f80fd5b863567ffffffffffffffff80821115610f2f575f80fd5b610f3b8a838b01610ebb565b90985096506020890135915080821115610f53575f80fd5b610f5f8a838b01610ebb565b90965094506040890135915080821115610f77575f80fd5b818901915089601f830112610f8a575f80fd5b813581811115610f98575f80fd5b8a60208260051b8501011115610fac575f80fd5b6020830194508093505050509295509295509295565b602080825282518282018190525f9190848201906040850190845b81811015610ff957835183529284019291840191600101610fdd565b50909695505050505050565b5f60208284031215611015575f80fd5b5051919050565b81810381811115610979577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f6110ca604083018486611054565b95945050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561113d575f80fd5b813561114881610dd0565b9392505050565b60208082528181018390525f906040808401600586901b8501820187855b88811015611282577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18b36030181126111cd575f80fd5b8a01606081356111dc81610dd0565b73ffffffffffffffffffffffffffffffffffffffff168552818801358886015286820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112611230575f80fd5b90910187810191903567ffffffffffffffff81111561124d575f80fd5b80360383131561125b575f80fd5b818887015261126d8287018285611054565b9689019695505050918601915060010161116d565b509098975050505050505050565b5f602082840312156112a0575f80fd5b81518015158114611148575f80fd5b5f5b838110156112c95781810151838201526020016112b1565b50505f910152565b5f82516112e28184602087016112af565b9190910192915050565b602081525f825180602084015261130a8160408501602087016112af565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122063e4ea57388f5825c1a1858acc9bcc212a18eb1cfaeeed65cb00076b315f78b064736f6c63430008180033

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