diff --git a/packages/ramps-controller/CHANGELOG.md b/packages/ramps-controller/CHANGELOG.md index c11179a8c36..b7ba1ae1f3e 100644 --- a/packages/ramps-controller/CHANGELOG.md +++ b/packages/ramps-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- `RampsService` routes `RampsEnvironment.Development` to the dev-api hosts (`https://on-ramp.dev-api.cx.metamask.io` and `https://on-ramp-cache.dev-api.cx.metamask.io` for regions cache) instead of UAT; staging and production URLs are unchanged ([#8574](https://github.com/MetaMask/core/pull/8574)) + ## [13.2.0] ### Changed diff --git a/packages/ramps-controller/src/RampsService.test.ts b/packages/ramps-controller/src/RampsService.test.ts index 4f0fb4e78e3..75b41f04b5e 100644 --- a/packages/ramps-controller/src/RampsService.test.ts +++ b/packages/ramps-controller/src/RampsService.test.ts @@ -67,8 +67,8 @@ describe('RampsService', () => { expect(geolocationResponse).toBe('us-tx'); }); - it('uses staging URL when environment is Development', async () => { - nock('https://on-ramp.uat-api.cx.metamask.io') + it('uses development URL when environment is Development', async () => { + nock('https://on-ramp.dev-api.cx.metamask.io') .get('/geolocation') .query({ sdk: '2.1.6', @@ -423,8 +423,8 @@ describe('RampsService', () => { `); }); - it('uses staging cache URL when environment is Development', async () => { - nock('https://on-ramp-cache.uat-api.cx.metamask.io') + it('uses development cache URL when environment is Development', async () => { + nock('https://on-ramp-cache.dev-api.cx.metamask.io') .get('/v2/regions/countries') .query({ sdk: '2.1.6', diff --git a/packages/ramps-controller/src/RampsService.ts b/packages/ramps-controller/src/RampsService.ts index f7ef0ffee71..d4612e75c88 100644 --- a/packages/ramps-controller/src/RampsService.ts +++ b/packages/ramps-controller/src/RampsService.ts @@ -726,8 +726,9 @@ function getBaseUrl( case RampsEnvironment.Production: return `https://on-ramp${cache}.api.cx.metamask.io`; case RampsEnvironment.Staging: - case RampsEnvironment.Development: return `https://on-ramp${cache}.uat-api.cx.metamask.io`; + case RampsEnvironment.Development: + return `https://on-ramp${cache}.dev-api.cx.metamask.io`; case RampsEnvironment.Local: return 'http://localhost:3000'; default: