Safe module for setting up your DAO treasury
Description
Number of Bounties:
This bounty will be distributed according to the amount and quality of submissions.
CoW Protocol is the only trading protocol designed with DAOs in mind. With CoW Protocol’s ERC1271 implementation, the protocol is set up to offer – in theory – any kind of order that a DAO might want to make. The possibilities are endless. Additionally, since ETH Denver is THE conference of DAOs, we thought it was right to focus on enabling DAOs to go to their next level. The goal for this bounty is to build a Safe (formerly Gnosis Safe) module using a new tool built by Zodiac, role modifiers. This new Zodiac module would allow DAOs to grant a role to certain address to unilaterally make calls to any approved addresses (for example: trading protocols, vaults, etc.), approved functions (for example: call swap from this contract only, call approve tokens from this contract only, etc.) and approved access roles. Implementing role modifiers creates the ultimate DAO treasury management setup. Such a module would allow any DAO to permission the activities of the treasury regarding trading, farming or degening – for example: Allow a DAO member (wallet) to trade with CoW Protocol without any additional signers from the multisig (or with one less signer that the current setup) Allow a DAO member (wallet) to always swap stablecoins to stablecoins in CoW Protocol with the treasury manager address Allow a DAO member (wallet) to perform a TWAP order creation with a limited amount of tokens from the ones currently held by the treasury We will award $10,000 to be shared amongst the teams that build and deploy the best Zodiac - Safe module built around CoW Protocol.
Acceptance criteria
Criteria Submit a working demo (making a swap on a testnet) with the corresponding github repo to check all the relevant code parts.
Rewards
10000 reward pool
Resources
- CoW Hackathon Success Guide
- https://cownation.notion.site/CoW-Hackathon-Success-Guide-170b7dedb090458a8ec21fef79b0c8cf
- Documentation
- https://docs.cow.fi
- Cow SDK
- https://docs.cow.fi/cow-sdk
- How to Place Smart Orders Docs Tutorial
- https://docs.cow.fi/tutorials/how-to-place-erc-1271-smart-contract-orders
- How to Place Smart Orders Tutorial Blog Post
- https://cow-protocol.medium.com/tutorial-creating-smart-orders-on-cow-protocol-683a5f9f4763
- Zodia Role Modifier
- https://github.com/gnosis/zodiac-modifier-roles