Skip to content

Commit

Permalink
fix: log estimate batch input
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Jul 15, 2024
1 parent ce3c397 commit 2c15606
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/services/liquidate/BatchLiquidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 2c15606

Please sign in to comment.