MCPcopy
hub / github.com/Uniswap/interface / useLocalCurrencyConversionRate

Function useLocalCurrencyConversionRate

src/graphql/data/ConversionRate.ts:18–29  ·  view source on GitHub ↗
(localCurrency: SupportedLocalCurrency, skip?: boolean)

Source from the content-addressed store, hash-verified

16`
17
18export function useLocalCurrencyConversionRate(localCurrency: SupportedLocalCurrency, skip?: boolean) {
19 const { data, loading } = useConvertQuery({
20 variables: { toCurrency: localCurrency },
21 fetchPolicy: getFetchPolicyForKey(`convert-${localCurrency}`, ms('5m')),
22 skip,
23 })
24
25 return {
26 data: data?.convert?.value,
27 isLoading: loading,
28 }
29}

Callers 1

useFormatterFunction · 0.90

Calls 1

getFetchPolicyForKeyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…