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

@@ -102,6 +102,8 @@ class AgoraDesk:
result["message"] = "OK"
result["response"] = response
else:
if "error" in response:
result["error"] = response["error"]
result["message"] = "API ERROR"
return result
@@ -1037,8 +1039,9 @@ class AgoraDesk:
if otp:
params["otp"] = otp
return await self._api_call(
response = await self._api_call(
api_method="wallet-send/XMR",
http_method="POST",
query_values=params,
)
return response