<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aanchal Malhotra</title>
    <description>The latest articles on DEV Community by Aanchal Malhotra (@aanchal4).</description>
    <link>https://dev.to/aanchal4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F887035%2Fc6cd60c4-3347-4d18-af2c-a6eef780a791.png</url>
      <title>DEV Community: Aanchal Malhotra</title>
      <link>https://dev.to/aanchal4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aanchal4"/>
    <language>en</language>
    <item>
      <title>XRPL AMM Technical Features and Updates</title>
      <dc:creator>Aanchal Malhotra</dc:creator>
      <pubDate>Thu, 10 Aug 2023 18:18:39 +0000</pubDate>
      <link>https://dev.to/ripplexdev/xrpl-amm-technical-features-and-updates-4dn1</link>
      <guid>https://dev.to/ripplexdev/xrpl-amm-technical-features-and-updates-4dn1</guid>
      <description>&lt;p&gt;Last year, the RippleX team proposed the &lt;a href="https://dev.to/ripplexdev/xrpl-amm-network-available-for-testing-and-development-426i"&gt;XLS-30d technical specification to build a protocol native automated market maker (AMM)&lt;/a&gt; integrated with the order book-based DEX on the XRP Ledger. It has been available on Devnet since November 2022. &lt;/p&gt;

&lt;p&gt;Since then, the community has made a lot of progress with testing and development. Hundreds of AMM pools were created on the Devnet and many more wallets were connected to test its functionality. The RippleX team has also added AMM support in three client libraries (xrpl.js, xrpl-py, and xrpl4j) and the &lt;a href="https://amm-devnet.xrpl.org/"&gt;xrpl.org explorer&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Proposal Updates
&lt;/h2&gt;

&lt;p&gt;A new amendment proposal is anticipated soon, at which point voting will commence to bring XLS-30d to the XRPL Mainnet. Because of the XRP Ledger’s decentralized nature, no singular authority can make decisions for the network. Every server on the network independently tallies the votes of the &lt;a href="https://xrpl.org/validators.html"&gt;validators&lt;/a&gt; it is configured to listen to, as part of the &lt;a href="https://xrpl.org/consensus.html"&gt;consensus&lt;/a&gt; process. That being said, in order for the amendment to pass, at least 80% of the validator community has to vote “yes” and that minimum threshold must be maintained for at least two weeks. If both of those conditions are met, then the amendment proposal to bring XLS-30d to Mainnet will be passed. &lt;/p&gt;

&lt;p&gt;In the meantime, &lt;a href="//xls30@ripple.com"&gt;the RippleX team welcomes developer feedback&lt;/a&gt;, bug reports and recommendations to continue improving and iterating on the spec. Extensive testing of the protocol for core XRP Ledger stability continues.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Developers Can Use XLS-30d
&lt;/h2&gt;

&lt;p&gt;There are two primary use cases for XLS-30d AMM integration: Create new financial applications and integrate into non-financial applications. &lt;/p&gt;

&lt;h3&gt;
  
  
  Create new financial applications:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;XLS-30d is designed as a native protocol of the XRPL, allowing developers to readily integrate with the AMM and create their own front-end trading and liquidity provision interfaces. Because the AMM is baked into the ledger, no heavy lifting is required and developers of all experience levels can easily integrate their apps or create their own that leverage the protocol. &lt;/li&gt;
&lt;li&gt;Application developers can create interfaces that serve traders and liquidity providers (LPs), while the protocol handles the most efficient transaction order routing with its integration to the CLOB DEX. It is designed to source and execute an optimized price, whether from the AMM itself or from an orderbook.&lt;/li&gt;
&lt;li&gt;XLS-30d introduces a novel continuous auction mechanism that is designed to reduce impermanent loss by incentivizing arbitrageurs to bid for the right to capture price discrepancies. LPs effectively keep more of a pool’s trading fee revenues, while the arbitrageurs are incentivized to continuously bid at near zero trading fees and maintain stable volatility.

&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;AMMBid&lt;/strong&gt; transaction enables arbitrageurs to place a bid for the next auction slot. The revenue from a successful bid transaction is then split between the current slot-holder and the pool, and remaining LP tokens are burned, which effectively increases the LP’s share in the pool.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;LP governance is enabled by the &lt;strong&gt;AMMVote&lt;/strong&gt; transaction. Liquidity pool creators unilaterally establish a trading fee, and henceforth the fee becomes a votable parameter by liquidity provider. Using the &lt;strong&gt;AMMVote&lt;/strong&gt; transaction, any LP may submit a vote for trading fees, which are calculated by a continuous weighted average based on stake in the pool. Developers can create the application layer such that all LPs may easily participate in this feature.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Integrate into non-financial applications for user-friendly order flow:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Developers with existing applications on the XRPL can integrate the AMM to enable simple swap functionalities, improve user experience and boost retention. An integration reduces the number of steps in a checkout flow process, whereby a digital transaction can be completed within a single unified application interface.

&lt;ul&gt;
&lt;li&gt;Let’s look at NFTs as an example. Say a user wants to buy an NFT that’s listed for 1,000 tokenA but they only have tokenB in their wallet. The AMM can be leveraged to facilitate the exchange by automatically swapping at an optimized transaction price. The user then confirms their transaction to be routed from tokenB to tokenA to the NFT without ever leaving your checkout page.
&lt;/li&gt;
&lt;li&gt;In essence, if developers create an application or integration on top of the AMM, a simple interface can be served up to their desired audience, and they will have the ability to enable asset swaps on any application page at the click of a button. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;For illiquid tokens, the AMM can enable developers to create liquidity pools instead of tracking an order book. With algorithmic market making, liquidity can be found at every price point and users will have a much easier time accessing and exchanging new or lower liquidity tokens. &lt;/li&gt;
&lt;li&gt;XLS-30d also enables single-sided liquidity provision, meaning liquidity providers can then deposit one token into the pool and the algorithm will automatically balance it into a pair. This lowers friction for users by removing the need for them to hold both sides of the pool before participating, and ultimately boosts pool liquidity&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Get Started
&lt;/h2&gt;

&lt;p&gt;Developers are invited to check out the most up to date &lt;a href="https://opensource.ripple.com/docs/xls-30d-amm/amm-uc/"&gt;technical documentation&lt;/a&gt; to learn more, test and provide feedback. You can also search and view transactions and other data via the &lt;a href="https://amm-devnet.xrpl.org/"&gt;XRPL Explorer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;All developers are welcome to build integrations and test functionalities on this open-source technology. There is an active &lt;a href="https://discord.gg/sfX3ERAMjH"&gt;discord&lt;/a&gt; community where developers can share ideas and ask questions to other XRPL community members.&lt;/p&gt;

</description>
      <category>xrpl</category>
      <category>dex</category>
      <category>amm</category>
    </item>
    <item>
      <title>Fortifying Trust: CertiK Completes Security Audit for XLS-30d</title>
      <dc:creator>Aanchal Malhotra</dc:creator>
      <pubDate>Tue, 18 Jul 2023 14:05:19 +0000</pubDate>
      <link>https://dev.to/ripplexdev/fortifying-trust-certik-completes-security-audit-for-xls-30d-bdb</link>
      <guid>https://dev.to/ripplexdev/fortifying-trust-certik-completes-security-audit-for-xls-30d-bdb</guid>
      <description>&lt;p&gt;In the dynamic world of decentralized finance (DeFi), trust and security are paramount. With the ever-growing number of innovative projects entering the space, users need reassurance that their funds and personal information are protected. To address these concerns, a comprehensive security audit plays a vital role in establishing confidence and verifying the integrity of a project. &lt;/p&gt;

&lt;p&gt;We are excited to announce that a recent milestone has been reached in the development of &lt;a href="https://github.com/XRPLF/XRPL-Standards/discussions/78"&gt;XLS-30d AMM spec&lt;/a&gt; for the XRP Ledger. In an effort to prioritize user safety and ensure the robustness of the platform, a rigorous security audit has been conducted by CertiK, a leading blockchain security firm. &lt;/p&gt;

