Inspiration

Recently I've seen some videos and articles about flashloans. So I decided to fully understand this concept by diving into a project about it. I used existing protocols like Equalizer as inspiration and as a reference.

What it does

Starbits is a staking and flashloan protocol. Stake WHPB, USDT, and/or HPD tokens and earn Starbits. These staked tokens are put into the respective vault smart contracts of the three tokens and can be withdrawn by the user anytime they want. These staked funds are used to execute flashloans.

How we built it

I built the project with NextJS accompanied by TailwindCSS to make the design process more efficient.

Challenges we ran into

It was challenging to get the smart contracts to work properly. I learned through a long time of google searching that approving tokens has to be separate of the transferfrom transaction.

Accomplishments that we're proud of

I am glad the flashloans work, it is the first time I've worked with this concept

What we learned

I learned about the flashloan EIP-3156 standard and how it maintains a standard and efficient method to utilize flashloans

What's next for Starbits

A DEX would be extremely beneficial to this system as the primary use of flashloans is arbitrage between 2+ DEXs.

Built With

Share this project:

Updates