Source Code
Latest 13 from a total of 13 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Swap And Take Fe... | 22233345 | 322 days ago | IN | 0.00101 ETH | 0.00174132 | ||||
| Swap And Take Fe... | 22226562 | 323 days ago | IN | 0.001 ETH | 0.0000394 | ||||
| Swap And Take Fe... | 22226546 | 323 days ago | IN | 0.001 ETH | 0.00009236 | ||||
| Swap And Take Fe... | 22226535 | 323 days ago | IN | 0.001 ETH | 0.00004162 | ||||
| Swap And Take Fe... | 22226439 | 323 days ago | IN | 0.001 ETH | 0.00006741 | ||||
| Swap And Take Fe... | 22226424 | 323 days ago | IN | 0.001 ETH | 0.00007666 | ||||
| Swap And Take Fe... | 22226414 | 323 days ago | IN | 0.001 ETH | 0.00007401 | ||||
| Swap And Take Fe... | 22226311 | 323 days ago | IN | 0.001 ETH | 0.00015517 | ||||
| Swap And Take Fe... | 22224863 | 323 days ago | IN | 0.001 ETH | 0.0002145 | ||||
| Swap And Take Fe... | 22224817 | 323 days ago | IN | 0.001 ETH | 0.00024963 | ||||
| Swap And Take Fe... | 22223906 | 323 days ago | IN | 0 ETH | 0.00001903 | ||||
| Swap And Take Fe... | 22223894 | 323 days ago | IN | 0 ETH | 0.00001676 | ||||
| Swap And Take Fe... | 22223869 | 323 days ago | IN | 0.001 ETH | 0.00006858 |
Latest 22 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Swap | 22233345 | 322 days ago | 0.001 ETH | ||||
| Transfer | 22233345 | 322 days ago | 0.00001 ETH | ||||
| Swap | 22226562 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226562 | 323 days ago | 0.00001 ETH | ||||
| Eth Unoswap | 22226546 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226546 | 323 days ago | 0.00001 ETH | ||||
| Swap | 22226535 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226535 | 323 days ago | 0.00001 ETH | ||||
| Swap | 22226439 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226439 | 323 days ago | 0.00001 ETH | ||||
| Swap | 22226424 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226424 | 323 days ago | 0.00001 ETH | ||||
| Swap | 22226414 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226414 | 323 days ago | 0.00001 ETH | ||||
| Eth Unoswap | 22226311 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22226311 | 323 days ago | 0.00001 ETH | ||||
| Eth Unoswap | 22224863 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22224863 | 323 days ago | 0.00001 ETH | ||||
| Eth Unoswap | 22224817 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22224817 | 323 days ago | 0.00001 ETH | ||||
| Eth Unoswap | 22223869 | 323 days ago | 0.00099 ETH | ||||
| Transfer | 22223869 | 323 days ago | 0.00001 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SwapWithEthFee
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title SwapWithEthFee
* @notice A contract that wraps a 1inch swap and takes a fee in ETH
* @dev Collects a platform fee in ETH before forwarding the swap call to 1inch router
*/
contract SwapWithEthFee is ReentrancyGuard, Ownable {
// The address that will receive the ETH fee
address public immutable feeReceiver;
// 1inch Router address (mainnet)
address public immutable oneInchRouter;
// Maximum fee percentage (5%)
uint256 public constant MAX_FEE_PERCENT = 5;
// Events
event SwapExecuted(address indexed sender, uint256 feeAmount, uint256 swapAmount);
event FeeReceiverUpdated(address indexed oldReceiver, address indexed newReceiver);
event TokensRescued(address indexed token, address indexed recipient, uint256 amount);
event EthRescued(address indexed recipient, uint256 amount);
/**
* @dev Constructor sets the fee receiver address and router address
* @param _feeReceiver Address that will receive the ETH fee
* @param _oneInchRouter Address of the 1inch router (default: 0x1111111254EEB25477B68fb85Ed929f73A960582)
*/
constructor(
address _feeReceiver,
address _oneInchRouter
) Ownable(msg.sender) {
require(_feeReceiver != address(0), "Fee receiver cannot be zero address");
require(_oneInchRouter != address(0), "Router cannot be zero address");
feeReceiver = _feeReceiver;
oneInchRouter = _oneInchRouter;
}
/**
* @dev Main function to perform a swap with 1inch while taking a fee
* @param feeAmount Amount of ETH to take as a fee
* @param swapData The calldata to forward to the 1inch router
*/
function swapAndTakeFee(uint256 feeAmount, bytes calldata swapData) external payable nonReentrant {
require(msg.value > feeAmount, "Not enough ETH sent for fee and swap");
require(feeAmount <= msg.value * MAX_FEE_PERCENT / 100, "Fee exceeds maximum allowed (5%)");
// Transfer fee to the fee receiver
(bool feeSuccess, ) = feeReceiver.call{value: feeAmount}("");
require(feeSuccess, "Fee transfer failed");
// Calculate remaining ETH for the swap
uint256 swapAmount = msg.value - feeAmount;
// Expected balance should be 0 after we send ETH to the router
// Record balance before sending ETH to router
uint256 preSwapBalance = address(this).balance;
// Forward remaining ETH and calldata to 1inch router
(bool swapSuccess, ) = oneInchRouter.call{value: swapAmount}(swapData);
require(swapSuccess, "Swap execution failed");
// Calculate expected post-swap balance (should be 0 if no other ETH was in contract)
uint256 expectedBalance = preSwapBalance - swapAmount;
// After swap, check if we received any ETH back from the router
uint256 currentBalance = address(this).balance;
if (currentBalance > expectedBalance) {
// Calculate refund amount (only the excess from this transaction)
uint256 refundAmount = currentBalance - expectedBalance;
// Send refund back to the sender
(bool refundSuccess, ) = msg.sender.call{value: refundAmount}("");
require(refundSuccess, "Refund transfer failed");
}
emit SwapExecuted(msg.sender, feeAmount, swapAmount);
}
/**
* @dev Function to rescue ERC20 tokens that are accidentally sent to the contract
* @param token Address of the token to rescue
* @param recipient Address to send the tokens to
* @param amount Amount of tokens to rescue
*/
function rescueTokens(IERC20 token, address recipient, uint256 amount) external onlyOwner {
require(recipient != address(0), "Cannot rescue to zero address");
require(amount > 0, "Amount must be greater than zero");
bool success = token.transfer(recipient, amount);
require(success, "Token rescue failed");
emit TokensRescued(address(token), recipient, amount);
}
/**
* @dev Function to rescue ETH that might be stuck in the contract
* @param recipient Address to send the ETH to
* @param amount Amount of ETH to rescue
*/
function rescueETH(address payable recipient, uint256 amount) external onlyOwner {
require(recipient != address(0), "Cannot rescue to zero address");
require(amount > 0 && amount <= address(this).balance, "Invalid amount");
(bool success, ) = recipient.call{value: amount}("");
require(success, "ETH rescue failed");
emit EthRescued(recipient, amount);
}
/**
* @dev Function to verify if the contract is still receiving funds after swap
* @notice This is a fallback function to handle any unexpected ETH that might be sent back
*/
receive() external payable {
// Accept ETH transfers (e.g., refunds or partial fills from swaps)
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_feeReceiver","type":"address"},{"internalType":"address","name":"_oneInchRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthRescued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldReceiver","type":"address"},{"indexed":true,"internalType":"address","name":"newReceiver","type":"address"}],"name":"FeeReceiverUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"swapAmount","type":"uint256"}],"name":"SwapExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensRescued","type":"event"},{"inputs":[],"name":"MAX_FEE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneInchRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"bytes","name":"swapData","type":"bytes"}],"name":"swapAndTakeFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60c060405234801561001057600080fd5b50604051610d8a380380610d8a83398101604081905261002f916101a2565b6001600055338061005b57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61006481610134565b506001600160a01b0382166100c75760405162461bcd60e51b815260206004820152602360248201527f4665652072656365697665722063616e6e6f74206265207a65726f206164647260448201526265737360e81b6064820152608401610052565b6001600160a01b03811661011d5760405162461bcd60e51b815260206004820152601d60248201527f526f757465722063616e6e6f74206265207a65726f20616464726573730000006044820152606401610052565b6001600160a01b039182166080521660a0526101d5565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b038116811461019d57600080fd5b919050565b600080604083850312156101b557600080fd5b6101be83610186565b91506101cc60208401610186565b90509250929050565b60805160a051610b8261020860003960008181610139015261051e01526000818161016d01526104520152610b826000f3fe60806040526004361061008a5760003560e01c8063ac3af20811610059578063ac3af20814610127578063b3f006741461015b578063c7da1abe1461018f578063cea9d26f146101a2578063f2fde38b146101c257600080fd5b8063099a04e51461009657806367d81740146100b8578063715018a6146100e05780638da5cb5b146100f557600080fd5b3661009157005b600080fd5b3480156100a257600080fd5b506100b66100b13660046109a5565b6101e2565b005b3480156100c457600080fd5b506100cd600581565b6040519081526020015b60405180910390f35b3480156100ec57600080fd5b506100b6610371565b34801561010157600080fd5b506001546001600160a01b03165b6040516001600160a01b0390911681526020016100d7565b34801561013357600080fd5b5061010f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561016757600080fd5b5061010f7f000000000000000000000000000000000000000000000000000000000000000081565b6100b661019d3660046109d1565b610385565b3480156101ae57600080fd5b506100b66101bd366004610a4d565b6106ec565b3480156101ce57600080fd5b506100b66101dd366004610a8e565b6108a9565b6101ea6108e7565b6001600160a01b0382166102455760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f742072657363756520746f207a65726f206164647265737300000060448201526064015b60405180910390fd5b6000811180156102555750478111155b6102925760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015260640161023c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146102df576040519150601f19603f3d011682016040523d82523d6000602084013e6102e4565b606091505b50509050806103295760405162461bcd60e51b8152602060048201526011602482015270115512081c995cd8dd594819985a5b1959607a1b604482015260640161023c565b826001600160a01b03167fff76eef98b5bdf97a95e78ef7e4f3da9681cd874619e7dbc5767e38ed162b8038360405161036491815260200190565b60405180910390a2505050565b6103796108e7565b6103836000610914565b565b61038d610966565b8234116103e85760405162461bcd60e51b8152602060048201526024808201527f4e6f7420656e6f756768204554482073656e7420666f722066656520616e64206044820152630737761760e41b606482015260840161023c565b60646103f5600534610ac8565b6103ff9190610ae5565b83111561044e5760405162461bcd60e51b815260206004820181905260248201527f4665652065786365656473206d6178696d756d20616c6c6f7765642028352529604482015260640161023c565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168460405160006040518083038185875af1925050503d80600081146104bb576040519150601f19603f3d011682016040523d82523d6000602084013e6104c0565b606091505b50509050806105075760405162461bcd60e51b8152602060048201526013602482015272119959481d1c985b9cd9995c8819985a5b1959606a1b604482015260640161023c565b60006105138534610b07565b9050600047905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316838787604051610557929190610b1a565b60006040518083038185875af1925050503d8060008114610594576040519150601f19603f3d011682016040523d82523d6000602084013e610599565b606091505b50509050806105e25760405162461bcd60e51b815260206004820152601560248201527414ddd85c08195e1958dd5d1a5bdb8819985a5b1959605a1b604482015260640161023c565b60006105ee8484610b07565b9050478181111561069c5760006106058383610b07565b604051909150600090339083908381818185875af1925050503d806000811461064a576040519150601f19603f3d011682016040523d82523d6000602084013e61064f565b606091505b50509050806106995760405162461bcd60e51b81526020600482015260166024820152751499599d5b99081d1c985b9cd9995c8819985a5b195960521b604482015260640161023c565b50505b604080518a81526020810187905233917f2d043ce009ff53fd444b0f4f5ff4c3f4ee293265203f77f156eeb33b595dfc4f910160405180910390a25050505050506106e76001600055565b505050565b6106f46108e7565b6001600160a01b03821661074a5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f742072657363756520746f207a65726f2061646472657373000000604482015260640161023c565b6000811161079a5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604482015260640161023c565b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390526000919085169063a9059cbb906044016020604051808303816000875af11580156107ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108119190610b2a565b9050806108565760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881c995cd8dd594819985a5b1959606a1b604482015260640161023c565b826001600160a01b0316846001600160a01b03167f77023e19c7343ad491fd706c36335ca0e738340a91f29b1fd81e2673d44896c48460405161089b91815260200190565b60405180910390a350505050565b6108b16108e7565b6001600160a01b0381166108db57604051631e4fbdf760e01b81526000600482015260240161023c565b6108e481610914565b50565b6001546001600160a01b031633146103835760405163118cdaa760e01b815233600482015260240161023c565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026000540361098957604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6001600160a01b03811681146108e457600080fd5b600080604083850312156109b857600080fd5b82356109c381610990565b946020939093013593505050565b6000806000604084860312156109e657600080fd5b83359250602084013567ffffffffffffffff80821115610a0557600080fd5b818601915086601f830112610a1957600080fd5b813581811115610a2857600080fd5b876020828501011115610a3a57600080fd5b6020830194508093505050509250925092565b600080600060608486031215610a6257600080fd5b8335610a6d81610990565b92506020840135610a7d81610990565b929592945050506040919091013590565b600060208284031215610aa057600080fd5b8135610aab81610990565b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610adf57610adf610ab2565b92915050565b600082610b0257634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610adf57610adf610ab2565b8183823760009101908152919050565b600060208284031215610b3c57600080fd5b81518015158114610aab57600080fdfea2646970667358221220bf7aaafcbb5f353bb70e39c96517e0e52f31d6077fb2e23dde48f53acf0e546f64736f6c63430008140033000000000000000000000000262ef0a85df116d56cecd0af910205f460e05466000000000000000000000000111111125421ca6dc452d289314280a0f8842a65
Deployed Bytecode
0x60806040526004361061008a5760003560e01c8063ac3af20811610059578063ac3af20814610127578063b3f006741461015b578063c7da1abe1461018f578063cea9d26f146101a2578063f2fde38b146101c257600080fd5b8063099a04e51461009657806367d81740146100b8578063715018a6146100e05780638da5cb5b146100f557600080fd5b3661009157005b600080fd5b3480156100a257600080fd5b506100b66100b13660046109a5565b6101e2565b005b3480156100c457600080fd5b506100cd600581565b6040519081526020015b60405180910390f35b3480156100ec57600080fd5b506100b6610371565b34801561010157600080fd5b506001546001600160a01b03165b6040516001600160a01b0390911681526020016100d7565b34801561013357600080fd5b5061010f7f000000000000000000000000111111125421ca6dc452d289314280a0f8842a6581565b34801561016757600080fd5b5061010f7f000000000000000000000000262ef0a85df116d56cecd0af910205f460e0546681565b6100b661019d3660046109d1565b610385565b3480156101ae57600080fd5b506100b66101bd366004610a4d565b6106ec565b3480156101ce57600080fd5b506100b66101dd366004610a8e565b6108a9565b6101ea6108e7565b6001600160a01b0382166102455760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f742072657363756520746f207a65726f206164647265737300000060448201526064015b60405180910390fd5b6000811180156102555750478111155b6102925760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015260640161023c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146102df576040519150601f19603f3d011682016040523d82523d6000602084013e6102e4565b606091505b50509050806103295760405162461bcd60e51b8152602060048201526011602482015270115512081c995cd8dd594819985a5b1959607a1b604482015260640161023c565b826001600160a01b03167fff76eef98b5bdf97a95e78ef7e4f3da9681cd874619e7dbc5767e38ed162b8038360405161036491815260200190565b60405180910390a2505050565b6103796108e7565b6103836000610914565b565b61038d610966565b8234116103e85760405162461bcd60e51b8152602060048201526024808201527f4e6f7420656e6f756768204554482073656e7420666f722066656520616e64206044820152630737761760e41b606482015260840161023c565b60646103f5600534610ac8565b6103ff9190610ae5565b83111561044e5760405162461bcd60e51b815260206004820181905260248201527f4665652065786365656473206d6178696d756d20616c6c6f7765642028352529604482015260640161023c565b60007f000000000000000000000000262ef0a85df116d56cecd0af910205f460e054666001600160a01b03168460405160006040518083038185875af1925050503d80600081146104bb576040519150601f19603f3d011682016040523d82523d6000602084013e6104c0565b606091505b50509050806105075760405162461bcd60e51b8152602060048201526013602482015272119959481d1c985b9cd9995c8819985a5b1959606a1b604482015260640161023c565b60006105138534610b07565b9050600047905060007f000000000000000000000000111111125421ca6dc452d289314280a0f8842a656001600160a01b0316838787604051610557929190610b1a565b60006040518083038185875af1925050503d8060008114610594576040519150601f19603f3d011682016040523d82523d6000602084013e610599565b606091505b50509050806105e25760405162461bcd60e51b815260206004820152601560248201527414ddd85c08195e1958dd5d1a5bdb8819985a5b1959605a1b604482015260640161023c565b60006105ee8484610b07565b9050478181111561069c5760006106058383610b07565b604051909150600090339083908381818185875af1925050503d806000811461064a576040519150601f19603f3d011682016040523d82523d6000602084013e61064f565b606091505b50509050806106995760405162461bcd60e51b81526020600482015260166024820152751499599d5b99081d1c985b9cd9995c8819985a5b195960521b604482015260640161023c565b50505b604080518a81526020810187905233917f2d043ce009ff53fd444b0f4f5ff4c3f4ee293265203f77f156eeb33b595dfc4f910160405180910390a25050505050506106e76001600055565b505050565b6106f46108e7565b6001600160a01b03821661074a5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f742072657363756520746f207a65726f2061646472657373000000604482015260640161023c565b6000811161079a5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f604482015260640161023c565b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390526000919085169063a9059cbb906044016020604051808303816000875af11580156107ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108119190610b2a565b9050806108565760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881c995cd8dd594819985a5b1959606a1b604482015260640161023c565b826001600160a01b0316846001600160a01b03167f77023e19c7343ad491fd706c36335ca0e738340a91f29b1fd81e2673d44896c48460405161089b91815260200190565b60405180910390a350505050565b6108b16108e7565b6001600160a01b0381166108db57604051631e4fbdf760e01b81526000600482015260240161023c565b6108e481610914565b50565b6001546001600160a01b031633146103835760405163118cdaa760e01b815233600482015260240161023c565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026000540361098957604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6001600160a01b03811681146108e457600080fd5b600080604083850312156109b857600080fd5b82356109c381610990565b946020939093013593505050565b6000806000604084860312156109e657600080fd5b83359250602084013567ffffffffffffffff80821115610a0557600080fd5b818601915086601f830112610a1957600080fd5b813581811115610a2857600080fd5b876020828501011115610a3a57600080fd5b6020830194508093505050509250925092565b600080600060608486031215610a6257600080fd5b8335610a6d81610990565b92506020840135610a7d81610990565b929592945050506040919091013590565b600060208284031215610aa057600080fd5b8135610aab81610990565b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610adf57610adf610ab2565b92915050565b600082610b0257634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610adf57610adf610ab2565b8183823760009101908152919050565b600060208284031215610b3c57600080fd5b81518015158114610aab57600080fdfea2646970667358221220bf7aaafcbb5f353bb70e39c96517e0e52f31d6077fb2e23dde48f53acf0e546f64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000262ef0a85df116d56cecd0af910205f460e05466000000000000000000000000111111125421ca6dc452d289314280a0f8842a65
-----Decoded View---------------
Arg [0] : _feeReceiver (address): 0x262ef0a85Df116d56ceCD0Af910205F460e05466
Arg [1] : _oneInchRouter (address): 0x111111125421cA6dc452d289314280a0f8842A65
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000262ef0a85df116d56cecd0af910205f460e05466
Arg [1] : 000000000000000000000000111111125421ca6dc452d289314280a0f8842a65
Loading...
Loading
Loading...
Loading
Net Worth in USD
$6.57
Net Worth in ETH
0.003167
Token Allocations
WBTC
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $68,060.58 | 0.0000965 | $6.57 |
Loading...
Loading
Loading...
Loading
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.