&lt;p&gt;The finalized &lt;a href="https://skynet.certik.com/projects/xrp-ledger"&gt;security assessment&lt;/a&gt; offers 31 findings of which none were deemed critical or major. The RippleX engineering team has since acknowledged the relevant findings and resolved all but two of the ‘minor’ findings. &lt;/p&gt;

&lt;p&gt;CertiK’s extensive DeFi auditing experience and their commitment to industry best practices makes them an ideal choice for assessing the security aspects of XLS-30d. Their team of seasoned security experts has thoroughly analyzed the codebase, identifying potential vulnerabilities and outlining rigorous security measures to safeguard the platform’s functionality. &lt;/p&gt;

&lt;p&gt;The audit primarily focused on the following facets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reviewing the formulas used in the AMM operations&lt;/li&gt;
&lt;li&gt;Ensuring compliance with industry best practices and standards&lt;/li&gt;
&lt;li&gt;Verifying that the code behaves as intended and aligns with the XLS-30d specifications&lt;/li&gt;
&lt;li&gt;Conducting a meticulous line-by-line code review led by seasoned C++ engineers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Upon the completion of the audit the RippleX engineering team has closely collaborated with CertiK to address the relevant findings. For further information you can refer to the official report.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Does XLS-30d Work?
&lt;/h2&gt;

&lt;p&gt;The XRPL &lt;a href="https://xrpl.org/decentralized-exchange.html"&gt;decentralized exchange (DeX)&lt;/a&gt; currently provides liquidity exclusively by manual market making and order books. The XLS-30d proposal adds a non-custodial automated market maker (AMM) as a native feature to the XRPL DeX in a way that facilitates trading via liquidity pools, which token holders can contribute to as liquidity providers to earn a share of the trading fees.&lt;/p&gt;

&lt;p&gt;The proposal operates a unique functionality that sees the AMM utilize a &lt;a href="https://dev.to/ripplexdev/xrpl-amm-network-available-for-testing-and-development-426i"&gt;continuous auction mechanism&lt;/a&gt;. This mechanism incentivizes arbitrageurs to bid for price discrepancies at optimum fees, thus allowing liquidity providers to keep more of the fees earned from a trading pool. &lt;/p&gt;

&lt;h2&gt;
  
  
  Not Your Typical AMM
&lt;/h2&gt;

&lt;p&gt;While AMMs are typically executed via a smart contract, on the XRP Ledger the AMM operates on the protocol level meaning that it is a core component of the blockchain and does not require a smart contract to function. With the AMM being built as a protocol rather than an application, liquidity is aggregated at the protocol level and is shared with the order book DEX, ensuring better pricing and availability of tokenized assets on the XRPL. &lt;/p&gt;

&lt;p&gt;Additionally, there are considerable benefits such as openness and fairness. The rules cannot be altered and apply equally to all participants. Participation is open to anyone as a liquidity provider or trader, with governance and control of a liquidity pool determined by an objective rule set.&lt;/p&gt;

&lt;h3&gt;
  
  
  Access the AMM Devnet
&lt;/h3&gt;

&lt;p&gt;The AMM is currently live on a devnet and reference documentation can be viewed here.&lt;/p&gt;

&lt;p&gt;AMM Development Network access information:&lt;/p&gt;

&lt;p&gt;Websocket: wss://amm.devnet.rippletest.net:51233&lt;br&gt;
JSON-RPC: &lt;a href="https://amm.devnet.rippletest.net:51234"&gt;https://amm.devnet.rippletest.net:51234&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All developers are welcome to build integrations and test functionalities on this open source technology. There is an active &lt;a href="https://discord.com/invite/xrpl"&gt;Discord&lt;/a&gt; community where developers can share ideas and ask questions to other XRPL community members.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>XRPL AMM Network Available for Testing and Development</title>
      <dc:creator>Aanchal Malhotra</dc:creator>
      <pubDate>Tue, 29 Nov 2022 19:53:31 +0000</pubDate>
      <link>https://dev.to/ripplexdev/xrpl-amm-network-available-for-testing-and-development-426i</link>
      <guid>https://dev.to/ripplexdev/xrpl-amm-network-available-for-testing-and-development-426i</guid>
      <description>&lt;p&gt;Earlier this year, the RippleX team &lt;a href="https://dev.to/ripplexdev/a-proposal-for-the-future-of-the-xrp-ledger-dex-4l7e"&gt;proposed&lt;/a&gt; the XLS-30d technical specification to build a protocol native automated market maker (AMM) integrated with the orderbook-based DEX on the &lt;a href="https://www.xrpl.org/" rel="noopener noreferrer"&gt;XRP Ledger&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;This expansion was proposed to bring additional exchange functionality and utility to XRPL token holders, with the goal of enabling enterprise developers to build high performance applications for their users using the right tools and technical documentation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today, the AMM Devnet is live and ready to use, and we invite developers to test the AMM, build innovative applications, and &lt;a href="https://discord.com/channels/886050993802985492/956956779277844501" rel="noopener noreferrer"&gt;ask questions or provide feedback on Discord&lt;/a&gt;&lt;/strong&gt;. For urgent inquiries, &lt;a href="//mailto:xls30@ripple.com"&gt;you can contact the development team&lt;/a&gt;. Developers can integrate their apps directly with the AMM to power interactions with tokens, trading interfaces, retail experiences and more while taking advantage of liquidity provision, swap and auction features. &lt;/p&gt;

&lt;p&gt;Following extensive testing and community feedback, RippleX plans to propose an amendment to adopt XLS-30d to XRPL mainnet. The decentralized XRPL validator community will then carefully review the proposal and evaluate its technical merits. If greater than 80% of the validators accept the proposal—and approval remains at or above 80% for a minimum of two weeks—a functioning AMM protocol as specified in XLS-30d will become live, open source technology on the XRP Ledger. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding XLS-30d&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;XLS-30d introduces a protocol native AMM to the XRPL. It will exist as a core primitive of the Ledger and employ a set of fixed functions that allow application developers to create interfaces for end traders and liquidity providers (LPs). It also introduces a novel auction mechanism that incentivizes arbitrageurs while reducing the impact of impermanent loss faced by LPs. &lt;/p&gt;

&lt;p&gt;Further, the AMM is less vulnerable to Miner Extractable Value (MEV) or front-running because the XRPL leverages Federated Consensus and canonical transaction ordering. The AMM also allows for single-sided liquidity provisioning which simplifies the user experience:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;XLS-30d Core Features&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Protocol native build:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;As a core primitive of the XRPL, developers can utilize AMM functionality without the need to create their own smart contracts and face associated risks.
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Continuous Auction Mechanism:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The implementation of a continuous auction mechanism requires arbitrageurs to bid to capture price discrepancies.&lt;/li&gt;
&lt;li&gt;The AMM continuously auctions trading advantages for 24-hour periods at near zero trading fees, such that arbitrageurs do not have to wait for profits to exceed fees. This results in immediate arb trading and maintains stable volatility.&lt;/li&gt;
&lt;li&gt;Proceeds from each auction are partially refunded to the prior arbitrage slot holder and partially burnt, effectively reducing impermanent loss.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Single-sided Liquidity Provision:&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only a single asset is required to contribute to a pool. The protocol swaps on an LP’s behalf to maintain a 1:1 ratio, thus decreasing the number of steps for users. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;No Miner Extractable Value (MEV) or front-running:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The XRPL uses federated consensus, meaning that each ledger (equivalent to a “block”) is determined by a consensus of participants whereby no single party can dictate which transactions or ledgers are valid. There are no miners to prioritize only certain transactions (namely higher gas fee orders) to the Ledger.
&lt;/li&gt;
&lt;li&gt;The proposed AMM’s (and existing DEX) orders inherit the core ledger’s canonical transaction ordering determined by the distributed network of validators, thus making it near impossible to front-run transactions. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;CLOB DEX Integration:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The AMM is integrated with the central limit order book (CLOB)-based DEX and enables price optimization to determine whether swapping within a liquidity pool, through the order book, or both provides the best price and executes accordingly.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why Build an AMM?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An AMM will provide efficient liquidity for a wide range of assets, and allows any participant to engage in market making as a liquidity provider (LP) and earn passive income on their tokenized assets. The XRP Ledger’s inherent advantages—extremely low transaction cost, fast block times, fair transaction ordering—make it very suitable and lucrative for all participants within the AMM ecosystem.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;CLOB&lt;/th&gt;
&lt;th&gt;AMM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Trading Structure&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Trading happens by matching the incoming orders with those in the traditional on-chain order books of buy and sell offers&lt;/td&gt;
&lt;td&gt;Trading happens automatically using pools of available tokens and a predetermined algorithm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Liquidity Supply Structure&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Strategic liquidity suppliers actively compete with each other – the costs and benefits of supplying liquidity are individual to each liquidity supplier&lt;/td&gt;
&lt;td&gt;Liquidity suppliers pool assets, typically via smart contracts. Benefits and costs are mutualized: Liquidity suppliers are not in competition&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Price Impact&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Liquidity suppliers choose the price impact that maximizes their profits&lt;/td&gt;
&lt;td&gt;The transaction price is determined by the bonding curve and is perfectly predictable given the size of the liquidity pool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Market Makers&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Experienced or professional market makers provide liquidity in size&lt;/td&gt;
&lt;td&gt;Anyone can play market maker and provide liquidity at smaller increments&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;User Experience&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;More complex for end trader&lt;/td&gt;
&lt;td&gt;Simple for end trader&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;How to Get Started&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The AMM is currently live on a devnet and reference documentation can be viewed &lt;a href="https://xrpl.org/label-amm.html" rel="noopener noreferrer"&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;AMM Development Network access information:&lt;br&gt;
Websocket: wss://amm.devnet.rippletest.net:51233&lt;br&gt;
JSON-RPC: &lt;a href="http://amm.devnet.rippletest.net:51234" rel="noopener noreferrer"&gt;http://amm.devnet.rippletest.net:51234&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All developers are welcome to build integrations and test functionalities on this open source technology. There is an active &lt;a href="https://discord.com/channels/886050993802985492/956956779277844501" rel="noopener noreferrer"&gt;Discord&lt;/a&gt; community where developers can share ideas and ask questions to other XRPL community members. &lt;/p&gt;

</description>
      <category>emptystring</category>
    </item>
    <item>
      <title>A Proposal for the Future of the XRP Ledger DEX</title>
      <dc:creator>Aanchal Malhotra</dc:creator>
      <pubDate>Wed, 13 Jul 2022 21:45:29 +0000</pubDate>
      <link>https://dev.to/ripplexdev/a-proposal-for-the-future-of-the-xrp-ledger-dex-4l7e</link>
      <guid>https://dev.to/ripplexdev/a-proposal-for-the-future-of-the-xrp-ledger-dex-4l7e</guid>
      <description>&lt;p&gt;&lt;em&gt;RippleX invites the developer community to &lt;a href="https://github.com/XRPLF/XRPL-Standards/discussions/78"&gt;provide feedback&lt;/a&gt; on its proposal for Automated Market Maker functionality on the XRP Ledger.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;With one of the world’s first established decentralized exchanges (DEX), the &lt;a href="https://www.xrpl.org/"&gt;XRP Ledger (XRPL)&lt;/a&gt; enables anyone on the ledger to directly and efficiently buy, sell, or trade any tokenized asset—without the need for a central intermediary. &lt;/p&gt;

&lt;p&gt;The &lt;a href="https://xrpl.org/decentralized-exchange.html#decentralized-exchange"&gt;XRPL DEX&lt;/a&gt; had a first-mover advantage in 2012 as a peer-to-peer exchange. It utilized a central limit order book (CLOB) model that matches bids and offers based on price and time priority. While this is a valuable exchange mechanism in its own right, we believe there is an opportunity to expand upon this feature set to unlock greater functionality and utility via an automated market maker (AMM).&lt;/p&gt;

&lt;p&gt;That’s why the RippleX team is &lt;a href="https://github.com/XRPLF/XRPL-Standards/discussions/78"&gt;proposing native AMM functionality&lt;/a&gt; on the XRP Ledger for consideration by its developer community. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is an AMM?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An AMM is a decentralized exchange protocol that allows users to swap assets using liquidity from pre-funded token pools and an algorithm to determine price. Any user can become a liquidity provider (LP) by contributing tokens to the liquidity pool in exchange for an ownership stake in that pool, represented by “LP tokens.” The AMM charges a spread on trades that change the ratio of tokens in the AMM’s liquidity pools. This trading fee is added to the AMM’s capital pool, further building on the LP token holders’ returns.&lt;/p&gt;

&lt;p&gt;The AMM solves for the manual nature of a human-operated CLOB DEX. As a result, AMMs have become a critical part of the decentralized finance (DeFi) ecosystem. Through our proposal to the broader community, we believe this software solution will expand upon the XRP Ledger’s existing order book-based DEX capabilities by incorporating automated market-making.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;XRPL AMM Differentiators&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While an automated market maker would be a new addition to the XRP Ledger, it is certainly not the first of its kind. Bancor launched the first AMM in 2017, followed by others that ultimately drove AMM-style DEXes to their immense popularity in DeFi today. Despite being a later entrant to the space, the differentiated  AMM design proposed here, combined with the performant nature of XRP Ledger, makes this AMM a very compelling addition to decentralized finance. &lt;/p&gt;

&lt;p&gt;The most unique feature of the AMM protocol is the novel continuous auction mechanism. It is well-known that impermanent loss, or temporary financial loss that results from token pair prices diverging from the market price post-contribution, is a considerable risk of providing liquidity to an AMM. This protocol includes a unique mechanism where the AMM instance continuously auctions off trading advantages to arbitrageurs—charging them and giving these earnings to its LPs. Doing so allows LPs to partially take a large share of the profits (usually taken by arbitrageurs) to offset the effects of impermanent loss.&lt;/p&gt;

&lt;p&gt;Another feature worth highlighting is the AMM’s integration with the CLOB DEX. If one assumes traders want the best price for any given transaction, the algorithm can optimize for that by providing the best of both worlds across both DEX protocols. How? Payment and order placement transactors automatically determine whether swapping within a liquidity pool or through the order book will provide the best price for the user and execute accordingly. Meanwhile, &lt;a href="https://xrpl.org/paths.html"&gt;pathfinding&lt;/a&gt; considers “paths” with order books and AMMs in various combinations to improve the overall exchange rate. &lt;/p&gt;

&lt;p&gt;Finally, this AMM protocol allows for both single-sided and dual-sided liquidity contributions. Most mainstream AMM DEXes require liquidity providers to contribute the equal value of both tokens in a given pool, such as ETH and USDC. This adds friction to the user experience by requiring them to have liquidity available for both assets and often requires them to purchase or swap assets to initiate their position in the pool. By removing this requirement and allowing for single-sided contributions, users can more easily participate in the pool in exchange for a small fee.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Onwards&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We are incredibly excited about the potential of this robust feature set in combination with the performant nature of the XRP Ledger. With speeds of up to 1500 transactions per second (TPS) and transaction finality of less than 4 seconds, this AMM protocol differs from others in class.&lt;/p&gt;

&lt;p&gt;Developers, we’d love to hear your thoughts on our proposed standard for the XRP Ledger! Head to &lt;a href="https://github.com/XRPLF/XRPL-Standards/discussions/78"&gt;GitHub&lt;/a&gt; to comment and start building today.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/XRPLF/XRPL-Standards/discussions/78"&gt;Visit GitHub&lt;/a&gt;&lt;/p&gt;

</description>
      <category>xrpl</category>
      <category>amm</category>
      <category>dex</category>
      <category>defi</category>
    </item>
  </channel>
</rss>
