Skip to content

Instantly share code, notes, and snippets.

@shanefontaine
Created October 14, 2018 21:58
Show Gist options
  • Save shanefontaine/ce060ef14835ff36a34329f319db1234 to your computer and use it in GitHub Desktop.
Save shanefontaine/ce060ef14835ff36a34329f319db1234 to your computer and use it in GitHub Desktop.
function withdraw() public {
_checkWithdrawal();
_token.safeTransfer(_wallet, _token.balanceOf(address(this)));
}
funciton _checkWithdrawal() internal {
// This could be anything relevant. For example:
// 1. require(now > hasClosed());
// 2. require(isFinalized());
// 3. require(numContributors == maxNumContributors);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment