Inspiration

Flashloans are a significant part of DeFi as they can stabilize the inefficiencies in price between multiple DEXs. I wanted to create something that has been utilized on other blockchains and bring it to XinFin to benefit the DeFi space.

What it does

XFlash is a flashloan protocol. Meaning you can borrow as much Wrapped XDC in the pool as you want as long as you return it in the same transaction. The borrowed wrapped XDC is used to arbitrage between two DEXs for profit opportunities while also stabilizing the inefficiencies in the price. Users can stake wrapped XDC and earn the protocol's XFLASH token. The staked WXDC tokens are used for the flashloans.

How we built it

XFlash was built using NextJS and TailwindCSS for more efficiency

Challenges we ran into

A challenge I ran into was trying to resolve the errors with submitting the flashloan transaction. The units were tricky to deal with resulting in multiple errors. (Wei <-> Ether) etc...

Accomplishments that we're proud of

I'm proud of how the overall project came out. I think the user interface is decent with the current abilities I have.

What I learned

I learned how to interact with the Uniswap Interface smart contracts. It is a topic that was new to me so I got to experiment with it for the first time.

What's next for XFlash

I'd like to improve the interface even more and add more token pools in the future!

Built With

Share this project:

Updates