ETH Price: $3,191.08 (+1.76%)

Contract

0xbe01Af16910183a72c332681FE239a91999aD670
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60a06040199184302024-05-21 12:58:11173 days ago1716296291IN
 Create: SingleNativeEthDexExecutor
0 ETH0.0048423419.77896969

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
208555272024-09-29 9:53:5942 days ago1727603639
0xbe01Af16...1999aD670
0.00099 ETH
208555272024-09-29 9:53:5942 days ago1727603639
0xbe01Af16...1999aD670
0.00099 ETH
208535292024-09-29 3:12:3542 days ago1727579555
0xbe01Af16...1999aD670
0.01683 ETH
208535292024-09-29 3:12:3542 days ago1727579555
0xbe01Af16...1999aD670
0.01683 ETH
208528972024-09-29 1:05:1142 days ago1727571911
0xbe01Af16...1999aD670
0.01485 ETH
208528972024-09-29 1:05:1142 days ago1727571911
0xbe01Af16...1999aD670
0.01485 ETH
208513732024-09-28 19:58:2343 days ago1727553503
0xbe01Af16...1999aD670
0.99 ETH
208513732024-09-28 19:58:2343 days ago1727553503
0xbe01Af16...1999aD670
0.99 ETH
208461592024-09-28 2:30:4743 days ago1727490647
0xbe01Af16...1999aD670
0.594 ETH
208461592024-09-28 2:30:4743 days ago1727490647
0xbe01Af16...1999aD670
0.594 ETH
208445362024-09-27 21:05:2344 days ago1727471123
0xbe01Af16...1999aD670
0.01485 ETH
208445362024-09-27 21:05:2344 days ago1727471123
0xbe01Af16...1999aD670
0.01485 ETH
208435142024-09-27 17:40:3544 days ago1727458835
0xbe01Af16...1999aD670
0.04158 ETH
208435142024-09-27 17:40:3544 days ago1727458835
0xbe01Af16...1999aD670
0.04158 ETH
208434242024-09-27 17:22:3544 days ago1727457755
0xbe01Af16...1999aD670
0.02475 ETH
208434242024-09-27 17:22:3544 days ago1727457755
0xbe01Af16...1999aD670
0.02475 ETH
208430162024-09-27 16:00:2344 days ago1727452823
0xbe01Af16...1999aD670
0.00495 ETH
208430162024-09-27 16:00:2344 days ago1727452823
0xbe01Af16...1999aD670
0.00495 ETH
208424912024-09-27 14:14:5944 days ago1727446499
0xbe01Af16...1999aD670
0.099 ETH
208424912024-09-27 14:14:5944 days ago1727446499
0xbe01Af16...1999aD670
0.099 ETH
208414532024-09-27 10:46:2344 days ago1727433983
0xbe01Af16...1999aD670
0.00495 ETH
208414532024-09-27 10:46:2344 days ago1727433983
0xbe01Af16...1999aD670
0.00495 ETH
208410112024-09-27 9:17:5944 days ago1727428679
0xbe01Af16...1999aD670
0.1782 ETH
208410112024-09-27 9:17:5944 days ago1727428679
0xbe01Af16...1999aD670
0.1782 ETH
208390162024-09-27 2:37:2344 days ago1727404643
0xbe01Af16...1999aD670
0.3168 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SingleNativeEthDexExecutor

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 10 runs

Other Settings:
london EvmVersion, MIT license
File 1 of 4 : SingleNativeEthDexExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import { IWETH } from "./interfaces/IWETH.sol";
import { IOdosExecutor } from "./interfaces/IOdosExecutor.sol";

interface IERC20 {
    function approve(address spender, uint256 amount) external;
    function allowance(address owner, address spender) external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
}

