Skip to content

Commit

Permalink
Merge pull request #280 from convergence-rfq/fix-addjupbaseAssets
Browse files Browse the repository at this point in the history
Fix addjupbase assets
  • Loading branch information
Nagaprasadvr authored Mar 8, 2024
2 parents f54c8d2 + 1487313 commit 08ccdc5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @convergence-rfq/cli

## 6.2.1

### Patch Changes

- fix addJupBaseAssets command
- Updated dependencies
- @convergence-rfq/sdk@6.2.1

## 6.2.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/cli",
"description": "Official Convergence CLI",
"version": "6.2.0",
"version": "6.2.1",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -47,7 +47,7 @@
"cli": "ts-node src/index.ts"
},
"dependencies": {
"@convergence-rfq/sdk": "6.2.0",
"@convergence-rfq/sdk": "6.2.1",
"@solana/web3.js": "^1.87.6",
"@types/cookie": "^0.5.1",
"commander": "^10.0.0"
Expand Down
7 changes: 6 additions & 1 deletion packages/cli/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,12 @@ export const addBaseAssetsFromJupiter = async (opts: Opts) => {
!registerMintAddresses.includes(t.address.toString())
);

let baseAssetIndexToStart = Math.max(...baseAssets.map((b) => b.index)) + 1;
let baseAssetIndexToStart;
if (baseAssets?.length > 0) {
baseAssetIndexToStart = Math.max(...baseAssets.map((b) => b.index)) + 1;
} else {
baseAssetIndexToStart = 0;
}
// eslint-disable-next-line no-console
console.log('last baseAssetIndex', baseAssetIndexToStart - 1);
for (const token of jupTokensToAdd) {
Expand Down
6 changes: 6 additions & 0 deletions packages/js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @convergence-rfq/sdk

## 6.2.1

### Patch Changes

- fix addJupBaseAssets command

## 6.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/sdk",
"description": "Official Convergence RFQ SDK",
"version": "6.2.0",
"version": "6.2.1",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 08ccdc5

Please sign in to comment.