From bbd408393a8d1f616f049c10d845828a97f50762 Mon Sep 17 00:00:00 2001 From: "Alisa | Side.one" Date: Tue, 16 May 2023 23:33:33 +0800 Subject: [PATCH] feat: delegrations rewards --- src/components/Countdown.vue | 6 +++--- src/modules/[chain]/index.vue | 11 +++++++---- src/modules/[chain]/staking/[validator].vue | 7 ++----- src/modules/[chain]/tx/[hash].vue | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/Countdown.vue b/src/components/Countdown.vue index 4e722750..588cb085 100644 --- a/src/components/Countdown.vue +++ b/src/components/Countdown.vue @@ -1,17 +1,17 @@ diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 2d63b577..d7ae3484 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -317,10 +317,13 @@ const color = computed(() => { {{ format.formatToken(item?.balance) }} {{ - format.formatToken({ - denom: item?.balance?.denom, - amount: item?.delegation?.shares, - }) + format.formatToken( + walletStore?.rewards?.rewards?.find( + (el) => + el?.validator_address === + item?.delegation?.validator_address + )?.reward?.[0] + ) }} diff --git a/src/modules/[chain]/staking/[validator].vue b/src/modules/[chain]/staking/[validator].vue index c0fe3110..9fb3ade6 100644 --- a/src/modules/[chain]/staking/[validator].vue +++ b/src/modules/[chain]/staking/[validator].vue @@ -1,6 +1,5 @@