ODHack: Integrate Ekubo TWAMM to Treasury
Extend treasury.cairo to support setting up TWAMM orders on Ekubo. This is a complex task.
Definition of Done
The Cairo code works as expected, has nearly full test coverage, is reasonably documented (docstrings or similar suffice) and readable.
@tensojka can you assign this project to me please?
Can I hop on this task?
@tensojka im ready to start work, can I hop on this?
@od-hunter @princeibs
Please read CONTRIBUTING.md and outline how you would approach the task and provide an estimated delivery timeline, as it's a complex task
My estimated delivery timeline is 3 days, starting from when I’m assigned the project. I’m a full stack developer with very wide knowledge on this and to tackle this complex task, I will take the following approach:
- Understand the Existing Codebase. That is I’ll review and study(how it handled TWAMM), I’ll also check existing documentation.
- I’ll Research TWAMM Orders, to make sure I have a solid understanding of what TWAMM orders are. I’ll then determine the essential components and processes required to set up TWAMM orders.
- Plan the Extension, break Down the Task (divide the task into smaller, manageable sub-tasks).
- I’ll implement the Code, testing each part thoroughly. I’ll follow best practices for readability, including proper naming conventions, modular functions, and in-code comments where necessary. I’ll also add docstrings or similar documentation to explain the purpose and functionality of your code.
- I’ll ensure almost full test coverage by writing unit tests for all new and modified functions.
- Provide clear instructions on how to use the new TWAMM order functionality in treasury.cairo.
Please I’d love to be given this opportunity.
@od-hunter Can you open a draft PR so I can see the status and progress?
Hello @tensojka I am still making some more research as this task is complex and I wouldn’t want to make mistakes. I will send the PR today, but if I’m not able to, I’ll send it tomorrow unfailingly please. But I promise you I'm on it, Thank you sir.🙏🏾
@tensojka while making my research, I found this interface for Ekubo TWAMM: https://github.com/EkuboProtocol/abis/blob/main/src/extensions/interfaces/twamm.cairo, which I believe is what I am supposed to integrate with Treasury contract.
But I couldn't find the implementation of the interface (I guess it's not opensource). In this case, do you mind adding more details about what part of the interface I'm supposed to extend?
@od-hunter You're not supposed to extend the interface, you should add an ability for the treasury to start DCA orders on the TWAMM. Yes, it's not opensource, if you have questions, I would suggest you ask in the Ekubo Discord