<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Matias Rodriguez on Medium]]></title>
        <description><![CDATA[Stories by Matias Rodriguez on Medium]]></description>
        <link>https://medium.com/@rodriguezmatid?source=rss-60c49fa3920d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rDA_cxpH5NXnXr_xoMAy4Q.jpeg</url>
            <title>Stories by Matias Rodriguez on Medium</title>
            <link>https://medium.com/@rodriguezmatid?source=rss-60c49fa3920d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 22:57:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rodriguezmatid/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Como calcular el impacto de precio en Uniswap V2.]]></title>
            <link>https://medium.com/@rodriguezmatid/como-calcular-el-impacto-de-precio-en-uniswap-v2-8091e75cc102?source=rss-60c49fa3920d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8091e75cc102</guid>
            <dc:creator><![CDATA[Matias Rodriguez]]></dc:creator>
            <pubDate>Wed, 10 May 2023 11:57:49 GMT</pubDate>
            <atom:updated>2024-04-10T03:16:57.587Z</atom:updated>
            <content:encoded><![CDATA[<p>Impacto en el precio, o “Price impact”, como se lo suele conocer en inglés <strong>es la diferencia entre el precio actual de mercado, y el precio que finalmente vas a terminar obteniendo al realizar un intercambio en un exchange descentralizado</strong>. Esto ocurre motivo del cálculo por el cuál esta armado este mecanismo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*HuLuiLAvgEfFECmTyrZhkw.png" /></figure><p>Uniswap V2, y muchos otros exchange descentralizados como SushiSwap, utilizan la fórmula de producto constante para poder determinar cuanto de un activo puede ser intercambiado por otro. Como es esta fórmula?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/0*7gxFFL_PRi9zuXwu.png" /></figure><p>Siendo X la cantidad de token A, Y la cantidad de token B.</p><p>Siendo K el producto constante, como su nombre lo indica, siempre se mantiene igual. Veamos un ejemplo en SushiSwap para ver exactamente como se calcula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*PRYjlB7Zlppamby9.png" /></figure><p>El pool de liquidez DAI-ETH en SushiSwap al 01/02/2023 tiene 3,729,520 de DAI siendo X, y 2,363 de ETH siendo Y.</p><p>Si multiplicamos uno por el otro, obtenemos K = 8,813,644,711. Esto nos da un precio de 1,578.16 USD por ETH al dividir X sobre Y.</p><h4>Realizando un swap</h4><p>Supongamos entonces que queremos cambiar DAI por ETH, es decir, el pool va a tener mayor cantidad de DAI, y menos cantidad de ETH. En este caso, vamos a aportar 15,000 DAI. Por lo tanto, X’ en este caso sería:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*opRtyc7fjeQtlPHD.png" /></figure><p>El pool tiene un fee de 0.3%</p><p>Para obtener Y’ debemos dividir K sobre X’, ya que recordemos que K es constante.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/0*olkNbZ8hEgnLTpje.png" /></figure><p>Recibiendo así, la diferencia entre Y e Y’. Recibimos aproximadamente 9.43 ETH a un precio de 1,584.49 por ETH. <strong>El price impact entonces va a ser la división entre el precio que estimamos al inicio del swap, y el que finalmente obtuvimos.</strong></p><p>Recordemos que el 0.3% corresponde a las fees del pool.</p><p>Si queremos poder obtener el <strong>mínimo recibido</strong> de ETH por nuestro swap, lo único que resta es multiplicar el ETH recibido por un spread.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/0*esoJkOXzTJXXIIME.png" /></figure><p>En <strong>conclusión</strong>, el impacto de los precios en un exchange descentralizado durante un swap es un factor crucial para entender y tener en cuenta. En este artículo, vimos cómo el reciente swap afectó los precios a obtener de ETH. Gracias por leer este artículo y espero que haya sido de ayuda.</p><p>Espero que hayan encontrado útil la información que compartí. Si desean mantenerse al día con más contenido como este, los invito a seguirme en mis redes sociales!</p><p><strong>💼 </strong><a href="https://www.linkedin.com/in/rodriguezmatid/"><strong>LinkedIn</strong></a><strong> // 🐦 </strong><a href="https://twitter.com/rodriguezmatid"><strong>Twitter</strong></a><strong> // 💻 </strong><a href="https://matiasrodriguez.xyz/"><strong>Página personal</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8091e75cc102" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uniswap. La revolución del intercambio en DeFi]]></title>
            <link>https://medium.com/@rodriguezmatid/uniswap-la-revoluci%C3%B3n-del-intercambio-en-defi-2db424e700f5?source=rss-60c49fa3920d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db424e700f5</guid>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[finanzas-descentralizadas]]></category>
            <dc:creator><![CDATA[Matias Rodriguez]]></dc:creator>
            <pubDate>Sat, 06 May 2023 15:30:03 GMT</pubDate>
            <atom:updated>2023-05-31T12:28:58.397Z</atom:updated>
            <content:encoded><![CDATA[<p>Uniswap es un protocolo de intercambio descentralizado que inicialmente se ejecutó en la red Ethereum. Fue fundado por Hayden Adams en 2018 y se lanzó oficialmente en noviembre de ese mismo año. En lugar de utilizar intermediarios como los intercambios centralizados tradicionales, Uniswap utiliza contratos inteligentes para permitir a los usuarios intercambiar criptomonedas entre sí.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9rUuYEKHnv0WO3GVSPM2g.png" /></figure><h4>¿Cómo funciona?</h4><p>Utiliza un sistema de liquidez automatizado (AMM) para permitir a los usuarios intercambiar criptomonedas entre sí sin la necesidad de un intermediario. En lugar de tener un libro de órdenes, Uniswap utiliza lo que se suele llamar piscinas de liquidez de tokens (de ahora en más, pools de liquidez) para permitir a los usuarios comerciar en la plataforma.</p><p>Este modelo utiliza la oferta y la demanda de estos pares de intercambio para determinar el precio de los activos. En lugar de utilizar un libro de órdenes centralizado, el modelo AMM se basa en una fórmula matemática para calcular el precio de los activos. La fórmula utilizada es:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*0wbGWt993IxnpBt9GyyRTA.png" /><figcaption>donde x e y representan el saldo de dos criptomonedas en un par de intercambio, y k es una constante.</figcaption></figure><p>Por lo tanto, este modelo calcula automáticamente el precio en función de la oferta y la demanda del mercado. Cuanto mayor sea el volumen de comercio en un par de intercambio, más se ajustará el precio en función de la oferta y la demanda.</p><p>Respecto a como los pools obtienen liquidez, esto es gracias a usuarios que la proporcionan recibiendo una parte de las tarifas (a partir de ahora llamados fees) de comercio. En este modelo, los fees son del 0,30% en todas las operaciones realizadas en la plataforma. De estos fees, el 0,25% se distribuye a los proveedores de liquidez, mientras que el 0,05% restante se destina al fondo de tesorería de Uniswap.</p><h4>Las versiones de Uniswap</h4><p>Uniswap tuvo varias versiones desde su lanzamiento:</p><p><strong>Uniswap v1</strong>: Esta versión solamente permitía el intercambio de tokens ERC-20. Fue la versión inicial del protocolo.</p><p><strong>Uniswap v2</strong>: Lanzada en mayo de 2020, acá se mejoró la funcionalidad de la plataforma al permitir a los usuarios crear pools de liquidez.</p><p><strong>Uniswap v3</strong>: Lanzada en mayo de 2021, esta versión fue una actualización importante de la plataforma que introdujo la “concentración de liquidez” . En esta versión, los proveedores de liquidez pueden establecer rangos de precios para los tokens en los que desean proporcionarla. Esto les permite maximizar sus ganancias y minimizar su riesgo, ya que lo que pasa ahora, es que solamente una fracción de los activos depositados en el protocolo estan disponibles a ese precio puntual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlWybVQLecWywgyltG_yZw.png" /><figcaption>Ejemplo de como se distribuye la liquidez.</figcaption></figure><h4>Gobernanza</h4><p>Otra de las características interesantes de Uniswap es su sistema de gobernanza descentralizada. Los usuarios que poseen tokens UNI (el token nativo de Uniswap) tienen la posibilidad de participar en la toma de decisiones de la plataforma a través de la votación. Esto significa que la comunidad de usuarios tiene un papel importante en la dirección futura de la plataforma.</p><h4>Privacidad</h4><p>Resulta clave destacar, que este protocolo es un DEX (exchange descentralizado), donde podes interactuar con el mismo sin la necesidad de revelar tu identidad, como si lo haces para un CEX. Esto es una gran ventaja para muchos usuarios que buscan mantener su privacidad y seguridad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CcZ4Bfdn67sMqAKm.jpeg" /></figure><h4><strong>Redondeando la idea</strong></h4><p>En resumen, Uniswap es una plataforma de intercambio de tokens descentralizada que permite a cualquier persona intercambiar tokens de forma segura y transparente. Con su versión 3.0, Uniswap introdujo una serie de mejoras que mejoraron aún más la experiencia de los usuarios y permitieron una mayor diversidad de tokens para intercambiar.</p><p>Espero que hayan encontrado útil la información que compartí. Si desean mantenerse al día con más contenido como este, los invito a seguirme en mis redes sociales!</p><p><strong>💼 </strong><a href="https://www.linkedin.com/in/rodriguezmatid/"><strong>LinkedIn</strong></a><strong> // 🐦 </strong><a href="https://twitter.com/rodriguezmatid"><strong>Twitter</strong></a><strong> // 💻 </strong><a href="https://matiasrodriguez.xyz/"><strong>Página personal</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db424e700f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rekt Analysis]]></title>
            <link>https://medium.com/@rodriguezmatid/rekt-analysis-97da088599da?source=rss-60c49fa3920d------2</link>
            <guid isPermaLink="false">https://medium.com/p/97da088599da</guid>
            <category><![CDATA[exploit]]></category>
            <category><![CDATA[exitscam]]></category>
            <category><![CDATA[flash-loan]]></category>
            <category><![CDATA[rekt]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Matias Rodriguez]]></dc:creator>
            <pubDate>Sun, 22 May 2022 17:12:07 GMT</pubDate>
            <atom:updated>2022-05-22T17:12:07.144Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of blockchain and cryptocurrencies, rekt is used to describe a severe financial loss. As a result of the exponential growth of DeFi, a whole range of “fast food” scam projects appeared. But this is not the only reason why a project can be wrecked, protocols can have vulnerabilities in their smart contracts. Some types of issues for being rekt can be:</p><p>1. Exit Scam. Involves harmful actions planned by the development team, whose intention was to steal depositors and investors funds.</p><p>2. Flash Loans. This means an attack with the external vector made by a hacker on the target protocol. This results in token’s price imbalances with a further loss of lenders funds.</p><p>3. Smart Contract Exploits. This type involves an external or internal attack vector taking advantage of some vulnerability of a smart contract.</p><p>4. Access Control. Compromised addresses through their private keys, ending in a subtraction of the contents of these wallets.</p><p>Making an analysis of different information sources about this, I found some insights in the data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*RELLziwEo3fpPzjlCkYXJw.png" /></figure><p>These values represent millions of dollars. The total fund lost is estimated in 4.500 million, but I only used the information for 4.336 million because I considered representative (only 100 cases of the 2500 that exists in this base).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*T44MFZgLSrD9DwkNfofmag.png" /><figcaption>Relationship between Issue and Network in terms of fund lost.</figcaption></figure><p>The 48% of this was in the Ethereum chain with 2.101 million. The second one place is for Ronin with only 1 exploit, but the biggest one in terms of funds lost.</p><p>The ETH chain leads exploits, access control, and flash loan with the 51%, 59% and 72% of these issues respectively in terms of money. And the “another” networks lead the Exit Scam with the 57%, this idea shows that in general, the scams take place in the minor networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*V91cNRa6cPLUhvPh8aDExw.png" /><figcaption>Relationship between Issue and Network in terms of fund lost.</figcaption></figure><p>If we make the same analysis but with quantity of cases, ETH, BSC, and “another” networks lead this. And if we see the exit scam issue, BSC becomes important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*DcT6vZ4fz5WZvQLmJAyUaw.png" /><figcaption>Relationship between Issue and Network in terms of quantity of cases.</figcaption></figure><p>Also, we can analyze what happens in terms of issues and years. The year 2022 could be not representative because isn’t full developed yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*Ahx3sPX_MMwJ2jULJWc2bg.png" /></figure><p>We can see that since 2020, all the types of issues have been growing in terms of quantity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*WiTeJ-hE0eQghxHj1ilpqQ.png" /></figure><p>In special, the exploit issue, taking more importance than the others while Exit scam and access control remained fairly the same in terms of funds lost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*L6KfaIW6tOW1OxzvCkz5pw.png" /><figcaption>Relationship between Issue and Network in terms of Quantity of Cases.</figcaption></figure><p>Making focus in the 3 biggest rekt projects that are known, it is evident that the most funds lost are due to exploits, this means vulnerabilities in the smart contracts, and not in scams.</p><p>The biggest one is the Ronin network exploit with a fund lost of 624 million of dollars. The reason of this exploit was related to centralization of the validation nodes, the hacker got permission of the necessary nodes to authorize transactions, which were 5 nodes.</p><p>The second one, the Poly Network exploit took place due to permission errors in the contracts. The network had a contract with the privilege that has the right to trigger messages from another chain. If a protocol has cross chain relay contracts, these contracts can’t be used to call special contracts. In other words, if a contract needs to have special privileges, you need to make sure that users can’t use cross chain messages to call those special contracts, if not, a hacker can take advantage of this.</p><p>The third one is the wormhole on the Solana chain and took place on February 2022. This exploit was a bridge one, and was manipulated into crediting ETH as having been deposited on Ethereum, allowing the hacker to mint the equivalent amount in WETH on Solana.</p><p>In conclusion, decentralization is one of the most important issues in the crypto ecosystem. The other lesson that these cases give us is that security in bridges is as important as decentralization.</p><p>Source: <a href="https://defiyield.app/rekt-database">https://defiyield.app/rekt-database</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97da088599da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>