How To Convert DAO Hub Tokens To Ether today

CryptoSpaceCryptoSpace Member Posts: 3
Hi guys - How To Convert DAO Hub Tokens To Ether today 6/1117 - is possible? please help me thanks

"The DAO" Details:
Your Tokens: 230.7692307692307692

Answers

  • rmhrmh Member Posts: 410 ✭✭✭

    var account = eth.accounts[XX];
    var theDAOAddress = "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413";
    var theDAOWithdrawalAddress = "0xbf4ed7b27f1d666546e30d74d50d173d20bca754";
    var theDAOABIFragment = [{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"type":"function"}, {"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"type":"function"}];
    var theDAOWithdrawalABIFragment = [{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"type":"function"}];
    var theDAO = web3.eth.contract(theDAOABIFragment).at(theDAOAddress);
    var theDAOWithdrawal = web3.eth.contract(theDAOWithdrawalABIFragment).at(theDAOWithdrawalAddress);
    var approve = theDAO.approve(theDAOWithdrawalAddress, theDAO.balanceOf(account), {from: account,gasPrice:web3.toWei(18,'gwei')});
    var withdrawal = theDAOWithdrawal.withdraw({from:account,gasPrice:web3.toWei(18,'gwei')});
Sign In or Register to comment.