From c19331c1aac077b9b20ffc56da1f6a70a971efc4 Mon Sep 17 00:00:00 2001 From: Antonio Ventilii <169057656+AntonioVentilii-DFINITY@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:36:10 +0200 Subject: [PATCH] feat(frontend): add BTC price to exchange store (#2087) # Motivation Since it is already being fetched, the Bitcoin Mainnet price will be added to the `exchanges` store. --- src/frontend/src/lib/derived/exchange.derived.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/lib/derived/exchange.derived.ts b/src/frontend/src/lib/derived/exchange.derived.ts index 5fade34e52..1649c4d718 100644 --- a/src/frontend/src/lib/derived/exchange.derived.ts +++ b/src/frontend/src/lib/derived/exchange.derived.ts @@ -1,3 +1,4 @@ +import { BTC_MAINNET_TOKEN_ID } from '$env/tokens.btc.env'; import { ETHEREUM_TOKEN_ID, ICP_TOKEN_ID, SEPOLIA_TOKEN_ID } from '$env/tokens.env'; import { enabledErc20Tokens } from '$eth/derived/erc20.derived'; import type { Erc20Token } from '$eth/types/erc20'; @@ -20,6 +21,7 @@ export const exchanges: Readable = derived( const icpPrice = $exchangeStore?.['internet-computer']; return { + [BTC_MAINNET_TOKEN_ID]: btcPrice, [ETHEREUM_TOKEN_ID]: ethPrice, [SEPOLIA_TOKEN_ID]: ethPrice, [ICP_TOKEN_ID]: icpPrice,