Inspiration

I used to wish this existed on other VM chains but figured that transaction costs would prohibit an implementation that made sense from an economical standpoint. Solana's low transaction fees make something like this a no-brainer so I went for it.

What it does

It's effectively a TWAP engine. It allows users to use the interest generated from making deposits on lending protocols to fund purchases on Serum dex, on customisable time periods. You can call it a DCA/TWAP protocol or engine (the wording depends on how you prefer to frame it :) )

How I built it

Smart contract is built with anchor in Rust, the frontend is NextJS (incomplete) and the offchain bot is made in Rust using tokio and postgres (incomplete)

Challenges I ran into

The main problem wasn't complexity, but timing. Hard to find time to complete the project but I fully intend to when work eases up a little

Accomplishments that I'm proud of

I'm proud that I'm able to implement something I've wanted to see myself for so long. It's pretty neat :)

What I learned

Learned anchor dev, how to properly structure anchor contracts (s/o Jet protocol for this), and the solana web3 libs

What's next for Monaco

Well, the first move is to actually finish the damn thing. The web client + offchain bot have yet to be built but I'm confident it'll be done. In the future, i would consider adding support for more funding sources than just liquidity deposits in lending protocols. Maybe yield farms or other interest accruing mechanisms onchain.

Links

https://github.com/RohanKapurDEV/monaco

Built With

Share this project:

Updates