<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>BrownFi AMM</title>
        <link>https://paragraph.com/@brownfi-amm</link>
        <description>Renovated oracle-based AMM with high capital efficiency (like Uniswap V3), flexible market making &amp; simple LP management for average LPers </description>
        <lastBuildDate>Tue, 14 Jul 2026 16:44:18 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>BrownFi AMM</title>
            <url>https://storage.googleapis.com/papyrus_images/68c1fe0f0829261b05d42e2b886289e77c98081af7a4e133bf3c07d342fab2d6.jpg</url>
            <link>https://paragraph.com/@brownfi-amm</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[BrownFi V2 - Lazy LPing Era is for everyone]]></title>
            <link>https://paragraph.com/@brownfi-amm/brownfi-v2-lazy-lping-era-is-for-everyone</link>
            <guid>H7BmQgYNq7mXJ8ic58ah</guid>
            <pubDate>Fri, 11 Jul 2025 05:38:42 GMT</pubDate>
            <description><![CDATA[Dear valued users, BrownFi V1 launched over 3 months ago to address key pain points in LPing, specifically Uniswap V2&apos;s low capital efficiency and Uniswap V3&apos;s high Impermanent Loss that requires constant monitoring. Our elastic liquidity model has proven effective, generating real revenue for LPs compared to the Buy n&apos; Hold strategy—even despite the decline in $BERA price. Several users have shared their experiences on X:Actual PnL of LPing on BrownFi after 2 monthsJason&apos;...]]></description>
            <content:encoded><![CDATA[<p><em>Dear valued users,</em></p><p>BrownFi V1 launched over 3 months ago to address key pain points in LPing, specifically Uniswap V2&apos;s low capital efficiency and Uniswap V3&apos;s high Impermanent Loss that requires constant monitoring. Our elastic liquidity model has proven effective, generating real revenue for LPs compared to the Buy n&apos; Hold strategy—even despite the decline in $BERA price. Several users have shared their experiences on X:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://x.com/JasonvuTech/status/1930561862451777851">Actual PnL of LPing on BrownFi after 2 months</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/JasonvuTech/status/1935617389347107044">Jason&apos;s LPing portfolio</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/pavendo86/status/1932822304050065503">Paven&apos;s LPing portfolio</a></p></li><li><br></li></ul><p>Many other early adopters have confirmed similar results. From the takers&apos; side, integrations with Ooga Booga and KyberSwap aggregators have processed $5,502,947 in trading volume across 10,712 unique wallets within just 3 months. This represents approximately $1.8 million in monthly trading volume against only $40k-$50k TVL on BrownFi—clearly demonstrating the platform&apos;s exceptional capital efficiency.</p><p>These results have strongly motivated us to improve our protocol. Today, we&apos;re thrilled to announce BrownFi V2, which makes liquidity providing easier for everyone while maximizing returns with minimal effort.</p><p>Let’s dive in V2!</p><h2 id="h-improving-security-of-the-protocol" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Improving security of the protocol</h2><p>Improving security is the highest priority of BrownFi. In V2, we add another security layers with Oracle Adapter (enables two price sources to ensure reliable price feeds to pair contracts), Admin Roles and Timelock to Effective Setting.</p><h3 id="h-admin-roles" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Admin Roles</h3><p>We define three independent admin (setter) roles associated with specific parameter settings: Oracle Price Setter (<em>OracleSetter</em>), Business Setter (<em>BizSetter</em>), and Protocol Supervisor (<em>Pauser</em>). After deployment, the deployer must transfer these roles to appropriate new admin addresses.</p><ul><li><p><strong>OracleSetter:</strong> Acts on a specific pool. This role can set the adapter contract address, price feedID, and minimum valid time for a price update.</p></li><li><p><strong>BizSetter:</strong> Acts on a specific pool. This role configures pool parameters that align with the pool owners&apos; business goals, including transaction fees, liquidity concentration, and protocol revenue sharing ratios.</p></li><li><p><strong>Pauser:</strong> Acts on all pools. This role can pause the entire protocol in case of attacks or emerging vulnerabilities.</p></li></ul><p><em>*No administrator can withdraw funds from liquidity pools.</em></p><h3 id="h-timelock-for-effective-settings" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Timelock for Effective Settings</h3><p>To prevent accidental and sudden changes in the protocol, we implement timelocks for setting changes before they become effective, with the exception of protocol pausing.</p><ul><li><p>All admin role changes require a 48-hour timelock to become effective. During this waiting period, the protocol continues to operate using the previous admin addresses.</p></li><li><p>All OracleSetter settings require a 48-hour timelock to become effective. During this waiting period, the protocol continues to operate with the old settings.</p></li><li><p>The &quot;<em>Pause the entire protocol</em>&quot; setting and all Bizsetter settings are <strong>immediately effective</strong>.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0e7bce42e3c57fd544c2e98c1a50371bdbedef2b4fd58fefc8fcf461dceb7f90.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-enhancing-resilience-of-liquidity-pools" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Enhancing Resilience of Liquidity Pools</h2><p>BrownFi is an AMM that uses oracle pricing to eliminate stale token prices in pools. This approach consistently provides global prices to takers, preventing toxic flow, impermanent loss (IL), and Loss-versus-Rebalancing (LVR) threats common in non-oracle AMMs like Uniswap. The only significant risk when providing liquidity on BrownFi is inventory imbalance, which occurs when market movements cause disproportionate token ratios in pools (e.g., too much ETH but very little USDC in an ETH-USDC pool). Inspired by Uniswap V2&apos;s design, which maintains a 50-50 ratio in USD value between tokens all the time, we&apos;ve implemented several improvements in V2 to reduce this risk and enhance pool resilience as follows.</p><h3 id="h-price-and-skewness" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Price and Skewness</h3><p>In V2, we introduce pool skewness that adjusts the oracle-fed price before each swap. The concept is simple: <strong>if a swap would increase inventory imbalance, the price becomes more expensive to discourage that trade. Conversely, if a swap would help balance the inventory, the price becomes cheaper to encourage it.</strong></p><p>We compute the absolute skewness of the pool as follows:</p><p>$$S=\frac{xP^0_x-yP^0_y}{xP^0_x+yP^0_y}$$</p><p><em>*Where (x,y) are token balances, and</em> $$(P^0_x, P^0_y)$$ <em>are the oracle-fed prices for token0 and token1 in the pool.</em></p><p>If token0 reserve exceeds token1 reserve $$(xP^0_x≥yP^0_y)$$, the pool offers a higher price for token0 and a lower price for token1:</p><p>$$\begin{cases} P_x=P^0_x(1-\lambda S) \ P_y=P^0_y(1+\lambda S) \end{cases}$$</p><p>If token1 reserve exceeds token0 reserve $$(xP^0_x≤yP^0_y)$$, then the offered prices will be:</p><p>$$\begin{cases} P_x=P^0_x(1+\lambda S) \ P_y=P^0_y(1-\lambda S) \end{cases}$$</p><p><em>*Where λ is a configurable parameter defined by maximum imbalance target (80-20) of the pool. The default value is λ=0 with a limit range of [0,1].</em></p><p>Unlike V1, BrownFi V2 prevents any trade with the order size ≥ 80% of the reserve from going through (the transaction will be reverted). This protects against inventory depletion from large orders without needing to increase the concentration liquidity parameter Kappa, which would negatively impact pricing for smaller order sizes.</p><h3 id="h-adding-liquidity-with-50-50-ratio-requirement" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Adding Liquidity with 50-50 Ratio Requirement</h3><p>In V1, LPs had to add/remove liquidity according to the USD reserve ratio of the two tokens in the pool. This created poor UX, as LPs needed to calculate this ratio before adding liquidity—a ratio that constantly changed after every swap. Furthermore, these liquidity operations didn&apos;t alter the reserve ratio, meaning they couldn&apos;t help balance the pool.</p><p>In V2, we&apos;ve improved this process by allowing LPs to add liquidity with a simple 50-50 USD value split, while removing liquidity still follows the V1 method (LPs can manually rebalance to 50-50 after withdrawal if desired). This change creates a better UX and helps rebalance pool reserves more quickly.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f2185875487350a99f1390d85865dac93c750fb96817f650ac6fe742e01f0933.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-all-set" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">All set!</h3><p>These small improvements enhance the resilience of liquidity pools, mitigate inventory imbalance risks, and ensure that pools can quickly rebalance and resume normal operations if the inventory of one token becomes exhausted.</p><p>There are some other small improvements in this version 2 you can check in the table below, or refer to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/BrownFi/BrownFi-tech-docs/blob/main/BrownFi-techspecs-V2.md">this technical document</a>:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3baa2cc0acaea97c13d0e2cea0e6b178fea82f201b7706f5e3ce770e44e6d4d7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>With V2, we strongly believe that BrownFi can operate steadily and resiliently with enhanced security layers that maximize returns for LPs through trading fees and price impact premiums. This version marks an important milestone for BrownFi, enabling us to scale to multiple chains and assets for DeFi liquidity providers. We&apos;re confidently implementing V2 across 5 EVM chains (Arbitrum One, Base, BNB, Bera and Viction) with several mature trading pairs available at launch:</p><ul><li><p>ETH - USDC (Arbitrum &amp; Base)</p></li><li><p>ETH - USDT (Arbitrum)</p></li><li><p>WBTC - ETH (Arbitrum)</p></li><li><p>cbBTC - ETH (Base)</p></li><li><p>BNB - USDT (BNB chain)</p></li><li><p>BERA - HONEY (Bera)</p></li><li><p>C98 - VIC (Viction)</p></li><li><p>etc.</p></li></ul><p><strong>Additionally, this version allows anyone to create a new pool in a permissionless manner.</strong> This process follows a design similar to Uniswap V2, with adaptations to accommodate BrownFi&apos;s oracle-based AMM, including setting oracle price feeds and liquidity concentration parameters (Kappa) for specific pairs.</p><p>We hope that the team and community members can join forces to make LPing both easy and profitable in the DeFi ecosystem.</p><h2 id="h-about-us" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">About Us</h2><p>BrownFi is an innovative oracle-based AMM, high capital efficiency (like Uniswap V3), flexible &amp; simple LP management for average users, with arbitrage resistance.</p><ul><li><p>Website: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">https://brownfi.io/</a></p></li><li><p>Twitter: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/BrownFidex">https://x.com/BrownFidex</a></p></li><li><p>Community: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownfiammcommunity">https://t.me/brownfiammcommunity</a></p></li><li><p>Announcement: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownfiamm">https://t.me/brownfiamm</a></p></li></ul>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/a5aa1c03d884684d5d3ea056f929cfa139b5d5d0a5f632b34f8e5f99684e3ca4.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[BrownFi Mini Trading Campaign on Berachain]]></title>
            <link>https://paragraph.com/@brownfi-amm/brownfi-mini-trading-campaign-on-berachain</link>
            <guid>proZkHbaAZHHDkOTNiOg</guid>
            <pubDate>Thu, 24 Apr 2025 05:29:40 GMT</pubDate>
            <description><![CDATA[To celebrate the launch of BrownFi on Berachain—the source of yield—we are running a mini trading campaign for early adopters to experience BrownFi&apos;s slow price impact and competitive rates. The top 3 winners will share a $500 prize pool in HONEY tokens.LeaderboardCheck your rank HEREDurationThe competition will run for 12 days, from April 24, 2025 at 07:00:00 UTC to May 5, 2025 at 06:59:59 UTC.CriteriaRankings on the Leaderboard are determined by points. Winners will be selected based o...]]></description>
            <content:encoded><![CDATA[<p>To celebrate the launch of BrownFi on Berachain—the source of yield—we are running a mini trading campaign for early adopters to experience BrownFi&apos;s slow price impact and competitive rates. The top 3 winners will share a $500 prize pool in HONEY tokens.</p><h3 id="h-leaderboard" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Leaderboard</h3><p>Check your rank <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://app.brownfi.io/#/campaign/contest-1">HERE</a></p><h3 id="h-duration" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Duration</h3><p>The competition will run for 12 days, from April 24, 2025 at 07:00:00 UTC to May 5, 2025 at 06:59:59 UTC.</p><h3 id="h-criteria" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Criteria</h3><p>Rankings on the Leaderboard are determined by points. Winners will be selected based on the points they accumulate during the campaign.</p><p>Participants can earn points by performing swaps between whitelisted pairs. Each 1 HONEY or 1 USDC.e in trading volume earns 1 point. The whitelisted pairs are:</p><ul><li><p>BERA - HONEY</p></li><li><p>BERA - USDC.e</p></li><li><p>HONEY - USDC.e</p></li></ul><p>Any swaps not involving whitelisted pairs will be disqualified from the competition.</p><p>E.g.:</p><ul><li><p>If you swap 100 HONEY to BERA, you will earn 100 points on the Leaderboard.</p></li><li><p>If you swap 100 HONEY to iBGT - token is not whitelisted, this swap won&apos;t earn you any points.</p></li></ul><h3 id="h-prizes" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Prizes</h3><ul><li><p>1st winner: 250 HONEY</p></li><li><p>2nd winner: 150 HONEY</p></li><li><p>3rd winner: 100 HONEY</p></li></ul><h3 id="h-terms-and-conditions" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Terms &amp; Conditions</h3><ul><li><p>The Campaign will run from April 24, 2025, at 07:00:00 UTC to May 5, 2025, at 06:59:59 UTC. BrownFi retains the right to amend the campaign&apos;s start and end dates with reasonable notice.</p></li><li><p>BrownFi maintains the right, at its sole discretion, to disqualify any participant who violates, cheats, or exploits the campaign.</p></li><li><p>BrownFi reserves the right to change the rules &amp; conditions at its sole discretion.</p></li><li><p>Any participant engaging in sybil attacks or any form of cheating will have all points and rewards forfeited.</p></li><li><p>Rewards will be distributed directly to winners&apos; wallets within 10 days of the campaign&apos;s end.</p></li></ul>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/a1123d0f8470fd665127571b3c72b81da2f208a860909770152c5eb30db1a544.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[🚀 BrownFi competition on Boba Network]]></title>
            <link>https://paragraph.com/@brownfi-amm/brownfi-competition-on-boba-network</link>
            <guid>BiMDMDFNkLQ2TsvF6PCl</guid>
            <pubDate>Thu, 20 Mar 2025 08:06:36 GMT</pubDate>
            <description><![CDATA[We are excited to announce the BrownFi Competition on the Boba Network, an EVM-L2 of Ethereum. This is your chance to interact with our innovative AMM, enjoy high capital efficiency and ignorable slippage, and win big rewards of $2500 BOBA tokens. Participate, engage, and compete with fellow Web3 users to earn exclusive prizes.What You’ll Do• Use BrownFi AMM: Provide liquidity, swap and explore our cool features on the Boba Network. • Earn Rewards: Any transactions from 1st March to 10 April,...]]></description>
            <content:encoded><![CDATA[<p>We are excited to announce the <strong>BrownFi Competition</strong> on the Boba Network, an EVM-L2 of Ethereum. This is your chance to interact with our innovative AMM, enjoy high capital efficiency and ignorable slippage, and win big rewards of <strong>$2500 BOBA</strong> tokens. Participate, engage, and compete with fellow Web3 users to earn exclusive prizes.</p><h2 id="h-what-youll-do" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>What You’ll Do</strong></h2><p>• <strong>Use BrownFi AMM</strong>: Provide liquidity, swap and explore our cool features on the Boba Network.</p><p>• <strong>Earn Rewards</strong>: Any transactions from 1st March to 10 April, 2025 will be automatically count for the trading competition with total award of $2500 Boba tokens. Let be one of the top performers.</p><h2 id="h-how-to-participate" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>How to Participate</strong></h2><p><strong>1️⃣ Interact with BrownFi AMM on Boba Network:</strong></p><p>• <strong>Connect Your Wallet</strong>: Use <strong>Metamask</strong> or EVM-wallets to connect to the BrownFi AMM on Boba Network mainnet:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mainnet.brownfi.io/#/swap">https://mainnet.brownfi.io/#/swap</a></p><p>• <strong>Perform Transactions</strong>: Swap or provide liquidity on BrownFi AMM, simply as using Uniswap V2.</p><p><strong>2️⃣ Engage with the BrownFi Community:</strong></p><p>• <strong>Follow us on Telegram Channel</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownfiamm">Join the Telegram</a></p><p>• <strong>Follow us on Telegram</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownficommunity">Join the Telegram Group</a></p><p>• <strong>Follow us on X</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/BrownFidex">Follow BrownFi on X</a>.</p><p>🏆 <strong>Prizes:</strong></p><p>• 🥇 <strong>Top 3 Participants</strong> with the most volume, TXs, and liquidity provision will receive <strong>$2500 Boba tokens</strong>.</p><p>• <strong>Criteria</strong>: Volume of transactions, number of TXs, and liquidity amount provided.</p><p>• Note: Only users who follow us on <strong>Telegram</strong> and <strong>X</strong> are eligible for awards.</p><h2 id="h-how-to-bridge-your-fund-to-boba-network" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How to bridge your fund to Boba Network</h2><p>You may try <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.toaster.finance/exchange?to=288_0x0000000000000000000000000000000000000000&amp;from=59144_0x0000000000000000000000000000000000000000">Toaster Finance</a>, a cross-chain bridge &amp; swap aggregator supporting Boba Network, to transfer your funds to Boba Network.</p><h3 id="h-campaign-duration" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Campaign Duration</strong></h3><p>• <strong>Start</strong>: 1st March, 2025</p><p>• <strong>End</strong>: 10th April, 2025</p><p>💪 <strong>Don’t miss out on this exciting opportunity to be part of the BrownFi journey!</strong> Try out our features, compete for rewards, and help us shape the future of DeFi on Boba. We also have separate retro programs later for all early adopters (including LPers and traders on BrownFi). Please stay tuned for future announcement.</p><h3 id="h-follow-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Follow us</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/e5b75cb2ce04359dfdb30d4c3f9b9f71d9cd8aca8f41d01a2839fa61a318c63f.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Price impact (slippage) on AMM pools: Uniswap V2 & V3 vs BrownFi]]></title>
            <link>https://paragraph.com/@brownfi-amm/price-impact-slippage-on-amm-pools-uniswap-v2-v3-vs-brownfi</link>
            <guid>VE5FPssh3TXH5MC0Nq64</guid>
            <pubDate>Fri, 21 Feb 2025 14:27:49 GMT</pubDate>
            <description><![CDATA[Keys to take away:The only thing a trader cares is average trading price with small slippage as possible. Higher liquidity concentration makes lower price impact, smaller slippage.BrownFi AMM offers capital efficiency and trading experience equivalently to Uniswap V3 pools. Particularly, BrownFi pool with $$K=0.001$$ is mostly equivalent to Uniswap V3 range $$\pm1%$$.If $$K=2$$, then BrownFi pool and Uniswap V2 are identical.A little math of AMMsUniswap V2 introduced automated market making (...]]></description>
            <content:encoded><![CDATA[<p>Keys to take away:</p><ul><li><p>The only thing a trader cares is average trading price with small slippage as possible. Higher liquidity concentration makes lower price impact, smaller slippage.</p></li><li><p>BrownFi AMM offers capital efficiency and trading experience equivalently to Uniswap V3 pools. Particularly, BrownFi pool with $$K=0.001$$ is mostly equivalent to Uniswap V3 range $$\pm1%$$.</p></li><li><p>If $$K=2$$, then BrownFi pool and Uniswap V2 are identical.</p></li></ul><h2 id="h-a-little-math-of-amms" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A little math of AMMs</h2><p><strong>Uniswap V2</strong> introduced automated market making (AMM) based on a constant product market making (CPMM) formula $$x * y=k$$, where the token price is defined by token reserve in the pool $$p=y/x$$. Consider the pool with token reserve (10, 10), liquidity and swap constant $$x* y=10* 10=100$$ with the initial price $$P= 1$$. A swap out of $$\Delta x$$ of token X must provide $$\Delta y$$ of token Y in exchange. The CPMM formula gives us $$(x-\Delta x)(y+\Delta y)=k \Rightarrow \Delta y = \frac{k}{x-\Delta x}-y.$$</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/whitepaper-v3.pdf"><strong>Uniswap V3</strong></a> introduced the concentrated liquidity market making (CLMM) based on the orginal constant product (i.e. the CPMM formula), allowing us to find a curve limited by a price range such that it can serve the trade with optimal capital. Regarding Uniswap V3 model, a liquidity position is defined by both token reserve $$(x, y)$$ and a price range $$[p_a, p_b]$$. The liquidity and swap constant of V3 model reads</p><p>$$(x+\frac{L}{\sqrt{p_B}})(y+L\sqrt{p_a})=L^2$$,</p><p>where <em>L</em> is the virtual liquidity (comparable to the equivalent V2 model, i.e. $$x* y =L^2$$).</p><p>For simplicity and without loss of generality, we take price lower bound $$p_a = 1.0001^{-n}$$, price upper bound $$p_b = 1.0001^n$$, symmetrically. For $$n=100, p_a= 1.0001^{-100} \approx 0.99$$ and $$p_b=1.0001^{100} \approx 1.01$$, resulting $$\pm1%$$ range. For $$n=200, p_a= 1.0001^{-200} \approx 0.98$$ and $$p_b = 1.0001^{200} \approx 1.02$$, resulting $$\pm2%$$ range. Let consider 3 ranges of the same token reserve.</p><ul><li><p>Uniswap V3 pool1 has reserve (10,10), range [-9.5%, +10.5%] (i.e. $$n=1000$$). The constant product is $$(x+\frac{205}{1.0001^{500}})(y+\frac{205}{1.0001^{500}})\approx 205^2$$ having liquidity leverage (so capital efficiency) $$\frac{205}{10} \approx 20.5$$</p></li><li><p>Uniswap V3 pool2 has reserve (10,10), range $$\pm2%$$. The constant product is $$(x+\frac{1000}{1.0001^{100}})(y+\frac{1000}{1.0001^{100}})\approx 1000^2$$, having capital efficiency $$\frac{1000}{10} \approx 100$$</p></li><li><p>Uniswap V3 pool3 has reserve (10,10), range $$\pm1%$$. The constant product is $$(x+\frac{2000}{1.0001^{50}})(y+\frac{2000}{1.0001^{50}})\approx 2000^2$$, having capital efficiency $$\frac{2000}{10} \approx 200$$</p></li></ul><p>Because $$x=y$$ and $$\frac{1}{\sqrt{p_B}}=\sqrt{p_a}$$, we have $$(x+\frac{L}{\sqrt{p_B}})^2=L^2, x+\frac{L}{\sqrt{p_B}}=L$$. A swap out of $$\Delta x$$ of token X must provide $$\Delta y$$ of token Y in exchange. The CLMM formula gives $$(x+\frac{L}{\sqrt{p_B}}-\Delta x)(y+L\sqrt{p_a} +\Delta y)=L^2 \Leftrightarrow (L-\Delta x)(L +\Delta y)=L^2$$</p><p>and hence $$\Delta y=\frac{L^2}{L-\Delta x}-L.$$</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/"><strong>BrownFi AMM</strong></a> introduced a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/1sCtBoaKmiwYXF4dm_bXD6K6NdReyJcXHi9Hc4ksFNM">novel oracle-based AMM model</a>. Given a token reserve $$(x, y)$$ and an amount $$\Delta x$$ of token X to be swapped out, trader must pay $$\Delta y$$ of token Y in exchange, simply defined by:</p><ul><li><p>$$\Delta y = P(1+\frac{R}{2})\Delta x$$, where $$P$$ is the global price fed by oracle;</p></li><li><p>The term $$\frac{R}{2} $$is related to slippage (alternatively, price impact), where $$R=\frac{K * \Delta x}{x-\Delta x}$$;</p></li><li><p>Kappa ($$K$$) is the parameter controlling liquidity concentration on BrownFi&apos;s pools.</p></li></ul><p>We consider four liquidity concentration on BrownFi AMM, controlled by $$K_1=1, K_2=0.1, K_3=0.01, K_4=0.001$$.</p><h2 id="h-what-do-traders-care" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What do traders care?</h2><p>The average trading price is the only thing a trader cares, defined by $$\frac{\Delta y}{\Delta x}$$. Smaller price impact, closer trading price to global price, better experience for average traders. Higher liquidity concentration makes lower price impact, smaller slippage, better trading experience. Standardizing token reserve (10,10), initial price $$P=1$$ for all pools of Uniswap and BrownFi&apos;s AMMs, we will compare price slippage $$\frac{\Delta y}{\Delta x}-1$$ between them. In prior to comparison, we find the intersections of the slippage curves (equivalently price impact curves). Each intersection represents order size (over the total of 10 token reserve) and percentage of slippage.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/48cbd162d6313b35f977d664e5965a1e244132747a0e2111d35ec2262b2c7b27.png" alt="Intersections between slippage curves " blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Intersections between slippage curves</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6f452ccf76b57544d0b134f442a70f1b1498f088773404ff4108a9c425beb7d0.png" alt="Slippage curves: Uniswap V2 &amp; V3 vs BrownFi&apos;s pools" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Slippage curves: Uniswap V2 &amp; V3 vs BrownFi&apos;s pools</figcaption></figure><h2 id="h-slippage-price-impact-comparison" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Slippage (price impact) comparison</h2><ul><li><p>Easily see that Uniswap V2 causes greater slippage than all BrownFi pool (for $$K&lt;2$$). Particularly, if $$K=2$$, then BrownFi and Uniswap V2 are identical.</p></li><li><p>Regarding three Uniswap V3 pools, each BrownFi pool ($$K_3, K_4$$) has lower slippage on the left side of the intersecting point, greater on the right, respectively. Particularly, BrownFi $$K_4=0.001$$ is mostly equivalent to Uniswap V3 range $$\pm1%$$.</p></li></ul><p>Further on capital efficiency comparison, we have:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/39e91c548e36d5f69d931f24e850e846a4b1f1a257446177da19249962d8632a.png" alt="Capital efficiency: BrownFi vs Uniswap" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Capital efficiency: BrownFi vs Uniswap</figcaption></figure><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Contact us</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/29d0d00edac478622f70bf909941dbf73b4173459fda0e023f57e126ebc2871c.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[The 1st Launch of BrownFi AMM on Viction mainnet]]></title>
            <link>https://paragraph.com/@brownfi-amm/the-1st-launch-of-brownfi-amm-on-viction-mainnet</link>
            <guid>gVSgW2AMCdfQ7UhLrySM</guid>
            <pubDate>Fri, 27 Dec 2024 08:29:19 GMT</pubDate>
            <description><![CDATA[We are delighted to launch BrownFi AMM on Viction mainnet, following a rigorous audit by Verichain and liquidity provision of Viction Foundation. Users on the Viction ecosystem now can enjoy trading C98/VIC with near-zero price impact thanks to high liquidity concentration. BrownFi’s UX, particularly LP management, is simply as on Uniswap V2.About BrownFi AMMBrownFi is an innovative oracle-based AMM, offering high capital efficiency and simple UX for average LPers. BrownFi is designed to solv...]]></description>
            <content:encoded><![CDATA[<p>We are delighted to launch BrownFi AMM on Viction mainnet, following a rigorous audit by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/Verichains">Verichain</a> and liquidity provision of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/BuildOnViction">Viction Foundation</a>. Users on the Viction ecosystem now can enjoy trading C98/VIC with near-zero price impact thanks to high liquidity concentration. BrownFi’s UX, particularly LP management, is simply as on Uniswap V2.</p><h1 id="h-about-brownfi-amm" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">About BrownFi AMM</h1><p>BrownFi is an innovative oracle-based AMM, offering high capital efficiency and simple UX for average LPers. BrownFi is designed to solve the pain-points of LPers on the Uniswap V3 model:</p><ul><li><p>Fact 1: Half of LPers on UniV3 are lost due to high impermanent loss and Out-of-Range;</p></li><li><p>Fact 2: ~<strong>$858M</strong> dollars are lost for arbitrageurs.</p></li></ul><p>LPers on BrownFi AMM enjoy high capital efficiency, being permanently-active for trades &amp; fee collection, arbitrage resistance, hence earn more than ever</p><p><code>BrownFi has retroactive and referral program for users and liquidity contributors. Details will be announced later.</code></p><h1 id="h-about-viction" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">About Viction</h1><p>Viction is an EVM-compatible layer-1, designed with a focus on user experience, prioritizing zero-gas transactions, speed, security, and scalability to contribute to the creation of a more secure and open world. BrownFi is excited to bring innovative &amp; highly-efficient liquid solutions to the Viction ecosystem and the best UX to its users.</p><h1 id="h-how-to-trade-and-provide-liquidity-on-brownfi-amm" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How to trade and provide liquidity on BrownFi AMM?</h1><p>All UX on BrownFi AMM is similar to Uniswap V2. Traders can swap instantly between C98 and VIC tokens. More pairs will come. LPers can add/remove liquidity similarly to Uniswap V2, much simpler than V3 model.</p><p>Go to trade on BrownFi AMM</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mainnet.brownfi.io/#/swap">https://mainnet.brownfi.io/#/swap</a></p><p>After token approval, your swap or supply action may fail due to delay on fetching events from the underlying blockchain. Just refresh your dapp, then click swap or supply liquidity. It will go through.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e995697ee40aadd533511474a25d323e0d6812dfcbdf2965e148e6f3a27d77b3.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h1 id="h-wallet-connection" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Wallet connection</h1><p>Users may connect Metamask, Walletconnect or Coin98 wallet extensions on web-browsers for transactions. Simple tips to connect <strong>Coin98 wallet:</strong></p><ul><li><p>1. Install Coin98 wallet extension on your web browser</p></li><li><p>2. You must DISABLE wallets supporting Viction chain like Metamask.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8b9a419a28643efd3b57224232890b0e23fca7b81a9865f2463c8eec33c79527.png" alt="Disable Metamask" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Disable Metamask</figcaption></figure><ul><li><p>3. Open your Coin98 wallet, go to settings, then Override wallet, set Coin98 wallet as default. All done, now you can use Coin98 wallet on Brownfi. When you connect wallet, clicking Metamask symbol will link to Coin98 wallet.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/93c7bd0bc76b7b14d9b3eb9a761c0c5a3d91daa59c6559ba72a44462f8909b8d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/55a49417e309525da8d9398d4684e480de786569b6a21f06f8f8eb84c417c4fb.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Contact us</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p><h1 id="h-references" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>References</strong></h1><p>BrownFi AMM contracts’s audit report by Verichain <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/verichains/public-audit-reports/blob/main/Verichains%20Public%20Audit%20Report%20-%20BrownFi%20AMM%20Smartcontracts%20-%20v1.0.pdf">https://github.com/verichains/public-audit-reports/blob/main/Verichains Public Audit Report - BrownFi AMM Smartcontracts - v1.0.pdf</a></p><p>BrownFi AMM contracts deployed on Viction mainnet:</p><ul><li><p>Router <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.vicscan.xyz/address/0x0194CcfC49C3ebc7457E0b41B9c6b840C22f5985">https://www.vicscan.xyz/address/0x0194CcfC49C3ebc7457E0b41B9c6b840C22f5985</a></p></li><li><p>Pool C98/VIC <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.vicscan.xyz/address/0x3273c19716b2f4e95b563a099923e539c5aef1b3">https://www.vicscan.xyz/address/0x3273c19716b2f4e95b563a099923e539c5aef1b3</a></p></li><li><p>Price feed provided by Pyth oracle</p></li></ul>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/e7b5f9fd1ee750227dc2db3be3167d34d6975b85d209dd9a84e3ce33e6787a7b.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[How to protect liquidity providers (LPs) from lose on AMMs]]></title>
            <link>https://paragraph.com/@brownfi-amm/how-to-protect-liquidity-providers-lps-from-lose-on-amms</link>
            <guid>6NZQGgAOcskbEaR4rwzH</guid>
            <pubDate>Thu, 10 Oct 2024 17:56:43 GMT</pubDate>
            <description><![CDATA[Highlights:How Impermanent loss (IL) and arbitrage cost appearAll the costs of liquidity providers (LPs) on AMMsHow BrownFi (as an innovative oracle-based AMM) mitigates IL & arbitrage loss, ensures LP gainsImpermanent Loss is common in all marketsImpermanent Loss (acronym IL, aka divergent loss) is simply the opportunity cost of adding liquidity into an AMM pool vs holding the individual tokens. IL disappears if and only if the price returns to the pool-entering price, otherwise IL becomes p...]]></description>
            <content:encoded><![CDATA[<p><strong>Highlights</strong>:</p><ul><li><p><em>How Impermanent loss (IL) and arbitrage cost appear</em></p></li><li><p><em>All the costs of liquidity providers (LPs) on AMMs</em></p></li><li><p><em>How BrownFi (as an innovative oracle-based AMM) mitigates IL &amp; arbitrage loss, ensures LP gains</em></p></li></ul><h1 id="h-impermanent-loss-is-common-in-all-markets" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Impermanent Loss is common in all markets</h1><p>Impermanent Loss (acronym IL, aka divergent loss) is simply the opportunity cost of adding liquidity into an AMM pool vs holding the individual tokens. IL disappears if and only if the price returns to the pool-entering price, otherwise IL becomes permanent loss. Formally, IL is measured by $$IL=\frac{Pool.Value}{Hold.Value}-1$$, being negative whenever price increases or decreases. In fact, divergent loss is a common phenomenon appearing in all financial markets, including CEXes and AMMs, at the side of market makers (MMs), or liquidity providers (LPs). However, MMs on CEXes can actively adapt to price changes very quickly, e.g. removing bids/asks with stale price and replacing them with updated orders surrounding the newly middle price. LPs on AMMs, unfortunately, have no way to do the similar actions, because they are passive to price change. Price of an AMM pool (constructed on constant product market making, aka CPMM model) is purely defined by the ratio of two token reserves, which is changed per swap by arbitrageurs or normal traders.</p><p><strong><em>Why do LPs accept IL?</em></strong></p><p><em>When providing liquidity on Uniswap and other AMMs, LPs have an ONLY hope that accumulative trading fee can cover the loss, even help them gain. Differently, MMs on CEXes earn via price spread advantage.</em></p><h1 id="h-the-costs-of-liquidity-provision-other-than-il" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The costs of liquidity provision other than IL</h1><p>It is impossible to completely remove IL, even higher liquidity concentration causes higher IL (e.g. on Uniswap V3’s pools). Luckily, there are some ways to mitigate IL. For example, Balancer has modified the 50/50 inventory model of Uniswap V2 to build another version of CPMM with custom inventory ratio, hence reducing IL.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d9768afd2590fd0d315a72e148f68d29ed12fcc251f41fa22f3f64eb772d1993.jpg" alt="Impermanent loss by price change" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Impermanent loss by price change</figcaption></figure><p>However, inventory imbalance, in turn, is an issue of Balancer, plus opportunity cost of adverse selection in the following. Interestingly, CPMM and impermanent loss are path-independent, i.e. IL is the same for any possible price trajectories (other than its initial and final values). Although IL is zero if the initial and final prices stay the same, that concept fails to isolate the adverse selection costs (caused by arbitrageurs) faced by LPs on most AMMs. In reality, there are always price discrepancies between CEXes (continuous price discovery in real-time) and DEXes (discrete price discovery per block time), giving opportunities for arbitrageurs to take profit at the expense of LPs. Then LP costs should be increasing in the number of opportunities for AMM arbitrage. And the frequency of such opportunities is very different if the price stays the same (no arbitrage) versus if it jumps around a lot (lots of arbitrage). <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackernoon.com/half-of-uniswap-v3-users-lose-money-heres-why">Half of LPs on Uniswap V3 suffer losses</a> due to <em>high IL</em> and <em>out-of-range</em> positions. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sorellalabs.xyz/">Sorella Labs</a> has tracked (in real time) that, since the Merge, LPs on Ethereum have lost over <strong>$750M</strong> due to arbitrate. In general, A16Z researchers have raised the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://a16zcrypto.com/posts/article/lvr-quantifying-the-cost-of-providing-liquidity-to-automated-market-makers/">loss versus rebalancing (LvR) problem</a>, which put arbitrage cost as the opportunity loss of liquidity provision.</p><h1 id="h-how-oracle-based-brownfi-amm-protects-lps" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How oracle-based BrownFi AMM protects LPs?</h1><p>Suppose an AMM pool (e.g. on Uniswap V2 and V3 with bonding curve $$x* y=k$$ for both) has 1 ETH and 1000 USDC. Suppose further that at a very good moment for ETH, the market price jumps from $1000 to $4000. This requires a swap of 1000 USDC to receive 0.5 ETH, and the post-trade pool ratio is 0.5 ETH : 2000 USDC. In this case, the decision to provide liquidity would have doubled your money from a $2000-value portfolio on deposit to a $4000-value one upon withdrawal. Consequently, providing liquidity on the AMM cause your loss of $1000.</p><p>If you sell 0.5 ETH on a high liquid CEX (e.g. Binance) at $4000, after that, your portfolio (0.5 ETH, 3000 USDC) value is $5000 dollars, equal holding portfolio.</p><p>Now, let’s see how BrownFi works with the initial (1 ETH, 1000 USDC) reserve and the same trade of buying $$dx=0.5$$ ETH at the market price $4000. With a high liquidity concentration (parameter Kappa $$K=0.001$$), BrownFi’s pricing formulas read.</p><ul><li><p>Price impact factor $$R=K\times \frac{dx}{x-dx}=0.001 \times \frac{0.5}{1-0.5}=0.001$$</p></li><li><p>Trading price $$P_t=4000(1+R/2)=4002$$, so paying $$dy=dx * P_t=2001$$ USDC.</p></li></ul><p>Thus, the LP portfolio on BrownFi AMM is (0.5 ETH and 3001 USDC) valued $5001 dollars, higher than holding. Without trading fee, <em>what is $1 dollar greater than the holding portfolio?</em> It is exactly the price impact cost BrownFi AMM charges per trade. It is LPs’ incentives (plus trading fee) to provide liquidity.</p><p><em>You may ask “trading on BrownFi AMM (and Binance) is worse than Uniswap V2” (because paying USDC doubly).</em> <strong>NO</strong>. In fact, the trade on Uniswap is made by smart arbitrageurs who have the best tools to hunt profitable opportunities effectively upon price discrepancies at the expense of LPs and/or normal traders (i.e. LvR problem). Let’s see next.</p><p>Now, assume the 2nd trade that the market price stays the same at $4000, and a normal trader wanna buy 0.1 ETH. The Uniswap pool, after the first trade, has 0.5 ETH and 2000 USDC. Solving by $$xy=k$$ formula $$(0.5 – 0.1)(2000 + dy)=0.5\times 2000$$. The trader pays $$dy=500$$ USDC, meaning 25% more expensive than the market price. The post-trade pool is 0.4 ETH and 2500 USDC, priced $6250 per ETH, much higher than the market price. This, again, gives an arbitrage opportunity to sell 0.1 ETH back to the pool (the 3rd trade), receiving 500 USDC, roughly taking 100 USDC profit at the expense of the previous trader. Eventually, the portfolio on Uniswap pool is (0.5 ETH and 2000 USDC) valued $4000, as same as the value after the 1st trade with IL of $1000.</p><p>After the first trade, BrownFi AMM pool has 0.5 ETH and 3001 USDC. Then we have the 2nd trade (buying $$dx=0.1$$ ETH)</p><ul><li><p>Price impact factor $$R=K\times \frac{dx}{x-dx}=0.001\times\frac{0.1}{0.5-0.1}=0.00025$$</p></li><li><p>Trading price $$P_t=4000(1+R/2)=4001$$, so paying $$dy=dx * P_t=400.1$$ USDC with negligible slippage.</p></li></ul><p>The portfolio on BrownFi AMM pool is now (0.4 ETH and 3401 USDC) valued $5001, still higher than holding, and no arbitrage opportunity.</p><p>Without loss of generality, the previous examples take an extreme price volatility (for easy computation &amp; reading) to illustrate that Uniswap V2 and V3 models are exposed to both IL and arbitrage loss. Arbitrageurs take profits at the expense of either LPs or ordinary traders. In contrast, BrownFi is an oracle-based AMM, always offering trade at market price plus a price impact cost. Therefore, by eliminating arbitrage opportunities, BrownFi AMM mitigates overall loss and guarantees gains of LPs.</p><p>The following table summarizes the state changes from the initial portfolio of 1 ETH, 1000 USDC throughout 3 trades with the market price of 1 ETH = $4000 dollars, and 1 trade when the price returns $1000. With this setting (same token reserve and price path), Uniswap V2 &amp; V3 are identical by using the same formula $$x\times y=k$$. Trading fee is ignored for simplicity (but no impact on our consideration). If you choose a lower price (e.g. $2000 or $500), the absolute values change with small numbers of many decimals, but the relative quantities and implied properties are still the same. Thus, it doesn’t affect our conclusions on the nature of exchange models. ETH reserve is green while USDC reserve is white.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/2ec53782b9aeee37ffe7f3a09ed03e7780d6bce93ab656fe78f7bd92fb4dcc08.png" alt="Table 1: Comparing LP costs and portfolios. The holding value is $5000." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Table 1: Comparing LP costs and portfolios. The holding value is $5000.</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/27a82ae5aab6500f1099cfe5c5dfc2f059505c18f9f521ea97539dd7854e8bf3.png" alt="Table 2: Comparing LP costs and portfolios. The holding value is $2000." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Table 2: Comparing LP costs and portfolios. The holding value is $2000.</figcaption></figure><p>In the table 2, LPs on Uniswap has zero IL when the price returns to the initial pool setting. However, at the end of the illustration, arbitrageurs earn $1600 at the cost of LPs ($1000 at the 1st trade and $500 at the 4th trade) and normal trader ($100 at the 3rd trade). On the other sides, LPs on Binance and BrownFi have $1500 gains, because they always offer liquidity at market price (arbitrageurs could not take profit at the 1st and 4th trades).</p><h1 id="h-is-brownfi-amm-better-uniswap" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Is BrownFi AMM better Uniswap?</h1><p>It is worth clarifying that impermanent loss is only suitable for Uniswap and AMMs (e.g. Balancer, Sushiswap, Pancakeswap) using CPMM models, which offer independent price discovery mechanisms. Regarding BrownFi and other oracle-based AMMs (e.g. Dodo, Lifinity) possessing price-ambience, a universal consideration of LP costs, including arbitrage cost, is more precise. In the two table above, by copying the initial pool setting, universal market price and trades, BrownFi outperforms CEX and holding with a small gain +$1 for LPs, while Uniswap makes them a huge loss for arbitrageurs. In practice, under market dynamics, market making is more complicated with many scenarios. However, one thing is still valid that BrownFi, in general, all oracle-based AMMs, are resistant to arbitrage and sandwich attacks (given sub-second blocktime and reliable oracle), thus ensure better gains for LPs by taking LvR from arbitrageurs. In reality, blockchains with long block time (e.g. Ethereum) facilitate arbitrage trades, while blockchains with sub-second block time make them much harder.</p><p>Don’t get me wrong, Uniswap and CPMM-AMMs discover price independently, hence are the only choice for tokens unlisted on CEXes. BrownFi only works if a reliable price source is available. Uniswap and CPMM-AMMs play a vital role in decentralized finance (DeFi). BrownFi, an oracle-based AMM, is a complementary solution to the CPMM-based AMM models. If oracle-price is reliable and dominant (e.g. tokens listed on CEXes with good liquidity), BrownFi AMM is potential to outperform Uniswap V3. Readers can find a comprehensive article about <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="">oracle-based AMMs here</a>.</p><p>In general, profit and loss of LPs is <em>PnL = pool value - hold value</em>. The pool value contains IL, trading fees, LvR. To mitigate overall cost (e.g. IL, LvR) of LP and make LPs gain, there are 3 methods:</p><ul><li><p>Reduce impermanent loss (Uniswap V2 does). Higher liquidity concentration, higher IL. In fact, IL on Uniswap V3 is greater than V2, narrower range, larger IL.</p></li><li><p>Reduce arbitrate attacks (or LvR in general), hence arbitrage gains are transformed to LP gains. This is what BrownFi does.</p></li><li><p>Combining the two methods above in an equilibrium based on suitable and flexible market making strategies. This is the advanced feature BrownFi offers along with simplified UX for average LPs to help them optimize profit and minimize loss (so optimal PnL).</p></li></ul><p><strong>BONUS</strong>: <em>In reality, token reserve and trades are very different, not the same as in the previous illustration (i.e. copying Uniswap). IL and LP loss vary according to market movement (in real time) and liquidity provision strategies. For instance, MMs on Binance can suffer huge IL if they sell a large amount of 0.8 ETH at $1000 price, then their portfolio value at $4000 price is $2600 (much lower than Uniswap $4000 and holding $5000). This is similar to providing liquidity on Uniswap V3, if you add LP with a narrow range at low price, then price jumps very high, you suffer great IL. Don’t be upset. We will have another article analyzing loss and gain of Uniswap’s neutral liquidity provision strategy and other strategies (including BrownFi AMM). Remember NO free lunch. Please stay tuned for the next article, where we will describe how BrownFi helps LPs optimize their PnL.</em></p><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Contact us</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/bfcdcb66247614433083ecba527953a6fd22fa65ff0331402712a65f222de898.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[🚀 ANNOUNCEMENT: BrownFi Testnet Challenge on Starknet is LIVE!]]></title>
            <link>https://paragraph.com/@brownfi-amm/announcement-brownfi-testnet-challenge-on-starknet-is-live</link>
            <guid>NCN9kewVLQnfB7q5eAdP</guid>
            <pubDate>Thu, 10 Oct 2024 14:28:13 GMT</pubDate>
            <description><![CDATA[We are excited to announce the BrownFi Testnet Challenge on the Starknet Sepolia testnet! This is your chance to interact with our innovative AMM, enjoy high capital efficiency and super-low slippage, and win big rewards. Participate, engage, and compete with fellow Web3 users to earn exclusive prizes. 🔹 What You’ll Do: • Test BrownFi AMM: Swap, provide liquidity, and explore our groundbreaking features on the Starknet Sepolia testnet. • Earn Rewards: Join the competition to earn up to $250 ...]]></description>
            <content:encoded><![CDATA[<p>We are excited to announce the <strong>BrownFi Testnet Challenge</strong> on the Starknet Sepolia testnet! This is your chance to interact with our innovative AMM, enjoy high capital efficiency and super-low slippage, and win big rewards. Participate, engage, and compete with fellow Web3 users to earn exclusive prizes.</p><p>🔹 <strong>What You’ll Do:</strong></p><p>• <strong>Test BrownFi AMM</strong>: Swap, provide liquidity, and explore our groundbreaking features on the Starknet Sepolia testnet.</p><p>• <strong>Earn Rewards</strong>: Join the competition to earn up to $250 USDT by being one of the top performers.</p><p><strong>How to Participate:</strong></p><p><strong>1️⃣ Interact with BrownFi AMM on Starknet testnet:</strong></p><p>• <strong>Faucet ETH/STRK</strong>: Visit the Starknet Faucet <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starknet-faucet.vercel.app/">here</a> to get ETH and STRK tokens for the testnet.</p><p>• <strong>Connect Your Wallet</strong>: Use <strong>Braavos</strong> or <strong>ArgentX</strong> wallets to connect to the BrownFi AMM on Sepolia testnet: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.vercel.app/">BrownFi AMM</a>.</p><p>• <strong>Perform Transactions</strong>: Swap or provide liquidity on BrownFi AMM. Use <strong>at least 0.01 ETH</strong> or <strong>5 STRK</strong>. For a full guide, read <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.ly/9i9Yn">this</a>.</p><p><strong>2️⃣ Engage with the BrownFi Community:</strong></p><p>• <strong>Follow us on Telegram Channel</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownfiamm">Join the Telegram</a></p><p>• <strong>Follow us on Telegram</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownficommunity">Join the Telegram Group</a></p><p>• <strong>Follow us on X</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/BrownFidex">Follow BrownFi on X</a>.</p><p><strong>3️⃣ Maximize Your Activity:</strong></p><p>• <strong>Compete for Rewards</strong>: The top 3 participants with the highest volume, most transactions (TXs), and largest liquidity provision on the testnet will win $250 USDT.</p><p>🏆 <strong>Rewards:</strong></p><p>• 🥇 <strong>Top 3 Participants</strong> with the most volume, TXs, and liquidity provision will receive <strong>$250 USDT</strong>.</p><p>• <strong>Criteria</strong>: Volume of transactions, number of TXs, and liquidity provided.</p><p>• Note: Only users who follow us on <strong>Telegram</strong> and <strong>X</strong> are eligible for rewards.</p><p>⏳ <strong>Campaign Duration:</strong></p><p>• <strong>Start</strong>: October 9, 2024</p><p>• <strong>End</strong>: October 30, 2024</p><p><strong>📢 Important Notes:</strong></p><p>• The final rankings will be calculated based on total <strong>volume traded</strong>, <strong>transactions</strong>, and <strong>liquidity added</strong> during the task period.</p><p>• BrownFi holds the rights to modify the campaign terms and conditions without prior notice.</p><p>🔗 <strong>Get Started Today:</strong></p><p>• <strong>Faucet ETH/STRK</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starknet-faucet.vercel.app/">Starknet Faucet</a>.</p><p>• <strong>Connect to BrownFi AMM</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.vercel.app/">Test BrownFi</a>.</p><p>• <strong>Telegram Group</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/brownfiamm">Join Telegram</a>.</p><p>• <strong>Follow us on X</strong>: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/BrownFidex">BrownFi on X</a>.</p><p>💪 <strong>Don’t miss out on this exciting opportunity to be part of the BrownFi journey!</strong> Test out our features, compete for rewards, and help us shape the future of DeFi on Starknet.</p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/7a74f703fd8bf36c46e077cdb4358d51d88ce207f9e7d9c3d3440cc5c1eb66c5.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[BrownFi incentives following Sonic Boom]]></title>
            <link>https://paragraph.com/@brownfi-amm/brownfi-incentives-following-sonic-boom</link>
            <guid>3tShwJJ52nKanBSTflY3</guid>
            <pubDate>Sun, 06 Oct 2024 10:36:58 GMT</pubDate>
            <description><![CDATA[Key points:Participate Sonic Boom ~$45M airdrops (Sonic is previously Fantom)Swap, add/remove LP on BrownFi AMM - Sonic testnetBrownFi’s incentives and referral programSonic BoomSonic is rebranded from Fantom, building a new EVM-compatible layer-1 with scalability and a native bridge to Ethereum. Sonic Boom is a unique bounty program rewarding 190.5M $S airdrop (1S ~1FTM) for building apps & growing communities on Sonic. Currently, Sonic is in testnet phase, hence users can examine apps on it...]]></description>
            <content:encoded><![CDATA[<p><em>Key points:</em></p><ul><li><p><em>Participate Sonic Boom ~$45M airdrops (Sonic is previously Fantom)</em></p></li><li><p>Swap, add/remove LP on BrownFi AMM - Sonic testnet</p></li><li><p><em>BrownFi’s incentives and referral program</em></p></li></ul><h1 id="h-sonic-boom" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Sonic Boom</h1><p>Sonic is rebranded from Fantom, building a new EVM-compatible layer-1 with scalability and a native bridge to Ethereum. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.soniclabs.com/boom">Sonic Boom</a> is a unique bounty program rewarding 190.5M $S airdrop (1S ~1FTM) for building apps &amp; growing communities on Sonic. Currently, Sonic is in testnet phase, hence users can examine apps on its testnet with zero cost. Crypto users should participate BrownFi testnet on Sonic testnet to get airdrop in the future. BrownFi AMM is deployed on Sonic testnet, opening 2 swap pairs:</p><ul><li><p>S/DIAM is equal FTM/USD</p></li><li><p>S/CORAL is equal FTM/ETH</p></li><li><p>Faucet tokens (S, Diamond, Coral) at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://testnet.soniclabs.com/account">https://testnet.soniclabs.com/account</a></p></li><li><p>Add/remove liquidity and swap tokens on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://testnet.browndex.io/#/swap?ref=0x6209Fd20368d345D42B79477201615Ee09D93def">BrownFi AMM testnet</a></p></li></ul><h1 id="h-user-incentives" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">User incentives</h1><p><strong>Community-centricity</strong> is one of BrownFi’s core values. All airdrop &amp; community rewards from Sonic Boom airdrop and Sonenium incentives (if BrownFi receives) will be distributed to the community as follows.</p><ul><li><p><strong>70</strong>% to ordinary users, weighted by onchain reputation scores, social engagement, etc. Details will be announced later.</p></li><li><p><strong>15</strong>% for the referral program (up to 2 levels).</p></li><li><p><strong>5</strong>% reserve for unforeseen distribution (likely to community leaders/KOLs or adding to referral programs, etc). Leaders/KOLs should contact the BrownFi team for verification and approval, otherwise, they will be considered as ordinary users.</p></li><li><p><strong>10</strong>% for other marketing purposes.</p></li></ul><p>Regarding referral program, you simply connect your wallets on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://testnet.browndex.io/">https://testnet.browndex.io/</a> to obtain referral links, then invite your friends to use BrownFi AMM testnet. More users you refer, more rewards you will receive. However, all users <strong>MUST</strong> actively interact with BrownFi AMM protocol (add/remove LP, swap tokens on Sonic testnet, and/or Sonenium Minato testnet) to be ELIGIBLE for airdrop and referral program.</p><p><code>REMARK: users should create new wallets to interact with BrownFi AMM on testnets. This is to avoid scam and phishing attacks, affecting your real assets on mainnets.</code></p><p>Onchain activities are a key factor to weight airdrop amount in the future. Onchain reputation score is aggregated on multiple wallets and multiple chains that users own and interact with. More onchain activities, higher reputation and better rewards. BrownFi incorporates adaptive Pagerank to score onchain reputation and machine learning algorithms to prevent Sybil attacks. This is to protect real users, guarantee fairness among users and contributors.</p><p><strong>BrownFi’s retros &amp; token incentives:</strong> <em>Independently from the Ecosystem’s incentives, BrownFi has its own airdrop and retros, which will be announced later. Again, community centricity is our core value</em>.</p><p><strong><em>ZERO cost, ZERO risk to interact with BrownFi AMM on testnets, but you EARN airdrops, gems and many more rewards.</em></strong></p><h1 id="h-about-brownfi-amm" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">About BrownFi AMM</h1><p>BrownFi is developing an innovative AMM based on oracle-price, offering high capital efficiency (100X Uniswap V2), flexible market making and simple UX for average LPs. BrownFi AMM is to fill the gap between Uniswap V2 &amp; V3 models, saving LPs from huge lose and serving average LPs with the best UX and optimal returns.</p><p><em>BrownFi won 1st prize - DeFi track at Openbuild-Starknet hackathon, received Seed Grant from Starknet Foundation and Developer Grant from Dfinity Foundation.</em></p><p>BrownFi AMM’s advantages:</p><ul><li><p>Price ambience: NO out-of-range like Uniswap V3, Maverick, TraderJoe</p></li><li><p>Resistance to arbitrage &amp; sandwich attacks</p></li><li><p>High capital efficiency (100X Uniswap V2)</p></li><li><p>Adjustable liquidity concentration and simple LP management</p></li><li><p>Save average LPs from high IL, offering optimal returns</p></li><li><p>One-sided liquidity provision at protocol-level</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/453da6ff1f69d5474d8248e730fc9ee91618656e2974a928c296db28081f23ff.png" alt="Market value proposition of BrownFi AMM" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Market value proposition of BrownFi AMM</figcaption></figure><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Contact us</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/a06012c7e43d590087de2788f977a98799484cf35eb0bf7dd8add16c89247375.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[The need: Oracle-based AMMs vs Uniswap-CPMM]]></title>
            <link>https://paragraph.com/@brownfi-amm/the-need-oracle-based-amms-vs-uniswap-cpmm</link>
            <guid>9GtSNlSinMRzNMCKliAd</guid>
            <pubDate>Sat, 21 Sep 2024 04:12:21 GMT</pubDate>
            <description><![CDATA[Highlights: (i) Classify Uniswap & CPMM-AMMs versus oracle-based AMMs. (ii) CPMM suites new tokens, but exposes to high impermanent loss, arbitrage and sandwich attacks. (iii) Half of Uniswap V3’s LPs lose due to high IL while suffer complex LP management. On the entire Ethereum, LPs have lost $745M since the Merge. (iv) Oracle-based AMMs outperform CPMM over CEX-listed assets, bridged cryptos, particularly tokenized real-world assets.Uniswap disrupted centralized exchangesUniswap revolutioni...]]></description>
            <content:encoded><![CDATA[<p><strong>Highlights</strong>:</p><p><em>(i) Classify Uniswap &amp; CPMM-AMMs versus oracle-based AMMs.</em></p><p><em>(ii) CPMM suites new tokens, but exposes to high impermanent loss, arbitrage and sandwich attacks.</em></p><p><em>(iii) Half of Uniswap V3’s LPs lose due to high IL while suffer complex LP management. On the entire Ethereum, LPs have lost $745M since the Merge.</em></p><p><em>(iv) Oracle-based AMMs outperform CPMM over CEX-listed assets, bridged cryptos, particularly tokenized real-world assets.</em></p><h1 id="h-uniswap-disrupted-centralized-exchanges" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Uniswap disrupted centralized exchanges</strong></h1><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/">Uniswap</a> revolutionized the decentralized exchange (DEX) landscape by introducing a novel automated market maker (AMM) model. This model, pioneered by Uniswap, leverages liquidity pairs (aka pools) of two tokens to facilitate peer-to-peer trading without the need for a centralized order book. Prior to Uniswap, decentralized exchanges like IDEX, Ether Delta, and FolkDelta relied on off-chain limit order books (LOBs), which suffered from slow speeds, poor user experience, and low liquidity. While <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bancor.network/">Bancor</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kyber.network/">Kyber</a> attempted to address these issues with their peer-to-peer trading models based on token reserves, they ultimately faced challenges with liquidity exhaustion and complex asset management. For a more comprehensive overview of the evolution of DEXes, please refer to [1, 2].</p><p>Uniswap pioneered a revolutionary spot trading model, Automated Market Making (AMM), in November 2018. Its core innovation, the constant product function $$x\times y = k$$, disrupted traditional price discovery mechanisms like LOBs. Uniswap&apos;s model democratized liquidity provision, allowing anyone to create and contribute to liquidity pools of any pair of tokens. This innovation fueled the DeFi boom of 2020-2021. Other AMMs, such as Kyber, Sushiswap, and Pancakeswap, adopted the constant product model, solidifying it as a cornerstone of DeFi. Uniswap and CPMM-based AMMs offer several key advantages:</p><ul><li><p><em>Permissionless listing</em>: anyone can create a liquid pool pairing two any tokens.</p></li><li><p><em>Crowdsourcing liquidity</em>: everyone can contribute to any liquid pool.</p></li><li><p><em>Seamless trade</em>: users easily swap for their wished tokens without KYC or intermediaries, provided unbounded liquidity.</p></li><li><p><em>Non-custodial security</em>: all trades are securely executed onchain by smartcontracts, eliminating the need of centralized intermediaries.</p></li></ul><p>Balancer expanded the CPMM model to support multi-asset liquidity pools, using the equation $$x_1 \times x_2 \times … \times x_n=k$$. Curve introduced a constant sum market making (CSMM) model, $$x+y=k$$, tailored for stablecoin pairs (e.g. DAI, USDT, etc).</p><p>Despite Uniswap and CPMM-based AMMs have achieved significant success, they face challenges such as <strong><em>low capital efficiency, high slippage, and impermanent loss (IL)</em></strong>. Uniswap V3 addressed these issues by introducing liquidity concentration, a modification of the original CPMM model. However, as research by Vladislav Goncharov [3] indicates that nearly <strong><em>half</em></strong>* of Uniswap V3&apos;s <strong>liquidity providers still experience</strong> <strong>losses</strong> due to high IL and out-of-range positions*. Moreover, managing concentrated liquidity positions can be complex and requires specialized financial knowledge and professional skills, making it less accessible to average users.</p><h1 id="h-the-need-of-oracle-based-amms" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>The need of Oracle-based AMMs</strong></h1><p>Impermanent loss (IL) is an inherent risk faced by market makers (MMs) across all financial markets. MMs on CEXs and LOB-based DEXs have active control over their liquidity provision strategies, enabling them to mitigate IL. Unfortunately, LPs on CPMM-based AMMs have limited influence over pool prices. This passive role exposes LPs to price deviations between AMMs and external markets. Arbitrageurs can exploit these discrepancies, profiting at the expense of LPs. For instance, if the external market price for ETH is 2500 USD, a CEX market maker can quickly adjust their bids and asks around 2500 to maintain a competitive price, in real-time manner. However, on a CPMM-based AMM, the pool price is determined solely by the token reserve ratio (e.g. 1 ETH : 2510 USD), making it impossible for LPs to adjust the price to match external market conditions. Moreover, price on AMMs is discretely updated block by block, not continuously as CEXes, causing gaps in price moves. This leaves the opportunity for arbitrageurs to profit, ultimately reducing the gains of LPs. According to Sorella Labs, LPs on Ethereum have lost $<strong>750M</strong> for arbitrageurs since the Merge (see real time tracking on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sorellalabs.xyz/">Sorella website</a>).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/bf6b217f2fd7471e0a057779a02e57cb9c288ec07fb434d261aeb2bbe72d387d.png" alt="Price change continuously on CEXes, while on DEXes, price is updated block by block, causing divergence in between blocks, creating arbitrage opportunities at expenses of LPs offering their liquidity at stale prices. Visualized by Soralla Labs." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Price change continuously on CEXes, while on DEXes, price is updated block by block, causing divergence in between blocks, creating arbitrage opportunities at expenses of LPs offering their liquidity at stale prices. Visualized by Soralla Labs.</figcaption></figure><p>Obviously, oracle-based AMM models offer a significant advantage by eliminating arbitrage opportunities, including round-trip and sandwich attacks. Research by Álvaro Cartea and financial scientists at the University of Oxford [4] demonstrated that LPs on CPMM-AMMs are often providing liquidity at a loss. To address this issue, they proposed alternative models that leverage oracle prices. The paper of Philippe Bergault and financial mathematicians in Paris [5] introduced an AMM model combining external price, showing that even with lagged oracle data and adverse market conditions, optimized oracle-based mechanisms outperform traditional CPMM-AMMs. Additionally, S. Jiang et al [6], B. Krishnamachari et al [7], and D.J. Im [8] have further improved AMM design using oracle prices. These advancements aim to protect the interests of LPs and average traders by mitigating the risks associated with traditional AMM models.</p><p>Oracle-based AMMs rely on accurate price quote from external markets. To assess the dominance of external markets, we can compare trading volumes. As of September 19, 2024, the total ETH trading volume (24H) on all DEXes was less than $1.2 billion (source: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://defillama.com/">DefiLlama</a>), while the volume on the top 50 CEXes was approximately $11.8 billion (source: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coingecko.com/">CoinGecko</a>). This significant disparity, nearly a 10x difference, highlights the dominance of CEXes in terms of trading volume.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/780ffbd085078ebfa0ba49f9cbdc9c19c50d3712a82a12a8de0dfb0e0536c2fa.png" alt="24h trading volume of ETH on DEXes. Source: Defilamma " blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">24h trading volume of ETH on DEXes. Source: Defilamma</figcaption></figure><p>In summary, Uniswap and CPMM-AMMs, with their <em>independent price discovery mechanisms</em>, offer a unique advantage to provide liquidity for new tokens that may not be available on centralized exchanges. However, their passive market-making nature, susceptibility to arbitrage and sandwich attacks, and potential for huge LP losses, particularly with popular and highly liquid assets, present limitations. Oracle-based AMM models emerge as a promising alternative and complementary solution. By incorporating external price feeds, these models can address the shortcomings of traditional AMMs, potentially offering a more efficient and profitable liquidity provision mechanism (read examples <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="">how oracle-based AMMs outperform Uniswap</a>). This implies that oracle-based AMMs can be the best solution to trade <strong><em>tokenized real world assets onchain</em></strong>, whose volume on CEXes is dominant.</p><h1 id="h-brownfi-amm-plays-a-role" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>BrownFi AMM plays a role</strong></h1><p>All emerging L1 and L2 ecosystems rely on bridged assets (e.g., wETH, wBTC, wDAI, ckUSDT, USDC) and their native tokensfor liquidity onchain. Oracle-based AMMs offer a simple and capital-efficient solution for swapping native tokens against bridged assets (e.g., STRK/ETH, STRK/USDC, SUI/wETH, SUI/USDC, ICP/ckUSDT). Unlike CPMM-AMMs, which are best suited for CEX-unlisted tokens, oracle-based AMMs excel in trading CEX-listed crypto-assets. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dodoex.io/">Dodo</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lifinity.io/">Lifinity</a> are notable examples of successful oracle-based AMMs. However, Dodo&apos;s capital efficiency is limited, with a maximum of 10x compared to Uniswap V2, and Lifinity restricts liquidity provision to a strictly selected group of LPs. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/vzYOSueQ4qN43J9IQH7SVZEan4VhTUDmAu49gFsg5yg">BrownFi</a> addresses these limitations by introducing an innovative oracle-based AMM with 100x higher capital efficiency than Uniswap V2, flexible market making, a user-friendly interface, and open access for all LPs. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/5lSUhDUCCSZTxznxfkClDvLkwE3wr_swFCH_mT9fXLI">BrownFi&apos;s mathematical model</a>, inspired by the statistical properties of Limit Order Books, enables these advanced features.</p><p>Remember that DEXes cannot replace CEXes, CPMM cannot replace limit order-book. They all live together to provide multiple market making and trading options under various circumstances. Although CPMM-based AMMs (e.g. Uniswap) are a popular solution for onchain liquidity in general, oracle-based AMMs (e.g. BrownFi) play the role of a complementary block in DeFi. Specifically, regarding average users farming onchain liquidity of CEX-listed assets with well-liquid, BrownFi AMM fits better, and is potential to outperform Uniswap V3.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/fb5e288afdb9e049fe61a7280868337c23445152679f7880788e094c52771555.png" alt="Market value proposition of BrownFi AMM" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Market value proposition of BrownFi AMM</figcaption></figure><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Contact us</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p><h2 id="h-references" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">References</h2><p>[1] Daniel Phillips, 2023, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinmarketcap.com/academy/article/the-evolution-of-decentralized-exchanges">The Evolution of Decentralized Exchanges</a></p><p>[2] Thuat Do et al, 2023, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4581048">Derivable: A Novel Derivatives Pricing Markets based on a Family of Asymptotic Power Curves</a></p><p>[3] Vladislav Goncharov, 2023, Hackernoon, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hackernoon.com/half-of-uniswap-v3-users-lose-money-heres-why">Half of Uniswap v3 Users Lose Money — Here&apos;s Why</a></p><p>[4] Álvaro Cartea, et al, University of Oxford - Institute of Quantitative Finance, 2023, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4459177">Automated Market Makers Designs beyond Constant Functions</a></p><p>[5] Philippe Bergault et al, 2024, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://link.springer.com/article/10.1007/s42521-023-00101-0">Automated market makers: mean-variance analysis of LPs payoffs and design of pricing functions</a></p><p>[6] S. Jiang, J. Chen, F. Li, H. Geng and H. Chi, &quot;DCAMM: Dynamic Curve-Based Automated Market Maker,&quot; GLOBECOM 2023 - 2023 IEEE Global Communications Conference, Kuala Lumpur, Malaysia, 2023, pp. 4491-4496, doi: 10.1109/GLOBECOM54140.2023.10437668.</p><p>[7] Bhaskar Krishnamachari, Qi Feng, 2021, Eugenio Grippo Viterbi School of Engineering, University of Southern California, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://anrg.usc.edu/www/papers/dynamicautomation.pdf">Dynamic Automated Market Makers for Decentralized Cryptocurrency Exchange</a></p><p>[8] Daniel Jiwoong Im, Alexander Kondratskiy, Vincent Harvey, Hsuan-Wei Fu, 2024, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/html/2308.06375v2">UAMM: Price-oracle based Automated Market Maker</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/19561610599af79d1546d1014e6d617d054d7a2eb4a2a6b19576d6c3b73489d0.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Cairo-native AMM on Starknet-Sepolia testnet]]></title>
            <link>https://paragraph.com/@brownfi-amm/cairo-native-amm-on-starknet-sepolia-testnet</link>
            <guid>BBkKSftzvXTDqwML8WCn</guid>
            <pubDate>Sat, 31 Aug 2024 03:18:37 GMT</pubDate>
            <description><![CDATA[BrownFi AMM testnet is released on Starknet-Sepolia. You may enjoy super-low slippage and high capital efficiency (100x better Uniswap V2), very simple UX. Our AMM is implemented by Cairo, the native smartcontract language of Starknet.Faucet ETH, STRKTo test BrownFi AMM, you need ETH or STRK tokens, faucet at https://starknet-faucet.vercel.app/Wallet connectUsing Braavos or ArgentX wallets to connect with the BrownFi AMM dapp on Sepolia testnet https://brownfi.vercel.app/Swap on BrownFi AMM t...]]></description>
            <content:encoded><![CDATA[<p>BrownFi AMM testnet is released on Starknet-Sepolia. You may enjoy super-low slippage and high capital efficiency (100x better Uniswap V2), very simple UX. Our AMM is implemented by Cairo, the native smartcontract language of Starknet.</p><h2 id="h-faucet-eth-strk" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Faucet ETH, STRK</h2><p>To test BrownFi AMM, you need ETH or STRK tokens, faucet at</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starknet-faucet.vercel.app/">https://starknet-faucet.vercel.app/</a></p><h2 id="h-wallet-connect" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Wallet connect</h2><p>Using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://braavos.app/">Braavos</a> or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.argent.xyz/argent-x">ArgentX</a> wallets to connect with the BrownFi AMM dapp on Sepolia testnet</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.vercel.app/">https://brownfi.vercel.app/</a></p><h2 id="h-swap-on-brownfi-amm-testnet" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Swap on BrownFi AMM testnet</h2><p>Your balance on corresponding paying side must be positive. You may enter the amount you wish to pay, or receive. Try with small amount to avoid exceeding liquidity.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/af04d24701b67d5c12cd30ea2cadceeedf3d93af5a3fd63a71accfaf0b1ad19c.png" alt="Enter 0.01 ETH to pay" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Enter 0.01 ETH to pay</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9328150415bf395337b2d34b1c9290fd33914fb1886f7036cd6543e4adec7080.png" alt="Review your swap estimation: your receiving amount of STRK, slippage, etc" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Review your swap estimation: your receiving amount of STRK, slippage, etc</figcaption></figure><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/c7770fcee9e762038d7fac27fd750f22670e8cd296a99576f246707e06f86108.png" alt="Review again on (Braavos) wallet extension&apos;s popup then click to &quot;sign&quot;" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Review again on (Braavos) wallet extension&apos;s popup then click to &quot;sign&quot;</figcaption></figure><p>After signing the transaction on the wallet extension, just wait a moment for confirmation. Bingo, it’s done</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sepolia.starkscan.co/tx/0x4091973e11a4da26fb6c3a7de4263e498b142a08b9bac60ea4bff00116f2284">https://sepolia.starkscan.co/tx/0x4091973e11a4da26fb6c3a7de4263e498b142a08b9bac60ea4bff00116f2284</a></p><h1 id="h-liquidity-provision-on-brownfi-amm" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Liquidity provision on BrownFi AMM</h1><p>Providing liquidity on BrownFi AMM is simple as doing on Uniswap V2. Click <strong><em>Pool</em></strong>, then <strong><em>New Position</em></strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/36aa731bda0af51b48c81499d8ea57c548cd03304fa09c35cf8799197f239986.png" alt="Click New Position" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Click New Position</figcaption></figure><p>Enter your expected amount of ETH (or STRK), the other amount is automatically calculated in correspondence. Then <strong><em>Approve</em></strong> and <strong><em>Sign</em></strong> on wallet extension popup. Wait a while to click <strong><em>Add</em></strong>, then <strong><em>Confirm</em></strong>, and <strong><em>Sign</em></strong> one more time on wallet extension popup. Check your complete transaction on wallet activities and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sepolia.starkscan.co/tx/0x7497b45a4c9067c06b01e0b6ebbaac36656559d33d61b50ac73c9c5bf3e73bd">Starkscan</a>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/30701eca0821c16cb5bb2ba21149c0e572e48509ba710334a7226ac5c71acfef.png" alt="Add liquidity" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Add liquidity</figcaption></figure><h2 id="h-capital-efficiency-and-slippage" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Capital efficiency &amp; slippage</h2><p>In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sepolia.starkscan.co/tx/0x110426e5774978573d150467ac954e7e6c3b9269109985b0af18c944e8b7628#overview">this TX</a>, the swap drew out 50% of ETH reserve but slippage (aka price impact) was 0.65% incredibly low. The same trade drawing 50% pool reserve on Uniswap V2 would imply a price impact 100%, i.e. the trade price would be doubled or halved.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://sepolia.starkscan.co/tx/0x5d12716978fbdad17b9b17868a0226e6f648410d16f01ecf65c4b24904492ff">This swap</a> drew out 83% of ETH reserve but slippage was 0.8%, incredibly high capital efficiency. BrownFi AMM is going to boost liquidity (100x better than Uniswap V2 and the likes) on Starknet, thank to our <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/5lSUhDUCCSZTxznxfkClDvLkwE3wr_swFCH_mT9fXLI">innovative PLOB model</a>.</p><p>BrownFi AMM fills the gap between Uniswap V2 and V3, offering a complementary solution to unlock high capital efficiency with flexible market making strategies and UX simplicity. Imagine that $1M liquidity on BrownFi AMM is equivalent to $100M liquidity on Uniswap V2. Thus, BrownFi AMM fits liquidity-boosting demand of new ecosystems and new tokens with very limited capital.</p><p>Readers refer to a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="">conceptual introduction of BrownFi</a>.</p><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Contact us</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/db18ff03e45cfa8824165cb33976a7208443b595d8a55b34bdde69e7f6eb1e1b.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Math  of BrownFi AMM: boosting Capital Efficiency]]></title>
            <link>https://paragraph.com/@brownfi-amm/math-of-brownfi-amm-boosting-capital-efficiency</link>
            <guid>7LEilrDU6GnleyLMTm30</guid>
            <pubDate>Sun, 18 Aug 2024 07:03:06 GMT</pubDate>
            <description><![CDATA[BrownFi AMM fills the gap between Uniswap V2 and V3, offering a high CE like Uniswap V3 with simple UX for retail LPs like Uniswap V2. This post presents math fundamentals and simulations of BrownFi AMM, showing it capital efficiency as high as Uniswap V3 and 100X better Uniswap V2.The Math behind BrownFi AMMFor all spot exchanges, price discovery mechanism is the core function. Uniswap invented CPMM model $$ x\times y=k$$, making it the most popular and widely used pricing mechanism among AM...]]></description>
            <content:encoded><![CDATA[<p>BrownFi AMM fills the gap between Uniswap V2 and V3, offering a <em>high CE like Uniswap V3 with simple UX for retail LPs like Uniswap V2</em>. This post presents math fundamentals and simulations of BrownFi AMM, showing it capital efficiency as high as Uniswap V3 and 100X better Uniswap V2.</p><h1 id="h-the-math-behind-brownfi-amm" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The Math behind BrownFi AMM</h1><p>For all spot exchanges, price discovery mechanism is the core function. Uniswap invented CPMM model $$ x\times y=k$$, making it the most popular and widely used pricing mechanism among AMMs. BrownFi AMM employs an elastic Parameterization of Limit Order-Book (PLOB) from a published <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ieeexplore.ieee.org/abstract/document/10456889">research papers</a> on IEEE Access to construct a <strong><em>novel pricing mechanism</em></strong> associated with a rectangle liquidity distribution.</p><ul><li><p>Given a pair of tokens X and Y, where X is base token (e.g. ETH) and Y is quote token (e.g. USD), with corresponding token reserve $$(x, y)$$.</p></li><li><p>For any trade, e.g. an amount-OUT $$dx$$ of token X $$(dx&lt;x)$$, we compute price impact $$R= \frac{\Kappa \times dx}{x-dx}=\frac{\Kappa\times\delta x}{1-\delta x}$$ which is directly proportional to the relative order size $$\delta x=dx/x$$ (rectangle-shape liquidity distribution) or $$\delta x=\sqrt{dx/x}$$ (V-shape liquidity distribution). Liquidity concentration parameter Kappa $$\Kappa \quad (0&lt;\Kappa\leq 2)$$ offers low (or high) slippage if it is small (or large), respectively.</p></li><li><p>We compute the average trading price $$P_t = P_0(1 + \alpha R)$$, where $$P_0$$ the current market price (possibly fed by external or internal oracle), and a reversal coefficient$$\alpha = 1/2$$.</p></li><li><p>Finally, we compute the amount-IN $$dy=dx\times P_t$$ based on the amount-OUT and the computed average trading price, then execute swaption. Moreover, we update the new pool-internal price (if needed) as $$P_{new} = P_0(1 + R)$$.</p></li></ul><p>Mathematically, for $$\Kappa=2$$, our elastic PLOB model is proven to be equivalent to Uniswap CPMM model $$ x\times y=k$$, hence Uniswap V2 is a special case of BrownFi&apos;s elastic PLOB model. When order size $$dx$$ is large or close to the reserve $$x$$, price impact (so is trading price) will be large or super-large (tending to infinity), formally, $$\lim_{dx \to x} R(dx)=\infty$$. This makes BrownFi elastic similar to Uniswap V2 (however, BrownFi doesn’t possess path-independence like the CPMM model), hence the liquidity is unbounded. Elasticity and simplicity of BrownFi mathematical model make it resilient to market volatility and simple retail LPs like Uniswap V2 while offering high capital efficiency like Uniswap V3.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e1a836978e54b8d2ff5cf789e8fff4133eceffd1ee9ad0417abbc79af182e315.png" alt="Liquidity distribution transformed to LOB: BrownFi (concentrated) vs Uniswap V2 (infinitely spreaded) " blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Liquidity distribution transformed to LOB: BrownFi (concentrated) vs Uniswap V2 (infinitely spreaded)</figcaption></figure><h1 id="h-simulation" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Simulation</h1><p>To compare capital efficiency between Uniswap V2, V3 and BrownFi AMM, the idea is simple: <em>regarding the same trade and slippage, which AMM optimally requiring less capital is more efficient</em>. Without loss of generality, we give simple conventions:</p><ul><li><p>Consider the pair (ABC,USDT), price 1 ABC = $$P$$ USDT, taking $$P=1$$.</p></li><li><p>Trade order: buying $$dx=10$$ ABC, and paying $$dy$$ USDT. Trading fee is zero.</p></li><li><p>Slippage 1%. This means the actual trading price is $$P_t=1.01$$, higher 1% than the current price, hence the actual pay $$dy=(10P+0.1P)=10.1$$ USDT.</p></li></ul><p>Now, we are going to find how much capital is needed by Uniswap V2 pool $$(x,y)$$ vs Uniswap V3 pool vs BrownFi AMM pool $$(x&apos;,y&apos;)$$.</p><h3 id="h-uniswap-v2" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Uniswap V2</h3><p>The CPMM model gives $$(x-10)(y+10.1P)=xy$$. Because $$P=y/x=1$$, we have $$x=y$$ and $$(x-10)(x-10.1)=x^2$$, hence $$x=1010$$. The Uniswap V2 pool capital is (1010, 1010).</p><h3 id="h-uniswap-v3" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Uniswap V3</h3><p>The concentrated liquidity formula of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/whitepaper-v3.pdf">Uniswap V3</a> allows us to find a curve limited by a price range such that it can serve the trade with optimal capital, reading $$(x&apos;+\frac{L}{\sqrt{p_B}})(y&apos;+L\sqrt{p_a})=L^2$$, where $$L=\sqrt{xy}, L^2=xy$$.</p><p>Choosing a narrow price range $$[p_a,p_b]$$ where $$p_a=1.0001^{-200}\approx 0.9802, p_b= 1.0001^{200}= 1.0202$$ (volatility $$\pm 2%$$ around the market price), and we replace $$P=1, x=y=1010, \sqrt{p_a}=1/\sqrt{p_b}$$ and $$x&apos;=y&apos;$$ to obtain: $$(x&apos;+\frac{1010}{1.0001^{100}})^{2}=1010^2 \Leftrightarrow x \approx 10.05$$The Uniswap V3 bin capital is (10.05, 10.05), satisfying buying amount.</p><h3 id="h-brownfi-amm" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">BrownFi AMM</h3><p>Regarding the conventions of amount-OUT $$dx=10$$ ABC and amount-IN $$dy=10.1$$ USDT, we consider three liquidity compression/concentration $$K=2, K=1$$ and $$K=0.001$$.</p><h4 id="h-liquidity-concentration-k1" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Liquidity concentration K=1</h4><ul><li><p>$$dy=dx \times P_t \Rightarrow P_t=10.1/10=1.01$$</p></li><li><p>$$P_t=1+R/2 \Rightarrow R = 0.02$$</p></li><li><p>$$R=\frac{K\times dx}{x-dx} \Leftrightarrow \frac{10}{x-10}=0.02 \Leftrightarrow x = 510$$</p></li></ul><p>The BrownFi pool capital is (510, 510).</p><h4 id="h-liquidity-concentration-k001" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Liquidity concentration K=0.01</h4><ul><li><p>$$R = 0.02$$</p></li><li><p>$$R=\frac{K\times dx}{x-dx} \Leftrightarrow \frac{0.1}{x-10}=0.02 \Leftrightarrow x = 15$$</p></li></ul><p>The BrownFi pool capital is (15, 15).</p><h4 id="h-liquidity-concentration-k0001" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Liquidity concentration K=0.001</h4><ul><li><p>$$R = 0.02$$</p></li><li><p>$$R=\frac{K\times dx}{x-dx} \Leftrightarrow \frac{0.01}{x-10}=0.02 \Leftrightarrow x = 10.5$$</p></li></ul><p>The BrownFi pool capital is (10.5, 10.5).</p><h1 id="h-comparing-capital-efficiency" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Comparing capital efficiency</h1><p>For any price, to compare the capital between the two pools, we compute the ratio of their capital amounts. For the given trade, we summarize the capital amounts of the computed pools:</p><ul><li><p>Uniswap V2 pool (1010, 1010) = 2020</p></li><li><p>Uniswap V3 bin (10.05, 10.05) = 20.1</p></li><li><p>BrownFi $$K=0.001$$ pool (10.5, 10.5) = 21</p></li><li><p>BrownFi $$K=0.01$$ pool (15, 15) = 30</p></li><li><p>BrownFi $$K=1$$ pool (510, 510) = 1020</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/842b9ffd991f00a02b7a9b4f9ee1c14ce2487fce2efe4689c483387a8ec6bee4.png" alt="Capital efficiency comparison between BrownFi vs Uniswap V2, V3" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Capital efficiency comparison between BrownFi vs Uniswap V2, V3</figcaption></figure><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h1><p>We conclude with some advantages of BrownFi AMM.</p><ul><li><p>BrownFi $$(K=0.001)$$ is as capital-efficient as Uniswap V3 (range $$ \pm 2%$$) and 100X better than Uniswap V2.</p></li><li><p>BrownFi AMM always concentrates liquidity around market price, hence LPs always get trading fee (LPs on Uniswap V3 suffer out-of-price-range). On the other side, thank to price impact, our AMM is still elastic to large orders, thus, offers unbounded liquidity (i.e. traders cannot draw out token reserve).</p></li><li><p>BrownFi AMM offers simple UX for retail LPs like Uniswap V2. Furthermore, LPs can adjust their liquidity concentration parameter $$K$$ according to their prediction on market volatility, no need to specify price range, so more flexible than Uniswap V3 and V2.</p></li></ul><p>Two limitations those BrownFi AMM requires oracle price-feeding to operate smoothly against malicious price manipulation/arbitrage, and our model is not path-independent. Overall, BrownFi AMM fills the gap between Uniswap V2 and V3, offering a complementary solution to unlock high capital efficiency with flexible market making strategies and simplicity. Imagine that $1M liquidity on BrownFi AMM is equivalent to $100M liquidity on Uniswap V2. Thus, BrownFi AMM fits liquidity-boosting demand of new ecosystems and new tokens with very limited capital.</p><p>Readers refer to a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/vzYOSueQ4qN43J9IQH7SVZEan4VhTUDmAu49gFsg5yg">conceptual introduction of BrownFi.</a></p><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Contact us</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/5ccf91f0088e4ef4939437b001e1d91d4a88cfef817cb9a07b45bb10c07c1b10.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[BrownFi renovates AMM with high capital efficiency and simplicity]]></title>
            <link>https://paragraph.com/@brownfi-amm/brownfi-renovates-amm-with-high-capital-efficiency-and-simplicity</link>
            <guid>yGTFstcYWQnmdMKHJrZR</guid>
            <pubDate>Fri, 16 Aug 2024 08:51:41 GMT</pubDate>
            <description><![CDATA[This article introduces BrownFi, a renovated AMM, developed to unlock high capital efficiency with flexible market making strategies and simplicity. Our simulation shows that BrownFi AMM offers capital efficiency as equivalent as Uniswap V3 (range $$ \pm 2%$$) and 100X better Uniswap V2.Problem: the gap between Uniswap V2 vs V3Constant Product Market Making (CPMM), invented by Uniswap, is a legacy model of Automated Market Making (AMM) protocols in Decentralized Finance (DeFi). Uniswap V1 and...]]></description>
            <content:encoded><![CDATA[<p><em>This article introduces BrownFi, a renovated AMM, developed to unlock high capital efficiency with flexible market making strategies and simplicity. Our simulation shows that BrownFi AMM offers capital efficiency as equivalent as Uniswap V3 (range $$ \pm 2%$$) and 100X better Uniswap V2</em>.</p><h1 id="h-problem-the-gap-between-uniswap-v2-vs-v3" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Problem: the gap between Uniswap V2 vs V3</h1><p>Constant Product Market Making (CPMM), invented by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/">Uniswap</a>, is a legacy model of Automated Market Making (AMM) protocols in Decentralized Finance (DeFi). Uniswap V1 and V2 utilize the invariant $$ x*y=k$$, making it the most popular price discovery mechanism in DeFi, reused by many other Decentralized Exchanges (DEXes). It unleashes liquidity provision for everyone, every tokens, and allows instant trade (i.e. swap), all with simplicity, atomicity, infinite liquidity. However, traders usually suffer a high slippage at trades. A swap pool requires super-large liquidity to offer low slippage (e.g. liquidity value must be 202X larger than the trade order size to ensure 1% slippage). This implies a low capital efficiency (CE), thus, in particular, bad experience and liquid-boosting challenge for new ecosystems or ill-liquid trading pairs. That is why Uniswap V3 comes to improve CE. By liquidity concentration technique, Uniswap V3 can guarantee the same 1% slippage with ~2X capital larger than the order size. This means Uniswap V3 offers capital efficiency 101X higher than V2. Unfortunately, liquidity on Uniswap V3 is bounded by bins (defined by price tick ranges). Therefore, managing liquidity positions across tick ranges is complicated and only suitable for professional liquidity providers (LPs) with extensive financial knowledge and skills. Average LPs find it very difficult to manage price ranges frequently against market volatility, also tick spacing, fee tiers. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.mav.xyz/">Maverick Finance</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://traderjoexyz.com/">TraderJoe</a>, improves UX of Uniswap V3’s concentrated liquidity model, but introducing hidden risks and/or centralized control out of the core protocol. Furthermore, those concentrated liquidity paradigms only fit well-established tokens with high liquidity and relatively low volatility. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/dashboard/edit/5Wb7jYfiK4fI0-fetTtHvLUfdLAWAYXZbS5fAhApYlU">This article</a> shows that oracle-based AMM models offer a significant advantage by eliminating arbitrage opportunities, including round-trip and sandwich attacks inherited by Uniswap and other CPMM-AMMs. Additionally, half of LPs on Uniswap V3 is providing liquidity at loss due to high impermanent loss and out-of-range positions, while oracle-based AMMs outperform CPMM regard CEX-listed assets. In summary:</p><ul><li><p>Uniswap V2 and the likes: <em>simple and general but low CE</em>.</p></li><li><p>Uniswap V3 and the likes: <em>high CE but complicated UX, </em><strong><em>not</em></strong><em> fitable for </em><strong><em>retail</em></strong><em> LPs, </em><strong><em>not</em></strong><em> fitable for new tokens with low liquid and high volatility</em>.</p></li><li><p>LPs on Ethereum have lost <strong>$750M</strong> since the Merge (Sep 2022). In particular, half of Uniswap V3’s LPs lose for high IL.</p></li><li><p>Oracle-based AMMs <em>outperform Uniswap and CPMM-AMMs over CEX-listed assets in the sense of profitable returns for average LPs.</em></p></li></ul><p>This is a gap between Uniswap V2 and V3. Resolving it (i.e. <em>finding a high CE with simple UX for retail LPs</em>) will bring huge benefits for emerging blockchain ecosystems where capital is limited and quality liquidity is ill and highly dependent on bridged assets, also most LPs are average users.</p><h2 id="h-solution-an-innovative-oracle-based-amm" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Solution: an innovative oracle-based AMM</h2><p>BrownFi introduces a novel spot AMM model based on oracle price, to offer high capital efficiency, flexible market making, while keeping simple UX, fungibility &amp; reusability of LP tokens of Uniswap V2. The core concept of BrownFi AMM employs an elastic Parameterization of Limit Order-Book (PLOB) from a published <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ieeexplore.ieee.org/abstract/document/10456889">research papers</a> on IEEE Access, a notable scientific journal. In brief, the core function of BrownFi AMM is based on an invention of a <em>NOVEL </em><strong><em>pricing mechanism</em></strong>:</p><ul><li><p>Given a pair of tokens X and Y, where X is base token (e.g. ETH) and Y is quote token (e.g. USD), with corresponding token reserve $$(x_0, y_0)$$.</p></li><li><p>For any trade, e.g. an amount-OUT $$dx$$ of token X, we compute the average trading price $$P_t = P_0 * (1 + \alpha *R)$$, where $$R$$ denotes price impact factor, $$P_0$$ the current pre-trade price (fed by oracle), and a reversal parameter $$\alpha&gt;0$$.</p></li><li><p>Price impact factor $$R= \Kappa * f(\delta x)$$ is directly proportional to a function $$f(\delta x)$$ of relative order size $$\delta x=dx/x_0$$. Liquidity concentration parameter $$\Kappa$$ (Kappa) offers low (or high) slippage if it is small (or large), respectively.</p></li><li><p>Finally, we compute the amount-IN $$dy=dx*P_t$$ based on the amountOUT and the computed average trading price, then execute swaption.</p></li></ul><p>Mathematically, for $$\Kappa=2$$, the elastic PLOB model is proven to be identical with Uniswap CPMM $$ x*y=k$$, i.e. Uniswap V2 is a special case of BrownFi&apos;s elastic PLOB model. Note that our Kappa is <strong>not</strong> as same as in the liquidity invariant $$xy=k$$ of Uniswap. Elasticity in BrownFi AMM is implemented in the price impact function $$f(\delta x)$$, more explicitly, $$\lim_{\delta x \to 1} f(\delta x)=\infty$$. This means when order size $$dx$$ is large or close to the reserve $$x_0$$, price impact (so is trading price) will be large or super-large (tending to infinity). Elasticity plays an important role to ensure that liquidity never runs out, despite large swaps. BrownFi’s liquidity elasticity (more precisely, price impact elasticity) is closely similar to Uniswap V2 (which is not available on Uniswap V3), hence making BrownFi AMM resilient to market volatility. Moreover, our simple mathematical model allows us to make all trading and liquidity provision experiences on BrownFi AMM as simple as Uniswap V2, fitting all average LPs.</p><h2 id="h-simulation-and-backtest" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Simulation &amp; Backtest</h2><p>The PLOB model has two shapes of liquidity distribution: Rectangle vs Vshape. The former is equivalent to a flat order-book, close to Uniswap V3 bins, while the later is similar to the statistical liquidity distribution of legacy limit order-books. BrownFi applies rectangle liquidity distribution while the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ieeexplore.ieee.org/abstract/document/10456889">research papers</a> gives extensive investigations on Vshape.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ed7a6d017e14de3847bd8895941d6d83b0af2f4ff50c25dc2530f1ad1e4ebce5.png" alt="Liquidity distribution of PLOB: rectangle vs Vshape." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Liquidity distribution of PLOB: rectangle vs Vshape.</figcaption></figure><p>In the following, we simulate the rectangle liquidity model, which is closest to Uniswap V3 bins. For the same trade setting (order size 10 tokens, slippage 1%, price $$P=1$$, zero trading fee), Uniswap V2 requires $2020 capital, while Uniswap V3 is $20.05 and BrownFi (small Kappa $$\Kappa =0.001$$) is $21. From comparison, we see that BrownFi is as good as Uniswap V3 (range $$ \pm 2%$$) and 100X better than Uniswap V2.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/4959dd9d21ac1ffbf371c2cddecaac91369406d3c9a281d28dc6074b8e251c86.png" alt="Capital efficiency comparison between BrownFi vs Uniswap V2, V3" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Capital efficiency comparison between BrownFi vs Uniswap V2, V3</figcaption></figure><p>Further, in the published <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ieeexplore.ieee.org/abstract/document/10456889">research papers</a>, back-testing results showed that the elastic PLOB model outperformed Uniswap V2 in 8-month time-frame, brings better gains for LPs (i.e. turning impermanent loss to impermanent gain).</p><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h1><p>BrownFi AMM fills the gap between Uniswap V2 and V3, offering a <em>high CE like Uniswap V3 with simple UX for retail LPs like Uniswap V2</em>. Our simulation shows that BrownFi AMM offers capital efficiency as equivalent as Uniswap V3 (range $$ \pm 2%$$) and 100X better Uniswap V2.</p><p>It is worth to mark that BrownFi AMM does not directly compete Uniswap V2 and/or V3. BrownFi is a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/1sCtBoaKmiwYXF4dm_bXD6K6NdReyJcXHi9Hc4ksFNM">novel oracle-based AMM</a>, a complementary solution to unlock high capital efficiency with flexible market making strategies and simplicity, hence fitting liquid-boosting demand of new ecosystems with limited capital. Readers refer to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa/5lSUhDUCCSZTxznxfkClDvLkwE3wr_swFCH_mT9fXLI">math and capital efficiency comparison</a> of BrownFi and the need and advantages of oracle-based AMMs.</p><h3 id="h-contact-us" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Contact us</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://brownfi.io/">Website</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/BrownFidex">Twitter</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://t.me/paven86">Telegram</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0x64f4Fbd29b0AE2C8e18E7940CF823df5CB639bBa">blog</a></p>]]></content:encoded>
            <author>brownfi-amm@newsletter.paragraph.com (BrownFi AMM)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/4be2f2029bf0e56ddc8e906656ede6aa9739aa808814a2d7b413c4f93defb796.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>