Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/lib/testFlags.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { isDev } from '@/constants/networks';

class TestFlags {
public queryParams: { [key: string]: string };

@@ -32,28 +34,20 @@ class TestFlags {
return this.queryParams.address;
}

get isolatedMargin() {
return !!this.queryParams.isolatedmargin;
}

get enableComplianceApi() {
return !!this.queryParams.complianceapi;
}

get enableVaults() {
return !!this.queryParams.vaults || import.meta.env.MODE === 'staging';
return !!this.queryParams.vaults || isDev;
}

get referrer() {
return this.queryParams.utm_source;
}

get enablePredictionMarketPerp() {
return !!this.queryParams.prediction || import.meta.env.MODE === 'staging';
return !!this.queryParams.prediction || isDev;
}

get pml() {
return !!this.queryParams.pml;
return !!this.queryParams.pml || isDev;
}

get showLimitClose() {
@@ -69,7 +63,7 @@ class TestFlags {
}

get uiRefresh() {
return !!this.queryParams.uirefresh;
return !!this.queryParams.uirefresh || isDev;
}
}

0 comments on commit 3b88a67

Please sign in to comment.