Thyborg Profile picture
Jul 15 13 tweets 3 min read
Like it or not, the Cosmos ecosystem is bound to become the ultimate MEV bots fun park

Interchain accounts, interchain security etc. are all making the playground space bigger & better

Let's kickoff a series of reasonably short Cosmos MEV threads with Part 1: the Basics
MEV stands for miner extractable value & represents the profit that a "miner" can make through its ability to include, exclude or re-order transactions within the blocks

The term Miner comes from the Proof-of-Work world - for Cosmos, that'd be the validators & relayers
In practice, MEV isn't necessarily extracted by validators but by also by independent network participants who run algorithms on blockchain data to find profitable opportunities

This is almost always done through automated bot strategies
There are different forms of MEV, including but not limited to:
- Arbitrage (good)
- Liquidation (good)
- Sandwiching (bad)
All these opportunities are born the fact that:

1- a block can only contain a limited number of transactions
2- block producers have autonomy in selecting pending txs

These pending (i.e unconfirmed) transactions are stored in an off-chain location called the mempool
Let's quickly go through some MEV forms:

DEX arbitrage is "good" MEV: bots profit by purchasing an asset on an exchange (e.g Osmosis) offering a lower price & selling it on the exchange offering a higher price (e.g Sifchain)

The result is both exchange prices are now the same
Liquidations are "good" MEV that happen in lending protocols like #Kava (and soon Umee & Mars)

Imagine a user has borrowed too much $USDX (Kava's stablecoin) and that value now exceeds the value of the $ATOM collateral
In that case, Kava allows anyone to liquidate the collateral to pay off the $USDX lenders as fast as possible

MEV bots will quickly determine that the user can be liquidated and fight to be the first to submit a liquidation transaction
The winner will be able to sell the $ATOM collateral to pay back the $USDX loan & collect a significant liquidation fee for the effort

The result is that the protocol is solvent and lenders got their $USDX back quickly & efficiently
Sandwiching is "bad" MEV that combines two others MEV forms: front-running & back-running

Front-running happens when MEV bots monitor large trades, copy them and pay a higher transaction fee to get their transaction processed first
Back-running happens after the original user’s trade is processed: the market price has now shifted in the frontrunner’s favour and he can take profits by selling thee asset

Sandwiching creates invisible fees for regular users, as they incur a larger amount of slippage
The result is that the actual price paid by the user was much larger than the expected price without the MEV bots

There are several interesting solutions to optimise the effects of good MEV and mitigate the effects of bad MEV
In the next threads, we'll go over these solutions and see how the game theory behind their respective implementation & potential success might hugely impact the way Cosmos develops

if that sounds interesting, you may consider re-tweeting & giving me a follow @Thyborg_ ✌️

• • •

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

Keep Current with Thyborg

Thyborg 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 @Thyborg_

Jul 13
The Cosmos Hub is the Hub of the Cosmos ecosystem, hence the name. There is, however, another Cosmos chain whose goal is to become a Hub for the entire crypto space

That chain is @axelarcore and today's thread goes over that ambitious vision 🧵
@axelarcore If you're unfamiliar with Axelar, check out my 1st rundown thread
@axelarcore Let's start with the basics

The Hub & spoke model is a set up where all messages between parties pass through a routing hub
Read 12 tweets
Jul 12
If Cosmos is the USA, the Hub is New York

The liquidity-rich EVM ecosystem is Europe & the nascent but growing Polkadot ecosystem is Latin America

Assets will be bridged to consumer chains from Ethereum & Polkadot, and then flow to the rest of the ecosystem
Osmosis & Juno are California & Texas, i.e majors (and somewhat competitive) economic poles

They are powerful enough to open the own direct routes, i.e relay channels & bridges
But in a world of 10,000 app-chains, it's hard to imagine 10,000 * (10,000 - 1) = 90M individual relay channels

That's when it'll makes sense to route transactions between smaller chains through the Cosmos Hub, which could be another business model for $ATOM holders
Read 4 tweets
Jul 10
It appears to me that the crypto world hasn't priced in the fact that @CelestiaOrg, @axelarcore & @agoric are three of the most exciting & technologically-innovative projects in the entire space, and they've all made the decision to build on top of Cosmos
@CelestiaOrg @axelarcore @agoric Celestia is building the first modular blockchain network to make deploying a blockchain as easy as deploying a smart contract
@CelestiaOrg @axelarcore @agoric Axelar is building a universal overlay network to connect all blockchain ecosystems, applications & assets
Read 10 tweets
Jun 26
If #Cosmos was a European football league, it's safe to say it just had its biggest transfer season ever

A recap of the confirmed migrations and why it matters 🧵
The football league analogy is quite appropriate because similar to the major clubs with players, established blockchains often have to extend massive financial offers to attract the top projects
Cosmos biggest catch, however, will run its own app-chain:

Ethereum's most successful L2 app @dydx is leaving the StarkEx roll-up to launch on Cosmos

Read 16 tweets
Jun 23
Yesterday @dYdX announced their decision to spin up their own chain using the Cosmos SDK, which immediately made the #Cosmos hashtag trending on Twitter everywhere

In this thread, I cover what is DyDx, their decision and the massive impact for both Cosmos & Ethereum roll-ups 🧵
@dYdX dYdX is a decentralised exchange for perpetual contracts

A perpetual contract is a special type of futures contract, which itself is an agreement to buy or sell an asset at a predetermined price at a specified time in the future
@dYdX With futures, the trades are not ‘settled’ instantly ; Instead the two counter-parties trade a contract that defines the settlement at a future date

But unlike regular futures, perps don't have an expiry date and trader can hold a position for as long as they like
Read 21 tweets
Jun 21
A Thyborg exclusive: an upcoming Cosmos L1 with solid backing is in the process of bringing a dozen of disillusioned Solana protocols to their permissioned smart-contract Cosmos chain 🧵
Solana made a name for itself because of the low fees & high
throughput

The official documentation had the theoretical transactions per second (TPS) at 65K

For reference, Visa processes an average of 1,7K TPS and the network can theoretically handle 24K

Ethereum is at 12 TPS
Anecdotally, every time I checked the Solana Beach explorer, the TPS was below 3,000 transactions per second Image
Read 13 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!

:(