You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(SWAPS3309): Replace noFee bridge api parameter with fee. (#6964)
## Explanation
Bridge API used to have a `noFee` parameter that was changed to `fee`
parameter. For some time api will support both, however to eventually
sunset a less flexible `noFee` parameter controller had to be changed.
## References
Associated bridge-api
[PR](consensys-vertical-apps/va-mmcx-bridge-api#610).
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Replaces `noFee` with numeric `fee` across request types, validators,
request formatting, and tests, and documents the breaking change.
>
> - **Breaking change**
> - Replace `noFee` flag with numeric `fee` in bridge API requests and
feature flag overrides.
> - **Core updates**
> - Types: Update `QuoteRequest` to use optional `fee?: number`
(`src/types.ts`).
> - Validation: Update `GenericQuoteRequestSchema` to accept `fee`
(`src/utils/validators.ts`).
> - Request formatting: Map `fee` into normalized query params; remove
`noFee` handling (`src/utils/fetch.ts`).
> - **Tests**
> - Update expectations and snapshots to use `fee` (e.g., URL query
`fee=0`) and feature flag overrides (`src/bridge-controller.test.ts`,
`src/utils/fetch.test.ts`).
> - **Docs**
> - Add changelog entry noting the breaking replacement
(`CHANGELOG.md`).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9afac58. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Bryan Fullam <[email protected]>
0 commit comments