Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CJentzsch/b9d7d0dbb8bbee147af2fe90d9c2b58a to your computer and use it in GitHub Desktop.
Save CJentzsch/b9d7d0dbb8bbee147af2fe90d9c2b58a to your computer and use it in GitHub Desktop.
function withdraw(){
uint balance = DAO(mother).balanceOf(msg.sender);
if (!DAO(mother).transferFrom(msg.sender, this, balance) || !msg.sender.send(balance * totalWeiSupply / totalSupply))
throw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment