From 7bbf220906c527c74cb3e21ca7e3c1299f7d33c7 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Sun, 21 Nov 2021 11:30:33 +0800
Subject: [PATCH] remove re-delegations from total
---
src/views/WalletAccountDetail.vue | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/views/WalletAccountDetail.vue b/src/views/WalletAccountDetail.vue
index e778d098..a9257140 100644
--- a/src/views/WalletAccountDetail.vue
+++ b/src/views/WalletAccountDetail.vue
@@ -143,7 +143,7 @@
Withdraw
+ /> Withdraw Rewards
@@ -514,11 +514,11 @@ export default {
tmp1 += Number(e.balance)
})
})
- this.redelegations.forEach(x => {
- x.entries.forEach(e => {
- tmp1 += Number(e.balance)
- })
- })
+ // this.redelegations.forEach(x => {
+ // x.entries.forEach(e => {
+ // tmp1 += Number(e.balance)
+ // })
+ // })
const unbonding = this.formatCurrency(tmp1, stakingDenom)
sumCurrency += unbonding
sum += tmp1
@@ -620,9 +620,9 @@ export default {
this.$http.getStakingDelegations(this.address).then(res => {
this.delegations = res.delegation_responses || res
})
- this.$http.getStakingRedelegations(this.address).then(res => {
- this.redelegations = res.redelegation_responses || res
- })
+ // this.$http.getStakingRedelegations(this.address).then(res => {
+ // this.redelegations = res.redelegation_responses || res
+ // })
this.$http.getStakingUnbonding(this.address).then(res => {
this.unbonding = res.unbonding_responses || res
})