Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcre committed Sep 20, 2023
1 parent 7a445c6 commit ad26fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/exchange/types/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (order Order) Validate() error {
return fmt.Errorf("open quantity must not be negative: %s", order.OpenQuantity)
}
if order.OpenQuantity.GT(order.Quantity) {
return fmt.Errorf("open quantity must be smaller than quantity: %s > %s", order.OpenQuantity, order.Quantity)
return fmt.Errorf("open quantity must not be greater than quantity: %s > %s", order.OpenQuantity, order.Quantity)
}
if !order.RemainingDeposit.IsPositive() {
return fmt.Errorf("remaining deposit must be positive: %s", order.RemainingDeposit)
Expand Down

0 comments on commit ad26fca

Please sign in to comment.