From 7301338a2248054a212cc87b8f1129cda1d1a3b3 Mon Sep 17 00:00:00 2001 From: Aleksandra Grabowska Date: Fri, 12 Dec 2025 13:59:55 +0000 Subject: [PATCH] Update VESTS APR label to 'HP (VESTS) APR' in chain info display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Updated HP_VEST_APR_LABEL constant from "HP/VESTS APR" to "HP (VESTS) APR" with space before parentheses in data_labels.py - Added HP_VEST_APR_LABEL import in show_chain.py for consistency - Replaced hardcoded "VESTS APR" string with HP_VEST_APR_LABEL constant - Updated docstring example in humanize.py to reflect new format This change improves clarity and maintains consistency with TUI display and other label constants used throughout the codebase. Closes #515 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- clive/__private/cli/commands/show/show_chain.py | 3 ++- clive/__private/core/formatters/data_labels.py | 2 +- clive/__private/core/formatters/humanize.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/clive/__private/cli/commands/show/show_chain.py b/clive/__private/cli/commands/show/show_chain.py index 4ccd58951b..23c1e94067 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 bf4850dffd..ae5cf6f8f0 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 eff97afa52..2e23b1573b 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. -- GitLab