Skip to content

Commit

Permalink
refactor: Hardcode network
Browse files Browse the repository at this point in the history
  • Loading branch information
karelianpie authored and Majorfi committed Jun 12, 2023
1 parent 886f7ba commit bc0c17a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/ycrv/contexts/useYCRV.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {createContext, useContext, useMemo, useState} from 'react';
import {formatUnits} from 'viem';
import {useChainID} from '@yearn-finance/web-lib/hooks/useChainID';
import {LPYCRV_TOKEN_ADDRESS, STYCRV_TOKEN_ADDRESS} from '@yearn-finance/web-lib/utils/constants';
import {isZero} from '@yearn-finance/web-lib/utils/isZero';
import {useFetch} from '@common/hooks/useFetch';
Expand Down Expand Up @@ -41,8 +40,7 @@ const defaultProps = {
******************************************************************************/
const YCRVContext = createContext<TYCRVContext>(defaultProps);
export const YCRVContextApp = ({children}: {children: ReactElement}): ReactElement => {
const {safeChainID} = useChainID();
const {yDaemonBaseUri} = useYDaemonBaseURI({chainID: safeChainID});
const {yDaemonBaseUri} = useYDaemonBaseURI({chainID: 1});
const [slippage, set_slippage] = useState<number>(0.6);
const holdings = useHoldings();
const allowances = useAllowances();
Expand Down

1 comment on commit bc0c17a

@vercel
Copy link

@vercel vercel bot commented on bc0c17a Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.