Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/subscription-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]

### Changed

- **BREAKING:** Remove `builderCode` from `PerpsBenefitUsage` and from benefits-response validation. The Perps benefits payload no longer includes it, and requiring the field rejected otherwise valid responses. ([#10995](https://github.com/MetaMask/core/pull/10995))

## [14.0.2]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ const MOCK_BENEFITS_RESPONSE: SubscriptionBenefitsResponse = {
},
perps: {
builderFeeBips: '0',
builderCode: '<builder-code>',
capMicroUsd: 1_500_000_000,
consumedMicroUsd: 500_000_000,
remainingMicroUsd: 1_000_000_000,
Expand All @@ -279,7 +278,6 @@ const MOCK_INELIGIBLE_BENEFITS_RESPONSE: SubscriptionBenefitsResponse = {
},
perps: {
builderFeeBips: null,
builderCode: null,
remainingMicroUsd: null,
exhausted: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ const SwapsBenefitUsageStruct = type({

const PerpsBenefitUsageStruct = type({
builderFeeBips: nullable(string()),
builderCode: nullable(string()),
capMicroUsd: optional(number()),
consumedMicroUsd: optional(number()),
remainingMicroUsd: nullable(number()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const MOCK_BENEFITS_RESPONSE: SubscriptionBenefitsResponse = {
},
perps: {
builderFeeBips: '0',
builderCode: '<builder-code>',
capMicroUsd: 1_500_000_000,
consumedMicroUsd: 500_000_000,
remainingMicroUsd: 1_000_000_000,
Expand All @@ -112,7 +111,6 @@ const MOCK_INELIGIBLE_BENEFITS_RESPONSE: SubscriptionBenefitsResponse = {
},
perps: {
builderFeeBips: null,
builderCode: null,
remainingMicroUsd: null,
exhausted: false,
},
Expand Down
1 change: 0 additions & 1 deletion packages/subscription-controller/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ export type SwapsBenefitUsage = {

export type PerpsBenefitUsage = {
builderFeeBips: string | null;
builderCode: string | null;
capMicroUsd?: number;
consumedMicroUsd?: number;
remainingMicroUsd: number | null;
Expand Down
Loading