Skip to content

Commit

Permalink
fix: better log status
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Dec 18, 2023
1 parent 4682c30 commit 5e5ade6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/liquidate/AbstractLiquidatorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,11 @@ export default abstract class AbstractLiquidatorService {
this.provider as ethers.providers.JsonRpcProvider,
tx,
);
const strStatus = receipt.status === 1 ? "success" : "failure";
this.log.debug(
`Liquidation tx receipt: status=${
`Liquidation tx receipt: status=${strStatus} (${
receipt.status
}, gas=${receipt.cumulativeGasUsed.toString()}`,
}), gas=${receipt.cumulativeGasUsed.toString()}`,
);

let balanceAfter = await this.getExecutorBalance(ca);
Expand Down

0 comments on commit 5e5ade6

Please sign in to comment.