Skip to content

Commit

Permalink
fix: update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Oct 15, 2024
1 parent 84c6fd6 commit a2ed459
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
"test": "vitest"
},
"dependencies": {
"@gearbox-protocol/sdk": "3.0.0-vfour.55",
"@gearbox-protocol/sdk": "3.0.0-vfour.58",
"node-pty": "^1.0.0",
"pino-pretty": "^11.2.2"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.670.0",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@flashbots/ethers-provider-bundle": "^1.0.0",
"@gearbox-protocol/eslint-config": "2.0.0-next.2",
"@gearbox-protocol/liquidator-v2-contracts": "^2.2.1",
"@gearbox-protocol/prettier-config": "2.0.0",
Expand Down
16 changes: 13 additions & 3 deletions src/services/liquidate/SingularFullLiquidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,19 @@ export default class SingularFullLiquidator extends SingularLiquidator<Singlular

constructor() {
super();
this.creditAccountService.sdk.router.addHook("foundBestClosePath", e =>
this.#bestClosePath.upsert(e.creditAccount, e),
);
this.creditAccountService.sdk.router.addHook("foundBestClosePath", e => {
this.#bestClosePath.upsert(e.creditAccount, e);
this.logger.debug(
{ account: e.creditAccount, ...e },
"found best close path",
);
});
// this.creditAccountService.sdk.router.addHook("foundPathOptions", e => {
// this.logger.debug(
// { account: e.creditAccount, ...e },
// "found path options",
// );
// });
}

public async makeLiquidatable(
Expand Down
13 changes: 4 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1568,11 +1568,6 @@
"@ethersproject/properties" "^5.7.0"
"@ethersproject/strings" "^5.7.0"

"@flashbots/ethers-provider-bundle@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@flashbots/ethers-provider-bundle/-/ethers-provider-bundle-1.0.0.tgz#555c6208c668d1818820143b067d38f2a63a8556"
integrity sha512-KXOSA2RFFq91KN7H6nskbBaV+yd3QKI9jj8r1CEsD00sXBV3uSoQ3wG6u7qkjxp2EfvWy31pynWfZZVoWyNQ3Q==

"@gearbox-protocol/[email protected]":
version "2.0.0-next.2"
resolved "https://registry.yarnpkg.com/@gearbox-protocol/eslint-config/-/eslint-config-2.0.0-next.2.tgz#c3595959714c7da4daea822138d61e82238f5a29"
Expand Down Expand Up @@ -1607,10 +1602,10 @@
humanize-duration-ts "^2.1.1"
zod "^3.22.2"

"@gearbox-protocol/[email protected].55":
version "3.0.0-vfour.55"
resolved "https://registry.yarnpkg.com/@gearbox-protocol/sdk/-/sdk-3.0.0-vfour.55.tgz#39afa00bbe6c0eb82165593ddaad1a0cf9d59706"
integrity sha512-VuPvHTPgrAaiSzc0l1ZFHPUeyX74qpJ1kDUpruhW/NOkL3dKkqqUzMvOceYyLjZLFMGabklZM5zuqrkyiTv9rQ==
"@gearbox-protocol/[email protected].58":
version "3.0.0-vfour.58"
resolved "https://registry.yarnpkg.com/@gearbox-protocol/sdk/-/sdk-3.0.0-vfour.58.tgz#cddc31c0fca601ade1b182ec9b178e23f8c82644"
integrity sha512-eOIOE1zjtXpkPTWGd75C7DKotib05YSYgb9gYvXfEqkKHtVggp+JTQKuxrTOAyby0RYIr9PVhBKZT7KC5UKrtw==
dependencies:
"@gearbox-protocol/sdk-gov" "^2.22.0"
"@redstone-finance/evm-connector" "^0.6.2"
Expand Down

0 comments on commit a2ed459

Please sign in to comment.