File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { iPartialLiquidatorAbi } from "@gearbox-protocol/liquidator-v2-contracts/abi" ;
22import type { CreditAccountsService , CreditSuite } from "@gearbox-protocol/sdk" ;
3- import { ADDRESS_0X0 , AP_DEGEN_DISTRIBUTOR } from "@gearbox-protocol/sdk" ;
3+ import { ADDRESS_0X0 } from "@gearbox-protocol/sdk" ;
44import { iDegenDistributorV3Abi } from "@gearbox-protocol/types/abi" ;
55import type { Address } from "viem" ;
66
@@ -170,9 +170,10 @@ export default abstract class PartialLiquidatorContract {
170170 return ;
171171 }
172172
173+ // TODO: this assumes that there's only one degen distributor
173174 const distributor =
174- this . creditAccountService . sdk . addressProvider . getLatestVersion (
175- AP_DEGEN_DISTRIBUTOR ,
175+ await this . creditAccountService . sdk . marketRegister . marketConfigurators [ 0 ] . getPeripheryContract (
176+ "DEGEN_DISTRIBUTOR" ,
176177 ) ;
177178 this . logger . debug ( `degen distributor: ${ distributor } ` ) ;
178179 const [ distributorNFT , merkelRoot , claimed ] =
You can’t perform that action at this time.
0 commit comments