@@ -101,6 +101,7 @@ import {
101101 POLYMARKET_PROVIDER_ID ,
102102} from '../providers/polymarket/constants' ;
103103import {
104+ DEFAULT_FEE_COLLECTION_FLAG ,
104105 DEFAULT_LIVE_SPORTS_FLAG ,
105106 DEFAULT_MARKET_HIGHLIGHTS_FLAG ,
106107} from '../constants/flags' ;
@@ -115,8 +116,7 @@ import {
115116 validatedVersionGatedFeatureFlag ,
116117} from '../../../../util/remoteFeatureFlag' ;
117118import { unwrapRemoteFeatureFlag } from '../utils/flags' ;
118- import { create } from '@metamask/superstruct' ;
119- import { PredictFeeCollectionSchema } from '../schemas' ;
119+ import { parse , PredictFeeCollectionSchema } from '../schemas' ;
120120
121121/**
122122 * State shape for PredictController
@@ -439,11 +439,12 @@ export class PredictController extends BaseController<
439439 ? rawMarketHighlightsFlag
440440 : DEFAULT_MARKET_HIGHLIGHTS_FLAG ;
441441
442- const feeCollection = create (
442+ const feeCollection = parse (
443443 unwrapRemoteFeatureFlag < PredictFeatureFlags [ 'feeCollection' ] > (
444444 flags . predictFeeCollection ,
445445 ) ,
446446 PredictFeeCollectionSchema ,
447+ DEFAULT_FEE_COLLECTION_FLAG ,
447448 ) ;
448449
449450 const fakOrdersEnabled =
0 commit comments