Skip to content

Commit 43de3ee

Browse files
authored
Merge pull request #543 from drift-labs/master
chunk pyth lazer majors
2 parents 74711d7 + 32c7fa1 commit 43de3ee

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"main": "lib/index.js",
66
"license": "Apache-2.0",
77
"dependencies": {
8-
"@drift-labs/jit-proxy": "0.21.61",
9-
"@drift-labs/sdk": "2.142.0-beta.23",
8+
"@drift-labs/jit-proxy": "0.21.63",
9+
"@drift-labs/sdk": "2.142.0-beta.25",
1010
"@drift/common": "file:./drift-common/common-ts",
1111
"@opentelemetry/api": "1.7.0",
1212
"@opentelemetry/auto-instrumentations-node": "^0.62.1",

src/bots/pythLazerCranker.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,12 @@ export class PythLazerCrankerBot implements Bot {
112112
if (!ids || ids.length === 0) {
113113
continue;
114114
}
115-
feedIdChunks.push({
116-
priceFeedIds: ids,
117-
channel: key as Channel,
118-
});
115+
for (const idChunk of chunks(ids, 11)) {
116+
feedIdChunks.push({
117+
priceFeedIds: idChunk,
118+
channel: key as Channel,
119+
});
120+
}
119121
}
120122
} else {
121123
feedIdChunks = chunks(

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,21 @@
112112
enabled "2.0.x"
113113
kuler "^2.0.0"
114114

115-
"@drift-labs/[email protected].61":
116-
version "0.21.61"
117-
resolved "https://registry.yarnpkg.com/@drift-labs/jit-proxy/-/jit-proxy-0.21.61.tgz#3ee9f1a878f7e60f494e29ab1d79b644bef9afe4"
118-
integrity sha512-g7i2QNd9qW3sJbbE8gtzxlgSnwsxPtO4fTDRfBkDIUZcES8qfoGtPilixgGVS5LtSQ2ncPXlDU8p3HmyxPD6bA==
115+
"@drift-labs/[email protected].63":
116+
version "0.21.63"
117+
resolved "https://registry.yarnpkg.com/@drift-labs/jit-proxy/-/jit-proxy-0.21.63.tgz#092c78903548f3ec7cd0550970b76aaf1f063942"
118+
integrity sha512-M5o/4RzZrmi7jYqdQ/9QdFZNyFe60iIzETJGHT9GkcXOhssHLwc0pimcpAbMa0gVD1WZA9phtLQs5vMqP3yglg==
119119
dependencies:
120120
"@coral-xyz/anchor" "0.29.0"
121-
"@drift-labs/sdk" "2.142.0-beta.23"
121+
"@drift-labs/sdk" "2.142.0-beta.25"
122122
"@solana/web3.js" "1.98.0"
123123
tweetnacl-util "^0.15.1"
124124
typescript "5.4.5"
125125

126-
"@drift-labs/[email protected].23":
127-
version "2.142.0-beta.23"
128-
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.142.0-beta.23.tgz#c1ac7411b68555f190a64694ce625d66e2cccfbc"
129-
integrity sha512-nGQI6l5e9rD1qTRGJZfofs+hAYINr5VPY0NQNvqVrQ3QOt0NXPWO2ZN2D3Yh1nBL5y4Owry0cfTAvdKIzxKEvw==
126+
"@drift-labs/[email protected].25":
127+
version "2.142.0-beta.25"
128+
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.142.0-beta.25.tgz#cefba6b6995fb16663e080f6531234dd5ec69390"
129+
integrity sha512-tOuShLP6tqngL6+MWKzvw13WLclzcS9YP6pKU7r84EIAa6OVNml+md+oW61CnIzZRAAH01+V5ao227IVTx2hUA==
130130
dependencies:
131131
"@coral-xyz/anchor" "0.29.0"
132132
"@coral-xyz/anchor-30" "npm:@coral-xyz/[email protected]"

0 commit comments

Comments
 (0)