Verified contractPartial
Wallet
Address0xae7bcda3213cadf10e176fab249be62780dff97a
- Balance
0 ETH
- Transactions
5
- Compiler
solc 0.4.15
- Same code
199 more contracts
Details
- Compiler
- solc 0.4.15+commit.bbb8e64f
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,227,977
- Creation transaction
- 0x47413f9486…063073ae48
Wallet.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.11;
contract ERC20 {
function transfer(address to, uint256 value) returns (bool);
}
contract Controlled {
address public controller;
modifier onlyController() {
require(msg.sender == controller);
_;
}
function Controlled(address _controller) {
require(_controller != 0);
controller = _controller;
}
function changeController(address _controller) onlyController {
controller = _controller;
}
}
contract Wallet is Controlled {
address public wallet;
function Wallet(address _wallet, address _controller) Controlled(_controller) {
wallet = _wallet;
}
function () payable {
}
function doTransfer(address _token, uint256 _amount) onlyController {
ERC20(_token).transfer(wallet, _amount);
}
function collect(uint256 _amount) onlyController {
wallet.transfer(_amount);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.