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_ ✌️
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
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
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
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
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
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