Mars isn't just another money market

It’s a generalised credit protocol enabling both peer-to-smart contract AND smart contract-to-smart contract lending 🔴

The latter is the real breakthrough and what I’m most excited about.

Thread about why 👇

1/ Many say DeFi is inefficient because all lending must be overcollateralised – you have to lock up more than what you borrow

They then argue the solution is moving to some form of trust-based "uncollateralised" lending

We agree with the problem, but not with the solution
2/ Rather than porting concepts directly from TradFi, we believe in using crypto’s inherent advantages to create new, better primitives

In order to understand these advantages, we must first examine how credit works in TradFi and how this differs from crypto
3/ In TradFi, debt is a legal construct

Specifically, lenders lend money to borrowers who promise to pay back principal + interest over some time period

If they fail to do so, the lender has legally protected rights to enforcement
4/ Therefore, debt is nothing but a legally enforceable promise. It cannot exist without legal agreement and cannot be enforced without courts of law
5/ Enforcement in TradFi is notoriously expensive, with liquidation involving messy, time-consuming legal processes.
As a result, much more time (and money) must be spent establishing trust in counterparties via cumbersome KYC, credit & background checks, business plan assessment, etc

High cost of enforcement → high cost of establishing trust → higher interest rates
5/ Crypto replaces legal enforcement with systems of incentives. This reduces the cost of enforcement and thus eliminates the need to establish trust

There are two elements which combine to make crypto lending different:

(1) Smart contract lending
(2) Tokenised collateral
6/ SC lending

In the real world, lenders lend to counterparties and must trust them to use the money the way they said they would

As a result, in TradFi much more time (and money) must be spent establishing trust
7/ In crypto, lenders can lend to SCs where they only need to examine the code to figure out what it’s doing and whether they’re willing to underwrite the risks
8/ Tokenised collateral IRL, borrowers may hold all sorts of collateral.In order to liquidate, lenders must go through expensive and time-consuming legal processes with no guarantee of getting their money back (e.g. borrower flees the country or declares bankruptcy)
9/ In crypto, SCs can hold tokenised collateral representing a borrower’s assets. As long as the tokens are liquid and the SC & game theory function as designed, the lender can underwrite knowing a defaulting borrower will be liquidated as soon as his margin threshold is breached
10/Assuming collateral is liquid, all the lender must do is ensure borrowing SC includes appropriate risk params and liquidation logic

Once the borrower reaches their liquidation threshold, anyone can come in and liquidate their collateral, receiving a bonus for their service
11/ Crucially, the loan is trustless in that the lender doesn’t need to know anything about the borrower in order to make a decision (no more credit history), nor do they need to rely on the legal system to make sure they get paid in case of default
12/ To make this less abstract, let’s look at an example of it in action such as the Leveraged Yield Farming (LYF) initially pioneered by @AlphaFinanceLab

LYF is an example of SC lending
13/ In this case, the entrepreneur is the farmer. He’s bullish ASTRO and wants to accumulate as much of it as possible through farming the ASTRO/UST pool

Normally, he’d be limited by the amount of spot ASTRO and UST he holds
14/ A traditional money market wouldn’t help since he can only borrow less than what he puts in

A traditional lender would never lend to a farmer, but if they did they’d require a business plan, KYC and a high interest rate to compensate for the tx costs and risk of default
15/ Instead, the entrepreneur can apply for a credit line from the Red Bank. In order to do so, he writes a smart contract which does the following:
15/ The entrepreneur is now levered 2x long, earning 2x the yield. But isn't this risky for the lender?

No, because the SC holds the LP shares as collateral and enforces a certain margin requirement. If this level is reached, anyone can call a function which does the following:
16/ Let’s put some numbers on it to see how it works

An entrepreneur uses 500ASTRO worth $1 each to borrow $500UST. His collateral is $1000 of ASTRO-UST LP shares and he owes $5000 UST.

His LTV is 0.5 and the SC enforces a margin requirement of 0.83
Over time, as long as the yield on the collateral is greater than the cost of the debt, the user makes money

17/ However, if the value of $ASTRO drops to $0.35 the user now has only 259.8 UST and 845.15 ASTRO for a total of $591.61
The LTV goes to 0.845 and the liquidation condition is triggered. What happens now?

18/ While Mars starts out focused on LYF, this is only the first of many potential use cases

The same architecture could for example be used to extend credit lines for leveraged trading
19/ We can also imagine a decentralised FTX like product on top of Mars, combining LYF and margin trading into 1 credit account with a single margin requirement

The Martian council would just have to underwrite the SC risk engine and liquidation conditions for the various assets
20/ Note that the same design can be used to give arbitrary amounts of leverage with the only limit being the contract’s ability to liquidate which itself is determined by:

a) the speed of the blockchain
b) the liquidity, volatility and other risks of the collateral asset
21/ For instance, many mAssets are a few standard deviations less volatile than most cryptoassets, potentially enabling much higher leverage on farming/trading
22/ Inspired by @AaveAave's pioneering work with their asset listing risk framework, Delphi Labs will release an open-source framework to help the Martian council assess LYF strategy risks, including recommended risk parameters for different kinds of assets and strategies
23/ This is a starting point and will be discussed, iterated and improved on by the Martian Council over time

