Created
November 12, 2017 20:01
-
-
Save skmgoldin/79b5a451f2607f5902ab13468520404f to your computer and use it in GitHub Desktop.
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
function canBeWhitelisted(string _domain) constant public returns (bool) { | |
bytes32 domainHash = keccak256(_domain); | |
uint challengeID = listings[domainHash].challengeID; | |
// Ensures that the application was made, | |
// the application period has ended, | |
// the domain can be whitelisted, | |
// and either: the challengeID == 0, or the challenge has been resolved. | |
if ( | |
appWasMade(_domain) && | |
isExpired(listings[domainHash].applicationExpiry) && | |
!isWhitelisted(_domain) && | |
(!challenges[challengeID].isInitialized() || challenges[challengeID].isResolved()) | |
) { return true; } | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment