Sooraj 🚢 Profile picture
Apr 9 20 tweets 8 min read
Ethereum's Account-based ledger model is dominating the DeFi space for now!!

but DeFi on #Cardano is on the rise.

Here are the reasons why E-UTxO ledger archictecture of #Cardano is superior to the Account-based model of #Ethereum

🧵👇
So what are the different ledger models?

1. #Bitcoin 's UTxO (Unspent Transaction Output) - ledger model

Satoshi invented #Bitcoin to be the permissionless decentralized internet money

Bitcoin introduced the UTxO ledger model to fulfill that purpose in the most elegant way
In the UTXO ledger model

individual transactions consist of a list of ''inputs'' and ''outputs''

and

the sum of the values consumed by a transaction’s inputs must equal the sum of the values provided by its outputs
The main advantage of the UTxO model is that

the semantic model or method of structuring data on the ledger stays simple

in a complex distributed and dynamic computing environment

But this also comes with some limitations
The main disadvantage is that

the expressiveness of programmability on the protocol based on the UTxO model is very limited.

It is impossible to build a DeFi Ecosystem, like what Ethereum has today, on top of the UTXO model
Before Vitalik Buterin developed Ethereum with his team

he was involved in a project also known as Colored Coins

Colored coins were supposed to represent applications like Dapps on Bitcoin

Which turned out to be unsuccessful due to the above-mentioned limitation
This limitation of #Bitcoin is what motivated Vitalik to choose the Account-based ledger model for #Ethereum

So what is Ethereum's Account based ledger model?

The account-based transaction model represents assets as balances within different accounts, similar to bank accounts.
The account model offers clear advantages when it comes to enabling smart contracts

This ledger model allows way more expressiveness of programmability

This resulted in the flourishing of DeFi on Ethereum as we see today.

Unfortunately,

this expressiveness comes with a cost
the account-based model of Ethereum introduces the notion of a ''shared mutable state''

Have you ever paid a hefty transaction fee for a failed transaction on #Ethereum??

It happens pretty often

this is a consequence of the ''shared mutable state''
This is one of the main limitations of Account-based model

What does ''shared mutable state'' mean?

if two or more parties can change the same data & if their lifetimes overlap

Then there is a risk of one party's modifications preventing other parties from working correctly
This significantly complicates the semantics of the contract code and introduces security issues

In other words Accounts based model is has a much bigger surface area for attacks than the UTXO model

Here is the significance of the E-UTxO/Extended-UTxO model of #Cardano
So what is Cardano's E-UTxO model?

Purpose of E-UTxO model is to extend and modify the basic UTXO model

to support more expressiveness without switching to an account-based model

Here, the UTXO model is extended with arbitrary logic

in the form of scripts and arbitrary data
The arbitrary logic/scripts allow the E-UTxO model to have more expressiveness

The arbitrary data carries with it information about the state of outputs

which enables the contract state to be localized

as the state is localized

There is no notion of a ''shared mutable state''
Why is the E-UTxO model of #Cardano superior to the Account-based model of #Ethreum?

1. The smart contract validation is performed on-chain and all other logic is off-chain

2. The ‘local’ nature of transaction validation allows for a high degree of parallelism
3. Inherently fragmented nature of E-UTxO allows for easier implementation of Layer 2 scaling solutions like isomorphic state channels (Hydra) and Rollups
The on-chain smart contract validation and off-chain execution of Turing-complete off-chain code

enables performing complex and resource-consuming computation without

without any impact on transaction cost
This feature enables DEXs like @CardanoMaladex and @GeniusyieldO to implement ideas such as programmable swaps and Smart Liquidity Vault

This off-chain execution of code is what Ethereum is attempting by pushing transactions to L 2/Sidechain scaling solutions
TL;DR -

E-UTxO model of #Cardano offers

• off-chain execution complex logic→ scalability

• high degree of parallelism→ scalability

• easier implementation of Layer 2 scaling solutions→ scalability

which makes it superior to the Account-based model of #Ethereum
If you found this thread valuable:

1. Toss me a follow for more threads on P2E and DeFi→ @Soorajksaju2

2. Here’s another similar thread you might enjoy:

• • •

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

Keep Current with Sooraj 🚢

Sooraj 🚢 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 @Soorajksaju2

Apr 10
This year #Cardano is anticipating the implementation of multiple performance enhancements to increase its throughput

''Diffusion Pipelining'' is one of the most anticipated upgrades on #Cardano.

So let's dive in and see how it helps #Cardano to increase its throughput

🧵👇 Image
Earlier this year IOG increased the block size to 80KB to increase throughput of Cardano

The logic is simple: The bigger the block, the more transactions it can carry

But there is a catch: The bigger the block, the more time it takes to propagate the block through the network
So how can you increase the throughput by increasing the block size?

and still, keep the current block propagation time

To understand the changes needed to achieve that,

one should have a basic understanding of how ledger consensus works in general
Read 16 tweets
Apr 8
Have you ever wondered!!

Why there is ''Slippage'' when you use an AMM (Automated market maker) like Uniswap, Trader Joe, or Sundae swap to trade your token?

What is causing the slippage?

What is the influence of ''Liquidity'' on slippage?

Here’s a breakdown of each one: 🧵👇
‘Slippage’ is a phenomenon where a market participant exchanges their assets at a loss

compared to the original market value

due to insufficient liquidity at the initial price point

But we rarely experienced slippage on Binance or Coinbase

Why is it happening on Uniswap?!!
To understand ''Slippage'' one must understand the concept of ''Liquidity''

In a traditional sense

''Liquidity'' refers to the ''efficiency or ease'' with which an asset can be converted into cash or another asset

without affecting the Asset's market price
Read 14 tweets
Apr 7
''Concentrated liquidity'' was introduced by Uniswap V3 to reduce the ''Impermanent loss''

But Liquidity providers still incur impermanent loss on Uniswap V3

So why is this happening?

and

How the solution to this problem may lie in E-UTxO ledger architecture of #Cardano

🧵👇
What is ''Concentrated liquidity''?

Compared to an order book model

an AMM (automated market maker) suffers from capital inefficiency and impermanent loss

Concentrated liquidity was introduced by Uniswap V3 to increase capital efficiency and reduce impermanent loss
How does it work?

The LPs can allocate their capital at specific price ranges called ''range orders''

Fees for providing liquidity are collected only at this price range

When asset prices exit the bounds of range order

no liquidity is provided and no fees are collected Image
Read 18 tweets
Apr 6
When it comes to ''capital efficiency''

AMMs (Automated Market Makers) are inferior to Order book model Exchanges

But why do AMMs like Uniswap dominate the EVM (Ethereum Virtual Machine) based chains?

and why this trend is set to change soon.

🧵👇 Image
So what is a basic DEX (decentralized exchange) ?

A DEX is a peer-to-peer marketplace where transactions occur directly between crypto traders.

In comparison to a centralised exchange like Coinbase

Here the intermediary is replaced by a distributed ledger, the blockchain.
There are two main types of exchange architectures:

1. Order books architecture

and

2. AMM (Automated Market Makers) architecture
Read 22 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!

Follow Us on Twitter!

:(