Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 13,580 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Sweep | 423608340 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608329 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608320 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608311 | 12 days ago | IN | 0 ETH | 0.00000154 | ||||
| Sweep | 423608298 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608289 | 12 days ago | IN | 0 ETH | 0.00000153 | ||||
| Sweep | 423608280 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608271 | 12 days ago | IN | 0 ETH | 0.00000153 | ||||
| Sweep | 423608262 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608249 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608240 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608232 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608219 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608208 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608198 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608185 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608174 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608143 | 12 days ago | IN | 0 ETH | 0.00000153 | ||||
| Sweep | 423608116 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608107 | 12 days ago | IN | 0 ETH | 0.00000153 | ||||
| Sweep | 423608098 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608089 | 12 days ago | IN | 0 ETH | 0.00000154 | ||||
| Sweep | 423608080 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608070 | 12 days ago | IN | 0 ETH | 0.00000152 | ||||
| Sweep | 423608061 | 12 days ago | IN | 0 ETH | 0.00000152 |
Latest 1 internal transaction
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 421555775 | 18 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import {IUserDepositFactory} from "./interfaces/IUserDepositFactory.sol";
import {IUserDeposit} from "./interfaces/IUserDeposit.sol";
contract Sweeper {
// ******************** //
// Constants //
// //////////////////// //
/// @notice The address of the factory
IUserDepositFactory public immutable FACTORY;
/// @notice Constructor to initialize the factory and user
/// @param factory_ The address of the factory
constructor(address factory_) {
FACTORY = IUserDepositFactory(factory_);
}
// ******************** //
// Modifiers //
// //////////////////// //
/// @notice Modifier to ensure the caller is an EOA
/// @dev Combines tx.origin check with code length check to handle EIP-7702 delegated EOAs
modifier onlyEOA() {
require(msg.sender == tx.origin, "no contract calls");
require(msg.sender.code.length == 0, "no contract code");
_;
}
// ******************** //
// Functions //
// //////////////////// //
/// @notice Sweeps the contract of any ERC20 or native tokens to the bank
/// @param token_ The address of the token
/// @dev only callable by the owner
function sweep(bytes32 jupnetId_, address token_) external onlyEOA {
IUserDeposit(FACTORY.deploy(jupnetId_)).sweep(token_);
}
/// @notice Sweeps the contract of any ERC20 or native tokens to the bank
/// @param jupnetId_ The jupnetId of the user deposit
/// @dev only callable by the owner
function sweepNative(bytes32 jupnetId_) external onlyEOA {
IUserDeposit(FACTORY.deploy(jupnetId_)).sweepNative();
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
interface IUserDeposit {
/// @notice Sweeps the contract of any ERC20 or native tokens to the bank
/// @param token_ The address of the token
function sweep(address token_) external;
/// @notice Sweeps the contract native tokens by converting to WNative and transferring to the bank
function sweepNative() external;
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
interface IUserDepositFactory {
function directory() external view returns (address);
function deploy(bytes32 jupnetId_) external payable returns (address);
function computeDepositAddress(bytes32 jupnetId_) external view returns (address);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"factory_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"contract IUserDepositFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"jupnetId_","type":"bytes32"},{"internalType":"address","name":"token_","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"jupnetId_","type":"bytes32"}],"name":"sweepNative","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a060405234801561001057600080fd5b506040516104de3803806104de83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161044661009860003960008181604b0152818161015101526102c101526104466000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632dd31000146100465780634aef407014610089578063d77b26581461009e575b600080fd5b61006d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61009c6100973660046103a3565b6100b1565b005b61009c6100ac3660046103d3565b610226565b3332146100f95760405162461bcd60e51b81526020600482015260116024820152706e6f20636f6e74726163742063616c6c7360781b60448201526064015b60405180910390fd5b333b1561013b5760405162461bcd60e51b815260206004820152601060248201526f6e6f20636f6e747261637420636f646560801b60448201526064016100f0565b604051630570b74760e31b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632b85ba38906024016020604051808303816000875af11580156101a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c691906103ec565b60405162b40d3160e11b81526001600160a01b03838116600483015291909116906301681a6290602401600060405180830381600087803b15801561020a57600080fd5b505af115801561021e573d6000803e3d6000fd5b505050505050565b3332146102695760405162461bcd60e51b81526020600482015260116024820152706e6f20636f6e74726163742063616c6c7360781b60448201526064016100f0565b333b156102ab5760405162461bcd60e51b815260206004820152601060248201526f6e6f20636f6e747261637420636f646560801b60448201526064016100f0565b604051630570b74760e31b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632b85ba38906024016020604051808303816000875af1158015610312573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033691906103ec565b6001600160a01b031663ab803a766040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561037057600080fd5b505af1158015610384573d6000803e3d6000fd5b5050505050565b6001600160a01b03811681146103a057600080fd5b50565b600080604083850312156103b657600080fd5b8235915060208301356103c88161038b565b809150509250929050565b6000602082840312156103e557600080fd5b5035919050565b6000602082840312156103fe57600080fd5b81516104098161038b565b939250505056fea26469706673582212205b2951e8801a5584764cc90a2e5e2166a493d877222d2c6d0c294494774151f564736f6c6343000818003300000000000000000000000038dc5be15cedcee7f1320e0a5321936972465d41
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632dd31000146100465780634aef407014610089578063d77b26581461009e575b600080fd5b61006d7f00000000000000000000000038dc5be15cedcee7f1320e0a5321936972465d4181565b6040516001600160a01b03909116815260200160405180910390f35b61009c6100973660046103a3565b6100b1565b005b61009c6100ac3660046103d3565b610226565b3332146100f95760405162461bcd60e51b81526020600482015260116024820152706e6f20636f6e74726163742063616c6c7360781b60448201526064015b60405180910390fd5b333b1561013b5760405162461bcd60e51b815260206004820152601060248201526f6e6f20636f6e747261637420636f646560801b60448201526064016100f0565b604051630570b74760e31b8152600481018390527f00000000000000000000000038dc5be15cedcee7f1320e0a5321936972465d416001600160a01b031690632b85ba38906024016020604051808303816000875af11580156101a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c691906103ec565b60405162b40d3160e11b81526001600160a01b03838116600483015291909116906301681a6290602401600060405180830381600087803b15801561020a57600080fd5b505af115801561021e573d6000803e3d6000fd5b505050505050565b3332146102695760405162461bcd60e51b81526020600482015260116024820152706e6f20636f6e74726163742063616c6c7360781b60448201526064016100f0565b333b156102ab5760405162461bcd60e51b815260206004820152601060248201526f6e6f20636f6e747261637420636f646560801b60448201526064016100f0565b604051630570b74760e31b8152600481018290527f00000000000000000000000038dc5be15cedcee7f1320e0a5321936972465d416001600160a01b031690632b85ba38906024016020604051808303816000875af1158015610312573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033691906103ec565b6001600160a01b031663ab803a766040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561037057600080fd5b505af1158015610384573d6000803e3d6000fd5b5050505050565b6001600160a01b03811681146103a057600080fd5b50565b600080604083850312156103b657600080fd5b8235915060208301356103c88161038b565b809150509250929050565b6000602082840312156103e557600080fd5b5035919050565b6000602082840312156103fe57600080fd5b81516104098161038b565b939250505056fea26469706673582212205b2951e8801a5584764cc90a2e5e2166a493d877222d2c6d0c294494774151f564736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000038dc5be15cedcee7f1320e0a5321936972465d41
-----Decoded View---------------
Arg [0] : factory_ (address): 0x38dc5be15CeDCee7F1320e0A5321936972465D41
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000038dc5be15cedcee7f1320e0a5321936972465d41
Net Worth in USD
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.