From 5fff6ba3f7d7d4b0f8509bcc3279e873bbb94bec Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Thu, 15 Feb 2024 19:52:20 -0800 Subject: [PATCH] chore: disable isolated margin in testnet --- apps/trading/.env.testnet | 2 +- libs/environment/src/hooks/use-environment.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/trading/.env.testnet b/apps/trading/.env.testnet index 595bfad9f..491d12bb1 100644 --- a/apps/trading/.env.testnet +++ b/apps/trading/.env.testnet @@ -22,7 +22,7 @@ NX_WALLETCONNECT_PROJECT_ID=fe8091dc35738863e509fc4947525c72 # Cosmic elevator flags NX_SUCCESSOR_MARKETS=true NX_STOP_ORDERS=true -NX_ISOLATED_MARGIN=true +NX_ISOLATED_MARGIN=false NX_ICEBERG_ORDERS=true NX_METAMASK_SNAPS=true NX_REFERRALS=true diff --git a/libs/environment/src/hooks/use-environment.ts b/libs/environment/src/hooks/use-environment.ts index e79b7b779..accd6e380 100644 --- a/libs/environment/src/hooks/use-environment.ts +++ b/libs/environment/src/hooks/use-environment.ts @@ -373,7 +373,10 @@ export const compileFeatureFlags = (refresh = false): FeatureFlags => { windowOrDefault('NX_STOP_ORDERS', process.env['NX_STOP_ORDERS']) as string ), ISOLATED_MARGIN: TRUTHY.includes( - windowOrDefault('NX_STOP_ORDERS', process.env['NX_STOP_ORDERS']) as string + windowOrDefault( + 'NX_ISOLATED_MARGIN', + process.env['NX_ISOLATED_MARGIN'] + ) as string ), SUCCESSOR_MARKETS: TRUTHY.includes( windowOrDefault(