Skip to content

Commit

Permalink
fix(new-market-filter): remove isolated filter (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed Jun 18, 2024
1 parent c17e91e commit 2c51089
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/views/forms/NewMarketForm/NewMarketSelectionStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AlertType } from '@/constants/alerts';
import { ButtonAction, ButtonSize, ButtonType } from '@/constants/buttons';
import { DialogTypes } from '@/constants/dialogs';
import { STRING_KEYS } from '@/constants/localization';
import { isDev, isMainnet } from '@/constants/networks';
import { isMainnet } from '@/constants/networks';
import { TOKEN_DECIMALS } from '@/constants/numbers';
import {
NUM_ORACLES_TO_QUALIFY_AS_SAFE,
Expand Down Expand Up @@ -113,9 +113,8 @@ export const NewMarketSelectionStep = ({
return false;
}

// Disable Isolated markets if the user is not on Staging or Local deployment
if (marketType === 'PERPETUAL_MARKET_TYPE_ISOLATED') {
return isDev && exchangeConfigJson.length > 0;
return exchangeConfigJson.length > 0;
}

if (exchangeConfigJson.length >= NUM_ORACLES_TO_QUALIFY_AS_SAFE) {
Expand Down

0 comments on commit 2c51089

Please sign in to comment.