Last active
November 21, 2018 10:08
-
-
Save ylv-io/8637be08970253e29ce993e2dd7e2844 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function setInactivityReleasePeriod(uint256 expiry) onlyAdmin returns (bool success) { | |
| if (expiry > 1000000) throw; | |
| inactivityReleasePeriod = expiry; | |
| return true; | |
| } | |
| function withdraw(address token, uint256 amount) returns (bool success) { | |
| if (safeSub(block.number, lastActiveTransaction[msg.sender]) < inactivityReleasePeriod) throw; | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment