Verified contractPartial
UserWallet
Address0x2e921826e345e34f4ccbfa1d47bf22b3c35e4a8b
- Balance
0 ETH
- Transactions
259
- Compiler
solc 0.4.24
- Same code
113 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 100 runs
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,177,123
- Creation transaction
- 0x8ba5e81700…19bf268ed2
UserWallet.sol
// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.24;
contract AbstractSweeperList {
function sweeperOf(address _token) public returns (address);
function halted() public returns (bool);
function destination() public returns (address);
function sweeper() public returns (address);
function owner() public returns (address);
function logSweep(address from, address to, address token, uint amount) public;
}
contract UserWallet {
address public owner;
AbstractSweeperList public sweeperList;
function _arg(bytes _data, uint _n) internal pure returns (address a) {
assembly {
a := mload(add(add(_data, mul(_n, 0x20)), 4))
}
}
function () public payable {
if (msg.value > 0) {
if (!sweeperList.halted()) {
address dest = sweeperList.destination();
dest.transfer(msg.value);
sweeperList.logSweep(this, dest, 0, msg.value);
return;
}
return;
} else if (msg.sender == sweeperList.sweeper() || msg.sender == sweeperList.owner()) {
address a = _arg(msg.data, 2);
require(address(sweeperList) == a);
address b = _arg(msg.data, 1);
sweeperList.sweeperOf(b).delegatecall(msg.data);
}
}
function changeController(address _controller) public {
require(msg.sender == owner);
sweeperList = AbstractSweeperList(_controller);
}
function tokenFallback(address _from, uint _value, bytes _data) public {
}
function transferOwnership(address _owner) public {
require(msg.sender == owner);
require(_owner != address(0));
owner = _owner;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 100,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.