Skip to content

Commit

Permalink
use the latest common sdk, fix build error (router doesn't support TE)
Browse files Browse the repository at this point in the history
  • Loading branch information
yugure-orca committed May 21, 2024
1 parent 74801f7 commit 1655526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@orca-so/common-sdk": "0.6.0-alpha.1",
"@orca-so/common-sdk": "0.6.0-alpha.2",
"@solana/spl-token": "^0.4.1",
"@solana/spl-token-group": "^0.0.1",
"@solana/spl-token-metadata": "^0.1.2",
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/router/batch-swap-quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "../network/public/fetcher";
import { SwapQuoteParam } from "../quotes/public";
import { PoolUtil, SwapDirection, SwapUtils } from "../utils/public";
import { NO_TOKEN_EXTENSION_CONTEXT } from "../utils/public/token-extension-util";

export interface SwapQuoteRequest {
whirlpool: Address;
Expand Down Expand Up @@ -60,6 +61,7 @@ export async function batchBuildSwapQuoteParams(
sqrtPriceLimit: SwapUtils.getDefaultSqrtPriceLimit(aToB),
otherAmountThreshold: SwapUtils.getDefaultOtherAmountThreshold(amountSpecifiedIsInput),
tickArrays: tickArrays[index],
tokenExtensionCtx: NO_TOKEN_EXTENSION_CONTEXT, // WhirlpoolRouter does not support token extensions
};
});
}

0 comments on commit 1655526

Please sign in to comment.