Skip to content

Commit

Permalink
Merge pull request #327 from comdex-official/locker_unit_tests
Browse files Browse the repository at this point in the history
Adding Surplus and Debt unit tests
  • Loading branch information
dheerajkd30 authored Jul 10, 2022
2 parents 55c0b90 + b0790d2 commit 76b9424
Show file tree
Hide file tree
Showing 6 changed files with 650 additions and 347 deletions.
2 changes: 1 addition & 1 deletion x/auction/keeper/debt.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (k Keeper) PlaceDebtAuctionBid(ctx sdk.Context, appID, auctionMappingID, au
change := auction.BidFactor.MulInt(auction.ExpectedMintedToken.Amount).Ceil().TruncateInt()
maxBidAmount := auction.ExpectedMintedToken.Amount.Sub(change)
if bid.Amount.GT(maxBidAmount) {
return sdkerrors.Wrapf(sdkerrors.ErrNotFound, "bid should be less than or equal to %d ", maxBidAmount)
return sdkerrors.Wrapf(sdkerrors.ErrNotFound, "bid should be less than or equal to %d ", maxBidAmount.Uint64())
}
} else {
if bid.Amount.GT(auction.AuctionedToken.Amount) {
Expand Down
Loading

0 comments on commit 76b9424

Please sign in to comment.