Round amount before sending XMR

This commit is contained in:
2023-05-20 14:15:29 +01:00
parent 1744b9ead8
commit 7bc92dcef9
2 changed files with 7 additions and 3 deletions

View File

@@ -122,9 +122,10 @@ async def withdrawal_job(group=None):
# for wallet, amount in collapsed.items():
print("ITER SEND", wallet, amount)
amount_rounded = round(amount, 8)
cast = {
"address": wallet.address,
"amount": amount,
"amount": amount_rounded,
"password": platform.password,
"otp": otp_code,
}
@@ -139,7 +140,7 @@ async def withdrawal_job(group=None):
payout = Payout.objects.create( # noqa
user=group.user,
wallet=wallet,
amount=amount,
amount=amount_rounded,
description=reason,
)