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