Skip to content

Commit

Permalink
Add __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jun 19, 2023
1 parent 1099ef2 commit 77ea507
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eth_defi/enzyme/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
logger = logging.getLogger(__name__)


@dataclass(slots=True)
class EnzymeBalanceEvent:
"""Enzyme deposit/redeem event wrapper.
Expand Down Expand Up @@ -168,7 +167,6 @@ def receiver(self) -> HexAddress:
return convert_uint256_bytes_to_address(HexBytes(self.event_data["topics"][1]))


@dataclass(slots=True)
class Redemption(EnzymeBalanceEvent):
"""Enzyme deposit event wrapper.
Expand Down Expand Up @@ -259,6 +257,9 @@ class LiveBalance:
#:
balance: Decimal

def __repr__(self):
return f"<Token {self.token}, balance {self.balance}>"


def fetch_vault_balance_events(
vault: Vault,
Expand Down

0 comments on commit 77ea507

Please sign in to comment.