Web3CH is a power delegation solution for DAOs that uses the ERC-6551 standard. It offers a tokenized Proxy for delegating powers to members, including the ability to allocate funds and revoke Proxies. This enhances fund management flexibility within a DAO.
The goal of this project is to develop an on-chain delegation solution for the Mantle chain based on existing contract standards. The recent ERC-6551 standard was chosen for its suitability in DAO management, company governance, and real-life use cases.
The solution includes several use cases:
The user flow for delegating powers is as follows:
The user flow for powers verification is as follows: Once any transaction is performed from the NFT account, anyone can check the relation between the trustee's transaction and the proxy NFT. This ensures that the transaction was formally authorized and that the trustee represents the organization. If the proxy has been revoked, it means that the person is not authorized to perform deals on behalf of the organization.
The solution is built on Tokenbound contracts (available at https://tokenbound.org/), which enabled the creation of a separate on-chain history for a proxy account with targeted funds allocation, distinct from the delegator's and trustee's accounts.
The contract portion involved taking and modifying smart contracts from the ERC-6551 standard and deploying them to the Mantle Testnet. Additionally, an Account Proxy was added to enable the revocation feature, which required the following modifications:
The deployed set of contracts includes: Default Account Implementation - 0xd40F171458755FC295fc1Df98CfD8D783858690f AccountProxy - 0xC9d87e245c96aC46E72D10A2E197007b9Db6c68D AccountRegistry - 0xFeDE1f80D8158170593E137beC447e749F2602e2
The Web App The frontend is built using NextJS, wagmi, and web3.js. The design was created in Figma. https://www.figma.com/file/tsrvWTzkdN6rQSq9LHLI4F/web3ch?type=design&node-id=0%3A1&t=fTMN1kaRzMNuuXbs-1