-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backedloan-refactor #659
Backedloan-refactor #659
Conversation
@@ -158,15 +150,15 @@ func (k Keeper) LiquidationProcess(ctx sdk.Context, bids types.NftBids, listing | |||
cacheCtx, write := ctx.CacheContext() | |||
if winnerBid.IsNil() { | |||
// No one has PayRemainder. | |||
err := k.LiquidationProcessNoWinner(cacheCtx, bidsSortedByDeposit, listing) | |||
err := k.LiquidateNoWinner(cacheCtx, bidsSortedByDeposit, listing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about WithoutWinner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still good; I think No is more instinctive.
bid.Borrow.Amount = repaidResult.RemainingBorrowAmount | ||
bid.Borrow.LastRepaidAt = repaidResult.LastRepaidAt | ||
repaidAmount = repaidAmount.Add(repaidResult.RepaidAmount) | ||
repaidInfo := bid.RepayInfoInFull(ctx.BlockTime()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InFull
seems not good
No description provided.