Skip to content

Commit

Permalink
Add missing Id set
Browse files Browse the repository at this point in the history
  • Loading branch information
lumos42 committed Feb 27, 2024
1 parent cd5717e commit 7bb6047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/evm/orderbook/trading_apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ func (api *TradingAPI) PlaceOrder(order *hu.SignedOrder) (common.Hash, error) {

// validations passed, add to db
signedOrder := &Order{
Id: orderId,
Market: Market(order.AmmIndex.Int64()),
PositionType: getPositionTypeBasedOnBaseAssetQuantity(order.BaseAssetQuantity),
Trader: trader,
Expand Down

0 comments on commit 7bb6047

Please sign in to comment.