From 01922254fb74e4b031ed14bca8973cdd88035121 Mon Sep 17 00:00:00 2001 From: Roy <92044428+impelcrypto@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:10:49 +0800 Subject: [PATCH] hotfix: merge the latest hotfix branch to main (#1383) * dApps loading error fix for Shibuya (#1377) * Tier thresholds derivation support (#1376) * Tier thresholds derivation support * Additional comments * Pallet version check * Fix: estimated realized inflation not showing (#1379) * Re-try fetch from cbridge (#1382) --------- Co-authored-by: Bobo --- src/hooks/useChainInfo.ts | 3 +- src/staking-v3/components/data/DataList.vue | 9 ++- .../components/leaderboard/Tier.vue | 2 +- src/staking-v3/hooks/useDapps.ts | 2 +- .../logic/interfaces/DappStakingV3.ts | 13 +++- src/staking-v3/logic/models/DappStaking.ts | 8 +- .../repositories/DappStakingRepository.ts | 50 ++++++++----- .../logic/services/DappStakingService.ts | 12 +-- .../logic/services/IDappStakingService.ts | 2 +- .../implementations/EvmAssetsRepository.ts | 74 ++++++++++--------- 10 files changed, 102 insertions(+), 73 deletions(-) diff --git a/src/hooks/useChainInfo.ts b/src/hooks/useChainInfo.ts index 0c574d755..0e436ba71 100644 --- a/src/hooks/useChainInfo.ts +++ b/src/hooks/useChainInfo.ts @@ -53,9 +53,10 @@ export function useChainInfo(api: ApiPromise) { const specName: string = api.runtimeVersion.specName.toString(); const systemChain: string = ((await api.rpc.system.chain()) || '').toString(); let info = createInfo(api, systemChain, specName); + chainInfo.value = info; + const metadata = await api.call.metadata.metadataAtVersion(15); info.rawMetadata = metadata.toHex(); - chainInfo.value = info; }); diff --git a/src/staking-v3/components/data/DataList.vue b/src/staking-v3/components/data/DataList.vue index 1c1ce39f3..841e6dc92 100644 --- a/src/staking-v3/components/data/DataList.vue +++ b/src/staking-v3/components/data/DataList.vue @@ -127,7 +127,7 @@