diff --git a/apps/liquidation-bot/bindings.d.ts b/apps/liquidation-bot/bindings.d.ts index d8783679a..9e4ce0a9e 100644 --- a/apps/liquidation-bot/bindings.d.ts +++ b/apps/liquidation-bot/bindings.d.ts @@ -1,6 +1,5 @@ // Define any bindings for getMiniflareBindings to return for typed // integration tests interface Bindings { - // Example: - // NAME: DurableObjectNamespace; + ACCOUNT_CACHE: DurableObjectNamespace; } diff --git a/apps/liquidation-bot/src/NotionalV3Liquidator.ts b/apps/liquidation-bot/src/NotionalV3Liquidator.ts index 795ce0e88..a88763c5d 100644 --- a/apps/liquidation-bot/src/NotionalV3Liquidator.ts +++ b/apps/liquidation-bot/src/NotionalV3Liquidator.ts @@ -147,7 +147,7 @@ export default class NotionalV3Liquidator { ).gt(this.settings.dustThreshold) ); - return accounts.map((a, i) => { + return accounts.map((a) => { const netUnderlyingAvailable = new Map(); const balances = results[`${a.id}:account`][1].filter((b) => b[0] !== 0); const portfolio = results[`${a.id}:account`][2]; @@ -192,7 +192,7 @@ export default class NotionalV3Liquidator { return await this.profitCalculator.sortByProfitability( liquidations - .map((liq, i) => ({ + .map((liq) => ({ accountId: ra.id, liquidation: liq, flashLoanAmount: this.toExternal( diff --git a/apps/liquidation-bot/src/ProfitCalculator.ts b/apps/liquidation-bot/src/ProfitCalculator.ts index 6e89898cb..4a096af39 100644 --- a/apps/liquidation-bot/src/ProfitCalculator.ts +++ b/apps/liquidation-bot/src/ProfitCalculator.ts @@ -1,4 +1,4 @@ -import { BigNumber, Contract, ethers } from 'ethers'; +import { BigNumber, Contract } from 'ethers'; import { AccountLiquidation, CurrencyOverride, @@ -38,7 +38,7 @@ export default class ProfitCalculator { to: string, amount: BigNumber, exactIn: boolean - ): Promise { + ): Promise { const queryParams = new URLSearchParams({ sellToken: from, buyToken: to, diff --git a/apps/liquidation-bot/src/index.ts b/apps/liquidation-bot/src/index.ts index 18666a027..6b177b0b9 100644 --- a/apps/liquidation-bot/src/index.ts +++ b/apps/liquidation-bot/src/index.ts @@ -5,7 +5,6 @@ import { } from '@notional-finance/util'; import { BigNumber } from 'ethers'; import { - DDSeries, initEventLogger, initMetricLogger, submitMetrics, @@ -176,7 +175,7 @@ export default { async fetch( request: Request, env: Env, - ctx: ExecutionContext + _: ExecutionContext ): Promise { try { await run(env); @@ -191,7 +190,7 @@ export default { async scheduled( controller: ScheduledController, env: Env, - ctx: ExecutionContext + _: ExecutionContext ): Promise { try { await run(env);