Closed anxolin closed 12 months 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
This PR implements and test the logic in TWAP that instructs the watch-towers what is the next polling time for the case, the current part is already in the order book.
This is very important for the scalability of watch towers, since otherwise they would need to check on every block. This PR will allow a DCA that executes once a month, to be polled only once a month (two at most, since first polling returns the current part, and next polling for the same period will instruct to wait for approximately one month )
The test will cover various edge cases in the execution of a 10 parts TWAP order. Read the tests for more details. As a summary:
Test
yarn test