EasyA x Polka dot Hackathon
π¨βπ» Developers:
πΉ Kartikesh - MIT CS Major
πΉ Shubham - Northeastern Software Engineering Major
πΉ Chandler - Northeastern Business Major
πΉ Rishi - Northeastern Software Engineering Major
πΉ Swaroop - Northeastern Software Engineering Major
π Overview:
π± Greenify is a Staking DAO that allows users to stake their tokens on different companies/collators. These collators have an ESG (Environmental, Social, and Governance) score, which is dynamically calculated from various sources using attributes like carbon emission, DEI, electricity consumption, and legal compliance. Based on this score, delegators who have staked tokens with a particular company/collator are rewarded if they choose a collator with a high ESG score.
π Greenify aims to utilize blockchain technology to make an Environmental, Social, and Governance impact on society. The project plans to onboard major companies based on various categories and encourage them to create a highly ESG-friendly environment.
π Staking DAO Functionalities:
1οΈβ£ Delegators/Users can stake funds on the Collators. π°πΌ
2οΈβ£ Collators have an ESG score calculated using data collected from various sources. ππ
3οΈβ£ Based on the ESG scores, Collators are nominated, and delegators are incentivized. ππ
4οΈβ£ Delegators who support Collators with high ESG scores are rewarded. ππ±
π οΈ Tech Stack:
1οΈβ£ Moonbeam Staking Pre-Compile πβοΈ
2οΈβ£ Solidity Smart Contract π§ π‘
3οΈβ£ Scaffold ETH (to make the repository visually appealing) ποΈποΈ
π’ Architecture of the Staking DAO System:
1οΈβ£ Delegators/User Interface:
β’ Provides a user-friendly interface for delegators to interact with the system.
β’ Allows delegators to stake their tokens on Collators.
β’ Displays information about the Collators and their ESG scores.
2οΈβ£ Collator Management:
β’ Collects data from various sources to calculate the ESG score of each Collator.
β’ Updates the ESG scores periodically based on the latest data.
β’ Maintains a database of Collators and their corresponding ESG scores.
3οΈβ£ Staking Contract:
β’ Implements the staking functionality, allowing delegators to stake their tokens on Collators.
β’ Manages the delegation and withdrawal of tokens.
β’ Calculates and distributes rewards to delegators based on the ESG scores of the Collators they have staked with.
4οΈβ£ Rewards Distribution:
β’ Determines the reward distribution mechanism based on the ESG scores.
β’ Calculates the rewards earned by delegators.
β’ Distributes rewards to delegators' wallets accordingly.
5οΈβ£ Blockchain Layer:
β’ Utilizes Moonbeam Staking Pre-Compile, a blockchain platform compatible with Ethereum, to handle staking operations and smart contracts.
β’ Provides a secure and decentralized environment for executing transactions and storing data.
6οΈβ£ Data Sources:
β’ Integrates with various external data sources to gather information for calculating the ESG scores of Collators.
β’ Data sources can include carbon emission databases, DEI reports, electricity consumption records, and legal compliance information.
7οΈβ£ User Wallets:
β’ Delegators manage their tokens and interact with the system through their individual wallets.
β’ Wallets enable users to stake, withdraw, and receive rewards.
8οΈβ£ Frontend/UI:
β’ Implements a visually appealing and intuitive user interface.
β’ Connects with the backend system to display Collator information, staking options, and reward details.
β’ Allows users to interact with the system seamlessly.
The architecture above outlines the key components and their interactions in the Staking DAO system, enabling delegators to stake their tokens, Collators to be evaluated based on ESG scores, and rewards to be distributed accordingly.