Merge remote-tracking branch 'origin/master'

This commit is contained in:
liangping 2022-11-29 09:35:00 +08:00
commit 3425b8eb8c

View File

@ -197,6 +197,15 @@
:items="deleTable" :items="deleTable"
stacked="sm" stacked="sm"
> >
<template #cell(validator)="data">
<span>
<router-link
:to="`../staking/${data.value.address}`"
>
{{ data.value.moniker }}
</router-link>
</span>
</template>
<template #cell(action)="data"> <template #cell(action)="data">
<!-- size --> <!-- size -->
<b-button-group <b-button-group
@ -627,7 +636,10 @@ export default {
this.delegations.forEach(e => { this.delegations.forEach(e => {
const reward = this.reward.rewards.find(r => r.validator_address === e.delegation.validator_address) const reward = this.reward.rewards.find(r => r.validator_address === e.delegation.validator_address)
re.push({ re.push({
validator: getStakingValidatorOperator(this.$http.config.chain_name, e.delegation.validator_address, 8), validator: {
moniker: getStakingValidatorOperator(this.$http.config.chain_name, e.delegation.validator_address, 8),
address: e.delegation.validator_address,
},
token: formatToken(e.balance, {}, decimal), token: formatToken(e.balance, {}, decimal),
reward: tokenFormatter(reward.reward, this.denoms), reward: tokenFormatter(reward.reward, this.denoms),
action: e.delegation.validator_address, action: e.delegation.validator_address,