Skip to content
Open
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/bridge-status-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump `@metamask/accounts-controller` from `^39.0.6` to `^39.0.7` ([#9791](https://github.com/MetaMask/core/pull/9791))
- Bump `@metamask/keyring-controller` from `^27.1.0` to `^27.1.1` ([#9791](https://github.com/MetaMask/core/pull/9791))

### Fixed

- Include quote's `slippage` value in post-submission MixPanel event properties ([#9786](https://github.com/MetaMask/core/pull/9786))

## [75.0.0]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4819,6 +4819,7 @@ exports[`BridgeStatusController submitTx: EVM swap should use quote txFee when g
"gasIncluded7702": false,
"minDestTokenAmount": "941000000000000",
"requestId": "197c402f-cb96-4096-9f8c-54aed84ca776",
"slippage": 0.01,
"srcAsset": {
"address": "0x0000000000000000000000000000000000000000",
"assetId": "eip155:42161/slip44:60",
Expand Down Expand Up @@ -4873,7 +4874,7 @@ exports[`BridgeStatusController submitTx: EVM swap should use quote txFee when g
],
},
"quoteId": undefined,
"slippagePercentage": 0,
"slippagePercentage": 0.01,
"startTime": 1234567890,
"status": {
"srcChain": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4396,6 +4396,7 @@ describe('BridgeStatusController', () => {
...quoteWithoutApproval,
quote: {
...quoteWithoutApproval.quote,
slippage: 0.01,
gasIncluded: true,
gasIncluded7702: false,
feeData: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ export class BridgeStatusController extends StaticIntervalPollingController<Brid
quoteResponse: payload.quoteResponse,
accountAddress: params.selectedAccount.address,
isStxEnabled: params.isStxEnabled,
slippagePercentage: 0, // TODO include slippage provided by quote if using dynamic slippage, or slippage from quote request
slippagePercentage: payload.quoteResponse.quote.slippage ?? 0,
});
this.#reportSubmittedForNonEvmTx(
payload.historyKey,
Expand Down