Skip to content

Commit

Permalink
chore: fix minor bugs in bg tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
prettyirrelevant committed Sep 20, 2023
1 parent 492ce0f commit eb1716c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/bridgebloc/apps/conversions/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def send_to_recipient_using_circle_api() -> None:
with transaction.atomic():
circle_client = get_circle_api_client(step.conversion.destination_chain)
response = circle_client.make_withdrawal(
amount=f'{step.conversion.actual_amount:.2f}',
amount=step.conversion.actual_amount,
master_wallet_id=settings.CIRCLE_MASTER_WALLET_ID,
chain=step.conversion.destination_chain.to_circle(),
destination_address=step.conversion.destination_address,
Expand Down
2 changes: 1 addition & 1 deletion backend/bridgebloc/services/circle.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def make_withdrawal(
'address': to_checksum_address(destination_address),
'chain': chain,
},
'amount': {'amount': str(amount), 'currency': 'USD'},
'amount': {'amount': f'{amount:.2f}', 'currency': 'USD'},
},
)
return response.json()
Expand Down

0 comments on commit eb1716c

Please sign in to comment.