diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 1d653aac5..d8b7322d2 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,17 @@ # @convergence-rfq/cli +## 4.5.32 + +### Patch Changes + +- add additional mint address check for addJupiterTokens check + +## 4.5.31 + +### Patch Changes + +- add update base assets command + ## 4.5.30 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 941431e66..83d0dcf65 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@convergence-rfq/cli", "description": "Official Convergence CLI", - "version": "4.5.30", + "version": "4.5.32", "license": "MIT", "publishConfig": { "access": "public" diff --git a/packages/cli/src/actions.ts b/packages/cli/src/actions.ts index f696cb989..aec3c4446 100644 --- a/packages/cli/src/actions.ts +++ b/packages/cli/src/actions.ts @@ -507,11 +507,15 @@ export const addBaseAssetsFromJupiter = async (opts: Opts) => { // eslint-disable-next-line no-console console.log('Base assets:', baseAssets); const baseAssetsSymbols = baseAssets.map((b) => b.ticker); + const baseAssetAddresses = baseAssets.map((b) => b.address.toBase58()); const res = await fetch('https://token.jup.ag/all'); const jupTokens: JupTokenList[] = await res.json(); const jupTokensToAdd = jupTokens.filter( - (t) => !baseAssetsSymbols.includes(t.symbol) + (t) => + !baseAssetsSymbols.includes(t.symbol) && + !baseAssetAddresses.includes(t.address) ); + let baseAssetIndexToStart = Math.max(...baseAssets.map((b) => b.index)) + 1; // eslint-disable-next-line no-console console.log('last baseAssetIndex', baseAssetIndexToStart - 1);