forked from LBRYCommunity/lbry-sdk
+ fee.amount
This commit is contained in:
parent
cd15230a92
commit
129a886f2b
1 changed files with 7 additions and 0 deletions
|
@ -350,6 +350,13 @@ class Fee:
|
||||||
def address_bytes(self, address: bytes):
|
def address_bytes(self, address: bytes):
|
||||||
self._fee.address = address
|
self._fee.address = address
|
||||||
|
|
||||||
|
@property
|
||||||
|
def amount(self) -> Decimal:
|
||||||
|
if self.currency == 'LBC':
|
||||||
|
return self.lbc
|
||||||
|
if self.currency == 'USD':
|
||||||
|
return self.usd
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dewies(self) -> int:
|
def dewies(self) -> int:
|
||||||
if self._fee.currency != FeeMessage.LBC:
|
if self._fee.currency != FeeMessage.LBC:
|
||||||
|
|
Loading…
Add table
Reference in a new issue