From e15f850befbf98c2fc1658262b24f03a5c388ac1 Mon Sep 17 00:00:00 2001 From: Piotr Gesicki Date: Wed, 13 Dec 2023 00:15:36 +0100 Subject: [PATCH 1/3] fix sorting --- app/src/views/PoolPage/PoolItem.tsx | 4 ++-- app/src/views/PoolPage/PoolPage.tsx | 12 +++++++++--- app/src/views/PoolPage/usePoolPageData.tsx | 1 - app/src/views/StatsPage/StatsPage.tsx | 6 +++--- app/src/views/StatsPage/useStatsPageData.ts | 4 +--- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/app/src/views/PoolPage/PoolItem.tsx b/app/src/views/PoolPage/PoolItem.tsx index baea1ba0e..74964f89a 100644 --- a/app/src/views/PoolPage/PoolItem.tsx +++ b/app/src/views/PoolPage/PoolItem.tsx @@ -401,9 +401,9 @@ export default defineComponent({ "flex items-center justify-end font-mono", ]} > - {isNil(this.$props.poolStat?.poolApr) + {isNil(this.$props.poolStat?.rewardApr) ? "..." - : `${(Number(this.$props.poolStat?.poolApr) ?? 0).toFixed(2)}%`} + : `${(Number(this.$props.poolStat?.rewardApr) ?? 0).toFixed(2)}%`}
- {item.poolApr}% + {item.rewardApr}% {item.pairedApr}% diff --git a/app/src/views/StatsPage/useStatsPageData.ts b/app/src/views/StatsPage/useStatsPageData.ts index c1e5378f1..b6569fda1 100644 --- a/app/src/views/StatsPage/useStatsPageData.ts +++ b/app/src/views/StatsPage/useStatsPageData.ts @@ -12,7 +12,6 @@ export type StatsPageState = { | "tvl" | "volume" | "arbitrage" - | "poolApr" | "rowanApr" | "pairedApr" | "marginApr"; @@ -44,9 +43,8 @@ export function useStatsPageData(initialState: StatsPageState) { tvl: pool.poolTVL, volume: pool.volume ?? 0, arbitrage: pool.arb == null ? null : pool.arb ?? 0, - poolApr: Number(pool.poolApr).toFixed(2), pairedApr: Number(pool.pairedApr).toFixed(1), - rewardApr: pool.rewardApr, + rewardApr: Number(pool.rewardApr).toFixed(2), marginApr: pool.margin_apr, }; From 0960e5cffc162cac3bd533875e8ad7b706e059b8 Mon Sep 17 00:00:00 2001 From: Piotr Gesicki Date: Wed, 13 Dec 2023 00:15:55 +0100 Subject: [PATCH 2/3] testnet release 2.14.24 --- app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/package.json b/app/package.json index 871fb01c3..3743fe0c8 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "2.14.23", + "version": "2.14.24", "private": true, "scripts": { "bump": "bump patch --tag --commit 'testnet release '", From 1e07f0ea5a76645c525c862832bab081f686bdf2 Mon Sep 17 00:00:00 2001 From: Piotr Gesicki Date: Wed, 13 Dec 2023 00:20:21 +0100 Subject: [PATCH 3/3] fix sifchain block explorer url --- core/src/clients/chains/SifchainChain.ts | 2 +- core/src/config/chains/sifchain/sifchain-mainnet.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/clients/chains/SifchainChain.ts b/core/src/clients/chains/SifchainChain.ts index 42433e298..0c45b679a 100644 --- a/core/src/clients/chains/SifchainChain.ts +++ b/core/src/clients/chains/SifchainChain.ts @@ -5,7 +5,7 @@ import { BaseChain } from "./_BaseChain"; export class SifchainChain extends BaseChain implements Chain { getBlockExplorerUrlForTxHash(hash: string) { - return urlJoin(this.chainConfig.blockExplorerUrl, "txs", hash); + return urlJoin(this.chainConfig.blockExplorerUrl, "tx", hash); } getBlockExplorerUrlForAddress(hash: string) { return urlJoin(this.chainConfig.blockExplorerUrl, "account", hash); diff --git a/core/src/config/chains/sifchain/sifchain-mainnet.ts b/core/src/config/chains/sifchain/sifchain-mainnet.ts index 51c12bd3d..5da2f2411 100644 --- a/core/src/config/chains/sifchain/sifchain-mainnet.ts +++ b/core/src/config/chains/sifchain/sifchain-mainnet.ts @@ -4,7 +4,7 @@ export const SIFCHAIN_MAINNET: IBCChainConfig = { network: Network.SIFCHAIN, chainType: "ibc", displayName: "Sifchain", - blockExplorerUrl: "https://www.mintscan.io/sifchain", + blockExplorerUrl: "https://ping.pub/sifchain", nativeAssetSymbol: "rowan", chainId: "sifchain-1", rpcUrl: "https://proxies.sifchain.finance/api/sifchain-1/rpc",