contract SingleNativeEthDexExecutor is IOdosExecutor {
    error ExecutionFailedWithResult(bytes result);

    IWETH public immutable WETH;

    constructor(address _weth) {
        WETH = IWETH(_weth);
    }

    receive() external payable {}

    function executePath(address target, bytes memory data, address inputToken, uint256 inputAmount) external payable {
        if (inputToken != address(WETH) && inputToken != address(0)) {
            IERC20(inputToken).approve(target, inputAmount);
        }
        // Execute the arbitrary bytecode at the target address
        (bool success, bytes memory result) = target.call{ value: msg.value }(data);

        if (!success) {
            string memory errorMessage = string(result);
            revert(errorMessage);
        }
    }
}

File 2 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

File 3 of 4 : IOdosExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

interface IOdosExecutor {
    function executePath(address target, bytes calldata bytecode, address inputToken, uint256 inputAmount) external payable;
    // function executePath(bytes calldata bytecode, uint256[] memory inputAmount, address msgSender) external payable;
}

File 4 of 4 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

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

interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint) external;
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 10
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"ExecutionFailedWithResult","type":"error"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"}],"name":"executePath","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561001057600080fd5b5060405161040038038061040083398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b608051610370610090600039600081816060015260a001526103706000f3fe60806040526004361061002d5760003560e01c80636520500214610039578063ad5c46481461004e57600080fd5b3661003457005b600080fd5b61004c610047366004610217565b61009e565b005b34801561005a57600080fd5b506100827f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141580156100e857506001600160a01b03821615155b156101505760405163095ea7b360e01b81526001600160a01b0385811660048301526024820183905283169063095ea7b390604401600060405180830381600087803b15801561013757600080fd5b505af115801561014b573d6000803e3d6000fd5b505050505b600080856001600160a01b0316348660405161016c9190610314565b60006040518083038185875af1925050503d80600081146101a9576040519150601f19603f3d011682016040523d82523d6000602084013e6101ae565b606091505b5091509150816101dd5760405162461bcd60e51b815281906101d4908290600401610330565b60405180910390fd5b505050505050565b80356001600160a01b03811681146101fc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561022d57600080fd5b610236856101e5565b935060208501356001600160401b038082111561025257600080fd5b818701915087601f83011261026657600080fd5b81358181111561027857610278610201565b604051601f8201601f19908116603f011681019083821181831017156102a0576102a0610201565b816040528281528a60208487010111156102b957600080fd5b8260208601602083013760006020848301015280975050505050506102e0604086016101e5565b9396929550929360600135925050565b60005b8381101561030b5781810151838201526020016102f3565b50506000910152565b600082516103268184602087016102f0565b9190910192915050565b602081526000825180602084015261034f8160408501602087016102f0565b601f01601f1916919091016040019291505056fea164736f6c6343000817000a000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x60806040526004361061002d5760003560e01c80636520500214610039578063ad5c46481461004e57600080fd5b3661003457005b600080fd5b61004c610047366004610217565b61009e565b005b34801561005a57600080fd5b506100827f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b03909116815260200160405180910390f35b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141580156100e857506001600160a01b03821615155b156101505760405163095ea7b360e01b81526001600160a01b0385811660048301526024820183905283169063095ea7b390604401600060405180830381600087803b15801561013757600080fd5b505af115801561014b573d6000803e3d6000fd5b505050505b600080856001600160a01b0316348660405161016c9190610314565b60006040518083038185875af1925050503d80600081146101a9576040519150601f19603f3d011682016040523d82523d6000602084013e6101ae565b606091505b5091509150816101dd5760405162461bcd60e51b815281906101d4908290600401610330565b60405180910390fd5b505050505050565b80356001600160a01b03811681146101fc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561022d57600080fd5b610236856101e5565b935060208501356001600160401b038082111561025257600080fd5b818701915087601f83011261026657600080fd5b81358181111561027857610278610201565b604051601f8201601f19908116603f011681019083821181831017156102a0576102a0610201565b816040528281528a60208487010111156102b957600080fd5b8260208601602083013760006020848301015280975050505050506102e0604086016101e5565b9396929550929360600135925050565b60005b8381101561030b5781810151838201526020016102f3565b50506000910152565b600082516103268184602087016102f0565b9190910192915050565b602081526000825180602084015261034f8160408501602087016102f0565b601f01601f1916919091016040019291505056fea164736f6c6343000817000a

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


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.