Round amount before sending XMR
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user