+ fee.amount

This commit is contained in:
Lex Berezhny 2019-03-15 01:41:22 -04:00
parent cd15230a92
commit 129a886f2b

View file

@ -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: