Posts

[EN | ES ] An analysis on: CoW | Un analisis de : Cow Swap

avatar of @foxlatam
25
@foxlatam
0 views
9 min read

Hello FOXers 馃

Welcome to our article with an in-depth look at DeFi, NFT, and DAO protocols. This week we will bring you a project with a simple interface, but that aims to solve a chronic problem in this market: the CoW Swap.

MEV: the superpower of miners

Source: 2miners

Competitiveness in the financial market is a reality known to all. Traders fight each other for small percentages on their trades; companies offer higher returns than their competitors, in order to capture their management fees; and common users, trying to survive and understand the dynamics of this market.

In the crypto world, we have advanced: the insertion of blockchain as a means of transmission and storage of information, brought transparency to the negotiations carried out. Venture capital strategies can be visualized, liquidity to buy and sell assets is easily verified and the consumer begins to be more aware of the back-end of how this new decentralized financial market works. Even with the complexity to understand the information, it is up to users to choose to dig deeper and learn how to use the data available on the blockchain.

While the vast majority remain on the surface, some dig deeper into the technology and find mechanisms to exploit its weaknesses and limitations. MEV is one of them.

MEV is the acronym for Miner Extractable Value or Miner Extractable Value. It consists of the profit that the miner will be able to extract from a block by manipulating the order of the transactions contained in it.

Let's recap this theory.

In the Proof of work and Proof of stake chains, all transactions made are sent to a public mempool, where they are visible to everyone. The miners then pack and sort them according to the PGA - priority gas auction-. Basically, they enter the transactions with the highest fees to be executed first, in order to extract the most profit possible from the blocks. mined.

In the figure above, we see a graphical representation of the inclusion of transactions in the crypto and traditional market. See: Technologies have changed, but some problems still remain. Source: Liam Zhang

This profit-driven random selection motivates the implementation of bots to pay high fees and have their trades included in front of ordinary users. Run Front, Run Back or sandwich attacks are some of the actions carried out by bots.

The main motivation to carry them out is arbitrage: when finding disparities in the prices of the different DEXs, the inefficiency can be exploited by programs that carry out this monitoring 24 hours a day, 7 days a week. However, the power to execute your transaction first has multiple applications, from lying NFTs in advance to forcing borrowers to pay off.

Upon finding an opportunity, your transaction will be activated with a higher than conventional gas value and the miner will execute it, with the aim of obtaining more income from the mining activity.

In addition to these cases, it is possible that the miner finds operations carried out by users, replicates them and executes them in advance.

With these advantages, miners have been able to receive generous profits from the activity: according to Flash Bots, it is estimated that the mined MEV has already exceeded $600 million - only on Ethereum -.

Source: FlashBots

Aware of this blockchain inefficiency, Ethereum developers have brought updates to reduce the MEV, such as Ethereum Improvement Proposal 1559. However, such measures are not enough to suppress this activity.

Thus, DEX protocols with built-in mechanisms to avoid MEV have been developed. Through native algorithms, they strive to provide users with the best conditions of liquidity and resistance to MEV. This is the case of CoW Swap.

CoW Swap: an MEV resistant meta-DEX

CoW Swap calls itself a meta-protocol. Its graphical interface it is very similar to most DEXs in DeFi: simply select the cryptocurrencies you want to trade and confirm the transaction. Despite its simple appearance, back-end of CoW Swap works with different mechanisms than those used in the market.

To solve the MEV problem, the Gnosis developers created a DEX that captures liquidity to trade in a different way. Its main differentiators are the use of batch auctions, Wish Matching, ring swaps, and resolvers.

We explain the meaning of each of the terms.

In CoW Swap, trade orders placed by users are not immediately executed on-chain, but are collected off-chain in batches, called lots. These are only signed with wallets and subsequently executed.

The information with the orders is addressed to solvers - aka solvers-, intermediaries in charge of grouping them and finding efficient solutions. Searching for trades that match orders is called a batch auction.

When solvers encounter off-chain buy and sell orders between users, CoW or Coincidence of Wishes occurs. In order to increase liquidity and speed to find efficient orders, CoW Swap inserted the ring trade, which allows trading between more than 2 users and the insertion of the match order in the same block.

Ring trading example Source: CoW Swap

In the event that the solver does not find sufficient liquidity in an off-chain order, it will consult the aggregators and DEXes available to meet the needs of users, opting for the one with the greatest liquidity and price compatible with the market.

Summary of the CoW Swap operation

The mechanisms adopted by CoW Swap provide the market with a tool capable of collecting off-chain orders made by multiple users and executing them in a single block, finding the best trading conditions between traders or aggregators on-chain. .

This prevents miners from manipulating transaction order for profit, providing a MEV-resistant DEX with higher liquidity for trading assets.

Compared to the AMM solutions adopted by Uniswap, Curve, among others, the CoW Swap strategy is very mind-boggling. Its ability to integrate with other protocols, providing its back-end for projects that see benefits in integrating its solution contributes to the expansion of its ecosystem. Gradually, the increase in the number of resolvers further decentralizes the mechanisms for finding orders and improves the ability to find efficient merchants for users.

Their platform is currently available on Gnosis Chain and Ethereum and can be accessed at this link.

This was another review of the DeFi protocol 馃槈

In this week's article, we explain what MEV means, its impact on users' daily lives and how CoW Swap works, a DEX resistant to it.

Do you have doubts about what is MEV? Or do you know another protocol with different strategies to combat it?

Send your questions to our Discord, Telegram and/or Twitter and we will discuss your ideas.

Follow us in our networks!


This article is not investment advice, but only a newsletter with strictly educational content and is not a solicitation or advice to buy or sell assets.


Espa帽ol

Un analisis sobre: CoW Swap

Hola FOXers 馃

Bienvenido a nuestro art铆culo con un an谩lisis en profundidad sobre los protocolos DeFi, NFT y DAO. Esta semana les traeremos un proyecto con una interfaz simple, pero que pretende solucionar un problema cr贸nico en este mercado: el CoW Swap.

MEV: el superpoder de los mineros

Fuente: 2miners

La competitividad en el mercado financiero es una realidad por todos conocida. Los comerciantes luchan entre s铆 para obtener peque帽os porcentajes en sus operaciones; las empresas ofrecen rendimientos superiores a los de sus competidores, con el fin de captar sus comisiones de gesti贸n; y los usuarios comunes, intentan sobrevivir y comprender la din谩mica de este mercado.

En el mundo criptogr谩fico, hemos avanzado: la inserci贸n de blockchain como medio de transmisi贸n y almacenamiento de informaci贸n, trajo transparencia a las negociaciones realizadas. Se pueden visualizar estrategias de venture capital, se verifica f谩cilmente la liquidez para comprar y vender activos y el consumidor comienza a ser m谩s consciente del back-end de c贸mo funciona este nuevo mercado financiero descentralizado. Incluso con la complejidad para comprender la informaci贸n, depende de los usuarios elegir profundizar y aprender a usar los datos disponibles en la cadena de bloques.

Mientras que la gran mayor铆a permanece en la superficie, algunos profundizan en la tecnolog铆a y encuentran mecanismos para explotar sus debilidades y limitaciones. MEV es uno de ellos.

MEV es el acr贸nimo de Miner Extractable Value o Valor Extra铆ble por el Minero. Consiste en la ganancia que el minero podr谩 extraer de un bloque manipulando el orden de las transacciones contenidas en 茅l.

Recapitulemos esta teor铆a.

En las cadenas Proof of work y Proof of stake, todas las transacciones realizadas se env铆an a un mempool p煤blico, donde son visibles para todos. Luego, los mineros los empacan y clasifican de acuerdo con la PGA - subasta prioritaria de gas-. B谩sicamente, ingresan las transacciones con las tarifas m谩s altas para que se ejecuten primero, con el fin de extraer la mayor ganancia posible de los bloques minados.

En la figura anterior, vemos una representaci贸n gr谩fica de la inclusi贸n de transacciones en el mercado criptogr谩fico y tradicional. Ver: las tecnolog铆as han cambiado, pero a煤n persisten algunos problemas. Fuente: Liam Zhang

Esta selecci贸n arbitraria impulsada por las ganancias motiva la implementaci贸n de bots para pagar tarifas altas y tener sus operaciones incluidas frente a los usuarios comunes. Correr al frente, correr hacia atr谩s o ataques s谩ndwich son algunas de las acciones que realizan los bots.

La principal motivaci贸n para llevarlos a cabo es el arbitraje: al encontrar disparidades en los precios de los diferentes DEX, la ineficiencia puede ser aprovechada por programas que realizan este monitoreo las 24 horas del d铆a, los 7 d铆as de la semana. Sin embargo, el poder de ejecutar su transacci贸n primero tiene m煤ltiples aplicaciones, desde mentir NFT por adelantado hasta obligar a los prestatarios a liquidar.

Al encontrar una oportunidad, su transacci贸n se activar谩 con un valor de gas superior al convencional y el minero la ejecutar谩, con el objetivo de obtener m谩s ingresos de la actividad minera.

Adem谩s de estos casos, es posible que el minero encuentre operaciones realizadas por los usuarios, las replique y las ejecute con anticipaci贸n.

Con estas ventajas, los mineros han podido recibir generosas ganancias de la actividad: seg煤n Flash Bots, se estima que el MEV extra铆do ya super贸 los $600 millones de d贸lares - solo en Ethereum -.

Fuente: FlashBots

Conscientes de esta ineficiencia de blockchain, los desarrolladores de Ethereum han tra铆do actualizaciones para reducir el MEV, como Propuesta de mejora de Ethereum 1559. Sin embargo, tales medidas no son suficientes para suprimir esta actividad.

As铆, se han desarrollado protocolos DEX con mecanismos incorporados para evitar el MEV. A trav茅s de algoritmos nativos, se esfuerzan por brindar a los usuarios las mejores condiciones de liquidez y resistencia al MEV. Este es el caso de CoW Swap.

CoW Swap: un meta-DEX resistente a MEV

CoW Swap se llama a s铆 mismo un meta-protocolo. Su interfaz gr谩fica es muy similar a la mayor铆a de los DEX en DeFi: simplemente seleccione las criptomonedas que desea intercambiar y confirme la transacci贸n. A pesar de su apariencia simple, back-end de CoW Swap funciona con mecanismos diferentes a los utilizados en el mercado.

Para resolver el problema de MEV, los desarrolladores de Gnosis crearon un DEX que captura la liquidez para operar de una manera diferente. Sus principales diferenciadores son el uso de subastas por lotes, Coincidencia de Deseos, intercambios en anillo y solucionadores.

Te explicamos el significado de cada uno de los t茅rminos.

En CoW Swap, las 贸rdenes comerciales realizadas por los usuarios no se ejecutan inmediatamente en la cadena, sino que se recopilan fuera de la cadena en lotes, llamados lotes. Estos solo se firman con billeteras y posteriormente se ejecutan.

La informaci贸n con los pedidos se dirige a los solvers - aka solucionadores-, intermediarios encargados de agruparlos y encontrarles soluciones eficientes. La b煤squeda de operaciones que coincidan con las 贸rdenes se denomina subasta por lotes.

Cuando los solucionadores encuentran 贸rdenes de compra y venta fuera de la cadena entre usuarios, se produce CoW o Coincidencia de deseos. Con el objetivo de aumentar la liquidez y la velocidad para encontrar 贸rdenes eficientes, CoW Swap insert贸 el ring trade, que permite operar entre m谩s de 2 usuarios y la inserci贸n de la orden match en el mismo bloque.

Ejemplo de comercio de anillos Fuente: CoW Swap

En caso de que el solver no encuentre liquidez suficiente en una orden off-chain, consultar谩 los agregadores y DEXes disponibles para atender las necesidades de los usuarios, optando por aquel de mayor liquidez y precio compatible con el mercado.

Resumen de la operaci贸n CoW Swap

Los mecanismos adoptados por CoW Swap brindan al mercado una herramienta capaz de recopilar 贸rdenes fuera de la cadena realizadas por m煤ltiples usuarios y ejecutarlas en un solo bloque, encontrando las mejores condiciones comerciales entre los traders o agregadores en la cadena. .

Esto evita que los mineros manipulen el orden de las transacciones para obtener ganancias, proporcionando un DEX resistente a MEV y con mayor liquidez para negociar activos.

En comparaci贸n con las soluciones AMM adoptadas por Uniswap, Curve, entre otros, la estrategia de CoW Swap es muy alucinante. Su capacidad para integrarse con otros protocolos, proporcionando su back-end para proyectos que ven beneficios en la integraci贸n de su soluci贸n, contribuye a la expansi贸n de su ecosistema. Gradualmente, el aumento del n煤mero de solucionadores descentraliza a煤n m谩s los mecanismos para encontrar pedidos y mejora la capacidad de encontrar comercios eficientes para los usuarios.

Su plataforma est谩 actualmente disponible en Gnosis Chain y Ethereum y se puede acceder en este enlace.

Esta fue otra revisi贸n del protocolo DeFi 馃槈

En el art铆culo de esta semana, te explicamos qu茅 significa MEV, su impacto en la vida diaria de los usuarios y c贸mo funciona CoW Swap, un DEX resistente a 茅l.

驴Tienes dudas sobre qu茅 es MEV? 驴O conoces otro protocolo con diferentes estrategias para combatirlo?

Env铆e sus preguntas a nuestro聽Discord,聽Telegram聽y/o聽Twitter y discutiremos sus ideas.

S铆guenos en nuestras redes!


Este art铆culo no es un consejo de inversi贸n, sino solo un bolet铆n con contenido estrictamente educativo y no es una solicitud ni un Concejo para comprar o vender activos.