Skip to content

AyushBherwani1998/FilDex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Build Status JS React Hardhat Swap Lottery Pool Wrap

Overview

A DeFi application with AMM decentralised exchange and lottery built for FEVM.

Problem statement

At present, the Filecoin network already possesses a noticeable user base that holds FIL tokens as a valuable asset with minimal usability.

Use cases

• To onboard other DeFi users on the FEVM for mass adoption.

• Users on FEVM are able to exchange FIL for other tokens issued on-chain, and there is enough on-chain liquidity on the FEVM.

• To enable liquidity of governance tokens for Dao’s (like data Dao’s) and storage provider incentives.

Key features

Core features include swapping, unwrapping and wrapping, supplying liquidity, and to incentivise – gamification features like lotteries

• Swap: Exchange any non-native and native tokens.

• Liquidity pools: Create or supply liquidity for token pairs of your choice and earn trading fees on it.

• Lottery: Gamification features to incentivise users and burn mechanism for FDEX token (Fildex utility token). You can win a lottery ticket as an incentive for swapping or buy lottery tickets using our FDEX token. You can choose a randomly generated 6-digit lottery number or re-roll the number to your choice. The lottery pool is distributed among the participants basis on the final number drawn and brackets matched. You will be informed via push notifications of your lottery results and can claim the prizes.

• Push Protocol: Notifications to provide better UX for use cases such as Swap successful/failed, Add liquidity and Lottery events.

How it's Made

We used Openzepplin and Hardhat for smart contract development and FEVM deployment. React is being used to build an amazing DApp and smart contracts are plugged into DApp using web3.js Integrated Push protocol to alert users for transactions of Swap, Add liquidity, and Lottery events.

Contract Addresses

Currently deployed on Hyperspace test net FVM

Contract name Contract address
FSUD 0x9FB47Fa35ec3BFcE7DbcE3f490D1a389c3891a90
FDAI 0x4cC33BD5d61791aC58a43A4f645256E7cc75ED1c
FDEX 0x4E4b516BCFC8EDc5028416Bd588371115b82b65e
wtFil 0x331e12FA9055EBC5F765c6a357D4eB3B1c7008cD
FilDex swap 0x7Ae1344EAAAe3B13136db444730E071682270004
FilDex router 0xc64C4d67FE0c17d3f80BfAFDD42C3442c36c4b7A
FilDex factory 0x33961acE8247E175Da2635b6eB5d72a7513e6eF5
FilDex lottery 0xB9925186B652d6a567B4CDfa2cD82957219C52b3
Random generator 0x59964E4c9D500DBc5Ddee715CbBDFA8FEC8F6ad4