From f536a01e5f3032d5d30459f565bfae2e94bed44e Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Sun, 22 Oct 2023 18:52:01 +0200 Subject: [PATCH] add get token constraints --- tokenTap/constraints.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokenTap/constraints.py b/tokenTap/constraints.py index fd4a518c..5e76522f 100644 --- a/tokenTap/constraints.py +++ b/tokenTap/constraints.py @@ -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): @@ -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()