Fledge is a decentralized crowdfunding platform built on the Flare Network that provides built-in price protection for contributors. Our platform ensures that your investments are safe even if token prices drop before the funding goal is reached.
- Price Protection: Rebalance funds and option for contributors to withdraw funds if token price falls
- Secure Campaigns: Built-in price protection for all contributors
- Real-time Tracking: Monitor campaign progress and price movements
- User-Friendly Interface: Intuitive design for both campaign creators and contributors
The platform consists of two main smart contracts:
-
CrowdfundingFactory
- Creates and manages individual campaign contracts
- Maintains a registry of all campaigns
- Handles campaign creation and contribution routing
- Provides pagination and filtering for campaign discovery
-
CrowdfundingCampaign
- Manages individual campaign logic
- Integrates with Flare's FTSO (Flare Time Series Oracle) for real-time price feeds
- Implements price protection mechanism
- Handles contributions and fund distribution
The platform leverages Flare's FTSO system for reliable price feeds:
function getFlrUsdPrice() public returns (uint256 price, int8 decimals, uint64 timestamp) {
FtsoV2Interface ftsoV2 = ContractRegistry.getFtsoV2();
return ftsoV2.getFeedById(FLR_USD_ID);
}Key features of the FTSO integration:
- Real-time FLR/USD price updates
- High accuracy through Flare's decentralized oracle network
- Automatic price protection checks
- Transparent price verification
The system implements price protection through:
- Continuous monitoring of FLR/USD price via FTSO
- Automatic goal achievement checks based on current price
- Secure fund distribution only when price conditions are met
- Transparent campaign finalization process
- Node.js (v16 or higher)
- npm or yarn
- A Web3 wallet (MetaMask, Rainbow, etc.)
- Clone the repository:
git clone https://github.com/yourusername/fledge.git
cd fledge/frontend- Install dependencies:
npm install- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
- Create campaigns with customizable funding goals
- Set campaign duration and beneficiary address
- Monitor campaign progress in real-time
- Automatic price protection for contributors
- Browse active campaigns
- Contribute with built-in price protection
- Track campaign progress and price movements
- Automatic refunds if price protection is triggered
- Frontend: Next.js, React, TailwindCSS
- Web3: RainbowKit, wagmi
- Blockchain: Flare Network (Coston2 testnet & Mainnet)
- Styling: Framer Motion for animations
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.

