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
5 files
+ 127
55
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -43,7 +43,7 @@ class HivePowerData:
delegated_balance: SharesBalance
next_vesting_withdrawal: datetime
to_withdraw: SharesBalance
withdraw_routes: int
next_power_down: int
current_hp_apr: str
@@ -78,7 +78,7 @@ class HivePowerDataRetrieval(CommandDataRetrieval[HarvestedDataRaw, SanitizedDat
delegated_balance=self._create_balance_representation(data.dgpo, delegated_shares),
next_vesting_withdrawal=data.core_account.next_vesting_withdrawal,
to_withdraw=self._create_balance_representation(data.dgpo, Asset.vests(data.core_account.to_withdraw)),
withdraw_routes=data.core_account.withdraw_routes,
next_power_down=int(data.core_account.vesting_withdraw_rate.amount),
current_hp_apr=self._calculate_current_hp_apr(data.dgpo),
)
Loading