project screenshot 1
project screenshot 2
project screenshot 3

FlashSwap

Looking to create a service to allow people to use FlashLoans as a service to change Borrow/lend positions on aave platform

FlashSwap

Created At

HackMoney 2022

Project Description

We want to give the ability of the end user to be able to take opportunities in lower interest rates in their borrowing position if the opportunity arrives. Having the ability to change positions without having to bring the liquidity back to pay the loan is a service that we think many would like to take advantage of on sidechains where these tools are not available using AaveV3 and UniswapV3 with the most liquidity.

How it's Made

The contract is built using libraries from Aave and Uniswap to implement the flashloans and swap positions repaying the loan and borrowing the new position token and using the swap function of uniswap to allow you to repay the flashloan in the original token. In aave, we are utilizing the FlashLoanRecieverBase and IPoolLibrary, IPoolAddressProvider for utilizing the flashloan. Uniswap ISwapRouter is used to swap the newly borrowed asset back to the original token.

The front end uses the wagmi framework (via Rainbow Kit) with next.js to be able to support injected wallets, wallet connect and coinbase wallet.

background image mobile

Join the mailing list

Get the latest news and updates