diff --git a/package.json b/package.json index bb5522c..5b97c07 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "test": "vitest" }, "dependencies": { - "@gearbox-protocol/sdk": "3.0.0-vfour.137", + "@gearbox-protocol/sdk": "3.0.0-vfour.138", "node-pty": "^1.0.0", "pino-pretty": "^13.0.0" }, diff --git a/src/attachSDK.ts b/src/attachSDK.ts index 9c3710e..0fa4453 100644 --- a/src/attachSDK.ts +++ b/src/attachSDK.ts @@ -62,7 +62,9 @@ export default async function attachSDK(): Promise { // logger.debug({ tag: "timing" }, `new block ts: ${formatTs(block)}`); // }, // ); - const service = new CreditAccountsService(sdk); + const service = new CreditAccountsService(sdk, { + batchSize: config.batchSize, // TODO: technically, this is different batch size, needs to be changed + }); return service; } diff --git a/yarn.lock b/yarn.lock index 29b6e76..0de1033 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1601,10 +1601,10 @@ humanize-duration-ts "^2.1.1" zod "^3.22.2" -"@gearbox-protocol/sdk@3.0.0-vfour.137": - version "3.0.0-vfour.137" - resolved "https://registry.yarnpkg.com/@gearbox-protocol/sdk/-/sdk-3.0.0-vfour.137.tgz#2f896ec4c0b2a812d2688f25c8ea6feeaec2da97" - integrity sha512-GR7fKXdE8GKOBSuhLqYmyr7c/hrD2qeCZPoujO69A5AzgK8CxFHBbXqmntAJdz0y5QHz5934hOoc3g+y8n2iFA== +"@gearbox-protocol/sdk@3.0.0-vfour.138": + version "3.0.0-vfour.138" + resolved "https://registry.yarnpkg.com/@gearbox-protocol/sdk/-/sdk-3.0.0-vfour.138.tgz#7922df1871972375234769a0b5fd62dbf79b46c5" + integrity sha512-Zgj384N58e/oqwR1CXV7LDWBLcw+iU2i2CXuhABqpwVyS6mXhAYIqG4/u3S9QA+0onAeugnOl/dZ7oLvfYyeaw== dependencies: "@gearbox-protocol/sdk-gov" "^2.33.1" "@redstone-finance/evm-connector" "^0.7.3"