check pool

This commit is contained in:
Pham Tu 2024-01-18 12:01:49 +07:00
parent c284ceab4b
commit 2bfbbd53f8
No known key found for this signature in database
GPG Key ID: 7460FD99133ADA1C

View File

@ -123,6 +123,7 @@ export const useParamStore = defineStore('paramstore', {
Promise.all([this.getStakingPool(), this.getBankTotal(bond_denom)]).then(
(resArr) => {
const pool = resArr[0]?.pool;
if (!pool) return;
const amount = resArr[1]?.amount;
const assets = this.blockchain.current?.assets;
const bondedAndSupply = this.chain.items.findIndex(