ETH Price: $3,187.44 (+1.30%)

Contract

0xAC4c6e212A361c968F1725b4d055b47E63F80b75
Transaction Hash
Block
From
To
Snwap208416962026-01-05 3:41:472 mins ago1767584507IN
SushiSwap: RedSnwapper
0 ETH0.000001520.00100026
Snwap208416402026-01-05 3:40:513 mins ago1767584451IN
SushiSwap: RedSnwapper
0.02 ETH0.00000160.00119726
Snwap208415902026-01-05 3:40:014 mins ago1767584401IN
SushiSwap: RedSnwapper
0.05 ETH0.00000160.001198
Snwap208415372026-01-05 3:39:085 mins ago1767584348IN
SushiSwap: RedSnwapper
0.1 ETH0.00000160.00119826
Snwap208415042026-01-05 3:38:355 mins ago1767584315IN
SushiSwap: RedSnwapper
0.5 ETH0.000001610.001199
Snwap208414562026-01-05 3:37:476 mins ago1767584267IN
SushiSwap: RedSnwapper
5 ETH0.00000160.00119926
Snwap208414162026-01-05 3:37:077 mins ago1767584227IN
SushiSwap: RedSnwapper
20 ETH0.00000160.0012
Snwap208411732026-01-05 3:33:0411 mins ago1767583984IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208410852026-01-05 3:31:3612 mins ago1767583896IN
SushiSwap: RedSnwapper
0 ETH0.000002310.00333426
Snwap208409672026-01-05 3:29:3814 mins ago1767583778IN
SushiSwap: RedSnwapper
0 ETH0.000009450.02801
Snwap208408532026-01-05 3:27:4416 mins ago1767583664IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208408222026-01-05 3:27:1316 mins ago1767583633IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208407652026-01-05 3:26:1617 mins ago1767583576IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208406442026-01-05 3:24:1519 mins ago1767583455IN
SushiSwap: RedSnwapper
0 ETH0.00000150.00049626
Snwap208406022026-01-05 3:23:3320 mins ago1767583413IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208405912026-01-05 3:23:2220 mins ago1767583402IN
SushiSwap: RedSnwapper
0 ETH0.00000150.00049626
Snwap208405622026-01-05 3:22:5321 mins ago1767583373IN
SushiSwap: RedSnwapper
0 ETH0.000001690.001199
Snwap208405202026-01-05 3:22:1122 mins ago1767583331IN
SushiSwap: RedSnwapper
0 ETH0.000001690.0012
Snwap208404132026-01-05 3:20:2423 mins ago1767583224IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208403282026-01-05 3:18:5925 mins ago1767583139IN
SushiSwap: RedSnwapper
0 ETH0.000001540.00100026
Snwap208401512026-01-05 3:16:0228 mins ago1767582962IN
SushiSwap: RedSnwapper
0 ETH0.000001530.00100026
Snwap208401222026-01-05 3:15:3328 mins ago1767582933IN
SushiSwap: RedSnwapper
0 ETH0.000001520.00100026
Snwap208399852026-01-05 3:13:1630 mins ago1767582796IN
SushiSwap: RedSnwapper
0 ETH0.000003830.00861126
Snwap208398222026-01-05 3:10:3333 mins ago1767582633IN
SushiSwap: RedSnwapper
0 ETH0.000001520.00100026
Snwap208396602026-01-05 3:07:5136 mins ago1767582471IN
SushiSwap: RedSnwapper
0 ETH0.000001560.00100026
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
208416402026-01-05 3:40:513 mins ago1767584451
SushiSwap: RedSnwapper
0.02 ETH
208415902026-01-05 3:40:014 mins ago1767584401
SushiSwap: RedSnwapper
0.05 ETH
208415372026-01-05 3:39:085 mins ago1767584348
SushiSwap: RedSnwapper
0.1 ETH
208415042026-01-05 3:38:355 mins ago1767584315
SushiSwap: RedSnwapper
0.5 ETH
208414562026-01-05 3:37:476 mins ago1767584267
SushiSwap: RedSnwapper
5 ETH
208414162026-01-05 3:37:077 mins ago1767584227
SushiSwap: RedSnwapper
20 ETH
208399922026-01-05 3:13:2330 mins ago1767582803
SushiSwap: RedSnwapper
0.00164657 ETH
208399922026-01-05 3:13:2330 mins ago1767582803
SushiSwap: RedSnwapper
0.00164657 ETH
208389292026-01-05 2:55:4048 mins ago1767581740
SushiSwap: RedSnwapper
0.0006 ETH
208389292026-01-05 2:55:4048 mins ago1767581740
SushiSwap: RedSnwapper
0.0006 ETH
208379532026-01-05 2:39:241 hr ago1767580764
SushiSwap: RedSnwapper
0.000466 ETH
208379532026-01-05 2:39:241 hr ago1767580764
SushiSwap: RedSnwapper
0.000466 ETH
208377792026-01-05 2:36:301 hr ago1767580590
SushiSwap: RedSnwapper
0.003 ETH
208377452026-01-05 2:35:561 hr ago1767580556
SushiSwap: RedSnwapper
0.003 ETH
208367082026-01-05 2:18:391 hr ago1767579519
SushiSwap: RedSnwapper
0.00963248 ETH
208367082026-01-05 2:18:391 hr ago1767579519
SushiSwap: RedSnwapper
0.00963248 ETH
208358782026-01-05 2:04:491 hr ago1767578689
SushiSwap: RedSnwapper
0.00033 ETH
208358782026-01-05 2:04:491 hr ago1767578689
SushiSwap: RedSnwapper
0.00033 ETH
208358562026-01-05 2:04:271 hr ago1767578667
SushiSwap: RedSnwapper
0.00032 ETH
208358562026-01-05 2:04:271 hr ago1767578667
SushiSwap: RedSnwapper
0.00032 ETH
208358302026-01-05 2:04:011 hr ago1767578641
SushiSwap: RedSnwapper
0.00032 ETH
208358302026-01-05 2:04:011 hr ago1767578641
SushiSwap: RedSnwapper
0.00032 ETH
208328382026-01-05 1:14:092 hrs ago1767575649
SushiSwap: RedSnwapper
10 ETH
208328272026-01-05 1:13:582 hrs ago1767575638
SushiSwap: RedSnwapper
0.01686631 ETH
208317292026-01-05 0:55:402 hrs ago1767574540
SushiSwap: RedSnwapper
0.0475 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RedSnwapper

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 10000000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.10;

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
{
  "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"}]

