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 1/2] 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
})
From 4910319be7ddb9bf148d199cd699712bd322acc0 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Wed, 24 Nov 2021 11:40:03 +0800
Subject: [PATCH 2/2] add re-import address, default wallet
---
src/layouts/components/Navbar.vue | 14 +++-
src/store/chains/index.js | 7 ++
src/views/WalletAccountImportAddress.vue | 94 ++++++++++++++++--------
src/views/WalletAccounts.vue | 60 ++++++++++++---
4 files changed, 131 insertions(+), 44 deletions(-)
diff --git a/src/layouts/components/Navbar.vue b/src/layouts/components/Navbar.vue
index df252d64..d8f94b5d 100644
--- a/src/layouts/components/Navbar.vue
+++ b/src/layouts/components/Navbar.vue
@@ -69,7 +69,7 @@
:to="{ name: 'accounts' }"
>
- Wallet
+ {{ walletName }}