Skip to content

Commit f29e0dd

Browse files
authored
ui: tighten swap types (#2015)
1 parent c376b72 commit f29e0dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/src/driftClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ import { calculateMarketMaxAvailableInsurance } from './math/market';
172172
import { fetchUserStatsAccount } from './accounts/fetch';
173173
import { castNumberToSpotPrecision } from './math/spotMarket';
174174
import { JupiterClient, QuoteResponse } from './jupiter/jupiterClient';
175-
import { SwapMode } from './swap/UnifiedSwapClient';
175+
import { SwapMode, UnifiedQuoteResponse } from './swap/UnifiedSwapClient';
176176
import { getNonIdleUserFilter } from './memcmp';
177177
import { UserStatsSubscriptionConfig } from './userStatsConfig';
178178
import { getMarinadeDepositIx, getMarinadeFinanceProgram } from './marinade';
@@ -5811,7 +5811,7 @@ export class DriftClient {
58115811
v6?: {
58125812
quote?: QuoteResponse;
58135813
};
5814-
quote?: QuoteResponse;
5814+
quote?: UnifiedQuoteResponse;
58155815
}): Promise<TransactionSignature> {
58165816
// Handle backward compatibility: use jupiterClient if swapClient is not provided
58175817
const clientToUse = swapClient || jupiterClient;
@@ -5865,7 +5865,7 @@ export class DriftClient {
58655865
amount,
58665866
slippageBps,
58675867
swapMode,
5868-
quote: quoteToUse,
5868+
quote: quoteToUse as QuoteResponse,
58695869
reduceOnly,
58705870
onlyDirectRoutes,
58715871
});
@@ -6315,7 +6315,7 @@ export class DriftClient {
63156315
swapMode?: SwapMode;
63166316
onlyDirectRoutes?: boolean;
63176317
reduceOnly?: SwapReduceOnly;
6318-
quote?: QuoteResponse;
6318+
quote?: UnifiedQuoteResponse;
63196319
v6?: {
63206320
quote?: QuoteResponse;
63216321
};

0 commit comments

Comments
 (0)