Skip to content

Commit 8dd27f0

Browse files
authored
chore: update defi api url (#5769)
## Explanation <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> Updates the URL for the defi position API to use the production deployment, which was unavailable before. ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## Changelog <!-- THIS SECTION IS NO LONGER NEEDED. The process for updating changelogs has changed. Please consult the "Updating changelogs" section of the Contributing doc for more. --> ## 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 - [X] 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
1 parent cf5c9e0 commit 8dd27f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/assets-controllers/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- Bump `@metamask/controller-utils` to `^11.8.0` ([#5765](https://github.com/MetaMask/core/pull/5765))
13+
- Update `DEFI_POSITIONS_API_URL` to use the production endpoint ([#5769](https://github.com/MetaMask/core/pull/5769))
1314

1415
## [61.0.0]
1516

packages/assets-controllers/src/DeFiPositionsController/fetch-positions.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export type Balance = {
5656
};
5757

5858
// TODO: Update with prod API URL when available
59-
export const DEFI_POSITIONS_API_URL =
60-
'https://defiadapters.dev-api.cx.metamask.io';
59+
export const DEFI_POSITIONS_API_URL = 'https://defiadapters.api.cx.metamask.io';
6160

6261
/**
6362
* Builds a function that fetches DeFi positions for a given account address

0 commit comments

Comments
 (0)