FlareTrade is a next-generation decentralized trading and settlement platform built on smart contracts. It allows users to securely lock collateral, open positions, and settle trades trustlessly using blockchain infrastructure — with real-time market visualization and Web3 wallet integration.
To build a fully trustless, transparent, and automated trading & settlement system where:
- Users control their own funds
- Trades are settled on-chain
- No intermediary can manipulate balances
- All actions are verifiable on the blockchain
✅ Trustless collateral locking
✅ On-chain trade settlement
✅ MetaMask wallet integration
✅ Live BTC, ETH & SOL price charts
✅ Built on Flare / EVM-compatible network
✅ Fully decentralized execution
User Interface (Next.js) ↓ MetaMask Wallet ↓ Ethers.js ↓ Smart Contracts (Flare / EVM) ↓ On-chain Collateral & Settlement
📊 Live Market Data → TradingView API → Frontend Charts
The heart of the entire platform – responsible for all financial logic.
Responsibilities:
- Locking and releasing collateral
- Managing user positions
- Executing settlements
- Secure withdrawals
- Access control
Core Contracts:
FlareTrade.sol– Main collateral & settlement logicToken.sol– ERC20 test token
Tech Used:
- Solidity ^0.8.x
- Hardhat
- Ethers.js
MetaMask acts as the user authentication and transaction signer.
Functions:
- Wallet connection
- Network detection
- Transaction signing
- Collateral deposits
- Secure withdrawals
The complete user interaction layer.
Features:
- Wallet connection interface
- Live crypto charts
- Collateral deposit & withdrawal UI
- Open & close position dashboard
- Transaction status updates
Tech Stack:
- Next.js
- React
- TypeScript
- Ethers.js
- Tailwind CSS
Used only for visualization & decision making.
- BTC
- ETH
- SOL
- Real-time candle charts
Your platform is deployed on an EVM-compatible chain which enables:
- Low gas fees
- Fast confirmation
- Seamless Solidity deployment
- Oracle-friendly environment
Currently the platform is Frontend + Blockchain, but future backend may include:
- Trade history indexing
- Risk engine
- Notifications
- Analytics
- Leaderboards
/contracts └─ FlareTrade.sol └─ Token.sol
/src /app /components /lib └─ contract.ts └─ abi/
hardhat.config.ts .env README.md
- ✅ No centralized custody
- ✅ Users control private keys
- ✅ All fund movement is on-chain
- ✅ No backend can manipulate assets
- ✅ Every transaction is verifiable
- User connects wallet
- Deposits collateral
- Position is stored on-chain
- Trade logic executes
- Settlement is triggered
- User withdraws funds
✅ Trustless financial logic
✅ Automated settlements
✅ Transparent balance tracking
✅ No third-party risk
✅ Fully decentralized execution
- Solidity
- Hardhat
- Ethers.js
- Next.js
- TypeScript
- MetaMask
- TradingView API
This project was built as part of FlaredUpHack with the goal of demonstrating:
- Decentralized finance infrastructure
- Secure collateral management
- On-chain settlements
- Web3 user interaction
FlareTrade is a decentralized collateral and settlement engine where smart contracts securely manage funds and execute trades without intermediaries.
This project is proudly built by the Infibytes team:
Harsh Abhinav – https://github.com/harshabhinav
Mayank Bhatt – https://github.com/Mayank-Bhatt-014
Fayzan Mohammed – https://github.com/nova19-exe
Mohammed Aman – https://github.com/MohammedAman123
🤝 Together, we collaborated across blockchain, frontend, system design, and deployment to bring FlareTrade to life for FlaredUpHack.







