Skip to content

Commit

Permalink
fix: yearn.fi
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Sep 3, 2023
1 parent e35df96 commit aa6b651
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contexts/useSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import performBatchedUpdates from '@yearn-finance/web-lib/utils/performBatchedUp
import type {TSettingsBase, TSettingsContext, TSettingsContextApp} from '@yearn-finance/web-lib/types/contexts';

const defaultSettings = {
yDaemonBaseURI: 'https://ydaemon.yearn.finance',
metaBaseURI: 'https://meta.yearn.finance',
apiBaseURI: 'https://api.yearn.finance'
yDaemonBaseURI: 'https://ydaemon.yearn.fi',
metaBaseURI: 'https://meta.yearn.fi',
apiBaseURI: 'https://api.yearn.fi'
};

const SettingsContext = createContext<TSettingsContext>({
Expand All @@ -26,9 +26,9 @@ export const SettingsContextApp = ({
baseOptions = defaultSettings
}: TSettingsContextApp): React.ReactElement => {
const [baseSettings, set_baseSettings] = useLocalStorage(
'yearnSettingsBase_0.0.1',
'yearnSettingsBase_0.0.2',
deepMerge(defaultSettings, baseOptions) as TSettingsBase,
{currentVersion: 1, shouldMigratePreviousVersion: true}
{currentVersion: 2, shouldMigratePreviousVersion: true}
);

/* 💙 - Yearn Finance *********************************************************************
Expand Down

0 comments on commit aa6b651

Please sign in to comment.