From aafc235f684fc43bcc290c6f3db465ddbb59b5d3 Mon Sep 17 00:00:00 2001 From: kukabi Date: Wed, 3 Aug 2022 11:14:51 +0300 Subject: [PATCH] Fix the self stake to display the active amount, not total. #233 --- subvt-types/src/telegram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subvt-types/src/telegram.rs b/subvt-types/src/telegram.rs index 4aa9847e..507d0f3e 100644 --- a/subvt-types/src/telegram.rs +++ b/subvt-types/src/telegram.rs @@ -74,7 +74,7 @@ impl TelegramChatValidatorSummary { token_format_decimal_points: usize, ) -> TelegramChatValidatorSummary { let self_stake_formatted = format_decimal( - validator_details.self_stake.total_amount, + validator_details.self_stake.active_amount, token_decimals, token_format_decimal_points, );