Calculate profit in XMR
This commit is contained in:
@@ -766,11 +766,14 @@ class LocalPlatformClient(ABC):
|
||||
|
||||
if not settings.DUMMY:
|
||||
rtrn = await self.release_funds(trade_id)
|
||||
print("RELEASE FUNDS RETURN", rtrn)
|
||||
else:
|
||||
log.debug(f"DUMMY: release_funds({trade_id})")
|
||||
rtrn = {"message": "OK"}
|
||||
if rtrn["message"] == "OK":
|
||||
print("MESSAGE IS OK")
|
||||
if not settings.DUMMY:
|
||||
print("NOT SETTINGS DUMMY")
|
||||
await self.api.contact_message_post(
|
||||
trade_id, "Thanks! Releasing now :)"
|
||||
)
|
||||
|
||||
@@ -31,9 +31,6 @@ class AgoraClient(LocalPlatformClient, BaseClient):
|
||||
self.instance.password,
|
||||
)
|
||||
|
||||
# Check if we can withdraw funds
|
||||
await self.withdraw_funds()
|
||||
|
||||
return rtrn
|
||||
|
||||
# TODO: write test before re-enabling adding total_trades
|
||||
|
||||
Reference in New Issue
Block a user