We can’t edit the proposal anymore, so I have pasted below the updated version of the proposed Milestones. Please, let us know your thoughts on this new scope.
Milestones:
Milestone | Due Date | Payment |
---|---|---|
CoW AMM Oracles | 3.5 weeks | 7.25k xDAI + 7.25k COW |
Standalone Contract Integration | 4 weeks | 8.5k xDAI + 8.5k COW |
TWAP for token balancing | 4 weeks | 8.25k xDAI + 8.25k COW |
CoW AMM Oracles:
Development of the contracts and full integration with the CoW AMM Deployer APP for the following price oracles:
- Chainlink (using the already developed community Chainlink oracle);
- SushiSwap (using the already Uni v2 contract and integrating with the App);
- Uniswap V3;
- Balancer Composable Stable Pool;
- Pyth;
- Redstone.
Standalone Contract Integration:
CoW team is working on a standalone version of the contracts, which will make possible a smoother experience for users.
This milestone will include a release of the CoW AMM Deployer for the standalone contract version. This will allow:
- Refactoring to use standalone contracts version, including “Migrate legacy CoWAMM” button to enable users to migrate (2 weeks)
- App refactoring to work inside and outside Safe (1 week)
- Refactoring of the “CoW AMM Manager Page” to multiple pools. (1 week)
Token balancing
CoW AMM can be also used by DAOs (or whales) who want to invest a large amount of tokens. However, these tokens might be not on the right balance that you want to invest in the CoW AMM. To do it, there are two options, you can do a TWAP to balance the tokens or stream the tokens directly to the AMM and let it rebalance. @AndreaC reported that it has a similar performance. The descriptions of both methods are:
- TWAP: Since it uses the Composable CoW framework, it will be available just for Safe Wallets. Here a TWAP will be created with the AMM contract as the receiver. The TWAP will add liquidity to the AMM already balanced (2 weeks).
- Llama Pay: A single side stream will be set to slowly add liquidity to the AMM using LlamaPay contracts and bots. LlamaPay relies on a deposit logic in which the user has to deposit native tokens on the LlamaPay Bot contract (2 weeks).
This method will be available for AMM creation and add more liquidity to an existing AMM. Thresholds will be defined to identify big and unbalanced deposits to suggest the token balancing feature.
We are thinking of using the TWAP feature for Safe Wallets and Llama Pay for regular wallets.