We envision a future where a smart contract can be built around any kind of liquid, tokenised collateral, unlocking efficient leverage on anything that can be tokenised
24/ For instance, once in-game assets are tokenised and liquid, someone could write a smart contract that uses in-game assets as collateral to borrow stablecoins and buy more of these assets and “farm” with them (i.e. competing or breeding)
25/ The lending contract would allow them to interact with whitelisted contracts (i.e. game contracts) and track the value of collateral and cost of debt over time, imposing a certain margin requirement at which point it’d seize and liquidate the collateral
26/ As more assets and cashflows move on-chain, more and more of the world’s capital will be able to be tokenised and programmed

This will dramatically expand the scope of the kinds of smart contracts that can receive credit lines from Mars
27/ I truly believe the sky is the limit for what can be done with such a credit protocol primitive, and look forward to seeing where the Mars community decides to take it

Disclaimer: I hold $MARS tokens and so does Delphi Labs
28/ Disclaimer 2: All this stuff is experimental technology, built on top of more experimental technology. Please exercise caution when interacting with it and don’t put in more than you can afford to lose. Full disclaimers are available below

mars-protocol.medium.com/mars-disclaime…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with José Maria Macedo

José Maria Macedo Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @ZeMariaMacedo

Feb 8
At Delphi Labs, we've thought a lot about oracles in the context of our contributions to @mars_protocol and @astroport_fi

In this report, we summarise our key learnings and propose a new framework to set TWAP parameters based on the cost of attack

members.delphidigital.io/reports/attack…
Oracles are key crypto infrastructure, lying at the core of all debt-based protocols such as money markets, derivatives, perps, etc. They're also one of DeFi's biggest attack vectors

This article by @samczsun provides an excellent summary of the issues

samczsun.com/so-you-want-to…
At the highest level, money market oracle manipulation attacks can be broken down into two main categories:

(1) False collateral value increase

(2) False collateral value decrease / debt asset value increase ImageImage
Read 7 tweets
Jan 24
Prediction markets are one of the OG crypto use cases that most excite people's imagination

And yet all attempts at building them so far have failed

Thread on why I think this is and why we're so pumped about @azuroprotocol's approach

2/ In terms of mech design, most PMs have used P2P architectures

In these designs, not only do LPs have to bootstrap each individual betting market but also the "yes" and "no" side of each market, effectively setting the odds and taking all the betting risk related to that mkt
3/ This means users' ability to bet on one side of a market is constrained by liquidity on the other side of that market

This has led to low liquidity, terrible odds and hardly any bet volume
Read 11 tweets
Oct 27, 2021
Alpha leak: @astroport_fi is in audit and will be launching in mid November

DEXes are the core building block of any DeFi ecosystem. The launch of Astroport means @terra_money will now have a best-in-class AMM

Thread on why I think this and why it matters 👇
1/ As I see it, @astroport_fi provides two fundamental improvements to existing AMMs:

✦ Flexible pool model
✦ Token econ & governance

I'll cover each of them in turn
2/ Flexible pool model

Different AMMs use different algorithms (also referred to as "pool types") to price assets, with each one being appropriate for certain kinds of assets

For instance, Uniswap's xyk pool is appropriate for volatile assets but inefficient for stable assets
Read 27 tweets
Sep 20, 2021
Delphi Labs is expanding 📈

We're looking for a few key people to join our team and help us build out the future of france

You'll be surrounded by world-class talent working on some of the most interesting problems in the space

More below 👇 Image
COO

@lukedelphi and I are entrepreneurs at heart and we like to move fast. We need a detail-oriented operations exec to complement our skill-set, bringing a bit of structure/discipline to our workflows

This is a key role for a Wags like character to take ownership of
Games Economist

We've been intimately involved with the P2E space from the get-go, designing the token econ and leading seed rounds for @AxieInfinity, @YieldGuild, and others. We're now looking to leverage these learnings and build a FT gaming econ team
Read 9 tweets
Sep 8, 2021
Few realise it, but #TerraAutumn is coming 🌖🍂

The pieces will start falling into place once Columbus 5 goes live in late September

In this thread, I share my mental model for @terra_money and guide to the end of year setup as I see it 👇
1/ Before we begin, it’s important to realise what Terra is

Terra’s product is often misunderstood as an L1

In reality, Terra’s only product is $UST. Everything else, including the L1, simply exists to help make $UST the most useful and decentralised form of money there is
3/ The decentralisation mechanisms are well-covered, so I’ll focus mostly on utility. What makes money useful?

Money can either be spent or held/invested (deferred spending)

Terra aims to make $UST useful for both
Read 23 tweets
Jul 19, 2021
1/ Delphi Labs is excited to announce that @lex_node has joined us as General Counsel

Gabe is a crypto law OG and widely respected as one of the top legal minds in the space having worked with projects like Metacartel, Lido, Yearn, Sushi, among many others
2/ Our goal at Delphi Labs is to push the crypto space forwards by helping projects with whatever they need to be successful

We already have exceptional talent in economic design, product, UX and strategy, but all projects grapple with the legal challenges crypto presents
3/ Unlike some in the space, Gabe applies existing regulations as they actually are rather than an idealised version of what they should be

He’s also written some of the best research out there on the implications of securities laws for token projects: github.com/lex-node
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(