Commit 02269e93 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

fix: handle usdc directly in useUSDCPrice (#1683)

parent 9822e68d
......@@ -37,6 +37,11 @@ export default function useUSDCPrice(currency?: Currency): Price<Currency, Token
)
}
// handle usdc
if (currency?.wrapped.equals(USDC)) {
return new Price(USDC, USDC, '1', '1')
}
// use v2 price if available, v3 as fallback
if (v2USDCTrade) {
const { numerator, denominator } = v2USDCTrade.route.midPrice
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment