<?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 Gaivin Tey on Medium]]></title>
        <description><![CDATA[Stories by Gaivin Tey on Medium]]></description>
        <link>https://medium.com/@Gaivin?source=rss-47b9089dd2bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aJnOUBl8G1nLRRgvXof4ZQ.jpeg</url>
            <title>Stories by Gaivin Tey on Medium</title>
            <link>https://medium.com/@Gaivin?source=rss-47b9089dd2bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 06:29:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Gaivin/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[Perpetual DEX Landscape: Market Making Orderbook vs AMM]]></title>
            <link>https://medium.com/@Gaivin/perpetual-dex-landscape-market-making-orderbook-vs-amm-9257badec01e?source=rss-47b9089dd2bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9257badec01e</guid>
            <category><![CDATA[market-making]]></category>
            <category><![CDATA[dex]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[liquidity-pool]]></category>
            <dc:creator><![CDATA[Gaivin Tey]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 16:06:22 GMT</pubDate>
            <atom:updated>2025-03-25T16:08:22.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ss7jT8WZCyWkNuuE4USR6Q.png" /></figure><p>Decentralized exchanges (DEXes) for perpetual futures is an important sector of the Defi ecosystem, offering an alternative to centralized exchanges. While it still small in size where the DeFi perpetual market is about $1.24 B in size, compared to the estimated quadrillion in traditional derivatives. Although it is a fraction of the size of the derivatives market, the sector has grown rapidly following the failures of centralized exchanges. dYdX currently leads the decentralized perpetual exchange space, as it is able to mimic a centralized exchange experience with significant liquidity being provided by market makers.</p><p>Market-making within decentralized finance varies significantly based on the type of decentralized exchange (DEX). Certain perpetual DEX platforms depend heavily on professional market makers to fill their order books, offering liquidity through algorithmic trading and tight spreads. Other platforms, however, replace traditional market-making entirely by utilizing automated liquidity pools and on-chain algorithms. However, the hybrid model of order books and AMM is growing. This model merges both, to optimize liquidity and increase efficiency. This article analyzes these different models, and discusses the advantages of each, drawbacks as well future growth opportunities within this space.</p><h3><strong>Orderbook-Based Perpetual DEXes</strong></h3><p>The first model is the Orderbook-style perpetual DEXes and this model functions similarly to that of centralized exchanges. A live order book is maintained by professional market makers where traders place bids and asks. Market makers provide liquidity by connecting to these DEXes via APIs to supply quotes and maintain tight spreads. Unlike AMMs, orders are actively managed by market makers to maintain liquidity and adjust orders based on current market conditions.</p><p>One example is dYdX which is one of the largest perp DEX. dYdX utilises off-chain market making by professional market makers to match orders through their engine and then settles the trades on-chain. This design has enabled it to have tight spread favouring traders as it enables efficient trade execution and deep liquidity. Thus, the platform is one of the perp DEX with the highest trading volumes, with pairs such as the BTC/USD having comparable liquidity levels comparable to major centralized exchanges.</p><p>Other orderbook-based DEXes, such as Hyperliquid, follow a similar model. Hyperliquid manages a fully on-chain order book on its decentralized exchange, offering a user experience similar to that of central exchanges while maintaining decentralization. Vertex, which is built on Arbitrum, takes a hybrid approach by integrating an order book with an automated market maker (AMM) and ensures a baseline level of liquidity. Most cryptocurrency markets remain reliant on market makers to sustain liquidity that is deep, though some are combining traditional market-making with decentralized liquidity solutions.</p><h3><strong>AMM-Based Perpetual DEXes</strong></h3><p>AMM-based perpetual platforms rely on algorithmic liquidity pools, unlike order book based DEXes which depend on professional market makers. During such instances, trading against the pool takes place rather than against the order book. By providing liquidity in this way, the payment of large trading fees becomes unnecessary. A primary distinction is the liquidity pool scenario. GMX traders don’t use order books, they swap against a multi-asset pool under the pricing mechanisms of Chainlink oracles. As a result, the price feeds have better accuracy and are not affected by the order book depth. GMX is another notable AMM-based perpetual DEX that functions using a unique liquidity pool structure. GMX utilizes a multi-asset pool in place of order books, referencing Chainlink oracles to determine prices for swaps. This design leads to trades with no slippage as the execution price matches the oracle feeds, instead of being impacted by the order book depth. The negative aspect of this model is that Liquidity Providers (LPs) become the counterparty of the traders. As such, the liquidity pool can lose out, if traders are hugely profitable. To solve this, GMX and such companies use fees and incentives to balance the system between LPs and traders. The benefit of these models is that they allow anyone to provide liquidity rather than restricting that to institutional firms.</p><h3><strong>Hybrid Perpetual DEXes: AMM and Orderbook Liquidity</strong></h3><p>Hybrid perpetual DEXes seeks to blend the best aspects of orderbook-based and AMM-based models, combining on-chain liquidity pools with external market maker participation. These platforms aim to improve capital efficiency while reducing reliance on either professional market makers or purely algorithmic pricing mechanisms.</p><p>Perpetual Protocol is a good case study for a hybrid model. In its version 1, the protocol used a virtual AMM (vAMM) that created a synthetic market without a need for liquidity depth. In its v2 model (Curie), it switched to an execution model powered by Uniswap v3 where Perpetual Protocol uses liquidity from Uniswap pools and manages the margin and leverage itself. This lets external LPs give liquidity while keeping orderbook-like execution dynamics.</p><p>Drift Protocol, a leading Solana-based perpetual DEX, introduced a “Liquidity Trifecta” model that incorporates, an on-chain order book for price discovery, a virtual AMM that provides baseline liquidity and finally a just-in-time liquidity program, where market makers dynamically step in to tighten spreads during volatile periods.</p><p>Likewise, Vertex on Arbitrum incorporates a constant-product automatic market maker along with an off-chain order-matching mechanism for liquidity flow. This hybrid model has picked up steam lately as it increases capital efficiency while still providing on-chain transparency and decentralized liquidity.</p><p><strong>Challenges and Opportunities in Perpetual DEXes</strong></p><p>Although perpetual DEXes are evolving quickly, they still face challenges.</p><p>Firstly, problems with capital efficiency: Orderbook-style models require a lot of liquidity from market makers. Automated market maker pools can have inefficient use of capital. Secondly, Orderbook platforms can provide a tighter spread, but the AMMs could suffer an impermanent loss and reliance on an external price oracle. Lastly, in an AMM model, the pools must be balanced efficiently to avoid draining liquidity for a long time, especially considering if traders are beating the pool.</p><h3><strong>Opportunities and the role of AI</strong></h3><p>As DeFi continues to grow, AI could help with market making, and optimizing liquidity provision and risk management. New developments in AI are already influencing on-chain trades, especially in strategies.</p><p>1. Liquidity allocation across AMM pools and order books can be adjusted dynamically with predictive analytics to ensure maximum capital efficiency.</p><p>2. AI-based market makers could be superior as they adjust spreads to the volatility &amp; liquidity depth in the market in real-time, which helps in profit maximization.</p><p>3. AI can help to figure out when there may be a risk to liquidity drain. Based on this information, the trading platforms can automatically adjust the fees of trading and collateralization ratios in order to maintain a balance.</p><p>4. AI-driven trading bots on order book based DEXes are capable of offering real-time bid-ask spreads, ensuring tighter liquidity and enhancing trade execution.</p><h3><strong>Conclusion and Future Outlook</strong></h3><p>Perpetual DEXes have evolved significantly, introducing new ways for traders to access decentralized, non-custodial derivatives markets. Orderbook-based models remain dependent on market makers, AMM-based designs automate liquidity, and those that are hybrid in nature use both methods in some form to boost capital efficiency.</p><p>Looking ahead, AI-driven liquidity solutions in addition to hybrid models will become increasingly important. By introducing dynamic liquidity allocation, automated risk management, and institutional-grade AI market makers. Platforms that successfully integrate AI into their liquidity models will likely shape the next era of DeFi derivatives for improved capital efficiency in decentralized perpetual trading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9257badec01e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop ignoring cryptocurrencies.]]></title>
            <link>https://medium.com/@Gaivin/stop-ignoring-cryptocurrencies-it-is-here-to-stay-dbf79de0ad4c?source=rss-47b9089dd2bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbf79de0ad4c</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Gaivin Tey]]></dc:creator>
            <pubDate>Sun, 15 Oct 2017 13:01:48 GMT</pubDate>
            <atom:updated>2017-10-18T11:10:53.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>It is here to stay.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7hUmo7Qc9jrLE3AmEy9Wg.png" /></figure><h3><strong>Dispelling the doubts surrounding cryptocurrencies and its benefits.</strong></h3><p>Over the last couple of months, blockchain and cryptocurrency have been under the media spotlight. <strong><em>A cryptocurrency is a digital or virtual currency that uses cryptography for security.</em></strong> You might be familiar with terms such as Bitcoin, Ether, Dash, Ripple and Litecoin which are all cryptocurrencies.</p><p><em>Note: For illustration purpose, the terms Bitcoin and Cryptocurrency are used interchangeably.</em> <em>(</em><a href="https://hackernoon.com/wtf-is-the-blockchain-1da89ba19348"><strong><em>What is blockchain?</em></strong></a><em>)</em></p><p>Blockchain technology has become unequivocal and it’s only a matter of time before its application becomes widespread. However, it is evident that people are still doubtful about cryptocurrency.</p><p>These could be due to the concerns that people still have with it, such as</p><h3><strong>Fraud</strong></h3><p>This could be the main concern for people who learn about cryptocurrencies for the first time from mainstream media. Afterall, it was widely publicised that Jamie Dimon, CEO of JPMorgan, went on TV and called Bitcoin a fraud. This caused a huge dip in Bitcoin’s price. However, it was later revealed that brokers from JPMorgan bought millions in value of Bitcoin after the drop. This caused a huge controversy and questions arose about his intentions. <em>(read more about it </em><a href="https://medium.com/ico-brief/jpmorgan-ceo-apparently-needs-to-fire-some-people-63f58d4d1727"><strong><em>here</em></strong></a><em>)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9pw--2Fx7cq_Komgz2HdgA.jpeg" /><figcaption><a href="https://moneyzoo.org/blog/bitcoin-fraud-says-jamie-dimon-top-fraudster-jp-morgan/">Image Source</a></figcaption></figure><p>The concept of digital money is difficult to wrap our heads around, therefore it’s easy to believe words coming from someone in a qualified position, such as Dimon. However, John McAfee, best known as the founder of anti-virus software McAfee, disputed Dimon’s claims on CNBC. His argument was that the US dollar had moved off gold standards since 1971 and it is backed only by faith in the US government. He said it cost over $1000 to create a Bitcoin, massive amounts of computation power and electricity is used to create a coin, what does it cost to create a dollar? It cost whatever the paper cost. Which one is the scam?</p><p>Here, he points out that <strong>if Bitcoin is a scam, the fiat currency would be even a larger scam.</strong> Let us be reminded that bitcoin has been around since 2009 and more than 250 million transactions have been made to date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1D04cgPITl75_2UBa-3JMQ.png" /><figcaption><strong>Total Number of Transactions in Bitcoin</strong> <a href="https://blockchain.info/charts/n-transactions-total">Image Source</a></figcaption></figure><h3><strong>Governance</strong></h3><p>Another major concern is the involvement of governments. China’s recent crackdown on cryptocurrency exchanges in the county and Dimon’s recent comments at the Institute of International Finance. He said, “Governments are going to crush Bitcoin one day.” This comment cast doubts on cryptocurrency’s future, causing people to speculate about the impact and role of governments.</p><p>However, one of the largest reason why Bitcoin is revolutionary is it is decentralised. Meaning that Bitcoin does not belong to one particular person or organisation. <strong>It belongs to you and only you</strong> — no government or bank can seize it from you.</p><p>Yes, governments could shut down cryptocurrency exchanges and prevent access to these cryptocurrencies but transactions peer-to-peer can still be made and the Bitcoin blockchain will continue. <br>Yes, governments could come together and close down mining rigs and prevent mining. Transactions will take longer but miners could still relocate to anywhere in the world and start mining again. The point is, there are no technical means that governments can shut it down. Bitcoin’s blockchain will always go on and transactions will still continue to be made.</p><h3><strong><em>So Why Cryptocurrency?</em></strong></h3><h4>Benefits of Cryptocurrency</h4><h4>Good Store of Value</h4><p>There is a limited supply of Bitcoin, 21 million to be exact. It is governed by math, so the supply of Bitcoin will always remain permanent. Conversely, since the US dollar has been taken off the gold standards, this means that in circumstance of war or when a huge financial meltdown happens, an unlimited supply of money could be printed which would weaken the US dollar or even cause hyperinflation. This is the reason why <strong>Bitcoin is sometimes referred to as digital gold</strong>.</p><p>In addition, approximately every 4 years it becomes twice as difficult to mine a Bitcoin because the math calculations become increasingly difficult to solve. Which means more computational power and energy is required to produce bitcoins. This results in more money needed to produce bitcoins and thus the value of bitcoin will continue to increase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*sABZtJUD19HzrrjSAwNX5g.jpeg" /></figure><h4>Decentralised</h4><p>One of the key value proposition of Bitcoin is that it is decentralised. It is governed by math and not people.<strong> Bitcoin is managed by its network and not any one central authority.</strong> Thus, users can engage in trade without third parties taking a cut and you have full control of it. No one can take it away from you. On the other hand, companies such as PayPal can take your money away if it decides that you have violated its terms of services or you have misused your account.</p><h4><strong>Access and Ease of International Transactions</strong></h4><p>Approximately 2 billion people in developing countries have access to the internet, but they do not have access to traditional banking systems. <strong>Cryptocurrency allows people to conduct financial transactions across the globe at low fees and a fraction of the time of traditional transactions</strong> as long as they have internet access. It also provides ease of use for international transactions. The typical international money transfer can be problematic due to exchange rates, country to country transaction fees and not to mention the arduous process of filling in papers. With cryptocurrency, an immediate settlement is possible as no third party is involved and the transaction charges are low to none.</p><p><strong>Overall,</strong> although there are still many doubts cast around cryptocurrencies, there’s no doubt about the benefits it could potentially bring to us. Cryptocurrency is still at its infancy stage<em>.</em> Beyond the skepticism and uncertainty, there are still many issues it has to address, such as scalability and lack of application. However, <em>it is not a fad</em> and it’s time for us to stop ignoring this market, which is already worth over $150 billion. Instead, we should start educating ourselves about it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbf79de0ad4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>