
GreenFi – Earn & Grow Green
Eco-Friendly Staking for a Better Tomorrow.
Demo
About
The problem it solves ***The Problem It Solves*** ***Traditional DeFi platforms focus only on profits and ignore their environmental impact .*** - Most users don’t have an easy way to invest in crypto and contribute to real-world causes like reducing carbon emissions or funding renewable energy. ***GreenFi solves this by connecting DeFi with sustainability:*** - Each staking transaction automatically donates a small yield portion to verified carbon offset projects. - Users can earn passive income while helping the planet. - Every user receives a Green Staker NFT that shows how much CO₂ they helped offset. A leaderboard motivates eco-friendly competition and awareness. In short — GreenFi makes crypto staking not just profitable, but also planet-positive
How it's made
Challenges we ran into ***While building GreenFi, we faced several hurdles:*** ***Blockchain Integration:*** - Connecting the smart contract on Polygon Mumbai Testnet and ensuring seamless interaction with MetaMask took time to debug ***Automated Yield Redirection:*** - Designing the logic to automatically split staking rewards between the user and the donation pool was tricky — we had to carefully test percentage calculations in Solidity. ***IPFS Storage for NFTs:*** - Uploading metadata and images to nft.storage (IPFS) and linking them correctly with minted NFTs required multiple trials. ***Chainlink Oracle Setup:*** - Fetching real-time verified carbon project data to make donations transparent needed proper oracle integration. Despite the challenges, we overcame them by testing on Mumbai Testnet, using Alchemy RPC, and deploying step-by-step through Hardhat.