Skip to content

Commit

Permalink
fix: skip underlying when doing preview
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Apr 22, 2024
1 parent 962475e commit 8efa40e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/liquidate/LiquidationStrategyV3Partial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export default class LiquidationStrategyV3Partial
for (const [assetOut, { balance, balanceInUnderlying }] of Object.entries(
balances,
)) {
if (assetOut.toLowerCase() === ca.underlyingToken.toLowerCase()) {
continue;
}
const symb = tokenSymbolByAddress[assetOut.toLowerCase()];
logger.debug({
assetOut: `${assetOut} (${symb})`,
Expand Down

0 comments on commit 8efa40e

Please sign in to comment.