File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed
src/services/liquidate/partial Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 2929 "@gearbox-protocol/liquidator-v2-contracts" : " ^2.4.0" ,
3030 "@gearbox-protocol/next-contracts" : " npm:@gearbox-protocol/liquidator-v2-contracts@2.5.0-next.1" ,
3131 "@gearbox-protocol/prettier-config" : " 2.1.0" ,
32- "@gearbox-protocol/sdk" : " 3.0.1-next.4 " ,
32+ "@gearbox-protocol/sdk" : " 3.0.1-next.6 " ,
3333 "@gearbox-protocol/types" : " ^1.14.6" ,
3434 "@types/node" : " ^22.14.1" ,
3535 "@uniswap/sdk-core" : " ^7.7.2" ,
Original file line number Diff line number Diff line change 11import type { GearboxSDK } from "@gearbox-protocol/sdk" ;
2+ import { AP_ROUTER } from "@gearbox-protocol/sdk" ;
23import type { Address } from "viem" ;
34
45import type {
@@ -32,12 +33,23 @@ export function createPartialLiquidators(
3233 const uniqueContracts : Record < string , IPartialLiquidatorContract > = { } ;
3334 const result : Record < Address , IPartialLiquidatorContract > = { } ;
3435
36+ const routerV300 = sdk . addressProvider . getLatestInRange (
37+ AP_ROUTER ,
38+ [ 300 , 309 ] ,
39+ ) ;
40+ const routerV310 = sdk . addressProvider . getLatestInRange (
41+ AP_ROUTER ,
42+ [ 310 , 319 ] ,
43+ ) ;
44+
3545 sdk . logger ?. debug (
46+ { routerV300, routerV310 } ,
3647 `creating partial liquidator contracts for ${ sdk . marketRegister . creditManagers . length } credit managers` ,
3748 ) ;
3849 for ( const cm of sdk . marketRegister . creditManagers ) {
50+ const symbol = cm . sdk . tokensMeta . symbol ( cm . underlying ) ;
3951 sdk . logger ?. debug (
40- `creating partial liquidator contract for ${ cm . creditManager . name } ` ,
52+ `creating partial liquidator contract for ${ cm . creditManager . name } with underlying ${ symbol } ` ,
4153 ) ;
4254 let liquidatorForCM : IPartialLiquidatorContract | undefined ;
4355
Original file line number Diff line number Diff line change @@ -1612,7 +1612,7 @@ __metadata:
16121612 " @gearbox-protocol/liquidator-v2-contracts " : " npm:^2.4.0"
16131613 " @gearbox-protocol/next-contracts " : " npm:@gearbox-protocol/liquidator-v2-contracts@2.5.0-next.1"
16141614 " @gearbox-protocol/prettier-config " : " npm:2.1.0"
1615- " @gearbox-protocol/sdk " : " npm:3.0.1-next.4 "
1615+ " @gearbox-protocol/sdk " : " npm:3.0.1-next.6 "
16161616 " @gearbox-protocol/types " : " npm:^1.14.6"
16171617 " @types/node " : " npm:^22.14.1"
16181618 " @uniswap/sdk-core " : " npm:^7.7.2"
@@ -1657,9 +1657,9 @@ __metadata:
16571657 languageName : node
16581658 linkType : hard
16591659
1660- " @gearbox-protocol/sdk@npm:3.0.1-next.4 " :
1661- version : 3.0.1-next.4
1662- resolution : " @gearbox-protocol/sdk@npm:3.0.1-next.4 "
1660+ " @gearbox-protocol/sdk@npm:3.0.1-next.6 " :
1661+ version : 3.0.1-next.6
1662+ resolution : " @gearbox-protocol/sdk@npm:3.0.1-next.6 "
16631663 dependencies :
16641664 " @redstone-finance/evm-connector " : " npm:^0.7.3"
16651665 " @redstone-finance/protocol " : " npm:^0.7.3"
@@ -1670,7 +1670,7 @@ __metadata:
16701670 zod : " npm:^3.24.2"
16711671 peerDependencies :
16721672 axios : ^1.0.0
1673- checksum : 10c0/5a8b1a3f2666fec0fed17a0d0c891fd422692fa5ff395fd820a59bd2e57a5ae67a1962eff13313ce907e960f200a29416da2f0f419192cbe5b5207497181ebab
1673+ checksum : 10c0/2faf26aa484b002e1edf8424af6df877484586cc2a35239c4d43da09a431140e03030de04c6475a2b156a34278934a1f271c59163b8e1cae6bd0804c1cd50642
16741674 languageName : node
16751675 linkType : hard
16761676
You can’t perform that action at this time.
0 commit comments