Video thumbnail

Carrot

Carrot is a SocialFi dApp that transforms ad budgets into real rewards for real people.

Carrot

Created At

ETHGlobal Cannes

Winner of

World - World Pool Prize

Prize Pool

Project Description

Carrot BETA is a decentralized, modular platform designed to revolutionize community engagement within the Web3 ecosystem. It enables companies and organizations to create interactive, gamified campaigns where participants complete quests, prove their participation, and earn transparent, blockchain-backed rewards.

Carrot BETA solves critical problems faced by Web3 projects, such as high user acquisition costs, low community engagement, bot attacks, and trust issues regarding reward distribution. By integrating advanced human verification through World ID’s Proof of Personhood protocol, the platform ensures a bot-free and fair environment, guaranteeing that rewards reach genuine participants.

Participants can easily onboard using familiar wallet connections via World App wallets and engage with diverse quests, including quizzes, social media tasks, developer challenges, and interactive treasure hunts. The system combines on-chain smart contracts—managing prize pools and automating rewards—with off-chain backend validations that verify user actions across social platforms and other data sources.

Designed with scalability and extensibility in mind, the platform supports multiple quest types, upgradeable smart contracts, and seamless integration with external APIs. It leverages modern web technologies like Next.js, React, Wagmi, and Ethers.js on the frontend, with a Node.js backend for off-chain processing.

Overall, the project aims to create a vibrant, active Web3 community built on real human participation, rewarding users fairly while empowering companies to grow their ecosystems efficiently without relying on costly and ineffective traditional advertising.

How it's Made

Our project is built as a modular, scalable decentralized platform designed to deliver a seamless Web3 user experience by integrating blockchain, identity verification, and modern web technologies.

Core Technologies & Architecture

•⁠ ⁠Smart Contracts (Solidity + Foundry):

The entire on-chain logic is implemented in Solidity with Foundry as the primary development environment. Foundry enables fast compilation, deployment, and thorough automated testing, which helped us ensure 100% test coverage and robustness. Contracts manage quest creation, participant validation, proof submission, and trustless reward distribution. We focused on gas optimization techniques such as tight struct packing and event-driven state changes to minimize transaction costs.

•⁠ ⁠Blockchain Platform — World Chain Sepolia Testnet:

We deployed the smart contracts on the World Chain Sepolia testnet, leveraging its decentralized, immutable ledger for secure budget escrow and reward distribution. On-chain events are emitted to synchronize frontend state and provide transparent transaction histories.

•⁠ ⁠Human Verification — World ID (Proof of Personhood):

To ensure a fair, bot-free environment, we integrated World ID’s zero-knowledge Proof of Personhood protocol. This cryptographically proves each participant is a unique human without exposing personal data, protecting user privacy and guaranteeing integrity of reward allocation.

•⁠ ⁠Frontend — Next.js 15 with React & TypeScript:

The frontend is built with Next.js 15 and React using TypeScript for type safety and maintainability. We utilize Tailwind CSS and PostCSS for rapid and consistent styling. Blockchain interactions are handled using Wagmi and Ethers.js libraries, providing React hooks and utility functions for wallet connection (supporting World App wallets), contract calls, event listening, and transaction management. This stack allows us to offer real-time quest discovery, submission, leaderboard updates, and reward claiming with a responsive and intuitive UI.

•⁠ ⁠Authentication — Next-Auth:

User authentication is handled through Next-Auth, enabling secure OAuth-based sign-ins and session management. This integrates seamlessly with our backend validation systems to ensure authorized and unique participants.

•⁠ ⁠Backend — Node.js & Express with Zod Validation:

Our backend API is built on Node.js using Express, tasked with off-chain validations like verifying social media actions (Twitter follows, Discord joins) and QR code scans via respective platform APIs. Zod schema validation ensures strict data integrity and secure request handling. The backend also manages user metadata, enforces username uniqueness, and communicates validation results to the frontend and smart contracts.

•⁠ ⁠Secrets Management — Vault:

We use Vault for securely storing and managing sensitive environment variables, API keys, and secrets, improving security and simplifying secret rotation across environments.

Integration & Workflow

1.⁠ ⁠User Onboarding & Verification: Users connect their World App wallets through the frontend and complete World ID verification to prove humanity. 2.⁠ ⁠Quest Participation: Users discover quests, register unique usernames, and submit required proofs via the frontend. 3.⁠ ⁠Off-chain Validation: Backend services verify off-chain proofs against external APIs, ensuring legitimacy. 4.⁠ ⁠On-chain Reward Distribution: Smart contracts hold the prize pools securely and distribute rewards automatically once participation is validated. 5.⁠ ⁠Real-time Updates: Frontend listens to smart contract events via Wagmi and Ethers.js, reflecting current quest status and user rewards instantly.

Notable Engineering Highlights

•⁠ ⁠Modular & Upgradeable Smart Contracts: Designed with proxy patterns allowing future upgrades and new feature integrations without disrupting existing user data or contracts. •⁠ ⁠Privacy-Preserving Identity Verification: World ID integration ensures fair play while maintaining user anonymity—a critical balance rarely achieved in similar platforms. •⁠ ⁠Efficient Gas Usage: Optimized smart contract storage and logic reduced gas fees, improving user experience and platform scalability. •⁠ ⁠Seamless Blockchain Interaction: Combining Wagmi and Ethers.js with Next.js enabled robust, reactive contract interactions and wallet management in a modern React environment. •⁠ ⁠Secure & Scalable Backend: Off-chain validations reduce on-chain complexity while ensuring trustworthiness and scalability.


This comprehensive technology stack and architecture enable us to build a secure, engaging, and scalable Web3 platform that lowers onboarding barriers and incentivizes real community participation.

background image mobile

Join the mailing list

Get the latest news and updates