<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by DeFi Scientist on Medium]]></title>
        <description><![CDATA[Stories by DeFi Scientist on Medium]]></description>
        <link>https://medium.com/@DeFiScientist?source=rss-303461d6a091------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L1Tt89B1_lGtXBFRqzN7rg.jpeg</url>
            <title>Stories by DeFi Scientist on Medium</title>
            <link>https://medium.com/@DeFiScientist?source=rss-303461d6a091------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 01:27:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@DeFiScientist/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Liquid Staking Rush]]></title>
            <link>https://medium.com/nethermind-eth/the-liquid-staking-rush-1977aef2bad0?source=rss-303461d6a091------2</link>
            <guid isPermaLink="false">https://medium.com/p/1977aef2bad0</guid>
            <category><![CDATA[staking]]></category>
            <category><![CDATA[liquid-staking]]></category>
            <category><![CDATA[lido]]></category>
            <category><![CDATA[rocketpool]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[DeFi Scientist]]></dc:creator>
            <pubDate>Fri, 24 Mar 2023 18:42:22 GMT</pubDate>
            <atom:updated>2023-03-24T18:52:46.230Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kOLcKlRixxmxQcytQ9cTg.png" /></figure><p><em>By </em><a href="https://twitter.com/defiscientist"><em>Joel Kahil</em></a><em>, </em><a href="https://www.linkedin.com/in/benn-glorfield-111a69211"><em>Benn Glorfield</em></a><em>, and </em><a href="https://www.linkedin.com/in/eli-barbieri-24b521213"><em>Eli Barbieri</em></a><em>.</em></p><h3>Liquid Staking: the New Crypto Narrative</h3><p>The long-awaited Shapella upgrade, expected to go live in early spring, will enable validators to exit. The upgrade is set to increase the number of ETH validators going forward, as staking will become safer, and validators will no longer have to lock their capital for an undetermined amount of time. The anticipated changes have given rise to a new crypto narrative around liquid staking — strong overall growth in the sector, with opportunities for new entrants to challenge Lido’s and CEXes’ domination. The staking narrative is built around:</p><ul><li><strong>Low staking ratio</strong> on Ethereum. Only 14% of total ETH is currently staked, which is far below that of other chains like Polygon and Solana.</li><li><strong>Yield opportunities.</strong> Staking yields are currently between 4–5%. Our <a href="https://medium.com/nethermind-eth/will-the-shapella-upgrade-unleash-large-waves-of-validator-exits-df8076800ec5">previous research article</a>, analyzed the wallet activity of the top 1,000 ETH holders. We noticed that a large proportion of these (~20% of total ETH supply) would benefit from staking ETH due to having idle ETH balances and little spending needs. This is a strong potential driver for staking in the upcoming months.</li><li><strong>Possibility of increased incentives.</strong> Allowing withdrawals in the Shapella upgrade enables the churn between liquid staking providers. This should reduce barriers to entry, encouraging protocols to increase incentives and attract more stakers.</li><li><strong>The integration of liquid staking tokens</strong> <strong>(such as stETH, rETH) into DeFi</strong> protocols should accelerate post-Shapella. Liquid staking tokens are more composable, improving capital efficiency and returns for users.</li></ul><p>According to <a href="https://defillama.com/categories">DefiLlama</a>, liquid staking is currently the second largest DeFi category in terms of total value locked (TVL), with $14 billion in assets, the majority of which are staked ETH. Dominating this market could prove to be quite lucrative and a number of new projects have recently launched and are set to compete with the already established protocols. 2023 also saw the introduction of the <a href="https://21shares.com/product/STAKE">first staking ETP</a> (Exchange Traded Product) by 21Shares and [on-chain index](<a href="https://indexcoop.com/dseth-diversified-staked-eth-index.)">https://indexcoop.com/dseth-diversified-staked-eth-index.)</a> by Index Coop. Assets under management remain negligible, with only $100k for 21Shares and $700k for Index Coop. While the development of institutional-grade staking capabilities is promising, whether these index products will take off remains to be seen.</p><h3>Regulatory Tailwind</h3><p>Liquid Staking has benefited from the recent SEC crackdown on centralized exchange (CEX) staking. In February, the SEC deemed Kraken to be operating an <a href="https://www.sec.gov/news/press-release/2023-25">“unlawful offer and sale of securities.”</a> Kraken’s staking program was criticized for commingling staking assets with Kraken’s own assets, offering stable investment returns that were unrelated to protocol-level staking returns, a lack of transparency, and marketing its services to retail investors. As a result, Kraken paid a $30m fine and announced that it would unwind its US staking operations. Although this situation currently only affects US customers, this has brought some regulatory uncertainty for other CEX staking programs, particularly Coinbase and its cbETH, which accounts for a little over 2M+ staked ETH. Since almost a quarter of the total ETH staked comes from CEXes, monitoring what Kraken’s US clients will decide to do once the staking program unwinds could reveal the direction the staking market is headed. Will they move to another exchange? Will they move their assets into liquid staking?</p><p>Many see the current regulatory crackdown as a boost for liquid staking tokens, as it reduces the influence of their main competitor. Some argue that liquid staking should be protected from regulatory oversight due to its decentralized nature. The Proof of Stake Alliance, co-chaired by Lido Finance and other industry experts, <a href="https://www.proofofstakealliance.org/22123-posa-liquid-staking-legal-white-paper">commissioned two external whitepapers</a> which suggested that:</p><ol><li>The term liquid staking derivatives is misleading and that “liquid staking tokens” is more appropriate.</li><li>Liquid staking tokens should not be considered as investment securities.</li><li>The conversion of crypto assets for receipt tokens should not be considered a taxable transaction for U.S. federal income tax purposes.</li></ol><h3>Strong Price Performance YTD</h3><p>Tokens related to liquid staking have all shown substantial gains year-to-date, ranging from +136% for Rocket Pool to +316% for SSV.Network. While not strictly a liquid staking protocol, SSV.Network is one of the main operators of Distributed Validator Technology (DVT) along with Obol. Liquid staking protocols hope to integrate DVT after the Shapella upgrade to become truly decentralized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vS7TEniEWL6r83VFdL7LA.png" /></figure><h3>Liquid Staking Gaining Market Share YTD.</h3><p>The strong price performance of the asset is supported by gains in market share and inflows into liquid staking. In the first two months of 2023, an additional 1.55 million ETH was staked, which is approximately 10% of the total amount staked at the end of 2022. Of those ETH, 60% went to liquid staking protocols, while only 4% of inflows went to CEXes. This indicates that CEXes are no longer seen as attractive by stakers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LfTXVLaeAT_ADX_il3c_tA.png" /></figure><p>When it comes to protocols, Lido has been the clear winner, attracting 51% of total staking in the first two months of 2023. On February 25th, 2023, it registered its largest daily stake inflow with over 150k ETH staked. Far behind, Rocket Pool only attracted 5.2% of deposits and Frax Finance, 3.1%. It is unlikely that Lido’s competitors will catch up, as Lido benefits from economies of scale. Higher TVL means more resources to spend on integrations and development, which also means higher liquidity and DeFi composability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ch8H5jeUoj_s-Cqb9Ur98w.png" /></figure><h3>Rocket Pool and Lido are preparing for the Post Shapella</h3><p>As the Shapella upgrade approaches, liquid staking protocols have increased communication efforts in February to attract stakers and investors.</p><h3>Rocket Pool</h3><ul><li>Coinbase has made a <a href="https://cryptonews.net/news/finance/20572631/">significant investment</a> in Rocket Pool. This investment will provide Coinbase with considerable influence over the oDAO proposals. Additionally, Coinbase will list a market on its exchange for RPL-rETH, improving liquidity.</li><li>Rocket Pool is preparing for the Atlas Upgrade, which will reduce the requirement to run mini pools from 16 ETH to 8 ETH. This change aims to allow more people to run their own minipool. Currently, there are not enough validators to run minipools, causing rETH to trade at a premium to its fair market value.</li><li><a href="http://nodeset.io/">nodeset.io</a> presented their new solution, <a href="https://nodeset.medium.com/project-hyperdrive-4819f22391dc">“Hyperdrive”</a>, which focuses on improving the scalability of Rocket Pool. The plan is to create a secondary system on top of Rocket Pool that eliminates the bond requirement by distributing deposits to node operators in a fully non-custodial manner. The system relies on an administrator who adjusts parameters, such as commission rates and deposit pool size, based on the reputation and good behavior of each node operator. The administrators also have the power to eject underperforming node operators. Hyperdrive is expected to launch in 2023.</li></ul><h3>Lido</h3><ul><li>Lido was the first liquid staking protocol to unveil a detailed framework on <a href="https://hackmd.io/@lido/SyaJQsZoj">how the withdrawals will be implemented</a>.</li><li>Lido is also preparing for the future decentralization of the protocol by unveiling <a href="https://hackmd.io/@lido/B1QorsoJj">its new Staking Router.</a> The router makes the existing smart contract more modular by allowing various validator subsets (solo stakers, distributed validator technology, or permissionless staking).</li><li>Lido also plans to maintain its dominance by focusing efforts on L2s (Arbitrum and Optimism). This is a smart strategic move since the number of transactions on L2 has recently surpassed that on Ethereum. Lido <a href="https://markets.businessinsider.com/news/currencies/ether-staking-service-lido-gets-1m-optimism-token-grant-to-incentivize-wrapped-stake-ether-adoption-1032099467">was awarded 1m OP tokens</a> to incentivize wstETH adoption, which is mostly used in DeFi. These rewards will be distributed to liquidity providers on DEXes and lending protocols such as Aave.</li></ul><p>Nethermind is preparing to publish an in-depth research paper on the future of liquid staking. The paper will examine the differences between various types of projects and how we see technology evolving in the future.</p><h3>Disclaimer</h3><p>This article has been prepared for the general information and understanding of the readers. No representation or warranty, express or implied, is given by Nethermind as to the accuracy or completeness of the information or opinions contained in the above article.</p><p>The views and strategies described may not be suitable for all readers. Both past performance and yield may not be a reliable guide to future performance. All case studies are shown for illustrative purposes only and should not be relied upon as advice or interpreted as a recommendation.</p><p>To the fullest extent permitted by law, Nethermind disclaims any liability in connection with this article, its content, and any related services and products and your use thereof, including, without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. Nethermind does not warrant, endorse, guarantee, or assume responsibility for any product or service advertised or offered by a third party through the product, any open source or third-party software, code, libraries, materials, or information linked to, called by, referenced by or accessible through the article, its content, and the related services and products, any hyperlinked websites, any websites or mobile applications appearing on any advertising, and Nethermind will not be a party to or in any way be responsible for monitoring any transaction between you and any third-party. You should use your best judgment and exercise caution where appropriate. FOR AVOIDANCE OF DOUBT, THE ARTICLE, ITS CONTENT, ACCESS, AND/OR USAGE THEREOF, INCLUDING ANY ASSOCIATED SERVICES OR MATERIALS, SHALL NOT BE CONSIDERED OR RELIED UPON AS ANY FORM OF FINANCIAL, INVESTMENT, TAX, LEGAL, REGULATORY, OR OTHER ADVICE.</p><p>Kindly note, Nethermind is currently engaged in a research project for Lido DAO. This article, however, has not been commissioned by Lido DAO, and has been prepared outside of the scope of the services provided to the DAO by Nethermind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1977aef2bad0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nethermind-eth/the-liquid-staking-rush-1977aef2bad0">The Liquid Staking Rush</a> was originally published in <a href="https://medium.com/nethermind-eth">Nethermind.eth</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will the Shapella Upgrade Unleash Large Waves of Validator Exits?]]></title>
            <link>https://medium.com/nethermind-eth/will-the-shapella-upgrade-unleash-large-waves-of-validator-exits-df8076800ec5?source=rss-303461d6a091------2</link>
            <guid isPermaLink="false">https://medium.com/p/df8076800ec5</guid>
            <category><![CDATA[validator-node]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[staking]]></category>
            <dc:creator><![CDATA[DeFi Scientist]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 13:01:17 GMT</pubDate>
            <atom:updated>2023-03-08T13:01:17.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWBrBwrc91BMHVJrhNVL-A.png" /></figure><p>By <a href="https://www.linkedin.com/in/basatgorchu">Basat Gorchu</a><strong>, </strong><a href="https://in.linkedin.com/in/harshvardhantodi">Harshvardhan Todi</a><strong>, </strong><a href="https://twitter.com/defiscientist">Joel Kahil</a>, <a href="https://th.linkedin.com/in/narut-pramojaney-cfa-80ab7541">Narut Pramojaney</a></p><h3>Executive Summary</h3><p>There are concerns about large validator exits occurring shortly after the Shapella upgrade. In this article, we examine whether these fears are justified and attempt to estimate how many validators are expected to exit and how many will join post-upgrade.</p><p>First, we explain the distinction between partial and complete withdrawals, noting that not all validators can unstake immediately after withdrawals are enabled. We then examine the various drivers of withdrawal and staking demand, such as:</p><ul><li>Are early validators more likely to unstake?</li><li>Is there a relationship between ETH prices and staking demand?</li><li>Will validators restake their accumulated rewards?</li><li>How great is the pent-up demand for staking?</li></ul><h3>Exits vs. Partial Withdrawals</h3><p>The Shapella upgrade will introduce two distinct types of withdrawals: full (also known as exits) and partial (staking reward collection). For more detailed information on the withdrawal process, we refer you to our <a href="https://www.linkedin.com/feed/update/urn:li:activity:7036295874125135872/">recent article</a> in collaboration with Twinstake.</p><p>This section will focus on the expected ETH outflow associated with full and partial withdrawals.</p><h4>Full Withdrawals or Exits</h4><p>Complete withdrawals allow validators to withdraw their entire stake after going through an exit queue and a withdrawal period. This process was designed to prevent sudden changes in the number of validators, ensuring network security.</p><p><strong>How Does The Exit Queue Work?</strong></p><p>Full withdrawals must go through both the exit queue and the withdrawal period to be considered withdrawable. The exit queue is the main bottleneck and works in a first-in, first-out (FIFO) fashion, limiting the number of validators who can withdraw in each <a href="https://www.bitdegree.org/crypto/learn/crypto-terms/what-is-epoch">epoch</a> (period of 32 slots) to a dynamic <em>churn limit</em>. The following equation determines the limit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*D-fFAKww3-1n-xp9JtMb3g.png" /></figure><p>The minimum churn limit is currently set to four, meaning that at least four validators must be able to withdraw every epoch. The graph below shows the relationship between the number of active validators in the network and the churn limit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*CVHI9D3iBtW_x07Zsmgi6g.png" /><figcaption>Source: <a href="https://notes.ethereum.org/@launchpad/withdrawals-faq">Ethereum Foundation</a></figcaption></figure><p>Given that there are close to 530,000 validators as of February 27th, 2023, the churn limit is 530,000 / 65,536 = 8.08, which means that only eight validators are allowed to exit per epoch (6.4 minutes). Once the number of validators exceeds 589,824 (65,536*89), nine validators will be allowed to exit.</p><p>The chart below shows the days for a given proportion of the validator set to exit the queue altogether. If 10% of validators decided to unstake simultaneously, they would have to wait in the queue for 16 days on average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*8lgUpxj-1BoiPDmiKSyrBA.png" /><figcaption>Source: <a href="https://notes.ethereum.org/@launchpad/withdrawals-faq">Ethereum Foundation</a></figcaption></figure><p>Once validators go through the exit queue, they must wait for the withdrawal period to end. The withdrawal period will be 256 epochs (~27 hours) for validators who have not been <a href="https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/rewards-and-penalties/#slashing">slashed</a> and 8,192 epochs (~36 days) for those who have. Once the withdrawal period is over, the validators will wait for their withdrawal to be processed (potentially up to 5 days).</p><p>Slashed actors have a longer withdrawal period due to the slashing penalty mechanism. Once slashing is detected, the minimum penalty is issued, which has a fixed size. After 18 days, a midterm attack multiplier penalty is applied, proportional to the number of other slashings in approximately the previous 36 days.</p><p>Please refer to our <a href="https://www.linkedin.com/feed/update/urn:li:activity:7036295874125135872/">previous article</a> for more information on the exit queue.</p><p><strong>Only 40% of Validators Will be Eligible to Withdraw From Day One</strong></p><p>It is also important to note that to be able to withdraw their stake, validators will need a withdrawal address of the 0x01 format. The option of setting a 0x01 withdrawal address when joining the validator set was only introduced in March 2021. However, the validators that joined earlier were stuck with the old 0x00 format addresses without the option of switching to the new format. Currently around<a href="https://app.metrika.co/ethereum/dashboard/withdrawals-overview?tr=1d"> ~310,000</a> or ~58% of Ethereum validators have the old 0x00 format withdrawal addresses. The Shapella upgrade will enable those with the old format withdrawal addresses to switch to the eligible 0x01 addresses. However, the rate of withdrawal address switching will be limited to 16 per block, meaning it would take around three days for all 0x00 addresses to change to 0x01 and become eligible to withdraw their ETH.</p><h4>Partial Withdrawals</h4><p>After the Shapella upgrade, accumulated staking rewards (balances over 32 ETH) will be withdrawn automatically if validators have the required withdrawal credentials. This is referred to as partial withdrawals. Partial withdrawals are processed according to the indices assigned to individual validators when joining the Beacon Chain (as opposed to first-in, first-out), with a withdrawal pointer looping through these indices and withdrawing at a rate of 16 validators per block. As a result, it would take 4.7 days for the pointer to go through all the validator indices, assuming they are all eligible. However, since only 42% of validators have the required credentials, partial withdrawals will be processed within approximately 2 days.</p><h3>Drivers for Withdrawal and Staking Demand</h3><p>Having covered the withdrawal process and eligibility criteria for validators, we can delve into the factors that drive demand for staking withdrawals and activations. Several factors may influence the relationship between the two, including:</p><ol><li>Validators’ staking duration</li><li>Regulatory crackdown on CEX staking</li><li>Crypto prices</li><li>Restaking of previously accumulated rewards</li><li>Amount of idle ETH</li></ol><h4>Validator Staking Duration</h4><p>It is commonly believed that early validators will be especially eager to use the Shapella upgrade to unstake. Currently, a significant portion of active validators, ~56.9%, have been staking for over a year, so if the aforementioned belief holds true, the majority of the validator set may wish to exit once the upgrade is live. To test this hypothesis, we analyzed withdrawals on Polygon and drew comparisons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*5MHPpmGW5ywPN7E5SfS1oQ.png" /><figcaption>Source: <a href="https://dune.com/queries/610155">Dune Analytics</a></figcaption></figure><p><strong>Insights From Polygon Staking</strong></p><p>Insights from Polygon staking contradict the common belief that validators who have staked for a prolonged period are more likely to withdraw.</p><p>Withdrawals on Polygon have been enabled since the inception of the staking contract in 2020. According to Dune Analytics, 36,101 wallets have staked MATIC on Polygon. Of those, 55% have only withdrawn rewards and not their entire stake. For those who did unstake, most did so within the first three months. The median staking time was 92 days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*tv858iIPrVEftnfHACk2aw.png" /><figcaption>Source: <a href="https://dune.com/queries/2028116">Dune Analytics</a></figcaption></figure><p>Small-stake validators on Polygon are less likely to exit, with only 42% of them having done so. Large MATIC stakers, holding 10 million or more tokens, are also relatively unlikely to exit. However, we note that middle-sized validators are more likely to unstake. This suggests that large Ethereum holders will likely retain their staked ETH, while those with smaller holdings may be more inclined to exit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*jukKY1gE_Kw_3k7Dbh3KKg.png" /><figcaption>Source: <a href="https://dune.com/queries/2028116">Dune Analytics</a></figcaption></figure><p>Based on these findings, we do not anticipate validators that have been staking ETH for over a year to exit, especially if they are associated with entities that control many validators.</p><h4>Regulatory crackdown on CEX staking</h4><p>The chart below provides a breakdown of staking deposits by user type. CEXs (note that Coinbase’s cbETH is classified as a CEX and not liquid staking) make up 28% of the total ETH staked, but they are a volatile source. CEXs may be more likely to withdraw their staked ETH since Kraken was recently fined by the SEC for the illegal sale of securities. Kraken, in particular, will unwind its US staking operations after the Shapella upgrade. Based on the SEC filing, we estimate that between 25% to 30% of Kraken’s staked ETH is from US investors, which <strong>represents between 300k to 400k ETH (2% of total staked ETH) that will be unstaked.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*BoT8ZxCnA9djjA5BjU6zqA.png" /><figcaption>Source <a href="https://dune.com/queries/991513/1716891">Dune Analytics</a></figcaption></figure><p>It is yet to be seen whether Kraken will exit its validators all at once or gradually over several weeks. Regardless of the approach, the withdrawals are expected to be manageable and not cause significant congestion to the exit queue. Nonetheless, monitoring other SEC actions against US CEXs in the coming weeks is essential, as they could destabilize the staking market and lead to large exit queues.</p><h4>Impact of Crypto Prices on Staking Demand</h4><p>Crypto price volatility is often seen as a critical factor in redemptions. Analysis of MATIC redemptions reveals a non-linear correlation between MATIC volatility and the amount of unstaking. The probability of a large unstaking of MATIC over 10 days (i.e. more than 2% of total staked MATIC) increases significantly when MATIC has a 15%+ drawdown. Historically, when MATIC has dropped more than 15% over 10 days, there has been a 41.8% probability of a large unstake vs 4.3% otherwise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*rOsth-EaovlP1YcdlfR3CQ.png" /><figcaption>Source <a href="https://dune.com/queries/1902189">Dune Analytics</a></figcaption></figure><p>We observed a similar pattern with Solana staking as the main unstaking waves occurred during the 2021 flash crash and FTX collapse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*SYZyLuBD6ymAFCLhhzgy-Q.png" /><figcaption><em>Source: </em><a href="http://solanacompass.com/"><em>solanacompass</em></a></figcaption></figure><p>Inversely, sustained token price appreciation does not lead to increased staking. The amount of MATIC staked nearly doubled from 2022, despite the price of MATIC decreasing by a factor 3. Similarly, the amount of ETH staked increased moderately between July and December 2021, while the price multiplied by 2.5x.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*PgRcDqnc-ubggW8z7R3opQ.png" /><figcaption>Source <a href="https://dune.com/queries/1932029">Dune Analytics</a>, CoinGecko</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*qEdFeTiUcpwQhZhODutrQA.png" /><figcaption>Source <a href="https://dune.com/queries/1933076">Dune Analytics</a>, CoinGecko</figcaption></figure><h4>Rewards Accumulated and Restaking Demand</h4><p><strong>How Large Are The Rewards Accumulated by Validators?</strong></p><p>According to <a href="http://beaconcha.in/">beaconcha.in</a>, there are ~530,000 active validators, with an average balance of 34 ETH. Since anything over 32 ETH can be considered staking rewards and will be automatically withdrawn through partial withdrawals, approximately 1,060,000 ETH or 6.2% of the total staked ETH will be available for partial withdrawals.</p><p>However, as we saw earlier, most validators have yet to switch to 0x01 addresses. Assuming all remaining validators switch credentials once the Shapella upgrade is live, the highest volumes of partial withdrawals will only occur two days after the upgrade. As a result, most of the staking rewards will take two to three days to be withdrawn.</p><p><strong>Restaking Demand May Clog The Activation Queue</strong></p><p>Since validators don’t receive any additional yield for staking more than 32 ETH, a large portion of the partially withdrawn ETH will likely be restaked in new 32 ETH units that generate extra yield. The queue mechanics for activations (becoming a validator) are similar to those for withdrawals — only a limited number of validators can join the validator set each epoch. For example, if all 1,060,000 ETH are restaked, a validator could take up to 20 days to join the network.</p><p>While waiting in the activation queue, validators don’t generate any staking rewards. This may lead to a more significant premium for liquid staking derivatives, which will continue to generate yield while ETH in the activation queue doesn’t. Based on 5% staking returns, a 20-day activation wait would warrant a <strong>27 basis points premium</strong> (5%/365*20). The activation queue may be longer if the Shapella upgrade encourages ETH holders to stake more.</p><h4>How Large is The Pent-Up Demand For Staking?</h4><p>The primary demand for staking will come from the idle ETH in wallets. Staking yields are close to 5%, meaning that not staking incurs a high opportunity cost. Therefore, holders have a solid incentive to stake their idle ETH, provided gas fees are reasonable, and they have no security or withdrawal worries. Below we examine the primary uses of the top 1,000 ETH holders. These holders, including the Beacon Chain, control 62.54% of the total ETH in circulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T20XaVYg7QwOYrCG6G-OAw.png" /></figure><p>Aside from staking, a significant portion of ETH is held by individual wallets. After analyzing transactions, we can divide these wallets into three distinct groups:</p><ol><li><strong>Wallets with low turnover (10 transactions or less):</strong> 14.34% of total ETH supply.</li><li><strong>Wallets accumulating ETH</strong>. These wallets have few outgoing transactions (less than 5): 7.24% of the total ETH supply.</li><li><strong>Remaining wallets.</strong> These wallets have a high turnover rate: 7.88% of the total ETH supply.</li></ol><p>The first two groups of wallets, those with low turnover or those accumulating ETH, likely have little need to spend it in the short term. Therefore, they would benefit from staking their ETH to earn interest. Together, these two categories represent 21.58% of total ETH holdings, which is higher than the amount currently staked.</p><p>In addition to these categories, treasuries are prime targets for staking, as they collectively own over 1% of the total ETH supply. Examples of DAOs in this category include ENS, BitDAO, GuildFi, and Lido, which have amassed a war chest and plan to spend it over time. These treasuries could stake the majority of their ETH to improve their treasury management.</p><p>CEXs account for approximately 10% of the total circulating ETH, while DeFi protocols account for around 5%. We anticipate that ETH will remain on those platforms, as the need to stake ETH is less pressing than for idle wallets.</p><p>We have observed that the Top 1000 ETH holders are likely to generate significant staking demand. Although we have not yet analyzed the remaining ETH wallets (which account for 37% of the total ETH), we anticipate that they, too, will contribute to the demand for staking. Smaller wallets may opt for liquid staking as a more cost-effective solution.</p><h3>Conclusion</h3><p>Although predicting the exact number of withdrawals post-Shapella is challenging, we expect only a limited number to exit immediately after withdrawals are enabled, as most validators will not have the necessary withdrawal credentials. The week following the Shapella upgrade should see substantial partial withdrawals, providing a good cushion for validators needing liquidity without requiring them to fully withdraw . Some partial withdrawals will be reinvested, but it will take some time for all the new validators to join the network and earn rewards due to the effect of the activation queue. We also anticipate increased demand from long-term ETH holders with idle ETH in their wallets. This could cause liquid staking coins, such as stETH, to trade at a premium compared to their fair value. For long term projections, past staking activity on Polygon and Solana suggests that validator exits are usually relatively small, barring a significant liquidity event. Nevertheless, the SEC’s recent crackdown on Kraken, which will force it to unwind its US staking operations, creates major uncertainty in the industry. Therefore, it is necessary to monitor how the SEC’s actions develop and whether they expand their reach to other cryptocurrency exchanges (CEXs), forcing more withdrawals to follow.</p><h4>About Us</h4><p><em>Nethermind is a team of world-class builders and researchers. We empower enterprises and developers worldwide to access and build upon the decentralized web. Our work touches every part of the Web3 ecosystem, from our Nethermind node to fundamental cryptography research and application-layer protocol development. We’re always looking for passionate people to join us in solving Ethereum’s most difficult challenges. Are you interested? Check out our </em><a href="https://nethermind.io/company/"><em>job board</em></a><em> and visit our </em><a href="https://nethermind.io/research/"><em>DeFi Research page</em></a><em> for our DeFi analyses.</em></p><h4><strong>Disclaimer</strong></h4><p>This article has been prepared for the general information and understanding of the readers. No representation or warranty, express or implied, is given by Nethermind as to the accuracy or completeness of the information or opinions contained in the above article.</p><p>The views and strategies described may not be suitable for all readers. Both past performance and yield may not be a reliable guide to future performance. All case studies are shown for illustrative purposes only and should not be relied upon as advice or interpreted as a recommendation.</p><p>The article is based on the scope of materials and documentation publicly available to Nethermind, and it does not indicate Nethermind’s endorsement of any particular asset, project or team, nor guarantee its security. No third party should rely on this article in any way, including for the purpose of making any decisions to buy or sell a product, service or any other asset.</p><p>To the fullest extent permitted by law, Nethermind disclaims any liability in connection with this article, its content, and any related services and products and your use thereof, including, without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. Nethermind does not warrant, endorse, guarantee, or assume responsibility for any product or service advertised or offered by a third party through the product, any open source or third-party software, code, libraries, materials, or information linked to, called by, referenced by or accessible through the article, its content, and the related services and products, any hyperlinked websites, any websites or mobile applications appearing on any advertising, and Nethermind will not be a party to or in any way be responsible for monitoring any transaction between you and any third-party. You should use your best judgment and exercise caution where appropriate. FOR AVOIDANCE OF DOUBT, THE ARTICLE, ITS CONTENT, ACCESS, AND/OR USAGE THEREOF, INCLUDING ANY ASSOCIATED SERVICES OR MATERIALS, SHALL NOT BE CONSIDERED OR RELIED UPON AS ANY FORM OF FINANCIAL, INVESTMENT, TAX, LEGAL, REGULATORY, OR OTHER ADVICE.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df8076800ec5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nethermind-eth/will-the-shapella-upgrade-unleash-large-waves-of-validator-exits-df8076800ec5">Will the Shapella Upgrade Unleash Large Waves of Validator Exits?</a> was originally published in <a href="https://medium.com/nethermind-eth">Nethermind.eth</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How The Shanghai Upgrade Will Impact MEV]]></title>
            <link>https://medium.com/nethermind-eth/how-the-shanghai-upgrade-will-impact-mev-946272bc8344?source=rss-303461d6a091------2</link>
            <guid isPermaLink="false">https://medium.com/p/946272bc8344</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[liquid-staking]]></category>
            <category><![CDATA[withdrawal]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[mev]]></category>
            <dc:creator><![CDATA[DeFi Scientist]]></dc:creator>
            <pubDate>Thu, 02 Feb 2023 14:59:28 GMT</pubDate>
            <atom:updated>2023-02-16T13:26:51.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TC9XLm-zOj079-NmvBXpbg.png" /></figure><p><strong>By </strong><a href="https://twitter.com/defiscientist">Joel Kahil</a>, <a href="https://www.linkedin.com/in/benn-glorfield-111a69211">Benn Glorfield</a>, and <a href="https://www.linkedin.com/in/eli-barbieri-24b521213">Eli Barbieri</a>.</p><h3>Executive Summary</h3><p>The Shanghai upgrade, set to take place in early spring, will permit validators to withdraw their staked ETH, opening the door to new opportunities in the Maximal Extractable Value (MEV) market. In addition, liquid staking tokens, such as stETH, will be redeemable for ETH without the need for a decentralized exchange, enabling a new trading primitive that will allow arbitrage opportunities between liquid staking coins and base ETH. Currently, the potential for MEV profit in liquid staking is limited, and atomic transaction earnings will be low due to decreased market volatility.</p><p>Despite this, the adoption of liquid staking tokens is expected to increase in the long term, as they offer superior functionality in various DeFi applications, such as liquidity pools and lending markets. Furthermore, this upgrade will likely drive innovation in the liquid staking market, providing a significant source of MEV and arbitrage opportunities in the future.</p><h3>Current MEV From Liquid Staking</h3><p>Liquid staking on Ethereum accounts for a small percentage of total MEV profits. According to data from Flashbots and EigenPhi, liquid staking generated $595k in earnings from the Merge up until January 10th, 2023. In comparison, the total MEV market on Ethereum generated $2.5m in profits during the 30 days leading up to January 18th.</p><h4>Low DEX Integration: A Headwind For MEV</h4><p>Atomic (single-transaction) arbitrages account for most of all MEV (upwards of 80%), and roughly 80% of all arbitrages are extracted from either Uniswap V2 or V3. While stETH is the largest liquid staking coin by market capitalization, it is primarily traded on only three DEXes: Curve, Balancer, and Euler Finance. This lack of integration and liquidity leads to fewer arbitrage-based MEV opportunities compared to established Uniswap pairs.</p><p>Instead, stETH is primarily used as collateral in lending markets to borrow WETH, and as of January 20th, 2023, 73% of Aave’s stETH supply (673k stETH) was used as collateral to borrow WETH. As a result, the stETH and ETH prices are effectively pegged, making liquid staking tokens behave similarly to stablecoins. This factor, in conjunction with the stability of ETH, makes liquidations of these positions unlikely, further reducing the MEV opportunities compared to pairs like USDC/WETH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jkjqI-k025Q02dHEssjUPQ.png" /><figcaption>Source Dune Analytics <a href="https://dune.com/queries/71294/142094">Query 1</a> <a href="https://dune.com/queries/71299/142113">Query 2</a></figcaption></figure><h4>Arbitrage Trades Dominate MEV</h4><p>Most MEV profits linked to liquid staking came from arbitrage between prices on different platforms, accounting for 80.2% of total profits. Sandwich attacks accounted for 19.1% of MEV profits. Liquidations have generated little MEV since the Merge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Q_Vg26XJ0NCEg0XPo_hFsA.png" /><figcaption>Source: Eigen Phi, Flashbots</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*t7dMtpha-rXDy6Lecd-6ag.png" /><figcaption>Source: Eigen Phi, Flashbots</figcaption></figure><p>RocketPool’s rETH token appears to be the most arbitraged, but it’s important to note that these rates are highly skewed by one trade executed on November 8th, 2022, during the FTX collapse. This single trade comprised almost half of all extracted MEV from liquid staking tokens at the time of execution. MEV profits are generally not distributed, and a tiny fraction of trades generate outsized profits. In this case, one trade was responsible for $277k out of the $595k total MEV profits from liquid staking. You can find more information about this trade on the <a href="https://eigenphi.io/mev/ethereum/tx/0xf7b95ea3d317d8e5e1d70d990acba669b419673199789eb5adb29ed5341134c1">EigenPhi Website</a>.</p><p>The results are more predictable when looking at the count of MEV transactions between different liquid staking tokens. For example, around 47% of transactions are on stETH, 30% on rETH, and 8% on Coinbase ETH (cbETH). These percentages indicate that while large, outlier trades may skew the overall MEV profits for a specific token, the distribution of transactions across different tokens is more stable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*-YnOGDlDcQCR86rZ4hBkDw.png" /><figcaption>Source: EigenPhi, Flashbots</figcaption></figure><h3><strong>Short Term Impact</strong></h3><h4>Less MEV Opportunities Due to Lower Price Volatility</h4><p>When withdrawals are enabled, the discount between liquid staking tokens and ETH will likely narrow significantly, similar to what happened following the Merge. Unlike stablecoins such as USDC and USDT, an exit queue will be in place to manage redemptions. Once a validator has exited the queue, it will have to wait at least 27 hours to withdraw its stake. (More information at <a href="https://notes.ethereum.org/@hww/lifecycle#45-Step-5-Unslashed-and-Exited">https://notes.ethereum.org/@hww/lifecycle#45-Step-5-Unslashed-and-Exited</a>)</p><h4>New Types of MEV</h4><p>Currently, there is no way for a searcher to capitalize directly on a trading discount between ETH and a liquid staking token. Any arbitrage that occurs utilizes discounts between different liquid staking tokens. After the Shanghai upgrade, by operating their validators, MEV searchers will be able to implement new strategies, including but not limited to the following:</p><ul><li>If withdrawal demands are too high, validators will want to be at the front of the exit queue to avoid delays. Therefore, it makes sense to pay bribes to ensure that one’s exit request or partial withdrawal is processed.</li><li>Pay validators to back-run users selling a significant quantity of liquid staking tokens.</li></ul><h4>Arbitrage Opportunities Will Increase</h4><p>As we have seen previously, withdrawals will take a minimum of 27 hours. As a result, atomic transactions will not be possible; thus, arbitrage opportunities will require capital to be executed. These are not strictly MEV because the transactions are not atomic, and the trade will last as long as the withdrawal duration, creating two classes of liquid staking arbitrage:</p><ol><li><strong>Buying liquid staking coins when the discount reaches certain levels.</strong> When the discount drops below a certain threshold, it’s profitable to arbitrage trades until the withdrawal completes. Even small discounts on liquid staking tokens will be worth arbitraging. For example, if you purchased stETH at a 20 bps discount and redeemed it three days later, you would generate an annualized profit of 23%.</li><li><strong>Arbitrage between liquid staking tokens. </strong>As the liquid staking token market share increases, the additional volatility will create other opportunities. On top of that, staking tokens utilize different rebasing strategies and redemption mechanisms, creating an additional factor when pricing these staking tokens. This market will become similar to stablecoins, where each asset fulfills the same fundamental purpose, but each token has a slightly different implementation.</li></ol><p>To make things comparable, we have looked at the historical discount vs. fair value of rETH, cbETH, and stETH. As one can see, the prices of the three tokens are uncorrelated, creating attractive arbitrage opportunities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*JG6SAzQCJraYC_GFD_xvQA.png" /><figcaption>Source: Dune Analytics <a href="https://dune.com/queries/1642255/2726942">Query 1</a> <a href="https://dune.com/queries/1206134">Query 2</a> <a href="https://dune.com/queries/374112">Query 3</a></figcaption></figure><h3>Long Term: DeFi Adoption Will Drive MEV Opportunities</h3><p>The current staking ratio of ETH is low (14%) compared to other chains like Solana (68%) and Polygon (43%). Only when the Shanghai upgrade is implemented are withdrawals possible. Staking entails locking one’s ETH for an undetermined period; this prevents many users from staking their tokens as they may need to access them in the future. Liquid staking tokens provide an alternative, but their discount may widen during volatile periods.</p><p>After the upgrade, the liquid staking market will likely expand, and their associated coins will become more critical in the DeFi ecosystem. Liquid staking protocols will have to focus on their decentralization and composability aspects. More DeFi integration combined with higher volumes will increase MEV and arbitrage opportunities from liquid staking coins.</p><p>Liquid staking tokens enable composability and better capital efficiency. Liquidity providers will prefer to provide capital to a Uniswap V3 pool USDC/stETH vs. USDC/WETH as they can accrue rewards on their ETH. As liquid staking coins increase ETH staked, they will generate more trading volume. Moreover, protocols will have more incentives to include these coins as collateral in liquidity or even lending pools. For example, cbETH, with a market cap above $1bn as of January 19th, 2023, is an attractive integration candidate.</p><p>We also expect to see more L2 adoption in liquid staking, unlocking more cross-chain MEV opportunities. The number of stETH tokens on Ethereum bridges has been increasing steadily since the Merge but remains a small part of the circulating supply (less than 1%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XCmnfStmct6RE0Qu-jfllQ.png" /><figcaption>Source: <a href="https://dune.com/queries/1919357">Dune Analytics</a></figcaption></figure><h4><strong>Disclaimer:</strong></h4><p>This article has been prepared for the general information and understanding of the readers. No representation or warranty, express or implied, is given by Nethermind as to the accuracy or completeness of the information or opinions contained in the above article.</p><p>The article is based on the scope of materials and documentation publicly available to Nethermind, and it does not indicate Nethermind’s endorsement of any particular asset, project or team, nor guarantee its security. No third party should rely on this article in any way, including for the purpose of making any decisions to buy or sell a product, service or any other asset.</p><p><em>Nethermind is a team of world-class builders and researchers. We empower enterprises and developers worldwide to access and build upon the decentralized web. Our work touches every part of the Web3 ecosystem, from our Nethermind node to fundamental cryptography research and application-layer protocol development. We’re always looking for passionate people to join us in solving Ethereum’s most difficult challenges. Are you interested? Check out our </em><a href="https://nethermind.io/company/"><em>job board</em></a><em> and visit our </em><a href="https://nethermind.io/research/"><em>DeFi Research page</em></a><em> for more analyses of DeFi and Web3.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=946272bc8344" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nethermind-eth/how-the-shanghai-upgrade-will-impact-mev-946272bc8344">How The Shanghai Upgrade Will Impact MEV</a> was originally published in <a href="https://medium.com/nethermind-eth">Nethermind.eth</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add 4% to your recursive lending returns on Compound]]></title>
            <link>https://medium.com/@DeFiScientist/how-to-add-4-to-your-recursive-lending-returns-on-compound-3c576dfdd99d?source=rss-303461d6a091------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c576dfdd99d</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[lending]]></category>
            <category><![CDATA[aave]]></category>
            <dc:creator><![CDATA[DeFi Scientist]]></dc:creator>
            <pubDate>Wed, 09 Feb 2022 17:03:06 GMT</pubDate>
            <atom:updated>2022-02-09T17:03:06.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4YiU5c1RAAtZTHVK" /><figcaption>Photo by <a href="https://unsplash.com/@kpietrzakweb?utm_source=medium&amp;utm_medium=referral">Kamil Pietrzak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recursive Lending is a very popular strategy in DeFi. It involves lending and borrowing on Compound / AAVE in order to harvest the maximum reward possible. This strategy was very profitable at the beginning of 2021. However, returns have dropped considerably as more money flew into the strategy and the value of the Compound Token fell from $800 on May 21 to $125 at the end of January 22.</p><p>In this blog post, we show that given current market conditions, there are simpler, and more rewarding alternatives for DeFi users that are uncorrelated to token prices. One of these alternatives is fixed rate lending on <a href="https://notional.finance/">Notional Finance</a>. The latter is even more compelling in the DAI pool, as Compound returns have been historically lower versus USDC. <strong>Lending on </strong><a href="https://notional.finance/"><strong>Notional Finance</strong></a><strong> increases on average your lending returns by 4 to 5% based on current prices.</strong></p><h3><strong>Recursive Lending in a nutshell</strong></h3><p>Recursive lending is a strategy on Compound (or Aave) that takes advantage of the fact that the net borrowing rate (after rewards) is higher than the net lending rate. COMP incentives make the borrowing rate lower than the lending rate. For example, as of Feb 2nd, the supply rate is 2.25% and the borrow rate 3.77% p.a for the USDC pool. On top of these yields, lenders will receive 0.93% p.a. in COMP tokens and borrowers 1.38% p.a. Including those incentives, one can borrow USDC at 2.39% and supply it at 3.18% p.a on Compound.</p><p>In that configuration, one should deposit stable coins and borrow as much as possible in the same token. Borrowing on Compound needs to be over collateralized so you cannot leverage indefinitely. The platform has a collateral factor (<em>cf</em>) of 80% meaning that if you deposit $100 of collateral, you can only borrow $80 worth of tokens. With a $100 initial lending deposit, one will borrow $80 against it in the same currency. Those $80 will then be re-deposited on Compound and used to borrow $64 (80% of $80) and so on ….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*eXMU_fuu6803pQgnHvTxCw.png" /></figure><p>As the collateral ratio is 80%, we can therefore lend $5 with $1 of capital and borrow $4. This enables us to get c10x more COMP reward if we had loaned only $1.</p><p><strong>The total return of the strategy equals therefore Lending Rate + 4*(Lending- Borrow Rate) with the lending rate and borrow rate being net of COMP rewards.</strong></p><p>People do not borrow 4x times their initial stake as after a certain amount the gas fees become too high versus the interest they expect. Also, they might want to have some margin of safety on our collateral to avoid liquidations. Instadapp and Yearn are using a 4 to 4.6x leverage (i.e. borrow 3x to 3.6x their initial stake instead of 4x)</p><p><strong>Historical returns of the Strategy for DAI and USDC</strong></p><p>We look at the historical daily APY of the recursive lending strategy since November 1st 2021, which is the launch date of Notional V2. We have assumed a 4.6x leverage in our calculations. The strategy APY has been quite volatile in the last three months and returns have been consistently higher for the USDC pool versus DAI. Since Nov 1st, the annualized return was 6.34% for DAI and 8.88% for USDC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*DSFe3Lvp1lKk1Kvk" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*XApcR5j93Y91MbTS" /></figure><p>So far, net supply rates have been above borrow rates for both lending pools, apart from a brief period in December for DAI. The returns have also been declining since November 2021 and the current APY for DAI and USDC (as of Feb 1st) are respectively 5.58% and 4.22%. Those rates are much lower than the current rates one can lock until the end of March on Notional. Notional offers lenders a net return of 9.34% for USDC and 9.25% for DAI. <strong>These are 5% superior to the expected returns of a recursive strategy on DAI and c 3.8% higher for USDC.</strong></p><h3><strong>Main drivers of the recursive strategy</strong></h3><p>As we have seen previously, the returns of a recursive strategy are quite volatile through time. They will depend on 1) the value of COMP token, 2) the utilization rate of the pool, 3) how much AUM in the pool is sharing those rewards 4) ethereum prices.</p><ol><li><strong>COMP token prices</strong></li></ol><p>A recursive lending strategy is subsidized by the COMP rewards a user will receive for borrowing and lending. With supply rates before rewards being close to 2%, COMP rewards represent between 50% and ⅔ of the total returns. Most of the volatility of the strategy comes from the COMP token volatility.</p><p>As you can see below, the strategy APYs are extremely correlated to the COMP token price.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*KBqdQNt_TkNEVwZW" /></figure><p>As a result, market neutral users will try to lock in returns by hedging in advance the amount of COMP token they expect to receive using futures on platforms like Binance or Perpetual Protocols. With hindsight, it would have been the best strategy to adopt early November 2021 when the COMP token was close to $400. However, hedging at current rates will guarantee you suboptimal returns between 4 and 5% annualized. Using Notional fixed rates looks like a much more attractive alternative.</p><p>If the rewards are left unhedged, your returns can be wiped out by a sharp decline in COMP prices, like the one we have experienced in the last three months.</p><p>We have plotted below the return achieved by the strategies for various COMP price scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*Bdoo4bD-bSmKAHZJ" /></figure><p>To achieve Notional’s 9.3% annualized return, the recursive strategy needs COMP token to be worth $170 for USDC and $185 for DAI vs a current price as of time of writing of $125. But COMP prices cut both ways. If they were to fall to $50, returns would fall to 0.</p><p><strong>If you want to keep some exposure to COMP, one interesting strategy for lenders would be to lend on Notional and buy some COMP tokens upfront for the amount of interest you will receive. This way you will be guaranteed to outperform a recursive strategy whatever the future COMP price.</strong></p><p>In the example below, we have lent our USDC for a 9.3% net yield, we then buy 9.3% of COMP Tokens. If the COMP token price doubles you will have made a profit of 18.6% over one year but your profit goes to 0 if COMP drops to 0. This strategy always outperforms a recursive strategy even if COMP goes to $500 !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*tAkaV__0-X_Gzk8W" /></figure><p><strong>2. Utilization Rates</strong></p><p>Interest rates on Compound are variable and they are a function of the utilization rate of the pool. If you want to go into the nitty-gritty of the interest rate model, I highly recommend Ian Macalinao’s article: <a href="https://ian.pw/posts/2020-12-20-understanding-compound-protocols-interest-rates">https://ian.pw/posts/2020-12-20-understanding-compound-protocols-interest-rates</a></p><p>The short version is that rates increase slowly with utilization until we reach a pool optimal utilization rate (80% for USDC and DAI). They accelerate when we go past 80% to urge borrowers to supply money on the platform and lenders to reduce borrowing.</p><p>The interest rate before COMP rewards takes the following shape:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*X8qJioTwLJJum6dl" /><figcaption>Source Compound</figcaption></figure><p>If we factor the COMP rewards into our equation, as utilization rates drop (i.e less people borrowing with a constant amount of lending), COMP rewards for borrowers are fixed (440.19 COMP token every day) shared by a smaller amount of borrowers hence they increase as a % of funds. This makes the recursive lending strategy even more profitable and offsets the reduction in lending rate.</p><p>Given the current price of the COMP token, and all things staying equal, we can compute the return of the recursive lending strategy for DAI and USDC as a function of utilization rate.</p><p>The recursive strategy is very profitable when there is little borrowing on the platform (situation similar to Spring 2021) and returns are minimal around 60% utilization rate to go up slowly until 85% utilization. Above 80% utilization rate, the spread between lending and borrowing turns negative and the recursive strategy will underperform a standard unlevered lending strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*l-s6C7TFfUn7-nU-" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*jLljEVFZFLXdWxOG" /></figure><p>As we can see on these charts, for the recursive strategy to reach the level of yield offered by Notional (c10%), you either need the utilization rate to drop consistently below 30% or go consistently above 85%, both seem very unlikely in the short term.</p><p><strong>3. AUM on the platform</strong></p><p>As we mentioned before, the amount of COMP reward distributed is fixed (880.38 COMP tokens for each pool split evenly between borrowers and lenders). The TVL in the pool is unlikely to stay constant. As DeFi continues to attract capital, TVL in Compound is bound to rise and dilute the rewards investors will receive. A 10% increase in TVL has the same impact as a 10% drop in COMP price on the rewards distributed. This gives another strong case for fixing your lending interest rates.</p><p><strong>4. Ethereum prices</strong></p><p>Ethereum prices have an indirect impact on interest rates. People usually borrow stable coins and use ETH as a collateral (when they are not doing recursive lending).</p><p>An increase in ETH prices leads to more borrowing on the platform and inversely. ETH prices have a counterbalancing effect on strategy returns: when they decrease, TVL drops, leading to higher rewards for users.</p><p>According to the below graph, the total DAI amount borrowed has been strongly correlated to Ethereum prices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*UfeB_t7Glyn4nNb8" /></figure><h3><strong>How likely are Notional returns to beat the returns of a recursive strategy?</strong></h3><p>We are ending this article by computing the probability that Notional’s fixed interest rate outperforms a recursive lending strategy over the next 2 months (expiry of the short term contract). We run price simulations on COMP token price, the pool utilization rate and the TVL of the pool. We have analyzed historic data on Compound to come up with our modeling assumptions.</p><p>COMP prices are modeled using a Student’s t-distribution (5 degrees of freedom and an annualized volatility of 130% p.a.). We assume changes in the pool utilization rate follow a normal distribution with a standard deviation of 1.5% per day. We make the TVL on the lending pool dependent on the return produced by the strategy. This makes the simulation realistic by including a stabilization mechanism: high returns generate inflows on Compound and low returns outflows. As returns drop to 4%, we assume that users reduce their leverage and the expected return goes back up so there is intrinsically a floor to returns. Also historically, utilization rates have rarely gone above 90% as there are mechanisms in place in the protocol to rein back borrowing when we reach this level.</p><p>Based on current market conditions, <strong>a Notional Fixed rate is expected to outperform between 80% and 85% of the time.</strong> The actual number depends on the modeling assumptions used for COMP volatility and users’ behaviors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c576dfdd99d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rebalancing vs Passive strategies for Uniswap V3 liquidity pools.]]></title>
            <link>https://medium.com/@DeFiScientist/rebalancing-vs-passive-strategies-for-uniswap-v3-liquidity-pools-754f033bdabc?source=rss-303461d6a091------2</link>
            <guid isPermaLink="false">https://medium.com/p/754f033bdabc</guid>
            <category><![CDATA[uniswap]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[investment]]></category>
            <category><![CDATA[decentralized-exchange]]></category>
            <dc:creator><![CDATA[DeFi Scientist]]></dc:creator>
            <pubDate>Mon, 12 Jul 2021 19:27:50 GMT</pubDate>
            <atom:updated>2021-07-12T19:27:50.303Z</atom:updated>
            <content:encoded><![CDATA[<p>Is auto rebalancing the Holy Grail of yield farming? Does it really add value versus passive strategies?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wwFG-OcQGyozK071" /><figcaption>Photo by <a href="https://unsplash.com/@stillnes_in_motion?utm_source=medium&amp;utm_medium=referral">Stillness InMotion</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A flurry of investment strategies have recently emerged on Uniswap V3 to improve yield farming returns. The most notable include the auto rebalancing of liquidity positions. Many investors are attracted to the idea of using an auto rebalancing strategy on their LP in order to keep in their positions inside the liquidity range and maximize the fees they receive.</p><p>However, such strategies increase complexity, by introducing path dependence as well as additional gas fees and operational risk. Hence they have been met by incomprehension and caution by some members of the DeFi community.</p><p>In this paper, we present an evaluation of rebalancing strategies for Uniswap V3, a decentralized token exchange protocol built on Ethereum. We first go through the mechanics of rebalancing and highlight the main risk exposures added versus an equivalent passive strategy. In the second part of this paper, we run Monte Carlo simulations to model returns and understand which environment is the most conducive to rebalancing. We conclude that:</p><ul><li><strong>Auto rebalancing was attractive when Uniswap v3 launched in May </strong>when fees APR were high. Since then, volumes on most pools have plummeted and no longer compensate for the extra volatility risk.</li><li>Auto rebalancing strategies suffer a volatility drag versus passive strategies as they force investors to crystallize their impermanent losses. They increase investors gamma exposure versus passive. <strong>These strategies need a high level of fees to be profitable. Therefore one should turn on rebalancing only during periods of high volumes.</strong></li><li>As long as the price remain within our initial liquidity range, we are still collecting the same amount of fees. So there is little incentive in rebalancing our positions. We will significantly increase our gamma risk without a meaningful increase in fee collection.</li><li>Liquidity providers should choose their LP managers with extra care as the <strong>selection of the rebalancing range and frequency are significant drivers of returns. </strong>Investors should only choose pairs with an attractive fee to token volatility ratio.</li></ul><h3><strong>Preliminary Remarks</strong></h3><p>In this paper we model a rebalancing mechanism close to the Alpha Vault proposed by <a href="https://medium.com/u/5d8722199cc4">Charm Finance</a>. Please note that our model will defer versus what is actually implemented but <strong>the purpose of this article is not to judge the Alpha Vault Strategy but use a concrete example for our analysis.</strong> <strong>We will benchmark all our results versus 100% USDC and not 50/50</strong> as it is often used by many DeFi providers. our aim being to make an absolute return vs USDC or fiat.</p><h3><strong>Principles of auto rebalancing</strong></h3><p>In a passive LP strategy, the investor will usually set up a liquidity range [<em>Pmin,Pmax</em>] and do nothing until liquidity is withdrawn. The profit of a standard LP is a function of the terminal price and the amount of fees collected. The amount of fees you will receive will depend on the % of time the token price has spent in the liquidity range (and also the width of the range).</p><p>Through time, it is not uncommon to have a price drift i.e. the token price has moved out of your initial liquidity range, meaning that you have stopped earning fees. So at first sight it would make sense to rebalance your position to avoid that drift ad continue collecting more fees.</p><p><strong>The Alpha Vault Concept</strong></p><p>The concept of the Alpha Vault has been documented here by <a href="https://medium.com/u/4d15ca142607">Max</a> <a href="https://medium.com/charmfinance/introducing-alpha-vaults-an-lp-strategy-for-uniswap-v3-ebf500b67796">https://medium.com/charmfinance/introducing-alpha-vaults-an-lp-strategy-for-uniswap-v3-ebf500b67796</a></p><p>The idea is to choose a base liquidity range symmetric around the current price <em>[Current -B, Current+B]</em> and to rebalance regularly (let’s assume twice a day). As the token price moves, our initial ratio (50/50 each asset) will drift. As our token price decreases, we buy more of the token and inversely as it increases.</p><p>Now let’s assume that the price moves to X and that our portfolio is now composed of 70% T and 30% USDC. The strategy will post a new LP position at [X-B, X+B] for 30%USDC/30% T. The remaining extra 40% T is placed as a passive rebalancing order at [X,X+R] with R being the rebalancing range. At every rebalancing, we count the number of token we hold and redo the same process.</p><p><strong>Increased fees for increased Volatility exposure</strong></p><p>Let’s put that into practice with a concrete example.</p><p>Let’s assume we start T/USDC=100, we put our liquidity inside the range [90..110] and the price at the rebalancing date is 105. Our portfolio is now composed of 163.3 USDC and 0.4821 T. Expressed in USDC, our portfolio is now 76.3% USDC and 23.7% T. So we have an extra 52.6% of USDC which will translate into a buy order of Token T at a range [104,105]( range is just an illustration). The rest of the position will be placed in a 23.7%/23.7% range[95,115].</p><p>Below is the comparison between active and passive strategies depending on what is the next price of Token T.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*c8tn7zaQ2CIagqc9u9Dq3A.png" /></figure><p>We can see that the impermanent loss of the Rebalance Strategy will underperform a passive strategy most of the time except in the case where Token T continues to appreciate (in our case finishes above 105). <strong>Versus a passive Strategy, the rebalancing strategy is short realized volatility and is expected to produce a higher impermanent loss. However, this strategy will have more concentrated liquidity giving us the opportunity to earn more fees.</strong></p><h3>Simulating Returns</h3><p>As we can see the returns of a rebalancing strategy depend on the level of realized return volatility. The strategy is expected to outperform in a trending market but underperform in a choppy market.</p><p>In our previous article <a href="https://medium.com/@DeFiScientist/uniswap-v3-a-quant-framework-to-model-yield-farming-returns-941a1600425e?source=user_profile---------0----------------------------">https://medium.com/@DeFiScientist/uniswap-v3-a-quant-framework-to-model-yield-farming-returns-941a1600425e</a>, we concluded that the level of fees had to be high enough to compensate for the volatility risk taken by liquidity providers. We found out that on most pools the fees were too low for yield farming to be a viable strategy versus selling puts.</p><p><strong>In the case of an auto rebalancing strategy, it seems that the level of fees relative to volatility is even more important.</strong></p><p><strong>Assumptions</strong></p><p>We are going to explore the sensitivity of the relative returns versus passive with Monte Carlo simulations. These are more robust than the historical backtesting most people do <strong>provided you have the correct initial assumptions</strong>. Here are our base assumptions:</p><ul><li>Log returns follow a t student distribution wish degree of freedom 5. This looks to fit past returns for Bitcoin and Ethereum. A t student distribution is more realistic than a normal distribution as it allows for fat tails. Remember the BTC flash crash of May 2021 when BTC collapsed 25% in 1 hour this would have never happened in a normal distribution.</li><li>Our simulations do not assume any prior knowledge of future returns on the pair. If we knew this, we would not use LP!</li><li>We simulate returns every 6 hours this enables us to get a better modelling of the amount of fees received during the period.</li><li>Rebalancing every 12 hours and simulate returns over 5 days (20 time steps)</li><li>For simplicity, we assume flat liquidity all over the price range. We know that this is not the case but we do not want to incorporate additional complexity at this stage.</li><li>Pair used : WETH/USDC (fees 0.3%)</li><li>Implied volatility assumed 110% in line with option markets.</li><li>Pool Fees: 400 000$ a day. <strong>Many of the simulations you see from providers are based on past data where fees and volumes were much higher. For example volumes were 7x higher in May than currently with a TVL only 50% higher on WETH/USDC. </strong>Their results will show very good results but we believe those results will not be replicated in the future due to increased competition.</li><li>Base range +-9.6% for both strategies. Rebalancing range:+-4.8%</li></ul><p><strong>Sensitivity to Base range</strong></p><p>In this simulation, we look at various base ranges but fix the rebalancing range at 4.8%. Both passive and rebalancing strategies have the same base range for like for like comparisons. The auto rebalancing strategy will underperform on average with the underperformance being particularly acute for small ranges. The extra fees we collect are not enough to compensate for our short volatility position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*zSlPsAsYhiys-IZ-25lVGQ.png" /><figcaption>Performance versus a passive strategy</figcaption></figure><p><strong>In auto rebalancing strategies, the range should not be too narrow as every time we rebalance we crystallize our losses and risk getting consistently whipsawed.</strong></p><p><strong>Sensitivity to Rebalancing range</strong></p><p>We fixed the base range at 9.6% and used various rebalancing ranges. From our simulations, there seems to be an inverse linear relationship between performance and the size of the range.=&gt; the smallest the range the better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*ZnLxwSoH_fNcm8jJpBe0zA.png" /></figure><p><strong>Sensitivity to Rebalancing Frequency</strong></p><p>In those simulations we have kept the rebalancing and base range constant and we use various ranges of rebalancing frequency (expressed as multiples of 6 hours). We also use two types of volatility regimes (high vol: 110% and low vol : 50%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*v3ufSnQ3hVeSfgiuiqVZkw.png" /></figure><p><strong>If we rebalance too frequently we are going to get whipsawed too often and our performance will materially suffer. The rebalancing strategy can add value provided 1) the level of volatility is low enough relative to the fees we collect 2) the rebalancing frequency is appropriate.</strong></p><h3><strong>Conclusion</strong></h3><p>Fixed rebalancing parameters do not seem ideal. As rebalancing is a costly process, it should only be done when necessary. We also believe that the ideal solution lies in using dynamic parameters. In the upcoming weeks, we plan to carry out further research in that direction. I hope that you enjoyed our second analysis of Uniswap V3. We have more innovative quant research in the pipeline so do not forget to follow us on Medium and Twitter <a href="https://twitter.com/DefiScientist">https://twitter.com/DefiScientist</a></p><p><strong>Disclaimer: The content of this post is provided for informational purposes only. Nothing herein constitutes investment, legal, or tax advice or recommendations. Nothing on this site should not be relied upon as a basis for making an investment decision. It should not be assumed that any investment in the asset class described herein will be profitable and there can be no assurance that future events and market factors would lead to results similar to any historical results described.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=754f033bdabc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uniswap V3: A Quant Framework to model yield farming returns.]]></title>
            <link>https://medium.com/@DeFiScientist/uniswap-v3-a-quant-framework-to-model-yield-farming-returns-941a1600425e?source=rss-303461d6a091------2</link>
            <guid isPermaLink="false">https://medium.com/p/941a1600425e</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[the-graph]]></category>
            <category><![CDATA[decentralized-exchange]]></category>
            <category><![CDATA[cryptocurrency-investment]]></category>
            <category><![CDATA[uniswap]]></category>
            <dc:creator><![CDATA[DeFi Scientist]]></dc:creator>
            <pubDate>Sun, 27 Jun 2021 16:29:15 GMT</pubDate>
            <atom:updated>2021-06-27T16:29:15.617Z</atom:updated>
            <content:encoded><![CDATA[<h4>Are you well compensated for the risks you are taking?</h4><p>Uniswap v3 launched officially in May promising lower transaction fees and better capital efficiency for liquidity pool (LP) providers. The DeFi protocol quickly witnessed tremendous success attracting close to $2bn capital within its first month.</p><p>However, returns for Liquidity Providers have been mixed since the launch. Based on current platform metrics, we demonstrate that there is too much liquidity on the platform chasing too few fees. As a result, for most pairs, the fees generated by the LP, far from compensate the expected impermanent loss (IPL) arising from the volatility in token prices. Given current market conditions, investors can expected a higher return from selling puts (when available).</p><p>To demonstrate this, we first expose the main drivers of returns of yield farming on Uniswap V3 and propose a quant framework to analyse the attractiveness of a given LP position. As an illustration, we apply this framework to the USDC/WETH pool.</p><p>Unlike most currently available methods, our framework is unique as it takes into account the liquidity distribution of the LP and simulates associated token price movements. This enables a more precise estimation of the fees one can expect to collect and subsequently of the expected strategy profit.</p><p><strong>Yield Farming: back to basics</strong></p><p>Before we dive into the quant stuff, let’s remind ourselves of the features of the Uniswap V3 protocol and the drivers of yield farming returns.</p><p>It is worth noting that any LP strategy is a short volatility strategy: you contribute two tokens into the liquidity pool and as the price moves, you sell progressively the best performing asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*o3-syvlfbfk8gnEPpxISFw.png" /></figure><p>The main innovation of Uniswap V3 lies in:</p><ul><li><strong>the ability to concentrate liquidity within a specific price range </strong>[pmin, pmax]. This provides leverage to the LP. But as soon as the prices settles outside of the range, you will stop earning fees and will have full exposure to the underperforming asset.</li><li><strong>the fees you will collect</strong> depend on how many other LPs are active in a given price range.<strong> </strong>Those fees are harder to model than for Uniswap V2 as you are in competition with other liquidity providers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*e0NUYYUn4VuxYPgxlvWAgg.png" /><figcaption>Source Uniswap V3 whitepaper</figcaption></figure><p>Let’s model the expected impermanent loss for a pool where we trade a crypto token (let’s call it T) versus a stable coin (i.e. USDC). We start with a portfolio value of 1 and a market price of T/USDC =1) What does our Portfolio value looks like (excluding fees) for various values of USDC/T?</p><p>We also compare this for two different liquidity ranges [0.95,1.05] and [0.9,1.1], so readers can get a better understanding for the impact of the liquidity range on the outcome.</p><p>As one can see, the PL graph is very similar to the graph of a short put strategy. The main difference being in the convexity within the chosen liquidity range. A narrower liquidity range will help you collect more fees — as long as the token price remains in the range- but you will have less upside exposure to the crypto token and more downside exposure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*oq-hgLitbUyVESaYB5eEIQ.png" /></figure><p>Your main risk is in your token depreciating and in a crypto bull market you make money from your short volatility position and from the pool fees. However, the payoff in USD without fees is asymmetric. a small gain (c 50% of the time) when the token appreciates vs USD but a potential large loss on the downside. <strong>This leads to an average statistical loss</strong>. The LP strategy is only viable if the fees collected are bigger than on your expected IPL.</p><p>Setting up correctly your Liquidity Range is a critical part of any LP strategy. The fees that you will collect are also path dependant. To model our returns precisely, we are going to simulate token prices with Monte Carlo simulations.</p><p><strong>.A Quant Framework for Modelling of LP returns</strong></p><p>Given a certain token LP position and its characteristics (range, liquidity distribution of the pool and fee forecast), one can calculate an implied volatility metric assumed by the LP position.</p><p>The implied volatility metric is backed out using Monte Carlo simulations of the token pair price. The token volatility implied by the pool being the asset volatility that generates a 0 expected gain in the LP position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6JhHYbf9P_9rE1ttYZXLRw.png" /></figure><p>Worth noting that we could reverse the process i.e. set our implied asset volatility assumptions for the pair and back out the implied fees.</p><p>As the liquidity distribution in a pool can change over time, it makes sense to run Monte Carlo simulations over a short time period. We will select a 24 hour window for the purpose of this modelling exercise.</p><p><strong>Application to the USDC/WETH Pool</strong></p><p>USDC/WETH is one of the largest pool in Uniswap V3 with more $200m in TVL. We start by extracting the liquidity distribution using <a href="https://medium.com/u/c2f061b81210">The Graph</a> . We notice that the bulk of the liquidity is concentrated within the 1800–2400 price range for WETH. The liquidity starts degrading slowly as the price falls from current levels. We should expect to collect more fees as the price falls further-as we will account for a higher part of the pool. As WETH appreciates, the fees we collect will diminish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*vFJIAeA5jk42vcJ8zETe_A.png" /><figcaption>Liquidity Distribution of the USDC/WETH as of June 26th (Source Uniswap)</figcaption></figure><p>We also need to set up a daily fee assumption for the pool. We can see below that daily volumes have been recently well below $200m. Let’s be optimistic and assume a $200m daily volume which should translate into 600k fees ( 0.3% transaction fee) for the entire liquidity pool. Given a TVL of $235m, this would represent an APY of 93% p.a.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*dC4-3081LVfoiYuAIVrutg.png" /><figcaption>Historic Volumes of the USDC/WETH Liquidity Pool (Source Uniswap)</figcaption></figure><p>Using the framework described previously and our fee assumptions, we will calculate the implied volatility for 3 different liquidity ranges:</p><ul><li><strong>± 1.2 % range from the current price (1760 at the time of writing)</strong></li><li><strong>± 4.8 % range from the current price</strong></li><li><strong>± 9.6 % range from the current price</strong></li></ul><p>Our framework is extremely flexible and could accommodate any liquidity range. These three ranges have been chosen to illustrate that the implied volatility does not change materially with the liquidity range.</p><p>The implied volatility for <strong>±</strong> <strong>1.2 % range is 99% implied volatility.</strong></p><p>The implied volatility for <strong>±</strong> <strong>4.8 % range is 100.5% implied volatility.</strong></p><p>The implied volatility for <strong>±</strong> <strong>9.6 % range is 107% implied volatility.</strong></p><p>Even using our optimistic assumptions on fees, the implied volatility of those three pool positions is below the 122% level on ETH put options (source <a href="https://medium.com/u/ff65202e407e">Deribit Exchange</a>). In practice, the fees are expected to be much lower ( they were c 400–450k daily at the time of writing!) leading to a much lower implied volatility. One also could argue that implied volatility curves have skews. Therefore a wider liquidity range should justify a higher implied volatility, making LP investments even less attractive. For information, the 1650 daily Put <a href="https://medium.com/u/ff65202e407e">Deribit Exchange</a> was pricing a 152% implied volatility.</p><p>Based on a 120% implied volatility and 600k daily fees, we can expect the following daily losses on our three pools:</p><ul><li><strong>± 1.2 % range : -1.1% </strong>If the fees are too low, a narrow liquidity range will hurt you like leveraging a bad trade.</li><li><strong>± 4.8 % range : -0.83%</strong></li><li><strong>± 9.6 % range : -0.5%</strong></li></ul><p>Now, let’s turn the problem around, let’s assume an implied volatility of 120% and let’s figure out the daily fees required to breakeven.<strong> The ± 9.6 % range pool needs a 800k daily volume (124% APY) to have an expected positive return which is 2x current volumes. Or alternatively, we would need the liquidity being provided to be halved.</strong></p><p>We have seen that the USDC/WETH has too much capital and the volumes are not enough to compensate for the implied volatility of ETH. But is it the same for all the pairs available on Uniswap ?</p><p><strong>Screening for attractive LPs</strong></p><p>The best way to screen quickly for attractive pools is to calculate<strong> the ratio between expected fees and realized volatility of the pair token.</strong> That is where <a href="https://medium.com/u/c2f061b81210">The Graph</a> becomes handy again to pull out all the pools data. A good rule of thumb is that fees need to have an APY at least 0.9x the implied volatility of the pair we are providing liquidity for. This could differ if for example, we have a good portion of the TVL which does not provide liquidity at current market prices. In our example of the USDC/WETH, the bulk of the liquidity was concentrated above current market prices so the pool APY was underestimating the fees we could earn.</p><p>The chart below breaks down Uniswap TVL by the APY/realized volatility ratio for the various pools. One can see that c 2/3 of he TVL is locked in pools where the expected APY is less than the implied pair volatility ! Only 1/3 of money locked has an expected positive return.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*Pm6FoEc_mI1TZDvWqFk7VA.png" /><figcaption>Uniswap V3 TVL breakdown by APY/Volatility ratio</figcaption></figure><p>The top 20 best pools based on the fees/vol ratio are shown below. As you can see those pools are quite small in size with at max a few millions dollars of assets. Their returns will be impacted by higher gas fees and the risk of new entrants in the Pool. Also, many of these involve small , less reputable coins like FEI,FRAX …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*ErNo0xJOChRTgu9-v7-2xg.png" /><figcaption>Top 20 most attractive pools for yield framing based on the APY/vol ratio.</figcaption></figure><p>You will also notice a USDC/WETH pool (highlighted in yellow) in the list. (<a href="https://info.uniswap.org/#/pools/0x7bea39867e4169dbe237d55c8242a8f2fcdcc387">https://info.uniswap.org/#/pools/0x7bea39867e4169dbe237d55c8242a8f2fcdcc387</a>) That is not the pool we analysed previously but the one with the 1% transaction fee (!) . Its TVL is much smaller ($2.7m). This proves that the standard Uniswap fee is not always the most optimal for yield farming.</p><p><strong>Conclusion</strong></p><p>Uniswap is a victim of its success. As <a href="https://medium.com/u/afde3432bf28">Luke Posey</a> and <a href="https://medium.com/u/9a2f18767bca">glassnode</a> pointed out in their recent newsletter (<a href="https://insights.glassnode.com/activity-on-defi-stalls/">https://insights.glassnode.com/activity-on-defi-stalls/</a>), the TVL locked on DeFI platform has outperformed the performance of Ethereum and other crypto tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TbDlCpLUZGJhC8xTBrKk3g.png" /><figcaption>Source Glassnode</figcaption></figure><p>This creates more competition for fees from liquidity providers. In addition, the proliferation of exchanges and the new Uniswap fee tiers have had a negative impact on fees and in return the profitability of yield farming strategies.</p><p>I hope that you enjoyed our first analysis of Uniswap V3. We have more innovative quant research in the pipeline so do not forget to follow us on Medium and Twitter <a href="https://twitter.com/DefiScientist">https://twitter.com/DefiScientist</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=941a1600425e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>