Skip to content

Instantly share code, notes, and snippets.

@iurimatias
Last active August 29, 2015 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iurimatias/078c18b233bee0980ef9 to your computer and use it in GitHub Desktop.
Save iurimatias/078c18b233bee0980ef9 to your computer and use it in GitHub Desktop.
funds
contract CollectFunds {
address owner;
uint startTime;
uint minimalValue;
function CollectFunds(uint minimum) {
owner = msg.sender;
startTime = now;
minimalValue = minimum;
}
function trigger() {
if (msg.sender == owner && now > startTime + 5 days) {
msg.sender.send(address(this).balance);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment