From 2c15606fecd59aaacfb805a82206244cb0626096 Mon Sep 17 00:00:00 2001 From: doomsower <12031673+doomsower@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:26:20 -0500 Subject: [PATCH] fix: log estimate batch input --- src/services/liquidate/BatchLiquidator.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/liquidate/BatchLiquidator.ts b/src/services/liquidate/BatchLiquidator.ts index 1b91ff9..e3be336 100644 --- a/src/services/liquidate/BatchLiquidator.ts +++ b/src/services/liquidate/BatchLiquidator.ts @@ -88,6 +88,13 @@ export default class BatchLiquidator ); const liquidateBatchInput: LiquidateBatchInput[] = []; for (const r of result) { + const inp = input.find( + i => i.creditAccount === r.creditAccount.toLowerCase(), + ); + this.logger.debug( + { executed: r.executed, pathFound: r.pathFound, input: inp }, + `estimation for account ${r.creditAccount}`, + ); if (r.executed) { const acc = accounts.find( a => a.addr === r.creditAccount.toLowerCase(),