From fa6980a4a329ca028721aa2a4f1d173d63228d38 Mon Sep 17 00:00:00 2001 From: Sam Mason de Caires Date: Thu, 21 May 2026 11:09:45 +0100 Subject: [PATCH 1/2] chore: update Function BTC name --- src/components/primitives/Link.tsx | 2 +- src/ui-config/reservePatches.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/primitives/Link.tsx b/src/components/primitives/Link.tsx index 472f2fa8bb..fc7d2fa4cc 100644 --- a/src/components/primitives/Link.tsx +++ b/src/components/primitives/Link.tsx @@ -1,6 +1,6 @@ import MuiLink, { LinkProps as MuiLinkProps } from '@mui/material/Link'; import { styled } from '@mui/material/styles'; -import clsx from 'clsx'; +import { clsx } from 'clsx'; import NextLink, { LinkProps as NextLinkProps } from 'next/link'; import { useRouter } from 'next/router'; import * as React from 'react'; diff --git a/src/ui-config/reservePatches.ts b/src/ui-config/reservePatches.ts index 7f0e63b1c6..af95a743e5 100644 --- a/src/ui-config/reservePatches.ts +++ b/src/ui-config/reservePatches.ts @@ -283,6 +283,11 @@ export function fetchIconSymbolAndName({ underlyingAsset, symbol, name }: IconSy '0x004375dff511095cc5a197a54140a24efef3a416': { iconSymbol: 'UNI_BTC_USDC' }, '0xbb2b8038a1640196fbe3e38816f3e67cba72d940': { iconSymbol: 'UNI_WBTC_WETH' }, '0x2fdbadf3c4d5a8666bc06645b8358ab803996e28': { iconSymbol: 'UNI_YFI_WETH' }, + '0xc96de26018a54d51c097160568752c4e3bd6c364': { + iconSymbol: 'FBTC', + name: 'Function Bitcoin', + symbol: 'FBTC', + }, }; const lowerUnderlyingAsset = underlyingAsset.toLowerCase(); From ffacf3150e2b7c47fafc0733d53344e8b52fb5d8 Mon Sep 17 00:00:00 2001 From: Sam Mason de Caires Date: Fri, 22 May 2026 16:48:11 +0100 Subject: [PATCH 2/2] chore: patch name on reserve page --- .../app-data-provider/useAppDataProvider.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/hooks/app-data-provider/useAppDataProvider.tsx b/src/hooks/app-data-provider/useAppDataProvider.tsx index 4591e2c312..266dbdff16 100644 --- a/src/hooks/app-data-provider/useAppDataProvider.tsx +++ b/src/hooks/app-data-provider/useAppDataProvider.tsx @@ -5,6 +5,7 @@ import React, { PropsWithChildren, useContext } from 'react'; import { EmodeCategory } from 'src/helpers/types'; import { useWeb3Context } from 'src/libs/hooks/useWeb3Context'; import { useRootStore } from 'src/store/root'; +import { fetchIconSymbolAndName } from 'src/ui-config/reservePatches'; import { formatEmodes } from '../../store/poolSelectors'; import { @@ -88,13 +89,28 @@ export const AppDataProvider: React.FC = ({ children }) => { return acc + Number(value); }, 0); + const patchUnderlyingToken = (reserve: Reserve) => { + const patch = fetchIconSymbolAndName({ + underlyingAsset: reserve.underlyingToken.address, + symbol: reserve.underlyingToken.symbol, + name: reserve.underlyingToken.name, + }); + return { + ...reserve.underlyingToken, + name: patch.name ?? reserve.underlyingToken.name, + symbol: patch.symbol ?? reserve.underlyingToken.symbol, + }; + }; + const supplyReserves = (sdkMarket?.supplyReserves ?? []).map((reserve) => ({ ...reserve, + underlyingToken: patchUnderlyingToken(reserve), id: `${sdkMarket?.address}-${reserve.underlyingToken.address}`, })); const borrowReserves = (sdkMarket?.borrowReserves ?? []).map((reserve) => ({ ...reserve, + underlyingToken: patchUnderlyingToken(reserve), id: `${sdkMarket?.address}-${reserve.underlyingToken.address}`, }));