Skip to content

Commit

Permalink
minor refactor- for testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikasr committed Mar 29, 2024
1 parent 41918ca commit 6429c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/liquidationsV2/keeper/liquidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ func (k Keeper) CheckStatsForSurplusAndDebt(ctx sdk.Context, appID, assetID uint
}
if !auctionActive {
actualSlots := ((collector.DebtThreshold).Sub(netFeeCollectedData.NetFeesCollected.Add(collector.LotSize))).Quo(collector.LotSize)
actualSlots = actualSlots.Add(sdk.NewInt(1))
slots := k.collector.GetSlots(ctx)
if actualSlots.Uint64() < slots {
slots = actualSlots.Uint64()
Expand Down

0 comments on commit 6429c7a

Please sign in to comment.