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

feat: max borrowable amount & change liquidation #624

Merged
merged 29 commits into from
Jun 26, 2023

Conversation

Senna46
Copy link
Contributor

@Senna46 Senna46 commented Jun 21, 2023

Changes

  • Add error handing for CancelBid & Rebid , etc.
  • Delete Refinancing
  • Change Liquidation (End Listing)
  • change successful_bid expiry

@Senna46 Senna46 changed the title feat: max borrowable amount feat: max borrowable amount & change liquidation Jun 21, 2023
return types.Coin{}
}
bidsSortedByPrice := NftBids(bids).SortHigherPrice()
minimumSettlementAmount := types.NewCoin(bidsSortedByPrice[0].BidAmount.Denom, sdk.NewInt(0))
Copy link
Contributor

Choose a reason for hiding this comment

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

this is bad practice.

  • if len is 0, emit panic with out of range exception
  • return type of min settlement amount should be sdk.Int rather than creating such vulnerability

Base automatically changed from feature/simple-borrow to newDevelop June 26, 2023 14:32
@Senna46 Senna46 merged commit a63cbae into newDevelop Jun 26, 2023
@Senna46 Senna46 deleted the feature/max-borrowable branch June 26, 2023 14:33
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