(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[6296],{856296(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{FS:()=>d,IX:()=>n,LH:()=>c,MB:()=>t,Mf:()=>u,QP:()=>s,Yk:()=>r,d$:()=>D,dt:()=>e,eg:()=>a,f3:()=>o,fl:()=>M,vT:()=>i,x$:()=>p,x3:()=>l});let e={FeatureFlagKey:"perpsEnabled",FeatureName:"perps",PerpsBalanceTokenDescription:"perps-balance",PerpsBalanceTokenSymbol:"USD",WebsocketTimeout:5e3,WebsocketCleanupDelay:1e3,BackgroundDisconnectDelay:2e4,ConnectionTimeoutMs:1e4,DefaultMonitoringTimeoutMs:1e4,ConnectionGracePeriodMs:2e4,ConnectionAttemptTimeoutMs:3e4,WebsocketPingTimeoutMs:5e3,ConnectRetryDelayMs:200,ForegroundPingRetryDelayMs:500,ReconnectionCleanupDelayMs:500,ReconnectionDelayAndroidMs:300,ReconnectionDelayIosMs:100,ReconnectionRetryDelayMs:5e3,NetworkRestoreMaxRetries:8,NetworkRestoreRetryBaseMs:1500,BalanceUpdateThrottleMs:15e3,InitialDataDelayMs:100,PlaceOrderTimeoutMs:6e4,DepositTakingLongerToastDelayMs:3e4,DefaultAssetPreviewLimit:5,DefaultMaxLeverage:3,FallbackPriceDisplay:"$---",FallbackPercentageDisplay:"--%",FallbackDataDisplay:"--",ZeroAmountDisplay:"$0",ZeroAmountDetailedDisplay:"$0.00",RecentActivityLimit:3,FillsLookbackMs:90*24*60*60*1e3};let t={DefaultMinAmount:"1.01",DefaultFeeAmount:1,DefaultFeeToken:"USDC"};let a={DefaultMarketSlippageBps:300,DefaultTpslSlippageBps:1e3,DefaultLimitSlippageBps:100};let i={MinBps:10,MaxBps:1e3,StepBps:10};let n={PriceUpdateDebounceMs:1e3,ValidationDebounceMs:300,LiquidationPriceDebounceMs:500,CandleConnectDebounceMs:500,SlippageEstimateThrottleMs:250,SlippageEstimateBookLevels:10,CandleTeardownDelayMs:150,PerpsRestCoalesceTtlMs:6e4,PerpsCandleCoalesceTtlMs:3e4,NavigationParamsDelayMs:200,TabControlResetDelayMs:500,MarketDataCacheDurationMs:5*60*1e3,AssetMetadataCacheDurationMs:60*60*1e3,MaxLeverageCacheDurationMs:60*60*1e3,FeeDiscountCacheDurationMs:5*60*1e3,PointsCalculationCacheDurationMs:5*60*1e3,LoggingMarkers:{SentryPerformance:"PERPSMARK_SENTRY",MetametricsEvents:"PERPSMARK_METRICS",WebsocketPerformance:"PERPSMARK_SENTRY_WS"}};let s={UsePositionBoundTpsl:!0};let l={MarketOrderLimits:{HighLeverage:15e6,MediumHighLeverage:5e6,MediumLeverage:2e6,LowLeverage:5e5},LimitOrderMultiplier:10};let o={OrdersEndpoint:"https://perps.api.cx.metamask.io/api/v1/orders"};let r={MaxPriceDecimals:6,MaxSignificantFigures:5,FallbackSizeDecimals:6};let c={DefaultSortOptionId:"volume",DefaultDirection:"desc",SortFields:{Volume:"volume",PriceChange:"priceChange",OpenInterest:"openInterest",FundingRate:"fundingRate"},SortButtonPresets:[{field:"volume",labelKey:"perps.sort.volume"},{field:"priceChange",labelKey:"perps.sort.price_change"},{field:"fundingRate",labelKey:"perps.sort.funding_rate"}],SortOptions:[{id:"volume",labelKey:"perps.sort.volume",field:"volume",direction:"desc"},{id:"priceChange",labelKey:"perps.sort.price_change",field:"priceChange",direction:"desc"},{id:"openInterest",labelKey:"perps.sort.open_interest",field:"openInterest",direction:"desc"},{id:"fundingRate",labelKey:"perps.sort.funding_rate",field:"fundingRate",direction:"desc"}]};let p={DefaultProvider:"hyperliquid",MYX_TESTNET_ONLY:!1};let u="PERPS_DISK_CACHE_MARKETS";let M="PERPS_DISK_CACHE_USER_DATA_V2";let d=6e4;function D(e,t){let a=e==="myx"?p.MYX_TESTNET_ONLY||t:t;return`${e}:${a?"testnet":"mainnet"}`}}}).call(__webpack_require__._LM_("@metamask/perps-controller",{__webpack_exports__,__webpack_require__}))()}}]);