Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 28 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Consolidate | 18553665 | 444 days ago | IN | 0 ETH | 0.0025014 | ||||
Consolidate | 18547570 | 445 days ago | IN | 0 ETH | 0.0059102 | ||||
Consolidate | 18547543 | 445 days ago | IN | 0 ETH | 0.00356445 | ||||
Consolidate | 18547466 | 445 days ago | IN | 0 ETH | 0.00288392 | ||||
Consolidate | 18546331 | 445 days ago | IN | 0 ETH | 0.00359845 | ||||
Consolidate | 18511728 | 450 days ago | IN | 0 ETH | 0.00615848 | ||||
Consolidate | 18511709 | 450 days ago | IN | 0 ETH | 0.00735577 | ||||
Consolidate | 18511486 | 450 days ago | IN | 0 ETH | 0.01228702 | ||||
Consolidate | 18484211 | 454 days ago | IN | 0 ETH | 0.01874524 | ||||
Consolidate | 18483985 | 454 days ago | IN | 0 ETH | 0.00697148 | ||||
Consolidate | 18479612 | 454 days ago | IN | 0 ETH | 0.01541823 | ||||
Consolidate | 18479513 | 454 days ago | IN | 0 ETH | 0.00716938 | ||||
Consolidate | 18475444 | 455 days ago | IN | 0 ETH | 0.00797258 | ||||
Consolidate | 18475357 | 455 days ago | IN | 0 ETH | 0.00800097 | ||||
Consolidate | 18473209 | 455 days ago | IN | 0 ETH | 0.00431273 | ||||
Consolidate | 18473195 | 455 days ago | IN | 0 ETH | 0.0069824 | ||||
Consolidate | 18467541 | 456 days ago | IN | 0 ETH | 0.01218685 | ||||
Consolidate | 18467466 | 456 days ago | IN | 0 ETH | 0.01224388 | ||||
Consolidate | 18467443 | 456 days ago | IN | 0 ETH | 0.00894016 | ||||
Consolidate | 18455908 | 458 days ago | IN | 0 ETH | 0.00772885 | ||||
Consolidate | 18455852 | 458 days ago | IN | 0 ETH | 0.00652228 | ||||
Consolidate | 18451134 | 458 days ago | IN | 0 ETH | 0.01148976 | ||||
Consolidate | 18450844 | 458 days ago | IN | 0 ETH | 0.00878118 | ||||
Consolidate | 18450581 | 458 days ago | IN | 0 ETH | 0.0081938 | ||||
Consolidate | 18450266 | 458 days ago | IN | 0 ETH | 0.00475204 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18553665 | 444 days ago | 0.0104711 ETH | ||||
18553665 | 444 days ago | 0.0104711 ETH | ||||
18547570 | 445 days ago | 0.00501448 ETH | ||||
18547570 | 445 days ago | 0.00501448 ETH | ||||
18547543 | 445 days ago | 0.0183831 ETH | ||||
18547543 | 445 days ago | 0.0183831 ETH | ||||
18547466 | 445 days ago | 0.00451922 ETH | ||||
18547466 | 445 days ago | 0.00451922 ETH | ||||
18546331 | 445 days ago | 0.00771533 ETH | ||||
18546331 | 445 days ago | 0.00771533 ETH | ||||
18511728 | 450 days ago | 0.18904 ETH | ||||
18511728 | 450 days ago | 0.18904 ETH | ||||
18511709 | 450 days ago | 0.26379 ETH | ||||
18511709 | 450 days ago | 0.26379 ETH | ||||
18511486 | 450 days ago | 0.303 ETH | ||||
18511486 | 450 days ago | 0.303 ETH | ||||
18484211 | 454 days ago | 0.18725 ETH | ||||
18484211 | 454 days ago | 0.18725 ETH | ||||
18483985 | 454 days ago | 0.13894 ETH | ||||
18483985 | 454 days ago | 0.13894 ETH | ||||
18479612 | 454 days ago | 0.018095 ETH | ||||
18479612 | 454 days ago | 0.018095 ETH | ||||
18479513 | 454 days ago | 0.0128298 ETH | ||||
18479513 | 454 days ago | 0.0128298 ETH | ||||
18475444 | 455 days ago | 0.40329 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Customrouter
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Deployed with the Atlas IDE // https://app.atlaszk.com // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.0; interface IUniswapV2Pair { function swap( uint amount0Out, uint amount1Out, address to, bytes calldata data ) external; function token0() external view returns (address); } interface IERC20 { function transferFrom( address sender, address recipient, uint amount ) external returns (bool); } interface IWETH9 is IERC20 { function withdraw(uint256) external; } contract Customrouter { IWETH9 private WETH; constructor(address weth) { WETH = IWETH9(weth); } receive() external payable { } function consolidate(address token, address[] calldata wallets, address pair,uint256 amountin, uint256 wethout) external { uint256 l = wallets.length; IERC20 Token = IERC20(token); address send = 0x708f741b5fA76c9f4a70355207b4F0226ce265f3; for (uint256 i = 0; i < l; ++i) { Token.transferFrom(wallets[i],pair,amountin); } IUniswapV2Pair Pair = IUniswapV2Pair(pair); if(Pair.token0() == address(WETH)) { Pair.swap(wethout,0,address(this),""); } else { Pair.swap(0,wethout,address(this),""); } WETH.withdraw(wethout); (bool sent, ) = send.call{value: wethout}(""); require(sent); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "libraries": {}, "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":"address","name":"token","type":"address"},{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"address","name":"pair","type":"address"},{"internalType":"uint256","name":"amountin","type":"uint256"},{"internalType":"uint256","name":"wethout","type":"uint256"}],"name":"consolidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516105bc3803806105bc83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b610529806100936000396000f3fe6080604052600436106100225760003560e01c8063ad3f69771461002e57600080fd5b3661002957005b600080fd5b34801561003a57600080fd5b5061004e6100493660046103a8565b610050565b005b838673708f741b5fa76c9f4a70355207b4f0226ce265f360005b8381101561013257826001600160a01b03166323b872dd8a8a8481811061009357610093610453565b90506020020160208101906100a89190610469565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908a166024820152604481018990526064016020604051808303816000875af11580156100fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610121919061048d565b5061012b816104af565b905061006a565b50600086905060008054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610193573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b791906104d6565b6001600160a01b03160361023f5760405163022c0d9f60e01b8152600481018690526000602482018190523060448301526080606483015260848201526001600160a01b0382169063022c0d9f9060a401600060405180830381600087803b15801561022257600080fd5b505af1158015610236573d6000803e3d6000fd5b505050506102b5565b60405163022c0d9f60e01b8152600060048201819052602482018790523060448301526080606483015260848201526001600160a01b0382169063022c0d9f9060a401600060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050505b600054604051632e1a7d4d60e01b8152600481018790526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156102fb57600080fd5b505af115801561030f573d6000803e3d6000fd5b505050506000826001600160a01b03168660405160006040518083038185875af1925050503d8060008114610360576040519150601f19603f3d011682016040523d82523d6000602084013e610365565b606091505b505090508061037357600080fd5b5050505050505050505050565b6001600160a01b038116811461039557600080fd5b50565b80356103a381610380565b919050565b60008060008060008060a087890312156103c157600080fd5b86356103cc81610380565b9550602087013567ffffffffffffffff808211156103e957600080fd5b818901915089601f8301126103fd57600080fd5b81358181111561040c57600080fd5b8a60208260051b850101111561042157600080fd5b60208301975080965050505061043960408801610398565b925060608701359150608087013590509295509295509295565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561047b57600080fd5b813561048681610380565b9392505050565b60006020828403121561049f57600080fd5b8151801515811461048657600080fd5b6000600182016104cf57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000602082840312156104e857600080fd5b81516104868161038056fea264697066735822122053dbbfc75d74a31e0960e4a3f869dbbea0cdb8c624d66e19e0bb5c7603fb10fd64736f6c63430008130033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x6080604052600436106100225760003560e01c8063ad3f69771461002e57600080fd5b3661002957005b600080fd5b34801561003a57600080fd5b5061004e6100493660046103a8565b610050565b005b838673708f741b5fa76c9f4a70355207b4f0226ce265f360005b8381101561013257826001600160a01b03166323b872dd8a8a8481811061009357610093610453565b90506020020160208101906100a89190610469565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908a166024820152604481018990526064016020604051808303816000875af11580156100fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610121919061048d565b5061012b816104af565b905061006a565b50600086905060008054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610193573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b791906104d6565b6001600160a01b03160361023f5760405163022c0d9f60e01b8152600481018690526000602482018190523060448301526080606483015260848201526001600160a01b0382169063022c0d9f9060a401600060405180830381600087803b15801561022257600080fd5b505af1158015610236573d6000803e3d6000fd5b505050506102b5565b60405163022c0d9f60e01b8152600060048201819052602482018790523060448301526080606483015260848201526001600160a01b0382169063022c0d9f9060a401600060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050505b600054604051632e1a7d4d60e01b8152600481018790526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156102fb57600080fd5b505af115801561030f573d6000803e3d6000fd5b505050506000826001600160a01b03168660405160006040518083038185875af1925050503d8060008114610360576040519150601f19603f3d011682016040523d82523d6000602084013e610365565b606091505b505090508061037357600080fd5b5050505050505050505050565b6001600160a01b038116811461039557600080fd5b50565b80356103a381610380565b919050565b60008060008060008060a087890312156103c157600080fd5b86356103cc81610380565b9550602087013567ffffffffffffffff808211156103e957600080fd5b818901915089601f8301126103fd57600080fd5b81358181111561040c57600080fd5b8a60208260051b850101111561042157600080fd5b60208301975080965050505061043960408801610398565b925060608701359150608087013590509295509295509295565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561047b57600080fd5b813561048681610380565b9392505050565b60006020828403121561049f57600080fd5b8151801515811461048657600080fd5b6000600182016104cf57634e487b7160e01b600052601160045260246000fd5b5060010190565b6000602082840312156104e857600080fd5b81516104868161038056fea264697066735822122053dbbfc75d74a31e0960e4a3f869dbbea0cdb8c624d66e19e0bb5c7603fb10fd64736f6c63430008130033
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.