Skip to content

Commit

Permalink
add get token constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad Bastin committed Oct 22, 2023
1 parent 331d381 commit f536a01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tokenTap/constraints.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from core.constraints import *
from core.utils import TimeUtils
from faucet.constraints import OptimismHasClaimedGasInThisRound
from faucet.models import ClaimReceipt


class OncePerWeekVerification(ConstraintVerification):
Expand All @@ -26,4 +27,5 @@ def is_observed(self, *args, **kwargs):
token_distribution = kwargs["token_distribution"]
return not token_distribution.claims.filter(
user_profile=self.user_profile,
status=ClaimReceipt.VERIFIED,
).exists()

0 comments on commit f536a01

Please sign in to comment.