Inspiration

The name is a commemoration of Richard Whittington, Lord Mayor of London, the real-life inspiration for the tale Dick Whittington and His Cat. Medieval entrepreneur, hacker, and philanthropist. Citing Wikipedia: "In his lifetime he financed a number of public projects, such as drainage systems in poor areas of medieval London, and a hospital ward for unmarried mothers. He bequeathed his fortune to form the Charity of Sir Richard Whittington which, nearly 600 years later, continues to assist people in need."

Meet John. John's laptop broke and he needs some cash to get a new one. He has some savings but he's not touching it, that's for his retirement. So what are Joe's options?

  • use his savings (Nah, if he touches it once, there’s an easy way to spend it all one day)
  • get a loan and pay interest (Nah, he does have money, paying extra doesn't make sense)
  • put his savings into Compound and wait until it brings enough money (Nah, he needs it now, not in a year)
  • or just Whitt it!

What it does

What is Whitt? It's another cool DeFi money lego! It allows anyone to get an upfront, fixed interest rate earnings on their locked collateral. Counterparty can buy future interest from this collateral for a specified fixed amount. It's just a trustless interest rate swap, but much simpler and more useful than before.

Say John can lock $100K in DAI for a year. The current Compound supply interest rate is ~8.00%, so John can potentially get $8k DAI in a year, assuming that the rate won't change (it will!). So he's ok with getting a bit less, say 6% interest if the interest rate is fixed and he gets money right away.

Now let's say that some Richard is willing to pay $6.25K in DAI right now to profit on John's Compound for a year. Richard takes risk of Compound rate change and provides John with instant money. If Compound rate stays on average at 8% Richard gets $8K - $1.75K profit on his $6.25K investment (28%). If Compound rate increases, his profit will be even higher and even if the rate goes down, he still gets some of the money back.

And in the future Whitt may take just the small spread difference, like 0.25% of the initial collateral, to make it happen.

How I built it

We use rDAI or aDAI to keep lenders' collateral. Until someone pays the lenders' desired upfront fixed fee, the interest goes to the lender. Once the upfront fixed fee is provided to the contract, it forwards it to the lender and sets interest receiver to the contract that paid the fee, locking the collateral for a given period (a year by default right now). Once the lockdown period ends, the lender can get his collateral back.

The code is available at: https://github.com/cfelde/WhittMoney and the app is up&running at: https://Whitt.Money

Challenges I ran into

Understanding interest rate swaps. Simplifying the process. Making it work in a trustless manner in a way that incentivizes both lenders and whitters.

Accomplishments that I'm proud of

  • Finishing it in just a bit more than one day.
  • Coming up with promising, sustainable economic incentives both for collateral providers and fixed fee payers to make it work - esp. having the fixed-rate interest paid upfront, which makes it even better than traditional interest rate swap

What I learned

  • it's not a good idea to test Compound using a really, really small fractions of DAI
  • while blockchain tools are constantly improving, it's still a bit of a challenge to use them conveniently

What's next for Whitt.Money

  • matchmaking and pooling lenders and whitters when the amounts on both sides don't fit
  • extending to other yield providers - Aave, DSR, RAY, etc.
  • whitt auctions where whitters can bid for the best price on his collateral's future interest

Built With

Share this project:

Updates