Bet on real-world cows with dynamic NFTs, farm data, and prediction markets in the CowDAO universe.
CowDAO is a decentralized prediction market platform where users bet on real-world cow data. Participants buy Cow NFTs on Berachain, each linked to live dairy farm stats like milk yield, activity level, or breeding events. Farmers opt in by sharing IoT or verified third-party data (via Flare oracles), enabling tamper-proof, real-time updates.
Users can wager on outcomes like “Which cow produces the most milk this week?” or “Which calf is born first?”, using $FLR or $NECT. Rewards are distributed automatically via smart contracts, tracked transparently using Blockscout. CowDAO gamifies agriculture while driving engagement with real-world farm data and tokenized assets.
Think of it as fantasy football meets DeFi, but with cows.
CowDAO is built as a full-stack Web3 application that connects real-world cow data with decentralized prediction markets. On the smart contract side, we deployed:
MoogicMarket.sol: A custom Solidity contract supporting binary and multi-option prediction markets, using Flare's FDC for data feeds, RNG contracts for randomness, and tracking user Merits and bonus rewards.
CowNFT.sol: An ERC-721 contract on Berachain, minting Cow NFTs tied to real-world data. Each Cow is linked to a vault using the Beraborrow protocol, allowing future DeFi functionality like collateralization.
On the frontend, we used:
React + Next.js with viem and wagmi for wallet interactions and smart contract calls.
Real-time contract state and claim data is visualized through a leaderboard UI, betting dashboard, and NFT pages.
Blockscout API is integrated to fetch and verify on-chain rewards and historical activity.
IPFS metadata for NFTs was originally attempted with nft.storage and web3.storage, but due to API deprecations we pivoted to Filebase for uploading cow metadata (e.g., breed, milk output, temperament).
Hacky highlights:
We simulate live farm data by mapping IoT inputs like milk yield and cow activity through Flare’s FDC, enabling data-driven markets like “Which cow will give the most milk today?”
Cow NFTs update visually or textually based on real-world outcomes (e.g. “🥇Top Producer”).
The betting contract is multi-market capable, supports both binary and multi-outcome markets, and rewards the highest staker with a bonus.
Partner tech stack used:
Flare (FDC, RNG): for trustworthy real-world cow data and randomness.
Berachain: as the NFT minting and future DeFi layer.
Blockscout: for explorer tooling and user reward verification.