Skip to content

Commit

Permalink
fix to_address celery tasks faucet
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad Bastin committed Jan 9, 2024
1 parent ed2e637 commit 6b38f9f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions faucet/celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.utils import timezone
from sentry_sdk import capture_exception

from authentication.models import NetworkTypes, Wallet
from authentication.models import NetworkTypes
from core.models import TokenPrice
from core.utils import Web3Utils
from tokenTap.models import TokenDistributionClaim
Expand Down Expand Up @@ -45,12 +45,7 @@ def process_batch(batch_pk):

data = [
{
"to": receipt.passive_address
if receipt.passive_address is not None
else Wallet.objects.get(
user_profile=receipt.user_profile,
wallet_type=batch.faucet.chain.chain_type,
).address,
"to": receipt.to_address,
"amount": int(receipt.amount),
}
for receipt in batch.claims.all()
Expand Down

0 comments on commit 6b38f9f

Please sign in to comment.