-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/{market,swap,db}: free cancels
server/db: Add epoch_gap column to cancel order table. When set (not EpochGapNA), the epoch_gap is the number of epochs between the limit order placement and the cancel order placement. Update InsertEpoch method to accept an epoch gap argument (or EpochGapNA). server/auth: RecordCancel now accepts an epoch gap argument. Epoch gap is loaded from the db via ExecutedCancelsForUser with a modified return value. (*latestOrders).counts now only counts cancel orders if 0 <= epochGap < 2. server/market: processOrder now reports the epoch gap to the AuthManager for matched cancel orders.
- Loading branch information
Showing
14 changed files
with
239 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.