feat: add __repr__ to Wallets object

This commit is contained in:
Matthias
2026-01-05 18:01:49 +01:00
parent 38c74e5d1a
commit 32eaae5dcf

View File

@@ -52,6 +52,12 @@ class Wallets:
self._last_wallet_refresh: datetime | None = None
self.update()
def __repr__(self) -> str:
return (
f"Wallets(stake_currency={self._stake_currency}, start_cap={self._start_cap}, "
f"wallets={len(self._wallets)}, positions={len(self._positions)})"
)
def get_free(self, currency: str) -> float:
balance = self._wallets.get(currency)
if balance and balance.free: