@metamask-previews/perps-controller 24.1.0-preview-6e407861b → 24.1.0-preview-9726c3b7f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/PerpsController.js +1 -1
- package/dist/PerpsController.js.map +1 -1
- package/dist/constants/eventNames.d.ts +0 -6
- package/dist/constants/eventNames.d.ts.map +1 -1
- package/dist/constants/eventNames.js +0 -13
- package/dist/constants/eventNames.js.map +1 -1
- package/dist/constants/hyperLiquidConfig.d.ts +1 -2
- package/dist/constants/hyperLiquidConfig.d.ts.map +1 -1
- package/dist/constants/hyperLiquidConfig.js +1 -2
- package/dist/constants/hyperLiquidConfig.js.map +1 -1
- package/dist/constants/performanceMetrics.d.ts +2 -14
- package/dist/constants/performanceMetrics.d.ts.map +1 -1
- package/dist/constants/performanceMetrics.js +1 -17
- package/dist/constants/performanceMetrics.js.map +1 -1
- package/dist/providers/LighterProvider.d.ts +3 -3
- package/dist/providers/LighterProvider.js +3 -3
- package/dist/providers/LighterProvider.js.map +1 -1
- package/dist/services/TradingService.js +11 -9
- package/dist/services/TradingService.js.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/perpsFormatters.d.ts +5 -4
- package/dist/utils/perpsFormatters.d.ts.map +1 -1
- package/dist/utils/perpsFormatters.js +6 -5
- package/dist/utils/perpsFormatters.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Correct Perps code comments and the published traces doc where they no longer matched the code: the `PRICE_RANGES_UNIVERSAL` examples and the `PRICE_THRESHOLD.VERY_SMALL` note now describe the sub-floor `<$0` output instead of promising `$0.000001`, the Lighter `getOrderCapabilities` doc lists the margin modes and strategies it returns, the initialization retry backoff reads `1s, 2s`, `AccountState.totalBalance` names `marginSummary.accountValue`, and the traces doc no longer lists the removed names below ([#11604](https://github.com/MetaMask/core/pull/11604))
|
|
13
|
+
|
|
14
|
+
### Removed
|
|
15
|
+
|
|
16
|
+
- **BREAKING:** Remove the unused `PERPS_EVENT_PROPERTY.AB_TEST_BUTTON_COLOR` property, the `PERPS_EVENT_VALUE.AB_TEST` values, the `perps.screen.*` and `perps.ui.*` members of `PerpsMeasurementName`, and the `PerpsTraceOperations.MarketData` operation. No Core code imports them, and no checked-in Mobile or Extension source imports them ([#11604](https://github.com/MetaMask/core/pull/11604))
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Send the `add_margin` and `remove_margin` Risk Management actions through `PERPS_EVENT_VALUE` constants instead of string literals ([#11608](https://github.com/MetaMask/core/pull/11608))
|
|
21
|
+
|
|
10
22
|
## [24.1.0]
|
|
11
23
|
|
|
12
24
|
### Added
|
package/dist/PerpsController.js
CHANGED
|
@@ -1835,7 +1835,7 @@ export class PerpsController extends BaseController {
|
|
|
1835
1835
|
}, CONNECTION_ERROR_TAGS));
|
|
1836
1836
|
// If not the last attempt, wait before retrying (exponential backoff)
|
|
1837
1837
|
if (attempt < maxAttempts) {
|
|
1838
|
-
const delay = baseDelay * Math.pow(2, attempt - 1); // 1s, 2s
|
|
1838
|
+
const delay = baseDelay * Math.pow(2, attempt - 1); // 1s, 2s
|
|
1839
1839
|
this.#debugLog(`PerpsController: Retrying initialization in ${delay}ms`, {
|
|
1840
1840
|
attempt,
|
|
1841
1841
|
maxAttempts,
|