Skip to content
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

Merged
merged 4 commits into from
Aug 8, 2023
Merged

Backedloan-refactor #659

merged 4 commits into from
Aug 8, 2023

Conversation

Senna46
Copy link
Contributor

@Senna46 Senna46 commented Aug 8, 2023

No description provided.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about WithoutWinner

Copy link
Contributor Author

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())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InFull seems not good

@kimurayu45z kimurayu45z merged commit d6e107b into newDevelop Aug 8, 2023
@kimurayu45z kimurayu45z deleted the backedloan-refactor branch August 8, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants