-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix lint issues and tests (#44)
* refactor: split OrderBook into two OrderBookTicks OrderBookTicks implements OrderSource * feat: match only when matchable * refactor: split functions properly * chore: add comments for TickToIndex and TickFromIndex * fix: fix MatchOrders (WIP) * fix: add stop condition for price discovery * feat: complete matching logic * chore: delete outdated tests * refactor: export some fields and rename variables * style: rearrange code blocks * feat: Match returns swap price and matched flag * fix: simplify FindPrice and add AddOrders to OrderBookTicks * test: add tests * fix: Match returns OrderBook * feat: implement PoolOrderSource * fix: add matching iteration's stop condition * fix: fix iteration stop condition * fix: fix iteration stop condition (again) * fix: update swap price discovery logic also remove prec parameter from OrderSource methods * fix: matched is true only when matching has happened * chore: fix lint issues and tests
- Loading branch information
1 parent
aa896b7
commit 16290ec
Showing
4 changed files
with
10 additions
and
12 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