Skip to content
Snippets Groups Projects

Implement `Power up` part of hive power management

Merged Jakub Ziebinski requested to merge jziebinski/prepare-hp-management into develop
Compare and Show latest version
7 files
+ 47
45
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -66,13 +66,19 @@ class WithdrawalInfo(Vertical, CliveWidget):
)
def _get_next_withdrawal_date(self, content: HivePowerData) -> str:
return humanize_datetime(content.next_vesting_withdrawal)
if self._provider.is_content_set:
return humanize_datetime(content.next_vesting_withdrawal)
return "loading..."
def _get_to_withdraw_hp(self, content: HivePowerData) -> str:
return f"{Asset.pretty_amount(content.to_withdraw.hp_balance)} HP"
if self._provider.is_content_set:
return f"{Asset.pretty_amount(content.to_withdraw.hp_balance)} HP"
return "loading..."
def _get_to_withdraw_vests(self, content: HivePowerData) -> str:
return f"{Asset.pretty_amount(content.to_withdraw.vests_balance)} VESTS"
if self._provider.is_content_set:
return f"{Asset.pretty_amount(content.to_withdraw.vests_balance)} VESTS"
return "loading..."
class APR(DynamicLabel):
Loading