Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

OrderWatcher Deposit/Withdraw events #1809

Merged
merged 7 commits into from
May 10, 2019
Merged

Conversation

dekz
Copy link
Member

@dekz dekz commented May 9, 2019

Description

OrderWatcher seemed to intermittently handle (call the callback) deposit and withdraw events for WETH.

Before any orders were added the events were handled correctly, though after a WETH order was added it would cease to trigger a callback when a Withdraw or Deposit event occurred. Without handling these events a subscriber wouldn't be able to invalidate orders where the user withdrew all WETH funds.

Testing instructions

Added repro test. Can be tested with Launch-Kit, creating an order, withdrawing WETH, query orders endpoint

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@coveralls
Copy link

coveralls commented May 9, 2019

Coverage Status

Coverage increased (+1.001%) to 85.389% when pulling 0e758fa on order-watcher-weth-events into 41cc523 on development.

@dekz dekz requested review from fabioberger and LogvinovLeon May 9, 2019 15:27
@dekz dekz changed the title [WIP] OrderWatcher Deposit/Withdraw events OrderWatcher Deposit/Withdraw events May 9, 2019
"pr": 1809
}
]
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous version hasn't been published yet. Please squish these into one.

@dekz dekz merged commit bd51c34 into development May 10, 2019
@dekz dekz deleted the order-watcher-weth-events branch May 10, 2019 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants