Last active
August 29, 2015 14:22
-
-
Save iurimatias/078c18b233bee0980ef9 to your computer and use it in GitHub Desktop.
funds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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