-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: improve handling of orders that are consummated immediately
in the wallet, only subscribe to notifications if the offer becomes active. in the contract, don't save offers that are immediately consummated to the book It used to always update the counter-offers by asking zoe for fresh getOfferStatuses(). Now it knows which offer was consumed, so it directly removes that offer. A little refactoring to pull out common cases. This fixes the second problem described in #13 that included a stack trace.
- Loading branch information
1 parent
958a2c0
commit fd585b1
Showing
2 changed files
with
45 additions
and
14 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