project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

CollectDAO

Create DAOs by posting on Lens Protocol. Collects act as votes and collect fees go straight to the DAO treasury

CollectDAO

Created At

ETHSanFrancisco 2022

Winner of

🥇 Lens Protocol — Best Use

🤝 Lens Protocol — Integration

Project Description

CollectDAO is the easiest way to create a DAO... it's as simple as creating a post on Lens!

Previously, you'd have to write a smart contract and juggle multiple platforms to start a DAO. Now you can create one just by posting!

The DAOs that are created integrate with Tally, which is a website used by Nouns DAO, uniswap, etc for on-chain DAO voting.

How it works:

  • A user writes a post, sets the collect limit, sets the collect price, and presses "post".
  • A series of transactions pop up to be signed... these create the post, the DAO governance contract, and the wrapper contract for the collect tokens.
  • The user then spends 30 seconds on tally.xyz to link to it the DAO that was created.

Thats it!

The coolest part: When other users collect a post, the money they spend collecting automatically goes into the DAO treasury and their collect acts as a "vote".

So two birds are killed with one stone: The DAO is funded by collecting, and the collects act as votes.

Scenario 1: A user wants to fund an artist with other people but wants to do it with the community. They create a post detailing their goal and the DAO is auto created when they post it. Now everyone who collects funds the DAO treasury and can vote on which artist to give the funds to.

Scenario 2: A user posts about wanting to build a smart contract that has a certain feature. They make a post + DAO about it. All of the collectors have permission to make smart contract proposals and vote on proposals, since they collected the post. When a proposal has enough votes, it passes and the contract is deployed. This example shows how a DAO can pop up easily for even just a single feature.

Live Example: This Lens post auto created a DAO: https://lenster.xyz/posts/0x7810-0x2d The DAO is here: https://www.tally.xyz/governance/eip155:137:0x90ABcFCFeaC43bd1c024aaE0DCAeF018e9a899c3 DAO on project: https://www.collectsdao.xyz/p/30736_45 The purpose of this DAO is to pool together money from the post's collectors and give it to the best art that's submitted as a reply. Looking at the tally.xyz, you can see that over $500 has been pooled in the treasury from collects and there are already 3 proposals.

DAOs can be so much more fluidly created and funded now, since they're now integrated into Lens Protocol.

Users can even join the DAO, fund it, and get voting power by collecting on other Lens frontends like Lenster.

The future of DAOs is bright!

How it's Made

The frontend is designed in react. The Lens api is used to retrieve data. Used the api-examples Lens Github repo for help on how to query Lens. Writes directly to the blockchain to post using the Lens Hub contract abi.

A very simple backend is made with firebase database and firebase functions. These determine the feed, whether or not a collect was staked, and hold the tally.xyz link for each DAO post. (Collects need to be staked since they are missing ERC721Votes, which is needed for them to count as votes. Staking is simply wrapping a Lens collect for a compatible ERC721 token).

Solidity is used for smart contracts. Just used Remix to get the contract bytecode and abi and added them to the frontend. Web3.js is used to deploy 3 contracts for each post:

  1. The timelock contract. This executes transactions that the DAO votes on.
  2. The DAO Governor contract. This allows collect holders to control a DAO with on-chain voting
  3. Collect wrapper contract. This is needed to allow collects to act as votes for the DAO.
background image mobile

Join the mailing list

Get the latest news and updates