From 6a33942aa6638be35bd1be53420901d2b5908b57 Mon Sep 17 00:00:00 2001 From: Halvor Holsten Strand Date: Thu, 26 Oct 2023 16:37:12 +0200 Subject: [PATCH] Custom display value for ETHBTC, so dropdown shows "ETH/BTC". --- packages/sdk/src/utils/futures.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sdk/src/utils/futures.ts b/packages/sdk/src/utils/futures.ts index 565d456df..e5ab2bc4b 100644 --- a/packages/sdk/src/utils/futures.ts +++ b/packages/sdk/src/utils/futures.ts @@ -146,6 +146,7 @@ export const getMarketName = (asset: FuturesMarketAsset | null) => { export const getDisplayAsset = (asset: string | null) => { if (!asset) return null + if (asset === 'ETHBTC') return 'ETH/BTC' if (asset === 'STETH') return 'stETH' if (asset === 'STETHETH') return 'stETH/ETH' return asset[0] === 's' ? asset.slice(1) : asset