project screenshot 1
project screenshot 2
project screenshot 3

Flash

My DApp combines flash loans, arbitrage, and vesting distribution. It boosts TVL and transaction volumes by offering best prices via Coingecko API, charges 10% fees, rewards loyalty points, and distributes vesting pool profits.

Flash

Created At

ETHGlobal Brussels

Project Description

My DApp seamlessly integrates flash loans, arbitrage, and vesting distribution into a user-friendly platform aimed at increasing Total Value Locked (TVL) and transaction volumes. Utilizing the Coingecko API, it displays the best asset prices and filters options based on user-selected tokens for flash loans. Once a token is chosen and the flash loan initiated, expected earnings are calculated and displayed. A 10% fee on earnings is applied, with 5% going to the platform and 5% to a vesting pool. Users earn loyalty points through their trading activities, and once the vesting pool reaches a certain threshold, a vesting contract is triggered, distributing pool profits based on accumulated points. This streamlined approach simplifies user experience while offering fair rewards and enhancing trading efficiency.

How it's Made

For the frontend, I utilized the Vite framework. Vite was chosen primarily for its rapid development capabilities, ease of deployment, and seamless wallet integration, which is crucial for handling cryptocurrency transactions and user authentication. Additionally, Vite’s robust support for modern JavaScript and CSS allowed for smooth and visually appealing animations, enhancing the user experience.

The backend of the project is powered by AWS, leveraging its robust infrastructure for hosting and endpoint management. AWS services such as Lambda and API Gateway were instrumental in setting up scalable and reliable endpoints. To support the arbitrage functionality, I implemented web scraping to fetch the latest cryptocurrency prices. This data is essential for identifying profitable arbitrage opportunities and is processed in real-time to ensure accuracy and timeliness.

For the smart contract development and deployment, I used Hardhat. Hardhat provided a comprehensive suite of tools for writing, testing, and deploying smart contracts. These contracts are the backbone of the project's core functionalities, facilitating flash loans and token swaps using oracles for price feeds. The use of oracles ensures that the price data used in transactions is reliable and up-to-date, which is critical for executing profitable trades.

background image mobile

Join the mailing list

Get the latest news and updates