Skip to content
Open
4 changes: 4 additions & 0 deletions packages/perps-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Preserve accepted HyperLiquid Scale orders when part of a batch is rejected ([#9989](https://github.com/MetaMask/core/pull/9989))

## [14.0.0]

### Added
Expand Down
10 changes: 10 additions & 0 deletions packages/perps-controller/src/constants/eventNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const PERPS_EVENT_PROPERTY = {
ORDER_SIZE: 'order_size',
MARGIN_USED: 'margin_used',
ORDER_TYPE: 'order_type', // lowercase per dashboard
SCALE_ORDER_COUNT: 'scale_order_count',
SCALE_RANGE_PCT: 'scale_range_pct',
SCALE_SKEW: 'scale_skew',
REDUCE_ONLY: 'reduce_only',
ORDER_TIMESTAMP: 'order_timestamp',
LIMIT_PRICE: 'limit_price',
FEES: 'fees',
Expand Down Expand Up @@ -478,6 +482,8 @@ export const PERPS_EVENT_VALUE = {
SLIPPAGE_CONFIG_OPENED: 'slippage_config_opened',
SLIPPAGE_CONFIG_CHANGED: 'slippage_config_changed',
SLIPPAGE_LIMIT_BLOCKED_ORDER: 'slippage_limit_blocked_order',
SCALE_CONFIG_CHANGED: 'scale_config_changed',
SCALE_VALIDATION_ERROR_SHOWN: 'scale_validation_error_shown',
// Auto Close TP/SL RoE sign toggle
TPSL_ROE_SIGN_TOGGLED: 'tpsl_roe_sign_toggled',
// Discovery analytics
Expand Down Expand Up @@ -587,6 +593,10 @@ export const PERPS_EVENT_VALUE = {
SETTING_TYPE: {
LEVERAGE: 'leverage',
SLIPPAGE: 'slippage',
SCALE_START_PRICE: 'start_price',
SCALE_END_PRICE: 'end_price',
SCALE_TOTAL_ORDERS: 'total_orders',
SCALE_SIZE_SKEW: 'size_skew',
},
SCREEN_NAME: {
CONNECTION_ERROR: 'connection_error',
Expand Down
1 change: 1 addition & 0 deletions packages/perps-controller/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export type {
TPSLTrackingData,
OrderParams,
OrderResult,
ScaleOrderChild,
ChaseOrder,
ChaseOrderMaxDistanceReached,
ChaseOrderStatus,
Expand Down
Loading