Back to Home

How Crowdfunding on Fledge Works

A deep dive into our crowdfunding platform and its integration with Flare's Time Series Oracle (FTSO)

Simple Overview

Our crowdfunding platform makes it easy to create and manage fundraising campaigns on the Flare network. What makes it special is how it uses Flare's Time Series Oracle (FTSO) to keep track of FLR token prices in real-time.

When you create a campaign, you set your funding goal in USD. The platform automatically converts this to FLR using current market prices from FTSO. This means your campaign's progress is always accurate, regardless of FLR price fluctuations.

Contributors can donate FLR tokens, and the platform instantly calculates the USD value of their contribution using the latest FTSO price data. This ensures transparency and accuracy throughout the entire crowdfunding process.

Technical Deep Dive

FTSO Integration

The platform integrates with Flare's FTSO through the following key components:

  • 1
    Price Feed Integration: The smart contract uses FTSO's FLR/USD price feed (ID: 0x01464c522f55534400000000000000000000000000) to get real-time price data.
  • 2
    Price Updates: FTSO provides price updates every 3 minutes, ensuring our platform has access to current market data.
  • 3
    Decimals Handling: The contract properly handles price feed decimals to ensure accurate USD value calculations.

Smart Contract Architecture

The platform consists of two main contracts:

CrowdfundingFactory

Creates and manages individual campaign contracts, maintaining a registry of all campaigns.

CrowdfundingCampaign

Handles individual campaign logic, including FTSO integration, contribution tracking, goal monitoring, and fund distribution.

Key Technical Features

Real-time Price Checks

The checkGoalReached() function uses FTSO data to verify campaign goals.

Secure Fund Handling

Implements ReentrancyGuard to prevent potential attacks during fund transfers.

USD Value Calculation

Uses FTSO price data to calculate the USD value of FLR contributions in real-time.

How to Use the Platform

Create a Campaign

Set your funding goal in USD. The platform will automatically convert it to FLR using current FTSO prices.

Get Started

Contribute

Send FLR tokens to support campaigns. Your contribution's USD value is calculated using real-time FTSO data.

View Campaigns

Track Progress

Monitor your campaign's progress with real-time updates on contributions and FLR/USD price movements.

Track Campaigns