@@ -15,7 +15,6 @@ import { Logger } from "../../log/index.js";
1515import type Client from "../Client.js" ;
1616import { ServiceStartedNotification } from "../notifier/index.js" ;
1717import type { IOptimisticOutputWriter } from "../output/index.js" ;
18- import type { ISwapper } from "../swap/index.js" ;
1918import AccountHelper from "./AccountHelper.js" ;
2019import type { OptimisticResults } from "./OptimisiticResults.js" ;
2120
@@ -42,9 +41,6 @@ export default abstract class AbstractLiquidator<
4241 @DI . Inject ( DI . Output )
4342 outputWriter ! : IOptimisticOutputWriter ;
4443
45- @DI . Inject ( DI . Swapper )
46- swapper ! : ISwapper ;
47-
4844 @DI . Inject ( DI . OptimisticResults )
4945 optimistic ! : OptimisticResults ;
5046
@@ -86,19 +82,15 @@ export default abstract class AbstractLiquidator<
8682 protected async getExecutorBalance (
8783 underlyingToken : Address ,
8884 ) : Promise < ExecutorBalance > {
89- // TODO: is this needed?
90- const isWeth = this . sdk . tokensMeta . symbol ( underlyingToken ) === "WETH" ;
9185 const eth = await this . client . pub . getBalance ( {
9286 address : this . client . address ,
9387 } ) ;
94- const underlying = isWeth
95- ? eth
96- : await this . client . pub . readContract ( {
97- address : underlyingToken ,
98- abi : erc20Abi ,
99- functionName : "balanceOf" ,
100- args : [ this . client . address ] ,
101- } ) ;
88+ const underlying = await this . client . pub . readContract ( {
89+ address : underlyingToken ,
90+ abi : erc20Abi ,
91+ functionName : "balanceOf" ,
92+ args : [ this . client . address ] ,
93+ } ) ;
10294 return { eth, underlying } ;
10395 }
10496
0 commit comments