From d51fc753e86ce1465818c7737dd0edd24a828ff8 Mon Sep 17 00:00:00 2001 From: Amy Tsang Date: Thu, 14 Nov 2024 08:53:23 -0800 Subject: [PATCH] refactor: remove default tokens in usdRatesMapper --- apps/main/src/store/createUsdRatesSlice.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/main/src/store/createUsdRatesSlice.ts b/apps/main/src/store/createUsdRatesSlice.ts index a0e9fcfb8..16e1605c6 100644 --- a/apps/main/src/store/createUsdRatesSlice.ts +++ b/apps/main/src/store/createUsdRatesSlice.ts @@ -3,7 +3,6 @@ import type { State } from '@/store/useStore' import cloneDeep from 'lodash/cloneDeep' -import { NETWORK_TOKEN } from '@/constants' import curvejsApi from '@/lib/curvejs' type StateKey = keyof typeof DEFAULT_STATE @@ -30,10 +29,7 @@ export type UsdRatesSlice = { } const DEFAULT_STATE: SliceState = { - usdRatesMapper: { - [NETWORK_TOKEN]: 0, - crv: 0, - }, + usdRatesMapper: {}, loading: true, }