Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: Rename lifiApi to lifiExplorerUrl
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
  • Loading branch information
emreboga committed Sep 29, 2025
commit 5542839d7350833936fe45815f5bd0f685166a2d
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function buildConfig(
rpcs,
evmIndexers: customConfig.evmIndexers,
mayanApi: 'https://explorer-api.mayan.finance',
lifiApi: 'https://li.quest',
lifiExplorerUrl: 'https://li.quest',
wormholeApi: {
Mainnet: 'https://api.wormholescan.io/',
Testnet: 'https://api.testnet.wormholescan.io/',
Expand Down
2 changes: 1 addition & 1 deletion src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export interface InternalConfig<N extends Network> {
};

mayanApi: string;
lifiApi: string;
lifiExplorerUrl: string;
wormholeApi: string;
wormholeRpcHosts: string[];
coingecko?: {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTransactionHistoryLiFi.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const mockToken = {
// Mock dependencies
vi.mock('config', () => ({
default: {
lifiApi: 'https://li.quest',
lifiExplorerUrl: 'https://li.quest',
tokens: {
get: vi.fn(() => mockToken),
findBySymbol: vi.fn(() => mockToken),
Expand Down
9 changes: 3 additions & 6 deletions src/hooks/useTransactionHistoryLiFi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ const useTransactionHistoryLiFi = (
(tx: LiFiTransaction): Transaction | undefined => {
const { sending, receiving, fromAddress, toAddress, status } = tx;

// Use LiFi chain IDs directly (they use standard EVM chain IDs)

const fromChain = lifiChainIdToChain(sending.chainId as LifiChainId);
const toChain = receiving
? lifiChainIdToChain(receiving.chainId as LifiChainId)
Expand Down Expand Up @@ -122,13 +120,12 @@ const useTransactionHistoryLiFi = (

// Skip if we can't identify the tokens
if (!fromToken || !toToken) {
// Skip transactions with unrecognized tokens
return undefined;
}

// Parse amounts
let sentAmount;
let receivedAmount;
let sentAmount: sdkAmount.Amount;
let receivedAmount: sdkAmount.Amount | undefined;

try {
sentAmount = sdkAmount.fromBaseUnits(
Expand Down Expand Up @@ -224,7 +221,7 @@ const useTransactionHistoryLiFi = (
});

const res = await fetch(
`${config.lifiApi}/v1/analytics/transfers?${params}`,
`${config.lifiExplorerUrl}/v1/analytics/transfers?${params}`,
);

// Check for various HTTP error conditions
Expand Down