Open kangarang opened 7 years ago
agreed, isInApplication
is better imo
Just so we have it here to look at: https://github.com/AdChain/AdChainRegistry/blob/cf0d0f5e666ada661ee24269b8650b2ce944faaf/contracts/Registry.sol#L306-L309
Actually, I take this back. items in listingMap
only get deleted by resetListing
if and only if:
exit
unstakedDeposit
is for some reason less that the minimumDeposit
So appWasMade
returns true
(as expected) for white-listed applications.
My apologies for this misunderstanding. I was definitely confused.
If a domain applies and either is or is not listed, we don't care, then it is true forever that that domain did apply. Semantically. So maybe this needs to be named domainIsInApplicationOrIsListed
?
domainIsActive
domainWasInitialized
I'm not afraid of long method names.
Right on! Let's go with domainIsInApplicationOrIsListed
then since it's the most specific.
I think we should reword function
appWasMade
toisInApplication
orisBeingReviewed
or something else to better describe the stage/timing of the domain's current state. Since items inlistingMap
are deleted duringresetListing
, it could be confusing ifappWasMade
correctly returnsfalse
for an application that i definitely made, but is completed and already whitelisted.