Skip to content
Draft
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/ramps-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

- `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
Expand Down
8 changes: 4 additions & 4 deletions packages/ramps-controller/src/RampsService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion packages/ramps-controller/src/RampsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading