clean code
This commit is contained in:
parent
74dcb0541a
commit
088e0948c6
@ -24,22 +24,7 @@
|
||||
<h5 class="mb-1">
|
||||
{{ data.address || '0' }}
|
||||
</h5>
|
||||
<!-- <b-card-text class="text-muted font-small-2">
|
||||
<span class="font-weight-bolder">{{ data.pool_coin_denom || '...' }}</span>
|
||||
</b-card-text> -->
|
||||
</b-col>
|
||||
<!-- <b-col
|
||||
cols="4"
|
||||
>
|
||||
<b-avatar
|
||||
:src="data.logo"
|
||||
class="mt-1 badge-minimal"
|
||||
variant="light-primary"
|
||||
rounded
|
||||
size="82"
|
||||
badge
|
||||
:badge-variant="data.variant"
|
||||
/></b-col> -->
|
||||
</b-row>
|
||||
</b-card>
|
||||
</router-link>
|
||||
@ -53,7 +38,6 @@ import {
|
||||
BCard, BCardTitle, VBTooltip, BRow, BCol,
|
||||
} from 'bootstrap-vue'
|
||||
import { formatTokenDenom } from '@/libs/data'
|
||||
// import fetch from 'node-fetch'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -72,29 +56,10 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// const api = new OsmosAPI()
|
||||
// this.$http.osmosis.getIncentivesPools().then(res => {
|
||||
// })
|
||||
// 所有方法添加到 $http.osmosis
|
||||
this.$http.osmosis.getPools().then(res => {
|
||||
this.pools = res
|
||||
})
|
||||
// this.$http.getGravityPools().then(res => {
|
||||
// this.pools = res
|
||||
// res.pools.forEach(x => {
|
||||
// const denom1 = x.reserve_coin_denoms[0]
|
||||
// const denom2 = x.reserve_coin_denoms[1]
|
||||
// if (denom1.startsWith('ibc')) {
|
||||
// this.$http.getIBCDenomTrace(denom1).then(denom => {
|
||||
// this.$set(this.ibcDenom, denom1, denom)
|
||||
// })
|
||||
// }
|
||||
// if (denom2.startsWith('ibc')) {
|
||||
// this.$http.getIBCDenomTrace(denom2).then(denom => {
|
||||
// this.$set(this.ibcDenom, denom2, denom)
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.islive = false
|
||||
@ -102,8 +67,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
formatDenom(v) {
|
||||
// console.log(v, this.ibcDenom[v])
|
||||
// const denom = (v.startsWith('ibc') ? this.ibcDenom[v].denom_trace.base_denom : v)
|
||||
return formatTokenDenom(v)
|
||||
},
|
||||
length: v => (Array.isArray(v) ? v.length : 0),
|
||||
|
Loading…
Reference in New Issue
Block a user