Skip to content

Commit

Permalink
fix: eth price showing 0 on sepolia network (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 authored Sep 15, 2023
1 parent 30383ba commit e3b4bd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/nextjs/utils/scaffold-eth/fetchPriceFromUniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const ABI = parseAbi([

export const fetchPriceFromUniswap = async (): Promise<number> => {
const configuredNetwork = getTargetNetwork();
if (configuredNetwork.nativeCurrency.symbol !== "ETH" && !configuredNetwork.nativeCurrencyTokenAddress) {
if (
configuredNetwork.nativeCurrency.symbol !== "ETH" &&
configuredNetwork.nativeCurrency.symbol !== "SEP" &&
!configuredNetwork.nativeCurrencyTokenAddress
) {
return 0;
}
try {
Expand Down

0 comments on commit e3b4bd2

Please sign in to comment.