@@ -5768,15 +5768,15 @@ export class DriftClient {
57685768 * @param jupiterClient @deprecated Use swapClient instead. Legacy parameter for backward compatibility
57695769 * @param outMarketIndex the market index of the token you're buying
57705770 * @param inMarketIndex the market index of the token you're selling
5771- * @param outAssociatedTokenAccount the token account to receive the token being sold on titan or jupiter
5771+ * @param outAssociatedTokenAccount the token account to receive the token being sold on the swap provider
57725772 * @param inAssociatedTokenAccount the token account to
57735773 * @param amount the amount of TokenIn, regardless of swapMode
5774- * @param slippageBps the max slippage passed to titan or jupiter api
5775- * @param swapMode titan or jupiter swapMode (ExactIn or ExactOut), default is ExactIn
5776- * @param route the titan or jupiter route to use for the swap
5774+ * @param slippageBps the max slippage passed to the swap provider api
5775+ * @param swapMode swap provider swapMode (ExactIn or ExactOut), default is ExactIn
5776+ * @param route the swap provider route to use for the swap
57775777 * @param reduceOnly specify if In or Out token on the drift account must reduceOnly, checked at end of swap
5778- * @param v6 pass in the quote response from Jupiter quote's API (deprecated, use quote instead)
5779- * @param quote pass in the quote response from Jupiter quote's API
5778+ * @param v6 pass in the quote response from swap provider quote's API (deprecated, use quote instead)
5779+ * @param quote pass in the quote response from swap provider quote's API
57805780 * @param txParams
57815781 */
57825782 public async swap ( {
@@ -6059,7 +6059,7 @@ export class DriftClient {
60596059 }
60606060
60616061 if ( ! quote ) {
6062- throw new Error ( " Could not fetch Jupiter's quote. Please try again." ) ;
6062+ throw new Error ( ' Could not fetch swap quote. Please try again.' ) ;
60636063 }
60646064
60656065 const isExactOut = swapMode === 'ExactOut' || quote . swapMode === 'ExactOut' ;
@@ -8910,7 +8910,7 @@ export class DriftClient {
89108910 }
89118911
89128912 if ( ! quote ) {
8913- throw new Error ( " Could not fetch Jupiter's quote. Please try again." ) ;
8913+ throw new Error ( ' Could not fetch swap quote. Please try again.' ) ;
89148914 }
89158915
89168916 const amountIn = new BN ( quote . inAmount ) ;
0 commit comments