Vortex Economi

About the Project
VortexEconomi is a decentralized application (dApp) built on the Flare Network, integrating two core components:
▫️Automated Market Maker (AMM): Facilitates token swaps and liquidity provision using a Uniswap V2-style router and factory.
▫️Prediction Market: Allows users to stake FLR tokens to predict price movements of crypto assets, minting dual BetTokens (HighBetToken or LowBetToken) based on their predictions.
The platform utilizes Flare’s enshrined data protocols, including the Flare Time Series Oracle (FTSO) V2, for real-time price feeds and on-chain resolution of prediction outcomes.
Key Purpose
▫️Provide Decentralized Trading: Enable users to swap tokens and provide liquidity in a decentralized manner.
▫️Offer Prediction Markets: Allow users to engage in price speculation through staking and prediction, enhancing market participation.
▫️Leverage Flare’s Data Protocols: Utilize Flare’s FTSO V2 for accurate and timely price data, ensuring fair and transparent market operations.

Key Features Developed
▫️Automated Market Maker (AMM): Provides ERC-20 and FLR ↔ ERC-20 liquidity provision, removal, and swaps using a Uniswap V2–style router & factory deployed on Flare.
▫️Prediction Market: Allows users to stake FLR to predict whether a crypto price will exceed a target by a deadline, minting dual ERC-20 BetTokens (HighBetToken or LowBetToken).
▫️Real-Time Price Feeds: Utilizes Flare Time Series Oracle (FTSO) V2 for on-chain resolution, ensuring accurate and timely price data.
▫️Reward Distribution: Enables users to claim rewards from pooled stakes minus a 2% fee, with optional fee-withdraw functions for protocol fees.
▫️User-Friendly Interface: Features a responsive UI styled via CSS modules, with smooth animations using GSAP ScrollTrigger for enhanced user experience.
How It Works
▫️Connect Wallet: Users connect their wallet via an injected provider (e.g., MetaMask) on the Flare testnet.
▫️Provide Liquidity or Swap Tokens: Users can add/remove liquidity or swap tokens through the AMM router, viewing live price and on-chain swap rates.
▫️Place Prediction Bets: Navigate to the PredictionPage, select an asset, and place “Up” or “Down” bets with FLR before the participation deadline.
▫️Monitor Predictions: Watch live event logs of other users’ bets and track market stats.
▫️Claim Rewards: After resolution, users can claim rewards or view the status of their bets.
Conclusion
VortexEconomi combines decentralized finance (DeFi) functionalities with prediction markets on the Flare Network, offering users a platform for token trading and price speculation. By integrating Flare’s advanced data protocols, it ensures accurate price feeds and secure transaction processing. This dApp contributes to the growing DeFi ecosystem on Flare, promoting user engagement and market efficiency.