cowprotocol / cow-sdk

CoW protocol SDK
https://docs.cow.fi/cow-protocol/reference/sdks/cow-sdk
Other
31 stars 9 forks source link

Test order is in the orderbook case #167

Closed anxolin closed 12 months ago

anxolin commented 1 year ago

This PR makes sure that, if the current order that the Conditional Order yields is already present in the Order Book API, then it returns TRY_NEXT_BLOCK instructing the watch tower to not post the order for this block, but re-attempt later.

Test

yarn test

github-actions[bot] commented 1 year ago

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

coveralls commented 1 year ago

Coverage Status

coverage: 75.94% (+0.9%) from 75.063% when pulling a01d696e4434dfc3c3c436e5f6ba0057e05a5e53 on test-order-in-orderbook into 2ca4e6bd98f0e6dc34393f5eaa46e8612d91b972 on main.