diff --git a/lbrynet/schema/claim.py b/lbrynet/schema/claim.py index 5a8475d84..91f211b9a 100644 --- a/lbrynet/schema/claim.py +++ b/lbrynet/schema/claim.py @@ -350,6 +350,13 @@ class Fee: def address_bytes(self, address: bytes): self._fee.address = address + @property + def amount(self) -> Decimal: + if self.currency == 'LBC': + return self.lbc + if self.currency == 'USD': + return self.usd + @property def dewies(self) -> int: if self._fee.currency != FeeMessage.LBC: