Inspiration

I was inspired by reading through my Twitter feed and saw that protocols were trying to offer users the ability to invest in RWA. I wanted to create a service that allows users to gain rewards from RWA and native DeFi yields simultaneously.

What it does

This service is a functioning prototype that combines two protocols, one protocol for the native Defi yield, and one protocol that captures RWA yield. My project allows you to invest in both of these at the same time so you can earn the maximum amount of rewards.

How we built it

I started by reading through some protocols that use real world assets to see how they worked and how I could possibly combine it with another service. After deciding on MatrixPort's STBT, I started planning out the entire flow on paper and by creating figma diagrams. After I decided on how the flow would work, I began writing the smart contract.

Challenges we ran into

I ran into many challenges while creating this project, some of the big ones were the fact that I would have to test these things on a mainnet fork and impersonate many different addresses to approve my transactions, whitelist my address, and transfer various tokens. Also my project interacts with Curve finance, which uses Vyper smart contracts, so I had to create a custom interface to interact with their pool.

Accomplishments that we're proud of

I'm very proud to have designed this entire structure and brought it to life forever on the blockchain!

What we learned

I learned many little things during my time writing and testing the smart contracts, I learned that for loops are similar to sigma notation in math, and that when calling overloaded functions, you must provide the entire function signature or else hardhat will throw an error.

What's next for RWA vaults

I plan on testing my vault further to insure that it is free from bugs or exploits. After I have battle tested my contract, I want to design additional flows that allow defi protocols to implement with their existing structure effortlessly.

Built With

Share this project:

Updates