Skip to content

fix: fetch quotes when dest asset is native #30749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 5, 2025
Merged
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
2 changes: 2 additions & 0 deletions ui/ducks/bridge/bridge.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
import { type Hex, type CaipChainId } from '@metamask/utils';
import { zeroAddress } from 'ethereumjs-util';
import {
type BridgeToken,
ChainId,
Expand Down Expand Up @@ -94,6 +95,7 @@ const bridgeSlice = createSlice({
balance: payload.balance ?? '0',
string: payload.string ?? '0',
chainId: formatChainIdToCaip(payload.chainId),
address: payload.address || zeroAddress(),
};
} else {
state.toToken = payload;
Expand Down
5 changes: 0 additions & 5 deletions ui/ducks/bridge/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ export const getTokenExchangeRate = async (request: {
tokenAddress,
);
if (chainId === MultichainNetworks.SOLANA) {
console.log(
'=====getTokenExchangeRate solana',
exchangeRates,
tokenAddress,
);
return exchangeRates?.[tokenAddress];
}
// The exchange rate can be checksummed or not, so we need to check both
Expand Down
Loading