Skip to content

Commit

Permalink
Fix typos in server.go
Browse files Browse the repository at this point in the history
Signed-off-by: grandfather <[email protected]>
  • Loading branch information
dedyshkaPexto authored Jan 21, 2025
1 parent 27b4e67 commit 67e9873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/market/handler/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ func (ms msgServer) CreateBid(goCtx context.Context, msg *types.MsgCreateBid) (*

minDeposit := params.BidMinDeposit
if msg.Deposit.Denom != minDeposit.Denom {
return nil, fmt.Errorf("%w: mininum:%v received:%v", types.ErrInvalidDeposit, minDeposit, msg.Deposit)
return nil, fmt.Errorf("%w: minimum:%v received:%v", types.ErrInvalidDeposit, minDeposit, msg.Deposit)
}
if minDeposit.Amount.GT(msg.Deposit.Amount) {
return nil, fmt.Errorf("%w: mininum:%v received:%v", types.ErrInvalidDeposit, minDeposit, msg.Deposit)
return nil, fmt.Errorf("%w: minimum:%v received:%v", types.ErrInvalidDeposit, minDeposit, msg.Deposit)
}

if ms.keepers.Market.BidCountForOrder(ctx, msg.Order) > params.OrderMaxBids {
Expand Down

0 comments on commit 67e9873

Please sign in to comment.