Skip to content
Verified contractPartial

WithdrawDAO

Address0x3bba851537e2b387b58835c8a68be96f6401ce95
Balance

0 ETH

 

Transactions

5

 

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,883,093
Creation transaction
0x41db9e97e7…2484136ec1
Main copy (most transactions)
0x408b8fbc…4fae77c5

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.