AgentFund Protocol
AI-Powered Quadratic Funding for Public Goods
Created on 25th January 2026
•
AgentFund Protocol
AI-Powered Quadratic Funding for Public Goods
The problem AgentFund Protocol solves
The Problem
Public goods—open source libraries, educational content, climate data APIs—are chronically underfunded. Traditional funding models are dominated by large donors, leaving small contributors feeling irrelevant and community voices unheard.
Our Solution
AgentFund Protocol democratizes public goods funding using Quadratic Funding (QF)—a mathematically-proven mechanism where:
20 donations of $1 generate MORE matching funds than 1 donation of $20
What Users Can Do:
- Donate to Projects: Make real on-chain donations via MetaMask with transparent transaction verification
- Register Projects: Permissionlessly add public goods projects to receive quadratic funding
- Maximize Impact: Small donations are amplified—your $5 can trigger $50+ in matching funds
- Verify Everything: Every donation is visible on Etherscan with full on-chain transparency
Why It Matters:
Traditional crowdfunding favors whales. Our QF formula prioritizes breadth over depth—the more unique contributors a project has, the more matching funds it receives. This creates truly democratic funding.
Challenges I ran into
Technical Challenges
1. Solidity Reserved Keywords
Bug: Contract compilation failed with a cryptic "Expected ';'" error.
Root Cause: Used match as a variable name, which is a reserved keyword in Solidity 0.8.19.
Solution: Renamed to matchAmount—a simple fix after identifying the issue through error log analysis.
2. Hardhat Configuration Issues
Bug: HH8: There's one or more errors in your config with no clear message.
Root Cause: The dotenv package wasn't loading .env correctly due to encoding issues on Windows.
Solution: Created a PowerShell deployment script (deploy.ps1) that manually loads environment variables before invoking Hardhat.
3. RPC Connection Timeouts
Bug: Public RPC endpoints (rpc.sepolia.org) returned 522 errors during deployment.
Solution: Implemented RPC fallback logic—the deployment script tries multiple RPC endpoints automatically until one succeeds.
4. Private Key Format
Bug: "Private key too short" error despite correct key length.
Root Cause: Missing 0x prefix in the .env file.
Solution: Added validation and clear error messages for key format requirements.
Lessons Learned
- Always use explicit variable names to avoid reserved keyword conflicts
- Test deployments on multiple RPC endpoints for reliability
- Windows PowerShell requires special handling for environment variables
Tracks Applied (1)
Open Track
Technologies used
