diff --git a/clive/__private/cli/commands/show/show_chain.py b/clive/__private/cli/commands/show/show_chain.py index 4ccd58951b4cd288858f068768ad23706186a3d4..23c1e94067b277126de28901daf8527843ce06da 100644 --- a/clive/__private/cli/commands/show/show_chain.py +++ b/clive/__private/cli/commands/show/show_chain.py @@ -10,6 +10,7 @@ from clive.__private.core.formatters.data_labels import ( CURRENT_INFLATION_RATE_LABEL, HBD_PRINT_RATE_LABEL, HBD_SAVINGS_APR_LABEL, + HP_VEST_APR_LABEL, MEDIAN_HIVE_PRICE_LABEL, PARTICIPATION_COUNT_LABEL, VEST_HIVE_RATIO_LABEL, @@ -39,7 +40,7 @@ class ShowChain(WorldBasedCommand): financial_data = data.get_aligned_financial_data() table.add_row(HBD_SAVINGS_APR_LABEL, financial_data.pretty_hbd_savings_apr) - table.add_row("VESTS APR", financial_data.pretty_vests_apr) + table.add_row(HP_VEST_APR_LABEL, financial_data.pretty_vests_apr) table.add_row(HBD_PRINT_RATE_LABEL, data.get_hbd_print_rate()) table.add_row(CURRENT_INFLATION_RATE_LABEL, financial_data.pretty_current_inflation_rate) table.add_row(MEDIAN_HIVE_PRICE_LABEL, data.get_median_hive_price()) diff --git a/clive/__private/core/formatters/data_labels.py b/clive/__private/core/formatters/data_labels.py index bf4850dffda6048db31471417efcb2827732ad76..ae5cf6f8f0305e5f672abe1c8f5c78a3f11292e2 100644 --- a/clive/__private/core/formatters/data_labels.py +++ b/clive/__private/core/formatters/data_labels.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Final HBD_SAVINGS_APR_LABEL: Final[str] = "HBD savings APR" -HP_VEST_APR_LABEL: Final[str] = "HP/VESTS APR" +HP_VEST_APR_LABEL: Final[str] = "HP (VESTS) APR" HBD_EXCHANGE_RATE_LABEL: Final[str] = "price feed" HBD_PRINT_RATE_LABEL: Final[str] = "HBD print rate" MEDIAN_HIVE_PRICE_LABEL: Final[str] = "median Hive price" diff --git a/clive/__private/core/formatters/humanize.py b/clive/__private/core/formatters/humanize.py index eff97afa524c4c881f13adb9c3c38925f827be01..2e23b1573b25da0acf3b1466c6aa3f288cfe1af0 100644 --- a/clive/__private/core/formatters/humanize.py +++ b/clive/__private/core/formatters/humanize.py @@ -441,7 +441,7 @@ def humanize_hp_vests_apr(data: HpAPRProtocol | Decimal, *, with_label: bool = F >>> humanize_hp_vests_apr(Decimal("2.94")) "2.94 %" >>> humanize_hp_vests_apr(Decimal("2.94"), with_label=True)) - "HP/VESTS APR: 2.94 %" + "HP (VESTS) APR: 2.94 %" Returns: A human-readable data representing the APR value with an optional label.