Skip to content

Commit

Permalink
set resting on book to true
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy committed Jun 6, 2024
1 parent e9bb708 commit b35da5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/packages/redis/src/scripts/place_order.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else
-- to "false".
redis.call("set", orderKey, newOrder)
-- refer to the above comment on order data format
redis.call("set", orderDataKey, newOrderExpiry .. "_" .. oldTotalFilledQuantums .. "_false")
redis.call("set", orderDataKey, newOrderExpiry .. "_" .. oldTotalFilledQuantums .. "_true")
-- Long-term orders will be on-chain, so we only need to store expiry data for short-term orders
if isShortTermOrder then
-- The expiry is guaranteed to be different, so overwrite the old one from the expiry cache
Expand Down

0 comments on commit b35da5e

Please sign in to comment.