diff --git a/dapp/src/components/Header/ConnectWallet.tsx b/dapp/src/components/Header/ConnectWallet.tsx
index 20715a3e5..3bb5af7d9 100644
--- a/dapp/src/components/Header/ConnectWallet.tsx
+++ b/dapp/src/components/Header/ConnectWallet.tsx
@@ -2,7 +2,6 @@ import React from "react"
import { Button, HStack, Icon } from "@chakra-ui/react"
import { Account } from "@ledgerhq/wallet-api-client"
import { Bitcoin, Ethereum } from "../../static/icons"
-import { BITCOIN } from "../../constants"
import {
useRequestBitcoinAccount,
useRequestEthereumAccount,
@@ -47,7 +46,7 @@ export default function ConnectWallet() {
Balance
diff --git a/dapp/src/components/Overview/PositionDetails.tsx b/dapp/src/components/Overview/PositionDetails.tsx
index cfec44eb0..2e1baad57 100644
--- a/dapp/src/components/Overview/PositionDetails.tsx
+++ b/dapp/src/components/Overview/PositionDetails.tsx
@@ -9,7 +9,6 @@ import {
HStack,
CardProps,
} from "@chakra-ui/react"
-import { BITCOIN, USD } from "../../constants"
import { Info } from "../../static/icons"
import { TokenBalance } from "../shared/TokenBalance"
import { TextMd } from "../shared/Typography"
@@ -27,12 +26,12 @@ export default function PositionDetails(props: CardProps) {
{
if (shouldBeFormatted)
return formatTokenAmount(amount ?? 0, currency.decimals, desiredDecimals)
diff --git a/dapp/src/constants/currency.ts b/dapp/src/constants/currency.ts
index feecf3127..c35c7c9c6 100644
--- a/dapp/src/constants/currency.ts
+++ b/dapp/src/constants/currency.ts
@@ -1,4 +1,4 @@
-import { Currency } from "../types"
+import { Currency, CurrencyType } from "../types"
export const BITCOIN: Currency = {
name: "Bitcoin",
@@ -23,3 +23,9 @@ export const CURRENCY_ID_BITCOIN =
export const CURRENCY_ID_ETHEREUM =
import.meta.env.VITE_USE_TESTNET === "true" ? "ethereum_goerli" : "ethereum"
+
+export const CURRENCIES_BY_TYPE: Record = {
+ bitcoin: BITCOIN,
+ ethereum: ETHEREUM,
+ usd: ETHEREUM,
+}
diff --git a/dapp/src/types/currency.ts b/dapp/src/types/currency.ts
index f5d8f5419..94090cdfd 100644
--- a/dapp/src/types/currency.ts
+++ b/dapp/src/types/currency.ts
@@ -3,3 +3,5 @@ export type Currency = {
symbol: string
decimals: number
}
+
+export type CurrencyType = "bitcoin" | "ethereum" | "usd"