Skip to content

Commit

Permalink
Merge branch 'develop' into chore/bump-base-controller-version
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat authored Sep 11, 2024
2 parents f4e0387 + 54c85e8 commit b53d4f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion shared/constants/gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export enum EditGasModes {
export enum NetworkCongestionThresholds {
notBusy = 0,
stable = 0.33,
busy = 0.66,
busy = 0.9,
}

export type TxGasFees = {
Expand Down
6 changes: 3 additions & 3 deletions ui/ducks/metamask/metamask.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ describe('MetaMask Reducers', () => {
metamask: {
gasFeeEstimatesByChainId: {
'0x1': {
gasFeeEstimates: { networkCongestion: 0.67 },
gasFeeEstimates: { networkCongestion: 0.91 },
},
},
},
Expand All @@ -526,7 +526,7 @@ describe('MetaMask Reducers', () => {
metamask: {
gasFeeEstimatesByChainId: {
'0x1': {
gasFeeEstimates: { networkCongestion: 0.66 },
gasFeeEstimates: { networkCongestion: 0.9 },
},
},
},
Expand All @@ -543,7 +543,7 @@ describe('MetaMask Reducers', () => {
metamask: {
gasFeeEstimatesByChainId: {
'0x1': {
gasFeeEstimates: { networkCongestion: 0.65 },
gasFeeEstimates: { networkCongestion: 0.89 },
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ describe('StatusSlider', () => {
expect(getByText('Stable')).toBeInTheDocument();
});

it('should show "Busy" when networkCongestion is 0.66', () => {
const { getByText } = renderComponent({ networkCongestion: 0.66 });
it('should show "Busy" when networkCongestion is 0.9', () => {
const { getByText } = renderComponent({ networkCongestion: 0.9 });
expect(getByText('Busy')).toBeInTheDocument();
});

it('should show "Busy" when networkCongestion is greater than 0.66', () => {
const { getByText } = renderComponent({ networkCongestion: 0.67 });
it('should show "Busy" when networkCongestion is greater than 0.9', () => {
const { getByText } = renderComponent({ networkCongestion: 0.91 });
expect(getByText('Busy')).toBeInTheDocument();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ describe('GasDetailsItem', () => {
high: {
suggestedMaxPriorityFeePerGas: '1',
},
networkCongestion: 0.7,
networkCongestion: 0.91,
},
},
},
Expand Down

0 comments on commit b53d4f5

Please sign in to comment.