Skip to content

GE Bugfixes - #1358

Open
trunksbomb wants to merge 3 commits into
GregHib:mainfrom
trunksbomb:ge-bugfixes
Open

trunksbomb wants to merge 3 commits into
GregHib:mainfrom
trunksbomb:ge-bugfixes

Conversation

@trunksbomb

Copy link
Copy Markdown
Contributor

3 bugfixes:

  • fix GE Buy limit comparator: Previously >, changed to >= because TimeUnit.MILLISECONDS.toHours truncates to the hour, causing e.g. 4hr59min to truncate to 4hr. Setting Buy Limit to x was effectively x+1 hours.
  • fix GE Buy Limit limits.record: Previously incorrectly adjusted the seller's Buy Limit sometimes instead of always adjusting the buyer's Buy Limit; only happened when an open buy order was matched to a new sell order.
  • Fix GE history recording: Previously, the new offer's price was recorded in history.record even if it didn't match traderPrice which was what the offer actually settled for.

…`TimeUnit.MILLISECONDS.toHours` truncates to the hour, causing e.g. 4hr59min to truncate to 4hr. Setting Buy Limit to `x` was effectively `x+1` hours.
… seller's Buy Limit sometimes instead of always adjusting the buyer's Buy Limit; only happened when an open buy order was matched to a new sell order.
…ded in `history.record` even if it didn't match `traderPrice` which was what the offer actually settled for.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant