From 8182728612ba3932da761ba3924c0d1b819b89bf Mon Sep 17 00:00:00 2001 From: Kyoto Date: Sun, 25 May 2025 11:14:48 +0200 Subject: [PATCH] feat: add monero rewards value --- qubipy/core/core_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubipy/core/core_client.py b/qubipy/core/core_client.py index b979247..bec2d72 100644 --- a/qubipy/core/core_client.py +++ b/qubipy/core/core_client.py @@ -566,6 +566,7 @@ def get_monero_mining_stats(self) -> Dict[str, Any]: response = requests.get(f'{MONERO_URL}{MONERO_MINING_STATS}', headers=HEADERS, timeout=self.timeout) response.raise_for_status() # Raise an exception for bad HTTP status codes data = response.json() + data['monero_amount_rewards'] = data['pool_blocks_found'] * 0.6 return data except requests.RequestException as E: raise QubiPy_Exceptions(f"Error when getting the monero mining stats: {str(E)}") from None