diff --git a/ui/ducks/bridge/bridge.ts b/ui/ducks/bridge/bridge.ts index ecc5ba5460a6..594fda1ff17d 100644 --- a/ui/ducks/bridge/bridge.ts +++ b/ui/ducks/bridge/bridge.ts @@ -34,7 +34,7 @@ const initialState: BridgeState = { fromTokenExchangeRate: null, toNativeExchangeRate: null, toTokenExchangeRate: null, - sortOrder: SortOrder.ADJUSTED_RETURN_DESC, + sortOrder: SortOrder.COST_ASC, selectedQuote: null, }; diff --git a/ui/ducks/bridge/selectors.test.ts b/ui/ducks/bridge/selectors.test.ts index 3ed9c7780869..9073e0f20ef6 100644 --- a/ui/ducks/bridge/selectors.test.ts +++ b/ui/ducks/bridge/selectors.test.ts @@ -776,7 +776,7 @@ describe('Bridge selectors', () => { it('should recommend 2nd cheapest quote if ETA exceeds 1 hour', () => { const state = createBridgeMockStore({ - bridgeSliceOverrides: { sortOrder: SortOrder.ADJUSTED_RETURN_DESC }, + bridgeSliceOverrides: { sortOrder: SortOrder.COST_ASC }, bridgeStateOverrides: { quotes: [ mockBridgeQuotesNativeErc20[1], diff --git a/ui/ducks/bridge/selectors.ts b/ui/ducks/bridge/selectors.ts index a8df1dc0664f..88f92a8c8236 100644 --- a/ui/ducks/bridge/selectors.ts +++ b/ui/ducks/bridge/selectors.ts @@ -271,13 +271,9 @@ const _getSortedQuotesWithMetadata = createDeepEqualSelector( (quote) => quote.estimatedProcessingTimeInSeconds, 'asc', ); - case SortOrder.ADJUSTED_RETURN_DESC: + case SortOrder.COST_ASC: default: - return orderBy( - quotesWithMetadata, - ({ adjustedReturn }) => adjustedReturn.fiat, - 'desc', - ); + return orderBy(quotesWithMetadata, ({ cost }) => cost.fiat, 'asc'); } }, ); diff --git a/ui/pages/bridge/quotes/bridge-quotes-modal.tsx b/ui/pages/bridge/quotes/bridge-quotes-modal.tsx index aba867c868e2..b3431dea554c 100644 --- a/ui/pages/bridge/quotes/bridge-quotes-modal.tsx +++ b/ui/pages/bridge/quotes/bridge-quotes-modal.tsx @@ -64,7 +64,7 @@ export const BridgeQuotesModal = ({ {/* HEADERS */} {[ - [SortOrder.ADJUSTED_RETURN_DESC, t('bridgeNetCost')], + [SortOrder.COST_ASC, t('bridgeNetCost')], [SortOrder.ETA_ASC, t('time')], ].map(([sortOrderOption, label]) => (