Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60a06040 | 19918430 | 173 days ago | IN | 0 ETH | 0.00484234 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20855527 | 42 days ago | 0.00099 ETH | ||||
20855527 | 42 days ago | 0.00099 ETH | ||||
20853529 | 42 days ago | 0.01683 ETH | ||||
20853529 | 42 days ago | 0.01683 ETH | ||||
20852897 | 42 days ago | 0.01485 ETH | ||||
20852897 | 42 days ago | 0.01485 ETH | ||||
20851373 | 43 days ago | 0.99 ETH | ||||
20851373 | 43 days ago | 0.99 ETH | ||||
20846159 | 43 days ago | 0.594 ETH | ||||
20846159 | 43 days ago | 0.594 ETH | ||||
20844536 | 44 days ago | 0.01485 ETH | ||||
20844536 | 44 days ago | 0.01485 ETH | ||||
20843514 | 44 days ago | 0.04158 ETH | ||||
20843514 | 44 days ago | 0.04158 ETH | ||||
20843424 | 44 days ago | 0.02475 ETH | ||||
20843424 | 44 days ago | 0.02475 ETH | ||||
20843016 | 44 days ago | 0.00495 ETH | ||||
20843016 | 44 days ago | 0.00495 ETH | ||||
20842491 | 44 days ago | 0.099 ETH | ||||
20842491 | 44 days ago | 0.099 ETH | ||||
20841453 | 44 days ago | 0.00495 ETH | ||||
20841453 | 44 days ago | 0.00495 ETH | ||||
20841011 | 44 days ago | 0.1782 ETH | ||||
20841011 | 44 days ago | 0.1782 ETH | ||||
20839016 | 44 days ago | 0.3168 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SingleNativeEthDexExecutor
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity Standard Json-Input format)
// 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); } } }
// 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); }
// 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; }
// 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; }
{ "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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.