60a060405234801561001057600080fd5b5060405161001d9061004b565b604051809103906000f080158015610039573d6000803e3d6000fd5b506001600160a01b0316608052610058565b6105458061149f83390190565b60805161141f610080600039600081816091015281816102570152610693015261141f6000f3fe6080604052600436106100345760003560e01c80635f3bd1c814610039578063d33721a51461005f578063e8382b011461007f575b600080fd5b61004c610047366004610e25565b6100d8565b6040519081526020015b60405180910390f35b61007261006d366004610f41565b610365565b604051610056919061100a565b34801561008b57600080fd5b506100b37f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610056565b6000806100fb73ffffffffffffffffffffffffffffffffffffffff8816896108c0565b905073ffffffffffffffffffffffffffffffffffffffff8a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461021a57881561015b5761015673ffffffffffffffffffffffffffffffffffffffff8b1633878c6109ab565b61021a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261021a90869060019073ffffffffffffffffffffffffffffffffffffffff8e16906370a0823190602401602060405180830381865afa1580156101ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f2919061104e565b6101fc9190611096565b73ffffffffffffffffffffffffffffffffffffffff8d169190610a8d565b6040517f1cff79cd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690631cff79cd903490610292908990899089906004016110f6565b6000604051808303818588803b1580156102ab57600080fd5b505af11580156102bf573d6000803e3d6000fd5b5050505050806102ee898973ffffffffffffffffffffffffffffffffffffffff166108c090919063ffffffff16565b6102f89190611096565b915085821015610358576040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152602481018390526044015b60405180910390fd5b5098975050505050505050565b606060008467ffffffffffffffff8111156103825761038261112f565b6040519080825280602002602001820160405280156103ab578160200160208202803683370190505b50905060005b858110156104595761042a8787838181106103ce576103ce61115e565b90506060020160200160208101906103e6919061118d565b8888848181106103f8576103f861115e565b61040e926020606090920201908101915061118d565b73ffffffffffffffffffffffffffffffffffffffff16906108c0565b82828151811061043c5761043c61115e565b602090810291909101015280610451816111b1565b9150506103b1565b5060005b878110156106555760008989838181106104795761047961115e565b61048f926020606090920201908101915061118d565b905073ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146106425760008a8a848181106104d6576104d661115e565b90506060020160200135111561055c57610557338b8b858181106104fc576104fc61115e565b9050606002016040016020810190610514919061118d565b8c8c868181106105265761052661115e565b905060600201602001358473ffffffffffffffffffffffffffffffffffffffff166109ab909392919063ffffffff16565b610642565b6106428a8a848181106105715761057161115e565b9050606002016040016020810190610589919061118d565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260019073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156105f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061a919061104e565b6106249190611096565b73ffffffffffffffffffffffffffffffffffffffff84169190610a8d565b508061064d816111b1565b91505061045d565b506040517fe8ff45ca00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063e8ff45ca9034906106cc90889088906004016111ea565b6000604051808303818588803b1580156106e557600080fd5b505af11580156106f9573d6000803e3d6000fd5b50889350505067ffffffffffffffff82111590506107195761071961112f565b604051908082528060200260200182016040528015610742578160200160208202803683370190505b50915060005b858110156108b4578181815181106107625761076261115e565b60200260200101516107a988888481811061077f5761077f61115e565b9050606002016020016020810190610797919061118d565b8989858181106103f8576103f861115e565b6107b39190611096565b8382815181106107c5576107c561115e565b6020026020010181815250508686828181106107e3576107e361115e565b905060600201604001358382815181106107ff576107ff61115e565b602002602001015110156108a25786868281811061081f5761081f61115e565b610835926020606090920201908101915061118d565b8382815181106108475761084761115e565b60209081029190910101516040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092166004830152602482015260440161034f565b806108ac816111b1565b915050610748565b50509695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610912575073ffffffffffffffffffffffffffffffffffffffff8116316109a5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa15801561097e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a2919061104e565b90505b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a879085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610ae8565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ae39084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610a05565b505050565b6000610b4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bf49092919063ffffffff16565b805190915015610ae35780806020019051810190610b68919061132e565b610ae3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034f565b6060610c038484600085610c0b565b949350505050565b606082471015610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034f565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cc6919061137c565b60006040518083038185875af1925050503d8060008114610d03576040519150601f19603f3d011682016040523d82523d6000602084013e610d08565b606091505b5091509150610d1987838387610d24565b979650505050505050565b60608315610db7578251610db05773ffffffffffffffffffffffffffffffffffffffff85163b610db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034f565b5081610c03565b610c038383815115610dcc5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034f9190611398565b73ffffffffffffffffffffffffffffffffffffffff81168114610e2257600080fd5b50565b60008060008060008060008060e0898b031215610e4157600080fd5b8835610e4c81610e00565b9750602089013596506040890135610e6381610e00565b95506060890135610e7381610e00565b94506080890135935060a0890135610e8a81610e00565b925060c089013567ffffffffffffffff80821115610ea757600080fd5b818b0191508b601f830112610ebb57600080fd5b813581811115610eca57600080fd5b8c6020828501011115610edc57600080fd5b6020830194508093505050509295985092959890939650565b60008083601f840112610f0757600080fd5b50813567ffffffffffffffff811115610f1f57600080fd5b602083019150836020606083028501011115610f3a57600080fd5b9250929050565b60008060008060008060608789031215610f5a57600080fd5b863567ffffffffffffffff80821115610f7257600080fd5b610f7e8a838b01610ef5565b90985096506020890135915080821115610f9757600080fd5b610fa38a838b01610ef5565b90965094506040890135915080821115610fbc57600080fd5b818901915089601f830112610fd057600080fd5b813581811115610fdf57600080fd5b8a60208260051b8501011115610ff457600080fd5b6020830194508093505050509295509295509295565b6020808252825182820181905260009190848201906040850190845b8181101561104257835183529284019291840191600101611026565b50909695505050505050565b60006020828403121561106057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156110a8576110a8611067565b500390565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b73ffffffffffffffffffffffffffffffffffffffff841681526040602082015260006111266040830184866110ad565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561119f57600080fd5b81356111aa81610e00565b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111e3576111e3611067565b5060010190565b60208082528181018390526000906040808401600586901b8501820187855b88811015611320577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18b360301811261126a57600080fd5b8a016060813561127981610e00565b73ffffffffffffffffffffffffffffffffffffffff168552818801358886015286820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe10181126112ce57600080fd5b8201803567ffffffffffffffff8111156112e757600080fd5b8036038413156112f657600080fd5b828988015261130a838801828c85016110ad565b978a019796505050928701925050600101611209565b509098975050505050505050565b60006020828403121561134057600080fd5b815180151581146111aa57600080fd5b60005b8381101561136b578181015183820152602001611353565b83811115610a875750506000910152565b6000825161138e818460208701611350565b9190910192915050565b60208152600082518060208401526113b7816040850160208701611350565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220292b4bc06579abf79f4513b017ab8a0266be0b7efc7c73c00005d1d332897c2664736f6c634300080a0033608060405234801561001057600080fd5b50610525806100206000396000f3fe6080604052600436106100295760003560e01c80631cff79cd1461002e578063e8ff45ca14610043575b600080fd5b61004161003c366004610261565b610056565b005b6100416100513660046102e4565b6100b4565b6100af3483838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505073ffffffffffffffffffffffffffffffffffffffff881693929150506101b4565b505050565b60005b818110156100af576101a28383838181106100d4576100d4610359565b90506020028101906100e69190610388565b602001358484848181106100fc576100fc610359565b905060200281019061010e9190610388565b61011c9060408101906103c6565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525088925087915086905081811061016557610165610359565b90506020028101906101779190610388565b610185906020810190610432565b73ffffffffffffffffffffffffffffffffffffffff1691906101b4565b806101ac81610454565b9150506100b7565b6000808473ffffffffffffffffffffffffffffffffffffffff1684846040516101dd91906104b4565b60006040518083038185875af1925050503d806000811461021a576040519150601f19603f3d011682016040523d82523d6000602084013e61021f565b606091505b50915091508161023157805181602001fd5b5050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461025c57600080fd5b919050565b60008060006040848603121561027657600080fd5b61027f84610238565b9250602084013567ffffffffffffffff8082111561029c57600080fd5b818601915086601f8301126102b057600080fd5b8135818111156102bf57600080fd5b8760208285010111156102d157600080fd5b6020830194508093505050509250925092565b600080602083850312156102f757600080fd5b823567ffffffffffffffff8082111561030f57600080fd5b818501915085601f83011261032357600080fd5b81358181111561033257600080fd5b8660208260051b850101111561034757600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18336030181126103bc57600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126103fb57600080fd5b83018035915067ffffffffffffffff82111561041657600080fd5b60200191503681900382131561042b57600080fd5b9250929050565b60006020828403121561044457600080fd5b61044d82610238565b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156104ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b6000825160005b818110156104d557602081860181015185830152016104bb565b818111156104e4576000828501525b50919091019291505056fea2646970667358221220668bc03b36f38f3c47dd573ce220078d826fcfaf3c28f0a50561ed8dde40903f64736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106100345760003560e01c80635f3bd1c814610039578063d33721a51461005f578063e8382b011461007f575b600080fd5b61004c610047366004610e25565b6100d8565b6040519081526020015b60405180910390f35b61007261006d366004610f41565b610365565b604051610056919061100a565b34801561008b57600080fd5b506100b37f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d81565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610056565b6000806100fb73ffffffffffffffffffffffffffffffffffffffff8816896108c0565b905073ffffffffffffffffffffffffffffffffffffffff8a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461021a57881561015b5761015673ffffffffffffffffffffffffffffffffffffffff8b1633878c6109ab565b61021a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261021a90869060019073ffffffffffffffffffffffffffffffffffffffff8e16906370a0823190602401602060405180830381865afa1580156101ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f2919061104e565b6101fc9190611096565b73ffffffffffffffffffffffffffffffffffffffff8d169190610a8d565b6040517f1cff79cd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d1690631cff79cd903490610292908990899089906004016110f6565b6000604051808303818588803b1580156102ab57600080fd5b505af11580156102bf573d6000803e3d6000fd5b5050505050806102ee898973ffffffffffffffffffffffffffffffffffffffff166108c090919063ffffffff16565b6102f89190611096565b915085821015610358576040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152602481018390526044015b60405180910390fd5b5098975050505050505050565b606060008467ffffffffffffffff8111156103825761038261112f565b6040519080825280602002602001820160405280156103ab578160200160208202803683370190505b50905060005b858110156104595761042a8787838181106103ce576103ce61115e565b90506060020160200160208101906103e6919061118d565b8888848181106103f8576103f861115e565b61040e926020606090920201908101915061118d565b73ffffffffffffffffffffffffffffffffffffffff16906108c0565b82828151811061043c5761043c61115e565b602090810291909101015280610451816111b1565b9150506103b1565b5060005b878110156106555760008989838181106104795761047961115e565b61048f926020606090920201908101915061118d565b905073ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146106425760008a8a848181106104d6576104d661115e565b90506060020160200135111561055c57610557338b8b858181106104fc576104fc61115e565b9050606002016040016020810190610514919061118d565b8c8c868181106105265761052661115e565b905060600201602001358473ffffffffffffffffffffffffffffffffffffffff166109ab909392919063ffffffff16565b610642565b6106428a8a848181106105715761057161115e565b9050606002016040016020810190610589919061118d565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260019073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156105f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061a919061104e565b6106249190611096565b73ffffffffffffffffffffffffffffffffffffffff84169190610a8d565b508061064d816111b1565b91505061045d565b506040517fe8ff45ca00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d169063e8ff45ca9034906106cc90889088906004016111ea565b6000604051808303818588803b1580156106e557600080fd5b505af11580156106f9573d6000803e3d6000fd5b50889350505067ffffffffffffffff82111590506107195761071961112f565b604051908082528060200260200182016040528015610742578160200160208202803683370190505b50915060005b858110156108b4578181815181106107625761076261115e565b60200260200101516107a988888481811061077f5761077f61115e565b9050606002016020016020810190610797919061118d565b8989858181106103f8576103f861115e565b6107b39190611096565b8382815181106107c5576107c561115e565b6020026020010181815250508686828181106107e3576107e361115e565b905060600201604001358382815181106107ff576107ff61115e565b602002602001015110156108a25786868281811061081f5761081f61115e565b610835926020606090920201908101915061118d565b8382815181106108475761084761115e565b60209081029190910101516040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092166004830152602482015260440161034f565b806108ac816111b1565b915050610748565b50509695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610912575073ffffffffffffffffffffffffffffffffffffffff8116316109a5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa15801561097e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a2919061104e565b90505b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a879085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610ae8565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ae39084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610a05565b505050565b6000610b4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bf49092919063ffffffff16565b805190915015610ae35780806020019051810190610b68919061132e565b610ae3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034f565b6060610c038484600085610c0b565b949350505050565b606082471015610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034f565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cc6919061137c565b60006040518083038185875af1925050503d8060008114610d03576040519150601f19603f3d011682016040523d82523d6000602084013e610d08565b606091505b5091509150610d1987838387610d24565b979650505050505050565b60608315610db7578251610db05773ffffffffffffffffffffffffffffffffffffffff85163b610db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034f565b5081610c03565b610c038383815115610dcc5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034f9190611398565b73ffffffffffffffffffffffffffffffffffffffff81168114610e2257600080fd5b50565b60008060008060008060008060e0898b031215610e4157600080fd5b8835610e4c81610e00565b9750602089013596506040890135610e6381610e00565b95506060890135610e7381610e00565b94506080890135935060a0890135610e8a81610e00565b925060c089013567ffffffffffffffff80821115610ea757600080fd5b818b0191508b601f830112610ebb57600080fd5b813581811115610eca57600080fd5b8c6020828501011115610edc57600080fd5b6020830194508093505050509295985092959890939650565b60008083601f840112610f0757600080fd5b50813567ffffffffffffffff811115610f1f57600080fd5b602083019150836020606083028501011115610f3a57600080fd5b9250929050565b60008060008060008060608789031215610f5a57600080fd5b863567ffffffffffffffff80821115610f7257600080fd5b610f7e8a838b01610ef5565b90985096506020890135915080821115610f9757600080fd5b610fa38a838b01610ef5565b90965094506040890135915080821115610fbc57600080fd5b818901915089601f830112610fd057600080fd5b813581811115610fdf57600080fd5b8a60208260051b8501011115610ff457600080fd5b6020830194508093505050509295509295509295565b6020808252825182820181905260009190848201906040850190845b8181101561104257835183529284019291840191600101611026565b50909695505050505050565b60006020828403121561106057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156110a8576110a8611067565b500390565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b73ffffffffffffffffffffffffffffffffffffffff841681526040602082015260006111266040830184866110ad565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561119f57600080fd5b81356111aa81610e00565b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111e3576111e3611067565b5060010190565b60208082528181018390526000906040808401600586901b8501820187855b88811015611320577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18b360301811261126a57600080fd5b8a016060813561127981610e00565b73ffffffffffffffffffffffffffffffffffffffff168552818801358886015286820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe10181126112ce57600080fd5b8201803567ffffffffffffffff8111156112e757600080fd5b8036038413156112f657600080fd5b828988015261130a838801828c85016110ad565b978a019796505050928701925050600101611209565b509098975050505050505050565b60006020828403121561134057600080fd5b815180151581146111aa57600080fd5b60005b8381101561136b578181015183820152602001611353565b83811115610a875750506000910152565b6000825161138e818460208701611350565b9190910192915050565b60208152600082518060208401526113b7816040850160208701611350565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220292b4bc06579abf79f4513b017ab8a0266be0b7efc7c73c00005d1d332897c2664736f6c634300080a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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