Skip to content

Commit

Permalink
Merge pull request #4136 from CrocSwap/remove-blast-exceptions-for-10…
Browse files Browse the repository at this point in the history
…0-tvl-threshold

remove blast exception for $100 TVL threshold for Top Pools
  • Loading branch information
benwolski authored Sep 17, 2024
2 parents ba77b49 + 283c545 commit 30b3b42
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/contexts/ExploreContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
useState,
} from 'react';
import { CachedDataContext } from './CachedDataContext';
import { ChainDataContext } from './ChainDataContext';
import { CrocEnv, toDisplayPrice } from '@crocswap-libs/sdk';
import { PoolIF } from '../ambient-utils/types';
import {
Expand Down Expand Up @@ -67,8 +66,6 @@ export const ExploreContext = createContext<ExploreContextIF>(
);

export const ExploreContextProvider = (props: { children: ReactNode }) => {
const { isActiveNetworkBlast } = useContext(ChainDataContext);

const {
cachedPoolStatsFetch,
cachedQuerySpotPrice,
Expand Down Expand Up @@ -221,10 +218,7 @@ export const ExploreContextProvider = (props: { children: ReactNode }) => {
? ydayPrice / nowPrice - 1.0
: nowPrice / ydayPrice - 1.0
: 0.0;
if (
!expandedPoolStatsNow ||
(!isActiveNetworkBlast && expandedPoolStatsNow.tvlTotalUsd < 100)
) {
if (!expandedPoolStatsNow || expandedPoolStatsNow.tvlTotalUsd < 100) {
// return early
const poolData: PoolDataIF = {
...pool,
Expand Down

0 comments on commit 30b3b42

Please sign in to comment.