Skip to content

Commit

Permalink
check denom
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Nov 5, 2024
1 parent 63b0f5c commit 3c0516d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/auction/keeper/liquidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func (k Keeper) newLiquidateMap(ctx context.Context, mintDenom string, params ty
return true, err
}

if vault.Debt.Denom != mintDenom {
return false, nil
}

needCleanup := false
currentRate := math.LegacyMustNewDecFromStr(auction.CurrentRate)
lowestRate := math.LegacyMustNewDecFromStr(params.LowestRate)
Expand Down

0 comments on commit 3c0516d

Please sign in to comment.