Verified contractPartial
WithdrawDAO
Address0x408b8fbc19bb5ffff7d5e5c430f765524fae77c5
- Balance
0.05 ETH
- Transactions
6
- Compiler
solc 0.3.5
- Same code
5 more contracts
Details
- Compiler
- solc 0.3.5+commit.5f97274a
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 1,882,967
- Creation transaction
- 0xd82dbd685c…af70231115
WithdrawDAO.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
// Refund contract for trust DAO #23
contract DAO {
function balanceOf(address addr) returns (uint);
function transferFrom(address from, address to, uint balance) returns (bool);
uint public totalSupply;
}
contract WithdrawDAO {
DAO constant public mainDAO = DAO(0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413);
address public trustee = 0x357d083321319cc1a8ebad90ba1db06c8698eef6;
function withdraw(){
uint balance = mainDAO.balanceOf(msg.sender);
if (!mainDAO.transferFrom(msg.sender, this, balance) || !msg.sender.send(balance))
throw;
}
function trusteeWithdraw() {
trustee.send((this.balance + mainDAO.balanceOf(this)) - mainDAO.totalSupply());
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.