AttestDeFi is an extension of the Zenbit Badges (ZB) platform, designed to facilitate seamless token distributions to attested addresses during Zenbit Badges events. By integrating decentralized finance (DeFi) functionalities with the robust attestation mechanisms of ZB, AttestDeFi bridges the gap between skill verification and tangible rewards in the Web3 ecosystem.
Developed as a prototype during the Superhack 2024 organized by ETH Global, AttestDeFi garnered significant recognition, securing the Best Onchain Funding App 2nd place award from Celo.
Key Features
- On-Chain Attestation Integration: Utilizes the Ethereum Attestation Service (EAS) SDK to fetch attested addresses based on specific schemas, attestors, or event IDs from Zenbit Badges.
- Simplified Token Distribution: Employs a Disperse contract to efficiently distribute tokens to multiple verified participants in a single transaction.
- User-Friendly DApp Interface: Built on Scaffold ETH, providing an intuitive platform for event organizers to manage token distributions.
- Secure and Transparent: Leverages ethereum technology to ensure all transactions are immutable and transparently recorded on-chain.
How It Works
- Attestation Retrieval: AttestDeFi connects with the EAS to retrieve a list of addresses that have received attestations under a specific schema or from a particular attestor/event within Zenbit Badges.
- Token Distribution Setup: Event organizers specify the amount of tokens to distribute to the verified addresses.
- Disperse Contract Execution: The distribution is carried out through a Disperse contract, which allows for the simultaneous transfer of tokens to multiple addresses, reducing gas fees and transaction times.
Integration with Zenbit Badges
AttestDeFi enhances the Zenbit Badges ecosystem by providing a practical application of on-chain attestations:
- Incentivizing Participation: By offering token rewards to participants who have earned Zenbit Badges, it encourages greater engagement in events and activities.
- Streamlining Processes: Automates what would otherwise be a manual and time-consuming task of distributing tokens to numerous participants.
- Enhancing Trust: Ensures that only verified participants receive tokens, maintaining the integrity of the distribution process.
Technical Stack
- Ethereum Attestation Service (EAS) SDK: Core to fetching and verifying attested addresses.
- Disperse Contract: Enables efficient batch token transfers in a single blockchain transaction.
- Scaffold ETH DApp: Provides the foundational framework for the user interface and interaction with smart contracts.
- Blockchain Networks: Compatible with Ethereum and potentially extendable to other EVM-compatible chains for broader accessibility.
Future Enhancements
- Expanded Network Support: Plans to integrate with multiple blockchain networks to offer flexibility and reduce transaction costs.
- Advanced Filtering Options: Implementing more sophisticated criteria for selecting attested addresses, such as badge levels or specific achievements.
- User Experience Improvements: Enhancing the DApp interface for even more intuitive use, including analytics and reporting features for organizers.
- Security Audits: Conducting thorough audits of smart contracts to ensure the highest level of security and trustworthiness.
AttestDeFi represents a significant step forward in leveraging on-chain attestations for practical applications within the Web3 ecosystem. By facilitating efficient and secure token distributions to verified participants, it not only adds value to the Zenbit Badges platform but also sets a precedent for future developments in decentralized funding mechanisms.