Skip to content

Commit

Permalink
feat: Enable Compliance (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy authored Jun 6, 2024
1 parent 974fa53 commit 5ed1214
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions src/lib/abacus/stateNotification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import { updateNotifications } from '@/state/notifications';
import { setHistoricalFundings, setLiveTrades, setMarkets, setOrderbook } from '@/state/perpetuals';

import { isTruthy } from '../isTruthy';
import { testFlags } from '../testFlags';

class AbacusStateNotifier implements AbacusStateNotificationProtocol {
private store: RootStore | undefined;
Expand Down Expand Up @@ -143,11 +142,7 @@ class AbacusStateNotifier implements AbacusStateNotificationProtocol {
dispatch(setRestrictionType(updatedState.restriction));
}

if (
changes.has(Changes.compliance) &&
updatedState.compliance &&
testFlags.enableComplianceApi
) {
if (changes.has(Changes.compliance) && updatedState.compliance) {
dispatch(setCompliance(updatedState.compliance));
}

Expand Down
4 changes: 0 additions & 4 deletions src/lib/testFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ class TestFlags {
return !!this.queryParams.withnewmarkettype;
}

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

get enableStaking() {
return !!this.queryParams.staking;
}
Expand Down

0 comments on commit 5ed1214

Please sign in to comment.