<?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 Mad Scientist Shiba on Medium]]></title>
        <description><![CDATA[Stories by Mad Scientist Shiba on Medium]]></description>
        <link>https://medium.com/@mad-scientist-shiba?source=rss-9c09afa2ac29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uYYQ070Nz9G6kdwm29OVWQ.png</url>
            <title>Stories by Mad Scientist Shiba on Medium</title>
            <link>https://medium.com/@mad-scientist-shiba?source=rss-9c09afa2ac29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 23:45:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mad-scientist-shiba/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[Pendle Finance — Discovering Unexplored Trading Market]]></title>
            <link>https://mad-scientist-shiba.medium.com/pendle-finance-discovering-unexplored-trading-market-4073ade07c3b?source=rss-9c09afa2ac29------2</link>
            <guid isPermaLink="false">https://medium.com/p/4073ade07c3b</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[report]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[pendle-finance]]></category>
            <dc:creator><![CDATA[Mad Scientist Shiba]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 06:35:09 GMT</pubDate>
            <atom:updated>2023-10-16T05:15:48.035Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pendle Finance — Discovering Unexplored Trading Market</h3><h4>Focusing on Principles and Growth Potential</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvcaGDi3gqa0tmqKlLwt1A.png" /></figure><blockquote>Disclaimer: DeSpread, a partner of Pendle Finance, has collaborated in the production of this report. Both DeSpread and the author may possess cryptocurrencies referenced in this document. The views expressed herein are solely those of the author and are provided for informational purposes exclusively. They should not be considered as a suggestion to purchase or sell any tokens or engage with any protocols. It is important to note that this report does not constitute investment advice and should not be interpreted as such.</blockquote><h3>0. Introduction</h3><p>By creating an interest rate swap market utilizing on-chain Strip, Pendle Finance has pioneered a new trading market and is exploding with growth, fueled by the LSD and RWA narratives. In this article, we’ll explore how Pendle Finance works, its tokenomics, growth potential, and limitations.</p><h3>1. How Pendle Finance Works</h3><h4>1-a. On-Chain Strip</h4><p>In DeFi, assets that generate cash flows are called yield-bearing tokens (ybtokens). These tokens can be categorized into three types according to how interest is accumulated.</p><ul><li>Rebase Model: A model in which the token balance increases (e.g. $stETH (Lido), $aUSDC (Aave))</li><li>Yield Bearing Model: A model in which the exchange rate increases relative to the underlying asset (e.g. $rETH (Rocket Pool), $gDAI (Gains Network))</li><li>Interest Paying Model: A model that pays interest on a blue-chip asset ($ETH) (e.g. $GLP (GMX), $LOOKS (LooksRare))</li></ul><p>In Pendle Finance, all of these different ybtokens are wrapped in a single token standard (SY) with a fixed expiration date. The SY token (SYT) is then split into one principal token (PT) and one yield token (YT).</p><ul><li>1 SY-stETH = 1 PT-stETH + 1 YT-stETH</li><li>SYT, PT, and YT can be freely swapped before the expiration date</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AZWREs3Kydb4XDjS.png" /><figcaption><em>Source: </em><a href="https://app.pendle.finance/trade/education/learn?level=1&amp;ref=research.despread.io"><em>Pendle Learn</em></a></figcaption></figure><p>The relationship between the three tokens can be easily understood through the concept of coupon stripping in traditional finance. This concept can be applied to Pendle Finance’s SY, PT, and YT by separating the interest from the principal of a bond with a coupon so that they can be traded as separate financial instruments.</p><ul><li>SYT: Coupon bond</li><li>PT: Zero-Coupon bond</li><li>YT: The total amount of coupons received until maturity.</li></ul><p>However, unlike typical bonds that have a fixed coupon rate at the time of issuance, SY has a floating coupon rate, which is affected by the amount of CL (Consensus Layer) and EL (Execution Layer) rewards on the Ethereum mainnet. In traditional finance, there are bonds with a floating coupon rate, such as FRN (Floating-Rate Note). However, there is no such product that changes the coupon rate in near real-time like SY, making it a unique product that can only be experienced in blockchain-based finance.</p><h4>1-b. Correlation Between PT and YT</h4><p>PT is the present value of SY discounted to the current coupon rate, and YT is the present value of the sum of the coupons that SY will receive until its maturity, also discounted to the current coupon rate. Therefore, the longer the time left to maturity, the more the amount of coupons will be received, causing the price of YT to increase. Whereas the price of PT will decrease as more discounting is required to bring it to present value. The same logic applies when maturity is about to come due, causing the price of YT to fall and the price of PT to rise.</p><p>This also means that for the same underlying asset, PT and YT can have different prices if they have different maturities. In fact, as shown in the figure below, we can see that PT and YT are different for ETH bonds with different maturities: the longer the maturity, the larger the value of YT and the smaller the value of PT. However, even if the bonds have different maturities, the sum of PT and YT should match if the underlying asset is the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4c6cSdaUp_lIy9Ut.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/trade/markets?ref=research.despread.io"><em>Pendle App</em></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2QOqlijxBr2piPiu.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/trade/markets?ref=research.despread.io"><em>Pendle App</em></a></figcaption></figure><h4>1-c. PT, YT Price Discovery: Implied APY</h4><p>As the market interest rate changes, the price of the bond will change in response. Higher interest rates will cause the price of the bond to decrease (increasing the yield) and lower interest rates will cause the price to increase (decreasing the yield). In a similar way, PT and YT will change in price in response to the ybtoken’s interest rate, with PT’s price decreasing (YT’s price increasing) when interest rates increase and PT’s price increasing (YT’s price decreasing) when interest rates decrease.</p><p>In this case, Pendle Finance uses two interest rates. They are named Underlying APY (U.APY) and Implied APY (I.APY). The U.APY is the interest rate that the ybtoken actually receives from the Dapp and represents the yield that YT holders can expect until the maturity. I.APY, on the other hand, is a value derived from the price of PT and YT and is the interest rate the market expects ybtoken to earn.</p><p>In most cases, U.APY and I.APY will differ because of the speed at which U.APY is updated and the speed at which the market absorbs the information and makes a judgment call. For example, for $GLP (GMX’s LP token), platform fees collected during one week will be updated to the $GLP APR the following week, giving investors a chance to make an informed decision before the U.APY is actually adjusted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N5lEZQSC6ATNjcYd.png" /><figcaption><em>Source: GMX Discord</em></figcaption></figure><p>As these indicators influence the judgment of investors and are reflected in the I.APY, the I.APY reacts to information faster than the U.APY, resulting in a divergence between the two values. Let’s break down the cases where the two values diverge and look at the factors to consider when investing with examples.</p><h4>1-d. Implied APY ≠ Underlying APY</h4><p><strong>[ U.APY ≈ I.APY ]</strong></p><p>This is a situation where the market assesses that the interest rate that ybtoken actually generates is at a decent level, making it relatively difficult to make arbitrage compared to other cases.</p><p><strong>[ U.APY &gt; I.APY ]</strong></p><p>This situation can be divided into 1) when I.APY is undervalued in the market for some reason, and 2) when U.APY is relatively overvalued in the market.</p><p><strong>1) When I.APY is undervalued</strong></p><p>This is the view that the U.APY of an interest-generating Dapp (e.g., Gains Network) is fairly valued, but the I.APY is undervalued for some reasons, and the I.APY will rise. Believing that I.APY has room to rise means that YT is undervalued at this point, which in turn implies that PT is overvalued. This opens up a window of opportunity for PT holders to realize profits, and for investors who want to buy YT, it is an opportunity to invest in YT at a lower price than usual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ycKDDJ7R1qA7qbrv.png" /><figcaption><em>Source: </em><a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt&amp;ref=research.despread.io"><em>Pendle Finance</em></a></figcaption></figure><ul><li>Green Line: U.APY | Purple Line: I.APY</li></ul><p>For example, an investor who bought PT on March 7 in the gDAI-28MAR2024 market as shown above could sell PT-gDAI on March 10, when I.APY dropped significantly, and take profit. A quick calculation shows that on March 7, the I.APY would have been around $0.84 at a discount of 17.6%, and on March 10, it would have been around $0.93 at a discount of 6.79%. If the investor bought 10,000 PT at $8,400 on March 7, they could sell 10,000 PT at $9,300 on March 10 and receive a profit of $900 (ROI ≈ 10.7% (900/8400)).</p><p>Furthermore, an investor who bought YT-gDAI on March 10 could have sold YT-gDAI on March 15, when the I.APY increased significantly, and realized a profit. Again, simple math shows that YT-gDAI would have been around $0.07 on March 10 (PT was around $0.93 at that point) and around $0.12 on March 15. If an investor bought 100,000 YT-gDAI on March 10 for $7,000, they could sell 100,000 YT-gDAI on March 15 for $120,000 and receive a profit of $5,000 (ROI ≈ 71.4% (5000/7000)).</p><p><strong>2) When U.APY is relatively overvalued</strong></p><p>In this case, the market consensus is that the U.APY of an interest-generating Dapp is too high and that the Dapp’s growth will slow or decline.</p><p>Therefore, investors who expect the U.APY to continue to decline and fall further than the I.APY before the bond (e.g. gDAI-28MAR2024) matures may choose a strategy of buying PT to lock in a fixed rate (buying PT-gDAI).</p><p>For example, the gDAI-28MAR2024 bond had a U.APY of 24.1% and an I.APY of 10.8% on 3/18/2023, which was a pretty big gap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aw9KS7p27wY6ktHY.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt&amp;ref=research.despread.io"><em>Pendle Finance</em></a></figcaption></figure><p>However, at this point, with the U.APY down below 5% and the I.APY at 8.5%, those who purchased PT on March 18 with a 10.8% fixed rate will be able to secure a return until the bond matures at an above-the-market rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UG42eDeIkFS6qVey.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt&amp;ref=research.despread.io"><em>Pendle Finance</em></a></figcaption></figure><p><strong>[ U.APY &lt; I.APY ]</strong></p><p>It’s the opposite of [ U.APY &gt; I.APY ]. This can be categorized into two situations: 3) I.APY is overvalued in the market for some reasons, and 4) U.APY is relatively undervalued in the market.</p><p><strong>3) When I.APY is overvalued</strong></p><p>This is the view that the U.APY of an interest-generating Dapp (e.g., Gains Network) is fairly valued, but the I.APY is overvalued for some reasons, and the I.APY will decrease. Believing that I.APY has room to fall means that PT is undervalued at this point, which in turn implies that YT is overvalued. Therefore, investors who hold YT have an opportunity to take profits and investors who want to buy PT have an opportunity to invest in PT at a lower price than usual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v9CwuJTTWF6mBsf4.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt&amp;ref=research.despread.io"><em>Pendle Finance</em></a></figcaption></figure><ul><li>Green Line: U.APY | Purple Line: I.APY</li></ul><p>For example, in the stETH-29JUN2023 market as shown above, an investor who bought YT-stETH on February 9 can sell YT-stETH on February 10 when the I.APY increased, and realize a profit. While an investor who bought PT-stETH on February 10 can sell PT on February 12, when the I.APY decreased, and realize a profit.</p><p><strong>4) When U.APY is relatively undervalued</strong></p><p>This is the view that the U.APY does not reflect the growth potential of the Dapp properly, which indicates that there is a market consensus that the demand for the Dapp will increase. If one is confident that the U.APY will not rise above the I.APY, one can choose a strategy of buying PT to lock in the current interest rate until the bond matures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0sRZa1kqkN1d7TXk.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt&amp;ref=research.despread.io"><em>Pendle Finance</em></a></figcaption></figure><ul><li>Green Line: U.APY | Purple Line: I.APY</li></ul><p>While there are some cases where U.APYs are higher than 6.45%, it can be shown that, on average, earning a fixed 6.45% interest rate is more profitable than the actual U.APY.</p><h4>1-e. Pendle Finance AMM</h4><p>SYT, PT, and YT all follow the ERC20 standard and are stored in investors’ wallets, so they can be traded freely regardless of the bond’s maturity. In this case, a passive investor would buy PT and hold it to maturity, but a more aggressive investor could arbitrage by continuously buying and selling PT and YT until the bond matures. In the past, Pendle Finance v1 created and managed separate SYT / YT liquidity pools and SYT / OT (formerly PT) liquidity pools to accommodate this swap demand, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x-XNI8lu7XF1L-Vi.png" /><figcaption><em>Source : </em><a href="https://legacy-v1.pendle.finance/market?ref=research.despread.io"><em>Pendle Finance v1</em></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hz82-qpeHzxJywdq.png" /><figcaption><em>Source : </em><a href="https://legacy-v1.pendle.finance/market?ref=research.despread.io"><em>Pendle Finance v1</em></a></figcaption></figure><p>However, the problem with this structure is that both swap requesters (takers) and liquidity providers (makers) lose money. First of all, the existence of two pools for one bond (SYT/YT, SYT/PT) results in fragmented liquidity, with each pool being more exposed to slippage and price impact, in turn causing swap requesters to lose money by swapping on unfavorable terms. Furthermore, in liquidity pools where the correlation between the two assets is relatively small, such as SYT/YT, the liquidity provider will lose money as impermanent losses occur as the price of the asset changes. Finally, the rewards from LM (Liquidity Mining) and swaps should be split between the two pools, which reduces the amount of rewards taken by liquidity providers.</p><p>To address these issues, Pendle Finance v2 eliminates the SYT/YT liquidity pool and adopts a structure where swaps for YT, PT, and SYT are all handled in the SYT/PT liquidity pool. The figure below shows the stETH-26DEC2024 Market in v2, and you can see that the liquidity pool is composed of SY and PT tokens only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MRjgA3XXNQk16s_3.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/pro/pools/0xd0354d4e7bcf345fb117cabe41acadb724eccca2/zap/in?ref=research.despread.io"><em>Pendle Finance</em></a></figcaption></figure><p>This pool structure allows the protocol to handle both PT and YT swaps within a single liquidity pool, which eliminates liquidity fragmentation and offers swaps at better terms to swap requesters. In addition, since PT is a discounted bond to SYT, the correlation between these two assets is very high, reducing the risk from IL.</p><blockquote>**PT cannot vary significantly in price from SYT because its price only fluctuates within the range of the ybtoken’s interest rate, and its value will be the same as SYT when it matures. Therefore, liquidity providers are not exposed to IL at all if they do not withdraw liquidity until maturity.</blockquote><p>Furthermore, Pendle Finance v2 AMM concentrates liquidity in the areas where PT &amp; YT swaps occur most frequently. This is consistent with Concentrated Liquidity, which funnels liquidity into the most frequently swapped segments, and is an efficient use of capital.</p><p>Finally, you may be wondering how a YT swap is possible in the absence of a SYT/YT Pool. By leveraging the relationship between SY &amp; PT &amp; YT, swaps that include YT can be executed using Flash Swap. Let’s see how it works with an example.</p><p>[Assumption: 1 SY-stETH: $1,000, 1 PT-stETH: $950, 1 YT-stETH: $50]</p><p><strong>YT-stETH Mint</strong></p><ol><li>Investor A pays 1 SY-stETH to buy $1,000 worth of YT-stETH ($50). (When it comes to an asset other than SY-stETH, it can be swapped via Kyberswap as the optimal route)</li><li>The swap contract withdraws 19 SY-stETH from the liquidity pool and splits 20 SY-stETH into 20 PT-stETH and 20 YT-stETH.</li><li>Out of this, 20 YT-stETH will be paid to investors and the remaining 20 PT-stETH will be swapped for 19 SY-stETH.</li><li>The 19 SY-stETH borrowed from the liquidity pool in step 2 is returned, concluding the transaction.</li><li>As a result, the price of PT-stETH decreases as more PT-stETH is added to the pool in step 3.</li></ol><p><strong>YT-stETH Burn</strong></p><ol><li>Investor A pays 20 YT-stETH to sell $1,000 worth of YT-stETH ($50).</li><li>The swap contract withdraws 20 PT-stETH from the liquidity pool and synthesizes it into 20 SY-stETH.</li><li>Out of this, 1 SY-stETH will be paid to the investor and the remaining 19 SY -stETH will be swapped for 20 PT-stETH.</li><li>The 20 PT-stETH borrowed from the liquidity pool in step 2 is returned, concluding the transaction.</li><li>As a result, the price of PT-stETH increases as additional PT-stETH is withdrawn from the pool in step 3.</li></ol><h3>2. Pendle Finance Tokenomics Structure and Growth Potential</h3><h4>2-a. Pendle Finance Tokenomics</h4><p>Pendle Finance adopts Curve’s vote-escrow (ve) model as its framework and incorporates features from DEXs that recently modified and utilized the vote-escrow approach. $vePENDLE can be earned proportional to the length of time $PENDLE is locked up. The lockup periods range from a minimum of one week to a maximum of two years. At this time, locked $PENDLE cannot be liquidated until the lock-up period ends, but $vePENDLE holders are given the following incentives.</p><ul><li>Full payment of protocol fees (protocol fee: 3% of interest generated by YT) — vePENDLE Base APY</li><li>80% of transaction fees generated by pools voting with $vePENDLE — vePENDLE Voter APY</li><li>Up to 2.5x Farming Boost if providing liquidity to a liquidity pool</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZPikAqP8zmNGgDDo.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/vependle/lock/update?ref=research.despread.io"><em>Pendle App</em></a></figcaption></figure><p>In a traditional veModel (e.g., veCRV), it doesn’t matter which pool you vote for because investors who lock up governance tokens receive a portion of the transaction fees generated by all pools. The problem is that the incentive structure of investors who lock up governance tokens is not aligned with the interests of the gauge voting function. This misalignment can potentially result in liquidity migrating to other DEXs without sufficient CRV rewards flowing into liquidity pools that generate significant transaction fees.</p><p>However, recently launched veModel DEXs have changed their structure to only pay transaction fees generated by pools voted by investors who have locked up governance tokens. This aligns gauge voting with the incentives of investors who have locked up governance tokens, and Pendle Finance is adopting the same structure. This change ensures that incentives are distributed based on transaction fee generation, favoring liquidity pools that offer the most value to the protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7rXfblYC1VE5cIYn.png" /></figure><p>While the incentive alignment has undergone restructuring, challenges persist. One limitation is that by committing to a long-term lockup of a volatile asset, investors become vulnerable to its price fluctuations throughout the lock-up duration. Additionally, the capital needed to qualify for the Farming Boost is substantial. In particular, to qualify for the Farming Boost, you must be providing liquidity to Pendle Finance and locking up $PENDLE at the same time. To qualify for the Maximum Boost (2.5x), the dollar value of LPs and the amount of $vePENDLE held are considered together, and the lower the dollar value of LPs and the lower the Gauge, the more the Maximum Boost can be achieved with a smaller amount of $vePENDLE. However, for popular pools, the dollar value of LPs is typically higher and the Gauge is also higher, so the capital cost to achieve the Maximum Boost is greater.</p><p>Governance aggregators, such as Convex for Curve and Aura for Balancer, address these issues. They provide Liquid Staking Tokens (LSTs) for locked-up governance tokens, allowing investors to exit locked-up positions at their convenience, and provide custodial services to LPs based on the governance tokens they collect, while earning rewards with Maximum Boost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-j6McvsVpaaHqCzh.png" /></figure><p>As with Curve and Balancer, Pendle Finance also has governance aggregators, and there is an ongoing race for $PENDLE. Currently, two platforms, Penpie and Equilibria, are competing for the top spot, with the two Dapps capturing more than half of all $vePENDLE.</p><p>However, it is important to understand that the LSTs offered by governance aggregators do not always match the price of the underlying asset. Rather, it is more accurate to say that there is no reason at all for the LST to be priced in line with the underlying asset, and in most cases, the LST is valued at a discount in the market. Especially during times when the foundational asset’s price drops, the LST’s peg is more susceptible to breaking due to heightened demand from investors eager to exchange their LSTs for the underlying asset. Currently, both Equilibria and Penpie’s LST ($ePENDLE, $mPENDLE) are valued at a discount of over 20%, and while both projects are making various attempts to achieve a 1:1 peg with $PENDLE, much will depend on how the price of $PENDLE moves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2hf7qhGDMzJYOQa6.png" /><figcaption><em>Source : </em><a href="https://www.defiwars.xyz/wars/pendle?ref=research.despread.io"><em>Defiwars</em></a></figcaption></figure><h3>2-b. Growth Potential</h3><p>Since Pendle securitizes ybtokens and gives them a maturity date of more than one year, it is not possible to attract investor demand if the Dapp’s product quality is low or if the underlying asset of the ybtoken is poor. Therefore, the service is limited to Dapps based on network-based blue-chip assets such as $ETH and $BTC or stablecoins that can actually generate meaningful interest. The cases that fit the above criteria are LSD and RWA.</p><p><strong>[ LSD ]</strong></p><p>Since the beginning of this year, spot exchanges have continued to reduce the size of their ETH staking offerings, as the SEC continues to crack down on staking services offered by those exchanges as having the characteristics of securities. In fact, when it comes to comparing the share of ETH staking from the beginning of the year to now, as shown in the figure below, we can see that spot exchanges have significantly reduced their share and that LSDs (e.g. $stETH, $rETH, $sfrxETH) are benefiting from this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*869PKFjVicBVb7Ht.png" /><figcaption><em>Source : </em><a href="https://dune.com/hildobby/eth2-staking?ref=research.despread.io"><em>Dune Dashboard</em></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qPyUy4k0pYUunrwC.png" /><figcaption><em>Source : </em><a href="https://dune.com/hildobby/eth2-staking?ref=research.despread.io"><em>Dune Dashboard</em></a></figcaption></figure><p>Given that LSD currently accounts for nearly 77% of Pendle Finance’s TVL, it is reasonable to expect that if this trend continues and the LSD sector keeps growing, it will also have a positive impact on Pendle Finance’s performance.</p><p>Moreover, given the very small size of the ybtoken being utilized on Pendle compared to the TVL of LSDs (e.g. Lido, frxETH), it can be expected that Pendle Finance’s TVL still has plenty of room to grow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*59JdGkoDYz4n3r2R.png" /><figcaption><em>Source: </em><a href="https://app.sentio.xyz/share/lv18u9fyu1b558xf?from=%22-2M%22&amp;to=%22now%22&amp;ref=research.despread.io"><em>Pendle Dashboard</em></a></figcaption></figure><ul><li>SY-stETH TVL ≈ 34M , SY-wstETH TVL ≈ 14M | stETH TVL ≈ 8.5B, wstETH TVL ≈ 5.3B</li><li>SY-stETH’s TVL is 0.4% of stETH’s TVL (≈ 34/8500)</li><li>SY-wstETH’s TVL is 0.26% of wstETH’s TVL (≈ 14/5300)</li><li>Just an additional 1% of stETH and wstETH TVL could add $138M to Pendle Finance’s current TVL level of $130M.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TCyTNeC8gme4IiqJ.png" /><figcaption><em>Source : </em><a href="https://etherscan.io/address/0xcbC72d92b2dc8187414F6734718563898740C0BC?ref=research.despread.io"><em>Etherscan</em></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0EFNUDyFqvYPZF0z.png" /><figcaption><em>Source : </em><a href="https://arbiscan.io/address/0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df?ref=research.despread.io"><em>Arbiscan</em></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-QULOFHDj1CUk8v9.png" /><figcaption><em>Source : </em><a href="https://etherscan.io/address/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0?ref=research.despread.io"><em>Etherscan</em></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3R_S5y7E4VOp3Qt9.png" /><figcaption><em>Source : </em><a href="https://etherscan.io/token/0xae7ab96520de3a18e5e111b5eaab095312d7fe84?ref=research.despread.io#balances"><em>Etherscan</em></a></figcaption></figure><p><strong>[ RWA ]</strong></p><p>As the trend of high interest rates continues, there are various attempts to bring t-bill interests on-chain. For example, MakerDAO offloaded a significant portion of its USDC deposited in PSM off-chain, earned t-bill interests, and then began paying those interest revenues to sDAI, resulting in a sharp increase in DAI issuance.</p><ul><li>About 500M additional DAI issued after <a href="https://twitter.com/RuneKek/status/1688235137178509312?ref=research.despread.io">Rune’s (Maker Founder) tweet</a> guaranteeing 8% APR</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fiQOGuo0HLfRRgRS.png" /><figcaption><em>Source : </em><a href="https://makerburn.com/?ref=research.despread.io#/charts"><em>Makerburn</em></a></figcaption></figure><p>Furthermore, seeing MakerDAO successfully utilize RWA in this way, other Dapps (e.g. Frax, Aave) are preparing to utilize t-bill’s interests.</p><ul><li>Frax Forum Proposal (onboarding RWA (t-bill yield) partner) — <a href="https://gov.frax.finance/t/fip-277-onboard-finrespbc-as-frax-v3s-offchain-rwa-partner/2492/7?ref=research.despread.io">Frax Forum</a></li><li>Aave Forum Proposal — <a href="https://governance.aave.com/t/temp-check-aave-treasury-proposal-for-rwa-allocation/14381?ref=research.despread.io">Aave Forum</a></li></ul><p>In most cases,a bond market can be created on Pendle Finance, as it is more likely to be implemented in the form of a ybtoken when bringing the interest of a t-bill on-chain. In fact, Pendle Finance recently opened bond markets for sDAI and fUSDC. T-bill ybtokens for Frax and Aave may be integrated in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f35HrP-t-VJzv4AC.png" /><figcaption><em>Source : </em><a href="https://app.pendle.finance/trade/pools?ref=research.despread.io"><em>Pendle App</em></a></figcaption></figure><p>As the bear market continues, on-chain products leveraging stablecoins are earning less than benchmark interest rates. Therefore, Pendle Finance is expected to be at the center of this RWA wave, as products leveraging the interest of t-bills are more than competitive.</p><h3>3. Limitation: YT Trading Risk</h3><p>Before diving into yield trading, understanding the relationship between SY, PT, and YT is crucial. It’s also essential to grasp how PT and YT are priced. Especially for YT, which is the interest portion of ybtoken, the price is significantly lower than PT, so even a small price change can result in a large loss on the overall position.</p><ul><li>PnL -5% if the price of PT-ABC drops from $20 to $19</li><li>PnL -50% if the price of YT-ABC drops from $2 to $1</li></ul><p>For instance, suppose you have a stETH-27AUG2024 bond with a 1-year maturity and the prices of U.APY, I.APY, SY, PT, and YT at the time of market open are shown below.</p><ul><li>U.APY = 4.2%, I.APY = 4%, Date to Maturity = 365d</li><li>SY-stETH = $2,000 | PT-stETH ≈ $1,923 | YT-stETH ≈ $77</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NYjMfJ8nmjnpEmfe.png" /></figure><p>If the U.APY drops to 3% and the I.APY drops to 2.5% due to a spike in $ETH staked on the network over 5 days, the price of PT and YT will change as shown below.</p><ul><li>U.APY = 3%, I.APY = 2.5%, Date to Maturity = 360d</li><li>SY-stETH = $2,000 | PT-stETH ≈ $1,952 | YT-stETH ≈ $48</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IBvm417UehRphhQ6.png" /></figure><ul><li>PT-stETH from $1,923 ==&gt; $1,952 (PnL +1.5%)</li><li>YTstETH from $77 ==&gt; $48 (PNL -37.7%)</li></ul><p>An important point to note here is that yield trading ≠ spot trading. In spot trading, you only need to worry about the change in the price of the asset, but in yield trading, you need to consider the change in the U.APY as well as the price of the asset.</p><ul><li>Spot Trading =&gt; Focus on $stETH price trend.</li><li>Yield Trading =&gt; Have to consider both $stETH price trend and Lido APR movement.</li></ul><p>In addition, in order to understand and predict the trend of U.APY, it is necessary to analyze how the Dapps that issue ybtokens work, what is the logic of accumulating interests, whether funds are flowing into the network that the Dapps belong to, and how much growth potential they have compared to competing services.</p><p>However, even with this scrutiny, given the sensitivity of the blockchain industry to external factors (e.g., $ETH withdrawals from spot exchanges due to SEC regulation), it is more appropriate to say that U.APY is unpredictable, as it can change due to any number of unforeseen variables.</p><p>In other words, a lot of YT trading is based on luck, which makes it difficult to develop an investment strategy and make a profit. Furthermore, if the U.APY is impossible to predict in a product where even a small change in U.APY can have a big impact on a YT trader’s return, it is necessary to have a trading tool like SL (Stop Loss) or TP (Take Proﬁt). Yet, these features are currently absent.</p><p>While much of the Pendle Finance team’s resources are currently focused on chain expansion (e.g., BNB, Optimism), it should be a priority to add the necessary features for trading first in order to build a solid foundation and actually capture the essence of interest rate swaps.</p><h3>&lt;References&gt;</h3><ul><li><a href="https://app.pendle.finance/trade/markets?ref=research.despread.io">Pendle App</a></li><li><a href="https://docs.pendle.finance/?ref=research.despread.io">Pendle DOCS</a></li><li>GMX Discord</li><li>@hildobby, <a href="https://dune.com/hildobby/eth2-staking?ref=research.despread.io">Dune Dashboard</a></li><li><a href="https://app.sentio.xyz/share/lv18u9fyu1b558xf?from=%22-2M%22&amp;to=%22now%22&amp;ref=research.despread.io">Pendle Dashboard</a></li><li><a href="https://etherscan.io/address/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0?ref=research.despread.io">Etherscan</a></li><li><a href="https://makerburn.com/?ref=research.despread.io#/charts">Makerburn</a></li><li><a href="https://arbiscan.io/address/0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df?ref=research.despread.io">Arbiscan</a></li></ul><blockquote><a href="https://www.despread.io/"><strong><em>DeSpread</em></strong></a><strong><em> — </em></strong><a href="https://www.despread.io/"><em>Website</em></a><em> |</em><strong><em> </em></strong><a href="https://twitter.com/DeSpreadTeam"><em>Twitter</em></a><em> | D</em><a href="https://research.despread.io/"><em>eSpread Research</em></a><em> | </em><a href="https://hub.despread.io/"><em>Portfolio Hub</em></a></blockquote><blockquote><em>DeSpread, founded in 2019, is a consulting firm specializing in Web3 &amp; blockchain. Consisting of practice leaders with many years of practical know-hows in all fields of Defi, NFT, Metaverse &amp; Gaming, Network Validation and Web3. DeSpread provides solutions and go-to-market strategies to grow the protocol by actively participating in the ecosystem.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4073ade07c3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[펜들 파이낸스 (Pendle Finance) — 미개척 트레이딩 시장의 활로를 열다]]></title>
            <link>https://mad-scientist-shiba.medium.com/%ED%8E%9C%EB%93%A4-%ED%8C%8C%EC%9D%B4%EB%82%B8%EC%8A%A4-pendle-finance-%EB%AF%B8%EA%B0%9C%EC%B2%99-%ED%8A%B8%EB%A0%88%EC%9D%B4%EB%94%A9-%EC%8B%9C%EC%9E%A5%EC%9D%98-%ED%99%9C%EB%A1%9C%EB%A5%BC-%EC%97%B4%EB%8B%A4-c2d51a350fdf?source=rss-9c09afa2ac29------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2d51a350fdf</guid>
            <category><![CDATA[pendle-finance]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[리포트]]></category>
            <dc:creator><![CDATA[Mad Scientist Shiba]]></dc:creator>
            <pubDate>Thu, 31 Aug 2023 02:37:42 GMT</pubDate>
            <atom:updated>2023-10-12T06:00:07.130Z</atom:updated>
            <content:encoded><![CDATA[<h3>펜들 파이낸스 (Pendle Finance) — 미개척 트레이딩 시장의 활로를 열다</h3><h4>원리와 성장 가능성을 중심으로</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vo7zF_Xud1HNsOS2tBla9Q.jpeg" /></figure><p><em>Written by </em><a href="https://twitter.com/0xmadshib"><em>Mad Scientist Shiba</em></a></p><blockquote>Disclaimer: DeSpread는 펜들 파이낸스의 파트너사로 본 보고서는 양사의 협의 과정을 거쳐 제작되었습니다. DeSpread와 저자는 이 보고서에 언급된 암호화폐를 보유할 수 있습니다. 본 보고서의 내용은 작성자의 의견을 반영하고 정보 제공만을 목적으로 하며, 토큰을 구매 또는 판매하거나 프로토콜을 사용하도록 권장하는 목적으로 작성되지 않았습니다. 이 보고서에 포함된 어떠한 내용도 투자 조언이 아니며, 투자 조언으로 해석되어서도 안됩니다.</blockquote><h3>0. 들어가며</h3><p>온체인에서 이자 스트리핑을 활용해 금리스왑 시장을 만든 Pendle Finance는 새로운 트레이딩 시장을 개척했으며 LSD와 RWA 메타에 힘입어 폭발적으로 성장을 하고 있습니다. 본 글에서는 Pendle Finance의 작동 원리, 토크노믹스, 성장 가능성, 그리고 한계에 대해 알아보겠습니다.</p><h3>1. Pendle Finance 작동 원리</h3><h4>1-a. 이자 스트리핑</h4><p>DeFi에서는 현금 흐름을 창출하는 자산을 yield-bearing token(이하 “ybtoken”)이라고 부릅니다. ybtoken은 이자의 누적 방식에 따라 아래와 같이 세 가지로 구분해서 볼 수 있습니다.</p><ul><li>Rebase Model : 토큰 잔고가 증가하는 모델 (e.g. $stETH(Lido), $aUSDC(Aave))</li><li>Yield Bearing Model : 기초 자산 대비 교환비가 상승하는 모델 (e.g. $rETH(Rocket Pool), $gDAI(Gains Network))</li><li>Interest Paying Model : 블루칩 자산(e.g. $ETH)을 이자로 지불하는 모델(e.g. $GLP(GMX), $LOOKS(LooksRare))</li></ul><p>Pendle Finance에서는 이와 같이 다양한 ybtoken들을 모두 하나의 토큰 표준(SY)으로 랩핑하고 만기일을 정해둔 뒤 1개의 SY 토큰(SYT, SY Token)을 1개의 원금 토큰(PT, Principal Token)과 1개의 이자 토큰(YT, Yield Token)으로 분리합니다.</p><ul><li>1 SY-stETH = 1 PT-stETH + 1 YT-stETH</li><li>SYT, PT, YT는 만기일이 도래하기 전에도 자유롭게 스왑이 가능</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cdQc3AFSB77GHcEE" /><figcaption>출처 : <a href="https://app.pendle.finance/trade/education/learn?level=1">Pendle Learn</a></figcaption></figure><p>이때, 세 토큰 간의 관계는 전통 금융권의 이표채 스트리핑 개념을 통해 쉽게 이해할 수 있습니다. 이표채 스트리핑이란 쿠폰이 붙어 있는 채권의 이자와 원금을 분리해서 개별 금융상품으로 거래가 가능하도록 하는 제도를 의미하며 이 개념을 Pendle Finance의 SY, PT, 그리고 YT에 그대로 적용할 수 있습니다.</p><ul><li>SY 토큰 : 이표채(coupon bond)</li><li>PT : 할인채(zero-coupon bond)</li><li>YT : 만기까지 수령 가능한 쿠폰 이자(coupon)의 총합</li></ul><p>다만 발행 시점에 쿠폰 이자율이 고정되는 일반적인 채권과는 다르게 SY의 경우 쿠폰 이자율이 변동하며 해당 이자율은 이더리움 메인넷의 CL(Consensus Layer) 보상량과 EL(Execution Layer) 보상량에 영향을 받습니다. 전통 금융권에서도 FRN(Floating-Rate Note)과 같이 쿠폰 이자율이 변하는 채권이 존재하나 SY와 같이 거의 실시간으로 이자율이 변하는 상품은 없으며 블록체인 기반의 금융에서만 경험할 수 있는 독특한 상품입니다.</p><h4>1-b. PT, YT의 상관관계</h4><p>PT는 현시점의 쿠폰 이자율을 기반으로 SY를 현재가치로 환산한 값이고 YT는 SY가 만기일에 도래하기까지 받을 수 있는 이자를 현시점의 쿠폰 이자율을 기반으로 환산한 값입니다. 따라서 만기까지 남은 기간이 길어질수록 수령할 수 있는 이자의 금액이 증가해 YT의 가격이 상승하는 반면, PT는 현재가치로 환산하기 위해 더 많은 할인이 들어가면서 가격이 하락하게 됩니다. 만기가 곧 도래하는 경우에도 동일한 논리가 적용되어 YT 가격이 하락하고 PT 가격이 상승합니다.</p><p>이는 동일한 기초 자산에 대해서도 만기일이 다를 경우 PT와 YT의 가격이 달라질 수 있다는 뜻이기도 합니다. 실제로 아래 그림과 같이 만기가 서로 다른 ETH 채권에서 PT, YT의 가격이 상이하다는 점을 확인할 수 있는데요, 만기가 길수록 YT의 값이 더 커지고 PT의 값은 작아집니다. 그러나 서로 만기가 다른 채권이라고 하더라도 기초 자산이 동일할 경우 PT와 YT의 합은 일치해야 합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*gxaXpV_PqxhEJWZH" /><figcaption>출처 : <a href="https://app.pendle.finance/trade/markets">Pendle App</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/0*kUYMtfAtSQP0Fc3j" /><figcaption>출처 : <a href="https://app.pendle.finance/trade/markets">Pendle App</a></figcaption></figure><h4>1-c. PT, YT Price Discovery(가격 발견 매커니즘) : Implied APY</h4><p>시장 이자율이 변하면 채권의 가격이 이에 맞추어 변하게 되는데 이자율이 높아지면 채권의 가격이 하락(수익률 상승)하고 이자율이 낮아지면 채권의 가격이 상승(수익률 하락)합니다. 비슷한 맥락에서, PT와 YT도 ybtoken의 이자율에 맞추어 가격이 변하며 이자율이 높아지면 PT의 가격이 하락(YT의 가격은 상승)하고 이자율이 낮아지면 PT의 가격이 상승(YT의 가격은 하락)합니다.</p><p>이때 Pendle Finance에서는 두 가지 이자율을 사용하며 각각 Underlying APY(이하 “U.APY”)와 Implied APY(이하 “I.APY”)로 명명하고 있습니다. U.APY는 ybtoken이 해당 Dapp에서 실제로 수령하는 이자율로 YT 홀더들이 채권이 만기될 때까지 기대할 수 있는 수익률을 나타냅니다. 반면에 I.APY는 PT와 YT의 가격에 의해 도출되는 값으로 시장이 예상하는 ybtoken의 이자율입니다.</p><p>대부분의 경우 U.APY와 I.APY는 상이할 수밖에 없는데 U.APY의 업데이트 속도와 시장이 정보를 습득한 후 판단을 내리는 속도에 차이가 존재하기 때문입니다. 예컨대 $GLP(GMX의 LP 토큰)의 경우 1주일 동안 걷힌 플랫폼 수수료가 다음 주에 $GLP APR에 업데이트가 되기 때문에 U.APY가 업데이트 되기 전에 투자자들이 이미 어느정도 예상을 해 볼 여지가 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/0*s8BQX6EHQmtk-hgq" /><figcaption>출처 : GMX Discord</figcaption></figure><p>이런 지표들이 시장 투자자들의 판단에 영향을 미치면서 I.APY에 고스란히 반영되기 때문에 결과적으로 I.APY는 U.APY보다 빠르게 정보에 반응해 두 값 간의 괴리가 발생합니다. 줄글로만 보면 이해가 쉽지 않기 때문에 두 값의 괴리가 발생하는 케이스들을 구분한 후 예시와 함께 투자시 고려해야 하는 요소들을 살펴 보겠습니다.</p><h4>1-d. Implied APY ≠ Underlying APY</h4><p><strong>[ U.APY ≈ I.APY ]<br></strong>ybtoken이 실제로 창출하는 이자율이 적절한 수준이라고 시장에서 평가하는 상황으로, 다른 케이스들에 비해 상대적으로 차익거래를 통한 수익을 내기 어렵습니다.</p><p><strong>[ U.APY &gt; I.APY ]<br></strong>1)모종의 이유로 시장에서 I.APY가 저평가되는 상황과 2)시장에서 U.APY가 상대적으로 고평가되는 상황으로 구분해서 볼 수 있습니다.</p><p><strong>1) 시장에서 I.APY가 저평가되는 상황<br></strong>이자를 창출하는 Dapp(e.g. Gains Network)의 U.APY가 적정값으로 평가가 되고 있으나 I.APY가 모종의 이유로 저평가되고 있는 상황으로 I.APY가 오를 것이라고 보는 관점입니다. I.APY가 상승할 여지가 있다고 판단을 한다는 것은 현재 시점에서 YT가 저평가되고 있다는 뜻이며 이는 다시 말해 PT가 고평가되고 있다는 뜻이기도 합니다. 따라서 PT를 보유한 투자자로서는 차익 실현의 창이 열린 상황이고, YT 매수를 희망하는 투자자의 입장에서는 평소보다 저렴한 가격에 YT를 매수할 수 있는 기회입니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*YvsG5vLhGbq7HfJJ" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><ul><li>초록색 선 : U.APY | 보라색 선 : I.APY</li></ul><p>예컨대 위와 같이 gDAI-28MAR2024 시장에서 3월 7일에 PT를 매수한 투자자는 I.APY가 크게 떨어진 시점인 3월 10일에 PT-gDAI를 매도하고 차익실현을 할 수 있습니다. 간단하게 계산을 해 보면 3월 7일에 진입한 시점에는 17.6%로 할인이 되니 대략 $0.84 정도 됐을 것이고 3월 10일에는 6.79%로 할인이 되니 대략 $0.93 정도 됐을 것입니다. 만약 투자자가 3월 7일에 $8,400으로 10,000 PT를 구매했다면 3월 10일에는 10,000 PT를 $9,300에 매도하고 차익 $900을 수령할 수 있습니다. (ROI ≈ 10.7%(900/8400))</p><p>더 나아가 3월 10일에 YT-gDAI를 매수한 투자자는 I.APY가 크게 오른 시점인 3월 15일에 YT-gDAI를 매도하고 차익을 실현할 수 있습니다. 이 역시도 간단하게 계산을 해보면 3월 10일에 YT-gDAI가 대략 $0.07 정도(PT가 해당 시점에 대략 $0.93) 됐을 것이고 3월 15일에는 대략 $0.12 정도가 됐을 것입니다. 만약 투자자가 3월 10일에 $7,000으로 YT-gDAI 100,000개를 구매했다면 3월 15일에 100,000 YT-gDAI를 $120,000에 매도하고 차익 $5,000을 수령할 수 있게 됩니다. (ROI ≈ 71.4%(5000/7000))</p><p><strong>2) U.APY가 상대적으로 고평가되는 상황<br></strong>이자를 창출하는 Dapp(e.g. Gains Network)의 U.APY가 너무 높다고 평가를 하는 관점으로 Dapp의 성장세가 둔화되거나 하락할 것이라는 시장의 컨센서스가 있는 경우입니다.</p><p>따라서 채권(e.g. gDAI-28MAR2024)의 만기가 도래하기 전에 U.APY가 계속 하락해서 I.APY보다 더 떨어질 것이라고 예상을 하는 투자자들은 PT를 매수해서 고정 이율을 확정하는 전략(PT-gDAI 매수)을 선택할 수 있습니다.</p><p>예컨대 gDAI-28MAR2024 채권의 23년 3월 18일 U.APY는 24.1%, I.APY는 10.8%로 괴리가 꽤나 큰 상황이었습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*UhJulOtpTnN0J1Vb" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><p>그러나 현재 시점에서는 U.APY가 5% 미만, I.APY가 8.5% 수준으로 하락하면서 3월 18일에 10.8% 고정 이자로 PT를 구매한 사람들은 시장 이자율보다 높은 수준으로 채권 만기까지 수익을 확보할 수 있게 됐습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/0*V2ze44Ji-UXHqiyN" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><p><strong>[ U.APY &lt; I.APY ]<br></strong>[ U.APY &gt; I.APY ]와 반대되는 경우로 3)모종의 이유로 시장에서 I.APY가 고평가되는 상황과 4)시장에서 U.APY가 상대적으로 저평가되는 상황으로 구분해서 살펴볼 수 있습니다.</p><p><strong>3) 시장에서 I.APY가 고평가되는 상황<br></strong>이자를 창출하는 Dapp(e.g. Gains Network)의 U.APY가 적정값으로 평가가 되고 있으나 I.APY가 모종의 이유로 높게 평가가 되고 있는 상황으로 I.APY가 하락할 것이라고 보는 관점입니다. I.APY가 하락할 여지가 있다고 판단을 할 경우 현재 시점에서는 PT가 저평가되고 있는 것이고 YT가 고평가되고 있다는 뜻입니다. 따라서 YT를 보유한 투자자는 차익 실현을 할 수 있는 기회를 얻게 되고 PT 매수를 희망하는 투자자는 평소보다 저렴한 가격에 PT를 매수할 수 있는 기회입니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*JtDV3NNVRhReqGVX" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><ul><li>초록색 선 : U.APY | 보라색 선 : I.APY</li></ul><p>예컨대 위와 같이 stETH-29JUN2023 시장에서 2월 9일에 YT-stETH를 매수한 투자자는 I.APY가 높아진 시점인 2월 10일에 YT-stETH를 매도하고 차익을 실현할 수 있고 2월 10일에 PT-stETH를 매수한 투자자는 I.APY가 하락한 시점인 2월 12일에 PT를 매도하고 차익을 실현할 수 있습니다.</p><p><strong>4) U.APY가 상대적으로 저평가되는 상황<br></strong>U.APY Dapp의 성장 가능성을 제대로 반영하고 있지 않다고 평가를 하는 관점으로 Dapp의 수요가 증가할 것이라는 시장의 컨센서스가 있는 상황으로 볼 수 있습니다. 만약 U.APY가 I.APY 이상으로 높아지지 않을 것이라는 확신이 서면 현재 이자율을 채권 만기가 도래할 때까지 고정 이율로 확정짓기 위해 PT를 매수하는 전략을 선택할 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*JFPjcL-Sot-Wi1my" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><ul><li>초록색 선 : U.APY | 보라색 선 : I.APY</li></ul><p>U.APY가 6.45%를 넘는 경우가 종종 있었지만 전체적으로 봤을 때 6.45%의 이자를 고정으로 받아가는 것이 실제 U.APY보다 평균적으로 더 높은 수익률을 보여 준다는 것을 알 수 있다.</p><h4>1-e. Pendle Finance AMM</h4><p>SYT, PT, 그리고 YT 모두 ERC20 표준을 따르고 투자자의 지갑에 보관이 되기 때문에 채권의 만기와 무관하게 자유롭게 트레이딩이 가능합니다. 이때, 수동적인 투자자들은 PT를 구매하고 만기까지 보유하겠지만 조금 더 공격적인 투자자들은 채권의 만기가 도래하기 전까지 PT, YT를 계속해서 사고 팔면서 차익거래를 할 수 있습니다. 과거 Pendle Finance v1에서는 이와 같은 스왑 수요에 대응하기 위해 아래 그림과 같이 SYT / YT 유동성 풀과 SYT / OT(구 PT) 유동성 풀을 따로 생성해서 관리했습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*J0uefBMDno8V7Ogn" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*W0-yvgh0cm1Deh60" /></figure><p>그러나 해당 구조에서는 스왑 요청자(Taker)와 유동성 공급자(Maker) 모두 손해를 본다는 문제점이 있습니다. 우선 하나의 채권에 대해 두 개의 풀이 존재((SYT / YT, SYT / PT)함에 따라 유동성이 분산되어 존재하게 되며 각 풀은 슬리피지(Slippage)와 프라이스 임팩트(Price Impact)에 더 크게 노출되고 스왑 요청자는 불리한 조건으로 스왑을 하면서 손해를 보게 됩니다. 더 나아가 SYT/YT와 같이 두 자산 간의 상관관계가 비교적 적은 유동성 풀에서는 자산의 가격 변화에 따른 비영구적 손실(Impermanent Loss)이 발생하므로 유동성 공급자가 손실을 보게 됩니다. 마지막으로 LM(Liquidity Mining)과 스왑에서 발생하는 보상을 풀 두 개에 나눠서 분배해야 하기 때문에 유동성 공급자들이 가져가는 보상의 규모 또한 줄어들게 됩니다.</p><p>Pendle Finance v2에서는 위와 같은 문제점들을 해결하기 위해 SYT / YT 유동성 풀을 없애고 YT, PT, 그리고 SYT에 대한 스왑을 모두 SYT / PT 유동성 풀에서 처리하는 구조를 채택합니다. 아래 그림은 v2의 stETH-26DEC2024 Market이며 유동성 풀이 SY 토큰과 PT 토큰으로만 구성되어 있다는 점을 알 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*RfyuwVCXEEQu0QrV" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/pools/0xd0354d4e7bcf345fb117cabe41acadb724eccca2/zap/in">Pendle Finance</a></figcaption></figure><p>이와 같은 풀 구조에서는 하나의 유동성 풀 안에서 PT와 YT 스왑을 모두 처리하니 유동성이 파편화되는 문제로부터 자유롭고 스왑 요청자에게 더 좋은 조건으로 스왑을 제공할 수 있습니다. 아울러 PT는 SYT에 대한 할인채이므로 두 자산간의 상관관계가 매우 높아 IL로부터 오는 리스크 또한 줄일 수 있습니다.</p><blockquote>**PT는 ybtoken의 이자율이 변동하는 구간 안에서만 가격이 변동하니 SYT와 가격이 크게 달라질 수 없으며 만기가 도래하면 SYT와 그 가치가 동일해집니다. 따라서 유동성 공급자들은 만기까지 유동성을 인출하지 않으면 비영구적 손실에 아예 노출되지 않습니다.</blockquote><p>더 나아가 Pendle Finance v2 AMM에서는 PT &amp; YT 스왑이 가장 빈번하게 발생하는 구간에 유동성을 집중해서 투입합니다. 이는 스왑이 빈번하게 발생하는 구간에 유동성을 몰아 넣는 Concentrated Liquidity와 그 결을 같이 하며 자본을 효율적으로 사용할 수 있는 방법입니다.</p><p>마지막으로 SYT / YT Pool이 없는 상황에서 어떻게 YT 스왑이 가능한지에 대한 의문이 들 수 있는데 SY &amp; PT &amp; YT의 관계를 이용해 YT가 포함된 스왑은 Flash Swap으로 처리하면 가능합니다. 예시와 함께 원리를 알아보겠습니다.</p><p>[ 가정 : 1 SY-stETH : $1,000, 1 PT-stETH : $950, 1 YT-stETH: $50 ]</p><p><strong>YT-stETH Mint</strong></p><ol><li>투자자 A가 $1,000에 해당하는 YT-stETH($50)를 구매하기 위해 1 SY-stETH를 지불<br>(SY-stETH가 아닌 다른 자산을 갖고 올 경우 Kyberswap을 통해 최적 경로로 스왑)</li><li>스왑 컨트랙트는 19 SY-stETH를 유동성 풀에서 인출하고 20 SY-stETH를 20 PT-stETH와 20 YT-stETH로 분리</li><li>이 중 20 YT-stETH는 투자자에게 지급하고 나머지 20 PT-stETH는 19개의 SY-stETH로 스왑</li><li>2번에서 유동성 풀에서 빌린 19 SY-stETH를 반환하고 트랜잭션이 종료</li><li>결과적으로 3번에서 PT-stETH가 풀에 추가로 유입되면서 PT-stETH의 가격이 하락</li></ol><p><strong>YT-stETH Burn</strong></p><ol><li>투자자 A가 $1,000에 해당하는 YT-stETH($50)를 판매하기 위해 20 YT-stETH를 지불</li><li>스왑 컨트랙트는 20 PT-stETH를 유동성 풀에서 인출하고 20 SY-stETH로 합성</li><li>이 중 1 SY-stETH는 투자자에게 지급하고 나머지 19 SY -stETH는 20개의 PT-stETH로 스왑</li><li>2번에서 유동성 풀에서 빌린 20 PT-stETH를 반환하고 트랜잭션이 종료</li><li>결과적으로 3번에서 PT-stETH가 풀에서 추가로 인출되면서 PT-stETH의 가격이 상승</li></ol><h3>2. Pendle Finance 토크노믹스 구조 및 성장 가능성</h3><h4>2-a. Pendle Finance 토크노믹스</h4><p>Pendle Finance는 Curve의 ve(vote-escrow)모델을 뼈대로 가져가면서 최근 vote-escrow를 변형해서 활용하는 DEX들의 특징을 일부 수용했습니다. $PENDLE을 락업하는 기간에 비례해서 $vePENDLE을 얻을 수 있으며 락업 기간은 최소 1주에서 최대 2년까지이고 기간에 비례해서 더 많은 양의 $vePENDLE을 수령할 수 있습니다. 이때, 락업된 $PENDLE은 락업기간이 종료될 때까지 유동화할 수 없는 대신 $vePENDLE 홀더들에게 아래와 같은 인센티브들을 부여하고 있습니다.</p><ul><li>프로토콜 수수료 전액 지급 (프로토콜 수수료 : YT가 창출하는 이자의 3%) — vePENDLE Base APY</li><li>$vePENDLE로 투표한 풀에서 발생하는 거래 수수료의 80% 지급 — vePENDLE Voter APY</li><li>유동성 풀에 유동성을 공급하고 있을 경우 최대 2.5배의 Farming Boost 적용</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/0*LXKqfDlXOuly53l6" /><figcaption>출처 : <a href="https://app.pendle.finance/vependle/lock/update">Pendle App</a></figcaption></figure><p>전통적인 ve모델(e.g. veCRV)에서는 거버넌스 토큰을 락업한 투자자가 모든 풀에서 발생하는 거래 수수료의 일부를 수령하기 때문에 어떤 풀에 투표하는지는 그다지 중요하지 않습니다. 즉 거버넌스 토큰을 락업한 투자자의 인센티브 구조와 게이지 투표 기능의 이해관계가 얼라인되지 않는다는 문제가 있습니다. 이런 구조에서는 거래 수수료 창출에 크게 기여하는 유동성 풀에 CRV 보상이 충분히 흘러들어가지 않으면서 유동성이 다른 DEX로 이탈할 가능성이 있습니다.</p><p>그러나 최근에 출시하는 ve모델 DEX들의 경우 거버넌스 토큰을 락업한 투자자가 투표한 풀에서 발생한 거래 수수료만을 지급하는 형태로 구조를 변경하면서 게이지 투표가 거버넌스 토큰을 락업한 투자자의 인센티브와 통할 수 있도록 개선을 했고 Pendle Finance 또한 이와 같은 구조를 채택하고 있습니다. 즉, 발생하는 거래 수수료에 비례해서 인센티브가 지급되도록 유도함으로써 프로토콜에 가장 많은 기여를 하는 유동성 풀이 가장 큰 혜택을 받아가는 이상적인 형태로 구조가 개편되었습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eA5_ROQQSKPXOLcP" /></figure><p>물론 인센티브 얼라인 측면에서는 구조 개편이 이루어졌으나 변동성이 높은 자산을 장기간 락업함으로써 투자자가 해당 기간 동안 자산의 가격 변동에 그대로 노출된다는 점과 Farming Boost를 적용받기 위해 필요한 자본이 과도하게 많다는 점은 여전히 한계점으로 남아 있습니다. 특히 Farming Boost를 적용받기 위해서는 Pendle Finance에 유동성을 공급하고 있으면서 동시에 $PENDLE을 락업하고 있어야 합니다. 이때, Maximum Boost(2.5x)를 적용받기 위해서는 LP의 dollar value와 $vePENDLE의 보유량이 함께 고려가 되며 LP의 dollar value가 낮고 Gauge의 비중이 적을수록 더 소량의 $vePENDLE로도 Maximum Boost를 얻을 수 있습니다. 그러나 통상적으로 인기가 많은 풀의 경우 LP의 dollar value가 높고 Gauge의 비중 또한 높기 때문에 Maximum Boost를 얻기 위한 자본 비용이 큰 편입니다.</p><p>이런 문제점들을 해결해주는 서비스들을 통상적으로 Governance Aggregator라고 부르며 Curve를 위한 Convex와 Balancer를 위한 Aura가 대표적인 사례입니다. 이들은 락업된 거버넌스 토큰의 유동화 토큰(Liquid Staking Token, LST)을 제공하면서 투자자들이 원하는 시점에 락업된 포지션에서 벗어날 수 있도록 하고, 이들에게 모은 거버넌스 토큰을 기반으로 LP들에게 수탁 서비스를 제공하면서 Maximum Boost로 보상을 수령할 수 있도록 지원합니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZvSMB506PFBbFNW3" /></figure><p>Pendle Finance 또한 Curve, Balancer의 경우와 마찬가지로 Governance Aggregator들이 존재하며 $PENDLE 확보를 위한 경쟁이 진행 중에 있습니다. 현재는 Penpie와 Equilibria라는 두 개의 플랫폼이 선두자리를 두고 경쟁하고 있으며 두 Dapp이 전체 $vePENDLE의 절반 이상을 확보하고 있습니다.</p><p>그러나 Governance Aggregator들이 제공하는 LST가 기초자산과 가격이 항상 일치하는 것이 아니라는 점을 반드시 이해해야 합니다. 오히려 LST가 기초자산과 가격이 일치해야 할 이유가 전혀 없다고 보는 것이 더 정확하며 대부분의 경우 LST는 시장에서 할인된 가격으로 평가 받습니다. 특히 기초자산의 가격이 하락하는 시기에는 거버넌스 토큰의 처분을 원하는 투자자들이 LST를 기초자산으로 스왑하는 수요가 많이 발생하기 때문에 LST의 페그가 더 많이 깨지게 됩니다. 현재 Equilibria와 Penpie의 LST($ePENDLE, $mPENDLE) 모두 20% 이상 할인된 가격으로 평가받고 있으며 두 프로젝트는 모두 $PENDLE과 1:1 페그를 맞추기 위해 다양한 시도를 하고 있으나 $PENDLE의 가격이 어떻게 움직이느냐에 따라 많은 영향을 받을 것으로 예상됩니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*tYuRzjUqeWkBQLiL" /><figcaption>출처 : <a href="https://www.defiwars.xyz/wars/pendle">Defiwars</a></figcaption></figure><h4>2-b. 성장 가능성</h4><p>Pendle에서는 ybtoken을 채권화하고 1년 이상의 만기일을 부여하기 때문에 Dapp의 상품성이 떨어지거나 ybtoken의 기초자산이 부실할 경우 투자자들의 수요를 유도할 수 없습니다. 따라서 $ETH, $BTC와 같은 네트워크 기반의 블루칩 자산이나 스테이블 코인을 기축으로 하는 Dapp 중에서 실제로 이자를 유의미하게 창출할 수 있는 서비스 정도로 연동 대상이 제한됩니다. 그리고 위 기준에 잘 부합하는 케이스로는 LSD와 RWA 정도가 있습니다.</p><p><strong>[ LSD ]<br></strong>올해 초부터 SEC에서 현물 거래소들이 제공하는 스테이킹 서비스가 증권의 성질을 가지고 있다고 판단하고 지속적으로 태클을 걸고 있는 상황이며 현물 거래소들은 ETH 스테이킹 서비스의 규모를 계속해서 줄이고 있습니다. 실제로 아래 그림과 같이 올해 초와 현시점의 ETH 스테이킹 점유율을 비교해 보면 현물 거래소의 지분이 크게 줄어들고 이에 대한 반대급부로 LSD(e.g. $stETH, $rETH, $sfrxETH)가 혜택을 보고 있다는 점을 알 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/0*qylsCw0NHKNRHRAB" /><figcaption>출처 : <a href="https://dune.com/hildobby/eth2-staking">Dune Dashboard</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*Siix1OFEpb8ep6Xo" /><figcaption>출처 : <a href="https://dune.com/hildobby/eth2-staking">Dune Dashboard</a></figcaption></figure><p>현재 Pendle Finance TVL의 77% 가까이를 LSD가 차지하고 있는 것을 감안하면 이와 같은 추세가 지속되어 LSD 섹터가 계속해서 성장할 경우 Pendle Finance의 성장에도 긍정적인 영향을 미칠 것으로 기대해 볼 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/0*ZkycX7HtxkFNF3Hu" /><figcaption>출처 : <a href="https://app.sentio.xyz/share/lv18u9fyu1b558xf?from=%22-2M%22&amp;to=%22now%22">Pendle Dashboard</a></figcaption></figure><p>더 나아가 LSD(e.g. Lido, frxETH)의 TVL 대비 Pendle에서 활용되고 있는 ybtoken의 규모가 매우 작다는 점을 감안하면 Pendle Finance의 TVL이 여전히 오를 여지가 충분하다고 볼 수 있습니다.</p><ul><li>SY-stETH TVL ≈ 34M , SY-wstETH TVL ≈ 14M | stETH TVL ≈ 8.5B, wstETH TVL ≈ 5.3B</li><li>SY-stETH의 TVL은 stETH TVL의 0.4% 수준 (≈ 34/8500)</li><li>SY-wstETH의 TVL은 wstETH TVL의 0.26% 수준 (≈ 14/5300)</li><li>stETH, wstETH TVL의 1%만 추가로 유입되어도 Pendle Finance의 현재 TVL 수준인 130M보다 더 많은 금액인 138M이 추가될 수 있습니다.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/0*d7vVA-JHOQCN49M3" /><figcaption>출처 : <a href="https://etherscan.io/address/0xcbC72d92b2dc8187414F6734718563898740C0BC">Etherscan</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*Alc3hpuHQ6zaI2CP" /><figcaption>출처 : <a href="https://arbiscan.io/address/0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df">Arbiscan</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*ALv23FtFBCPwMeES" /><figcaption>출처 : <a href="https://etherscan.io/address/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0">Etherscan</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/0*NCCZyleP1tvl56kv" /><figcaption>출처 : <a href="https://etherscan.io/token/0xae7ab96520de3a18e5e111b5eaab095312d7fe84#balances">Etherscan</a></figcaption></figure><p><strong>[ RWA ]<br></strong>고금리의 흐름이 지속되는 가운데 tbill의 이자를 온체인으로 끌어오려는 시도가 다양하게 이루어지고 있습니다. 예컨대 MakerDAO의 경우 PSM에 예치되어 있던 USDC를 오프체인으로 상당 부분 offload한 이후 tbill 이자를 획득한 후 sDAI에 해당 이자 수익을 지급하기 시작했으며 이로 인해 DAI 발행량이 급격하게 증가한 바 있습니다.</p><ul><li>APR 8%를 보장한다는<a href="https://twitter.com/RuneKek/status/1688235137178509312"> Rune(Maker Founder)의 트윗</a> 이후 DAI 약 500M 추가 발행</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r-pS6urRTvjzotmr" /><figcaption>출처 : <a href="https://makerburn.com/#/charts">Makerburn</a></figcaption></figure><p>더 나아가 MakerDAO가 이와 같이 RWA를 성공적으로 활용하는 것을 보고 다른 Dapp들(e.g. Frax, Aave)도 tbill의 이자를 활용하려고 준비하고 있습니다.</p><ul><li>Frax Forum Proposal(onboarding RWA(tbill yield) partner) — <a href="https://gov.frax.finance/t/fip-277-onboard-finrespbc-as-frax-v3s-offchain-rwa-partner/2492/7">Frax Forum</a></li><li>Aave Forum Proposal — <a href="https://governance.aave.com/t/temp-check-aave-treasury-proposal-for-rwa-allocation/14381">Aave Forum</a></li></ul><p>tbill의 이자를 온체인으로 끌어올 때 ybtoken의 형태로 구현을 할 확률이 높기 때문에 대부분의 경우 Pendle Finance에서 채권 시장을 만들 수 있습니다. 실제로 Pendle Finance에서는 최근에 sDAI, fUSDC를 위한 채권 시장을 이미 오픈했으며 추후 Frax, Aave의 tbill ybtoken도 얼마든지 연동이 될 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*-RHTVWF8voh4veZV" /><figcaption>출처 : <a href="https://app.pendle.finance/trade/pools">Pendle App</a></figcaption></figure><p>베어마켓이 지속되면서 스테이블 코인을 활용하는 온체인 상품들의 이자가 기준금리보다도 못한 상황이기 때문에 tbill의 이자를 활용하는 상품들이 충분한 경쟁력이 있는 상황이므로 Pendle Finance는 이번 RWA 파도에서도 중심에서 거론이 될 것으로 예상됩니다.</p><h3>3. 한계점 : YT 트레이딩 리스크</h3><p>Yield Trading을 하기 전에 반드시 SY &amp; PT &amp; YT의 관계를 파악하고 PT &amp; YT의 가격이 어떻게 책정이 되는지 완벽하게 숙지할 필요가 있습니다. 특히 ybtoken의 이자 부분에 해당하는 YT의 경우 가격이 PT에 비해 현저히 낮기 때문에 가격 변화가 적다고 해도 전체 포지션에서의 손실은 클 수 있습니다.</p><ul><li>PT-ABC의 가격이 $20에서 $19로 떨어질 경우 PnL -5%</li><li>YT-ABC의 가격이 $2에서 $1로 떨어질 경우 PnL -50%</li></ul><p>예컨대 만기가 1년인 stETH-27AUG2024 채권이 있고 시장이 열린 시점의 U.APY, I.APY, SY, PT 그리고 YT의 가격이 아래와 같다고 가정해 보겠습니다.</p><ul><li>U.APY = 4.2%, I.APY = 4%, Date to Maturity = 365d</li><li>SY-stETH = $2,000 | PT-stETH ≈ $1,923 | YT-stETH ≈ $77</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/0*2mtOH5f3GxCljY8Q" /></figure><p>5일에 걸쳐서 네트워크에 스테이킹된 $ETH가 급증하면서 U.APY가 3%까지 하락하고 I.APY도 2.5% 선까지 떨어질 경우 아래와 같이 PT, YT의 가격이 변하게 됩니다.</p><ul><li>U.APY = 3%, I.APY = 2.5%, Date to Maturity = 360d</li><li>SY-stETH = $2,000 | PT-stETH ≈ $1,952 | YT-stETH ≈ $48</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/0*VrCJ9KABddgnEm1x" /></figure><ul><li>PT-stETH from $1,923 ==&gt; $1,952 (PnL +1.5%)</li><li>YTstETH from $77 ==&gt; $48 (PNL -37.7%)</li></ul><p>여기서 중요하게 짚고 넘어갈 포인트는 Yield Trading ≠ Spot Trading이라는 점입니다. Spot Trading에서는 자산의 가격에 대한 변동폭만 신경쓰면 되지만 Yield Trading에서는 자산의 가격뿐만 아니라 U.APY의 변동도 함께 고려해야 합니다.</p><ul><li>Spot Trading =&gt; $stETH의 가격 변동 추세만 확인</li><li>Yield Trading =&gt; $stETH의 가격 변동 추세뿐만 아니라 Lido APR의 추세도 함께 확인</li></ul><p>아울러 U.APY의 변화 추세를 이해하고 예측하기 위해서는 ybtoken을 발행하는 Dapp의 어떻게 작동하는지, 이자가 쌓이는 로직이 어떻게 되어 있는지, Dapp이 속한 네트워크에 자금이 유입되고 있는지, 그리고 경쟁 서비스 대비 성장 가능성이 얼마나 높은지 등에 대한 분석이 필요합니다.</p><p>그러나 이런 면밀한 검토가 선행되어도 블록체인 산업이 외부 요인(e.g. SEC의 규제로 인한 현물 거래소 $ETH 출금)에 민감하게 반응한다는 점을 감안하면, U.APY가 얼마든지 예상하지 못한 변수에 의해 변할 수 있기 때문에 예측이 불가능하다고 보는 것이 더 적절합니다.</p><p>다시 말해, YT 트레이딩의 경우 상당 부분이 운에 의해 좌우되는 영역이기에 투자 전략을 수립하고 수익을 내는 것이 쉽지 않아 보입니다. 게다가, U.APY가 조금만 변동해서 YT 트레이더의 수익률에 큰 영향을 주는 상품에서 U.APY 예측이 불가능에 가깝다면 적어도 수익이나 손실을 확정할 수 있는 SL(스탑로스)이나 TP(테이크 프로핏)와 같은 트레이딩 툴이 필요합니다. 하지만 아직까지는 이런 기능이 없는 상황입니다.</p><p>현재 Pendle Finance 팀의 많은 리소스가 체인 확장(e.g. BNB, Optimism)에 쏠리고 있으나 내실을 다지고 실제로 금리스왑의 본질을 살리기 위해서는 트레이딩에 필요한 기능들을 먼저 추가하는 것이 급선무가 되어야 할 것입니다.</p><h3>&lt;참고 자료&gt;</h3><ul><li><a href="https://app.pendle.finance/trade/markets">Pendle App</a></li><li><a href="https://docs.pendle.finance/">Pendle DOCS</a></li><li>GMX Discord</li><li>@hildobby, <a href="https://dune.com/hildobby/eth2-staking">Dune Dashboard</a></li><li><a href="https://app.sentio.xyz/share/lv18u9fyu1b558xf?from=%22-2M%22&amp;to=%22now%22">Pendle Dashboard</a></li><li><a href="https://etherscan.io/address/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0">Etherscan</a></li><li><a href="https://makerburn.com/#/charts">Makerburn</a></li><li><a href="https://arbiscan.io/address/0x80c12D5b6Cc494632Bf11b03F09436c8B61Cc5Df">Arbiscan</a></li></ul><blockquote><a href="https://www.despread.io/"><strong><em>DeSpread</em></strong></a><strong><em> — </em></strong><a href="https://www.despread.io/"><em>Website</em></a><em> |</em><strong><em> </em></strong><a href="https://twitter.com/DeSpreadTeam"><em>Twitter</em></a><em> | </em><a href="https://t.me/despread"><em>Telegram</em></a><em> | </em><a href="https://www.facebook.com/DeSpreadCreative"><em>Facebook</em></a><em> | </em><a href="https://research.despread.io/kr/"><em>DeSpread Research</em></a></blockquote><blockquote><em>디스프레드는 건전한 블록체인 생태계 조성을 목표로 하는 2019년 창립된 웹3 및 블록체인 전문 컨설팅 기업입니다. 디스프레드는 대중에게 양질의 소통과 교육을 제공함으로써 올바른 크립토 생태계를 안착시키고자 하는 사명을 갖고 있습니다.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2d51a350fdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Research] 미개척 트레이딩 시장의 선구자 : Pendle Finance]]></title>
            <link>https://mad-scientist-shiba.medium.com/research-%EB%AF%B8%EA%B0%9C%EC%B2%99-%ED%8A%B8%EB%A0%88%EC%9D%B4%EB%94%A9-%EC%8B%9C%EC%9E%A5%EC%9D%98-%EC%84%A0%EA%B5%AC%EC%9E%90-pendle-finance-4fc876a854cc?source=rss-9c09afa2ac29------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fc876a854cc</guid>
            <dc:creator><![CDATA[Mad Scientist Shiba]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 07:01:13 GMT</pubDate>
            <atom:updated>2023-04-17T07:01:13.451Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Research] 미개척 트레이딩 시장의 선구자 : Pendle Finance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aryt00oUg5WpmdgpgFI9cA.png" /><figcaption>출처 : Pendle Discord</figcaption></figure><p>DeFi에서는 현금 흐름을 창출하는 자산을 yield-bearing token(이하 “ybtoken”)이라고 부르며 본 편에서는 ybtoken을 원금과 이자로 분리해서 트레이딩 시장을 구현한 Pendle Finance에 대해 알아 볼 예정이다.</p><blockquote><strong>ybtoken을 이자(YT), 원금 토큰(PT)으로 분리하고 만기일을 부여해 채권으로 포장</strong></blockquote><p>ybtoken은 이자가 어떻게 누적되는지에 따라 그 종류가 다양한데 $stETH(Lido), $aUSDC(Aave)와 같이 토큰 총액이 증가하는 rebase model이 있고 $rETH(Rocket Pool), $gDAI(Gains Network)와 같이 기초 자산 대비 교환비가 상승하는 yield bearing model이 있으며 $GLP(GMX), $LOOKS(LooksRare)와 같이 블루칩 자산($ETH)을 이자로 지불하는 Interest paying model 등이 있다.</p><p>Pendle에서는 이와 같이 다양한 ybtoken을 모두 하나의 토큰 표준(SY)으로 랩핑하고 만기일을 정해둔 뒤 1개의 SY를 1개의 원금 토큰(PT, Principal Token)과 1개의 이자 토큰(YT, Yield Token)으로 분리한다.</p><ul><li>1 SY-stETH = 1 PT-stETH + 1 YT-stETH</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYs1Ibmi6cUjYFdmdMl0Mg.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/learn?level=1">Pendle Learn</a></figcaption></figure><p>이때, SY &amp;PT &amp; YT의 관계는 채권의 PV를 계산하는 공식을 통해 쉽게 이해를 할 수 있다.</p><ul><li>PV = Present Value</li><li>r = market interest rate (쿠폰 이자율이 아니라 시장 이자율)</li><li>c = coupon payment</li><li>FV = Face Value</li><li>n = number of coupon payments</li></ul><p>채권의 PV = [c / (1+r) + c / (1+r)² + c / (1+r)³… + c / (1+r)^n]<strong>(A)</strong> + [FV / (1+r)^n]<strong>(B)</strong></p><p>즉 채권의 PV는 만기일까지 받을 쿠폰을 현재가치로 환산한 값<strong>(A)</strong>에 액면가를 현재가치로 환산한 값<strong>(B)</strong>을 더함으로써 구할 수 있고 이때 사용되는 할인율은 시장 이자율이다. (시장 이자율 ≠ 쿠폰 이자율)</p><p>예컨대 시장 이자율이 5%인 상황에서 아래와 같은 미국 10년물 국채가 있다고 가정해 보자.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*LufhGQYd8yC6Gf4oGMWw7g.jpeg" /><figcaption>출처 : <a href="https://corporatefinanceinstitute.com/resources/fixed-income/10-year-us-treasury-note/">CFI Resources</a></figcaption></figure><p>이 10년채의 현재가치는 아래와 같이 구할 수 있다.</p><p>PV = [200/(1+0.05/2)] + [200/(1+0.05/2)²] + … + [200/(1+0.05/2)²⁰] + [5000/(1+0.05/2)²⁰]</p><ul><li>[200/(1+0.05/2)] … + [200/(1+0.05/2)²⁰] — <strong>(A)</strong></li><li>[5000/(1+0.05/2)²⁰] — <strong>(B)</strong></li></ul><p>(쿠폰 지급이 1년에 2회이기 때문에 공식이 살짝 다르지만 hope you get the point)</p><p>다시 본론으로 돌아와서, SY &amp; PY &amp; YT를 채권과 비교해 보면 아래와 같이 정리할 수 있다.</p><ul><li>SY = PV of Coupon Bond</li><li>PT = PV of Zero-Coupon Bond<br>= FV / (1+r)^n — <strong>(B)</strong></li><li>YT = PV of Coupon<br>= c / (1+r) + c / (1+r)² + c / (1+r)³… + c / (1+r)^n — <strong>(A)</strong></li></ul><p>즉 YT는 SY가 만기일에 도래하기까지 받아야 하는 이자를 현재가치로 환산한 값(A)이고 PT는 SY의 기초자산을 현재가치로 환산한 값(B)이다. 따라서 YT를 들고 있으면 기초자산이 창출하는 이자를 수령할 수 있으며 PT를 들고 있으면 만기일이 도래했을 때 1:1로 기초자산을 수령할 수 있게 된다.</p><ul><li>PT 매수 = 제로쿠폰채 매수</li><li>YT 매수 = 쿠폰이자를 수령할 권리 매수</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*M4ox_jOz3lIwblmjNGLiMw.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/learn?level=1">Pendle Learn</a></figcaption></figure><p><strong>[ Note ]</strong><br>YT는 기초자산이 창출하는 이자를 수령할 수 있는 권리를 구매하는 것이므로 만기일이 다가올수록 가치가 하락하고 만기일에는 $0이 된다. 반대로 PT는 기초자산을 수령할 수 있는 권리를 구매하는 것이므로 만기일이 다가올수록 가치가 상승하고 만기일에는 SY와 그 가치가 동일해진다.</p><blockquote><strong>PT, YT의 가격 책정과 합의 이자율(Implied APY)</strong></blockquote><p>시장의 이자율이 변하면 채권의 가격이 이에 맞추어서 변하는데 이자율이 높아지면 채권의 가격이 하락(수익률 상승)하고 이자율이 낮아지면 채권의 가격이 상승(수익률 하락)한다. PT도 마찬가지로 ybtoken의 이자율에 맞추어서 가격이 변하며 이자율이 높아지면 PT의 가격이 하락하고 이자율이 낮아지면 PT의 가격이 상승한다.</p><p>이때 Pendle에서는 두 가지 이자율을 사용하는데 각각 Underlying APY(이하 “U.APY”)와 Implied APY(이하 “I.APY”)라고 명명하고 있다. U.APY는 ybtoken이 해당 Dapp에서 수령하는 실제 이자율로 ybtoken이 창출하는 이자율이다.</p><ul><li>$stETH U.APY ==&gt; Lido Finance에서 제공하는 이자율</li><li>$GLP U.APY ==&gt; GMX에서 제공하는 이자율</li></ul><p>반면에 I.APY는 PT의 가격에 의해 결정되는 이자율로 ybtoken이 실제로 창출하는 이자율과는 상관이 없지만 시장 참여자들이 해당 ybtoken의 이자율을 어떻게 평가하고 있는지가 반영되는 지표이다. I.APY는 PT의 수요/공급에 의해 결정되기 때문에 필자는 시장이 합의한 이자율, 즉 <strong>합의 이자율</strong>이라고 부르겠다.</p><p>참고로 I.APY는 아래와 같은 공식을 따르고 있는데 공식 도출 방법도 간단하게 소개하겠다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*DnDzmSkmO5zTysY_3n2_mA.png" /><figcaption>출처 : <a href="https://docs.pendle.finance/FAQ/General">Pendle DOCS</a></figcaption></figure><p><strong>공식 도출 방식</strong></p><ol><li>SY = PT + YT</li><li>PT = SY / (1+I.APY)^(date to expiry/365)</li><li>(1+I.APY)^(date to expiry/365) * PT = PT + YT</li><li>(1+I.APY)^(date to expiry/365) = 1 + YT/PT</li><li>1+I.APY = (1 + YT/PT)^(365/date to expiry)</li><li>I.APY = (1 + YT/PT)^(365/date to expiry) — 1</li></ol><p><strong>[ Note ]</strong><br>I.APY에 시장 참여자들이 해당 ybtoken의 이자율을 어떻게 평가하고 있는지가 반영이 되어 있다고 했는데 옵션의 적정 가치와 투자자들의 위험 선호도를 볼 때도 블랙-숄즈모형을 통해 시장의 센티먼트가 반영된 옵션의 이론적 가격(Theoretical Price)을 참고해서 옵션의 시장가(Market Price)를 평가한다.</p><ul><li>I.APY, Theoretical Price는 투자자들의 심리를 반영하는 데이터</li><li>U.APY, Market Price는 시장의 데이터를 반영하는 데이터</li></ul><blockquote><strong>U.APY ≠ I.APY</strong></blockquote><p>U.APY, I.APY는 대부분의 경우 상이할 수밖에 없는데 서로 다른 값을 가지는 것이 투자자 관점에서 어떤 의미를 가지는지 알아보자.</p><p><strong>&lt; U.APY ≈ I.APY &gt;<br></strong>시장 참여자들은 ybtoken이 실제로 창출하는 이자율이 적절한 수준이라고 평가하는 상황이며 일반적인 경우에는 SY의 만기가 다가올수록 시간에 의한 변동성 리스크가 낮아져 I.APY가 U.APY와 비슷해진다</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*PtjhcqyyBDaIgM3-4Zd9Og.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets">Pendle Finance</a></figcaption></figure><ul><li>위 그림은 stETH-30MAR23, stETH-26DEC2024에 대한 정보인데 동일한 자산(stETH)에 대한 채권에서도 만기일이 달라지니 U.APY, I.APY 간의 괴리가 발생한다는 점을 알 수 있다.</li></ul><p><strong>&lt; U.APY &gt; I.APY &gt;<br>1)모종의 이유로 시장에서 I.APY가 저평가되는 상황</strong>과 <strong>2)시장에서 I.APY를 실제로 더 낮게 평가를 하는 상황</strong>으로 구분해서 살펴보자.</p><p><strong>1) 시장에서 I.APY가 저평가되는 상황<br></strong>이자를 창출하는 Dapp(e.g. Gains Network)의 U.APY가 적정값으로 평가가 되고 있으나 I.APY가 모종의 이유로 낮게 평가가 되고 있는 상황으로 I.APY가 오를 것이라고 보는 관점이다. I.APY가 상승할 여지가 있다고 판단을 할 경우 현재 시점에서는 PT가 고평가되고 있는 것이고 YT가 저평가되고 있다는 뜻이다. 따라서 <strong>PT를 보유한 투자자로서는 차익 실현을 할 수 있는 기회</strong>이고 <strong>YT 매수를 희망하는 투자자의 입장에서는 평소보다 저렴한 가격에 YT를 매수할 수 있는 기회</strong>이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*TWL57jyuFApo808655HWkQ.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><ul><li>초록색 선 : U.APY | 보라색 선 : I.APY</li></ul><p>예컨대 위와 같이 gDAI-28MAR2024 시장에서 3월 7일에 PT를 매수한 투자자는 I.APY가 크게 떨어진 시점인 3월 10일에 PT를 매도하고 차익을 실현할 수 있다. 간단하게 계산을 해 보면 3월 7일에 진입한 시점에는 17.6%로 할인이 되니 1PT가 대략 $0.84 정도 됐을 것이고 3월 10일에는 6.79%로 할인이 되니 대략 $0.93 정도 됐을 것이다. 만약 투자자가 3월 7일에 $8,400으로 10,000 PT를 구매했다면 3월 10일에는 10,000 PT를 $9,300에 매도하고 차익 $900을 수령할 수 있게 된다. (ROI ≈ 10.7%)</p><p>더 나아가 3월 10일에 YT를 매수한 투자자는 I.APY가 크게 오른 시점인 3월 15일에 YT를 매도하고 차익을 실현할 수 있다. 이 역시도 간단하게 계산을 해보면 3월 10일에 YT가 대략 $0.07 정도(PT가 해당 시점에 대략 $0.93) 됐을 것이고 3월 15일에는 대략 $0.12 정도가 될 것이다. 만약 투자자가 3월 10일에 $7,000으로 YT 100,000개를 구매했다면 3월 15일에 100,000 YT를 $120,000에 매도하고 차익 $5,000을 수령할 수 있게 된다. (ROI ≈ 71.4%)</p><p><strong>2) 시장에서 I.APY를 실제로 더 낮게 평가를 하는 상황<br></strong>이자를 창출하는 Dapp(e.g. Gains Network)의 U.APY가 너무 높다고 평가를 하는 관점으로 Dapp의 성장세가 둔화되거나 하락할 것이라는 시장의 컨센서스가 있다고 볼 수 있다.</p><p>따라서 채권(e.g. gDAI-28MAR2024)의 만기가 도래하기 전에 U.APY가 계속 하락해서 I.APY보다 더 떨어질 것이라고 예상을 하는 투자자들은 PT를 매수해서 고정 이율을 확정하는 전략을 선택할 수 있다.</p><p>예컨대 gDAI-28MAR2024 채권의 23년 3월 18일 U.APY는 24.1%, I.APY는 10.8%로 괴리가 꽤나 큰 상황이었다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwqE20sigQZsAZ9HbsVjCQ.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><p>그러나 약 1개월이 지난 현재 시점의 U.APY는 10% 미만으로 떨어지면서 10% 수준인 I.APY보다도 하락을 했으므로 3월 18일에 10.8% 고정 이자로 PT를 구매한 사람들은 시장 이자율보다 높은 이자율로 채권 만기까지 수익을 확보할 수 있게 됐다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHbJY1XHNlOlpvL8J9IVRw.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><p><strong>&lt; U.APY &lt; I.APY &gt;<br>&lt; U.APY &gt; I.APY &gt;</strong>와 반대되는 경우로 <strong>3)모종의 이유로 시장에서 I.APY가 고평가되는 상황</strong>과 4<strong>)시장에서 I.APY를 실제로 더 높게 평가를 하는 상황</strong>으로 구분해서 살펴볼 수 있다.</p><p><strong>3) 시장에서 I.APY가 고평가 되는 상황<br></strong>이자를 창출하는 Dapp(e.g. Gains Network)의 U.APY가 적정값으로 평가가 되고 있으나 I.APY가 모종의 이유로 높게 평가가 되고 있는 상황으로 I.APY가 하락할 것이라고 보는 관점이다. I.APY가 하락할 여지가 있다고 판단을 할 경우 현재 시점에서는 PT가 저평가되고 있는 것이고 YT가 고평가되고 있다는 뜻이다. 따라서 <strong>YT를 보유한 투자자는 차익 실현을 할 수 있는 기회를 얻게 되고 PT 매수를 희망하는 투자자는 평소보다 저렴한 가격에 PT를 매수할 수 있는 기회를 갖게 된다.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4uFpAz0ZD7_pYbwyQ8oH-g.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><ul><li>초록색 선 : U.APY | 보라색 선 : I.APY</li></ul><p>예컨대 위와 같이 stETH-29JUN2023 시장에서 2월 9일에 YT를 매수한 투자자는 I.APY가 높아진 시점인 2월 10일에 YT를 매도하고 차익을 실현할 수 있다. 더 나아가 2월 10일에 PT를 매수한 투자자는 I.APY가 하락한 시점인 2월 12일에 PT를 매도하고 차익을 실현할 수 있다.</p><p><strong>4) 시장에서 I.APY를 실제로 더 높게 평가를 하는 상황<br></strong>이자를 창출하는 Dapp(e.g. Lido Finance)의 U.APY가 낮다고 평가를 하는 관점으로 Dapp의 성장 가능성이 높다는 시장의 컨센서스가 있는 상황으로 볼 수 있다. 만약 U.APY가 I.APY 이상으로 높아지지 않을 것이라는 확신이 서면 현재 이자율을 채권 만기가 도래할 때까지 고정 이율로 확정짓기 위해 PT를 매수하는 전략을 선택할 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YI4TZM7fOSZ9XXwNDNkC8A.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0xa0192f6567f8f5dc38c53323235fd08b318d2dca/swap?view=yt">Pendle Finance</a></figcaption></figure><ul><li>초록색 선 : U.APY | 보라색 선 : I.APY</li></ul><p>U.APY가 6.45%를 넘는 경우가 종종 있었지만 전체적으로 봤을 때 6.45%의 이자를 고정으로 받아가는 것이 실제 U.APY보다 평균적으로 더 높은 수익률을 보여준다는 것을 알 수 있다.</p><p><strong>[ Note : 7d Moving Average for U.APY ]<br></strong>PT &amp; YT의 가격은 U.APY에 크게 영향을 받기 때문에 만약 U.APY가 잘못 반영될 경우 투자자들이 불필요하게 손실을 볼 수 있다. 실제로 ybtoken들의 U.APY는 외부 요인에 의해 하루 사이에도 크게 달라질 수 있다.</p><p>예컨대 $GLP의 경우 GMX 서비스 출시 이후 평균 APR이 26% 수준이지만 특정일에 트레이딩 볼륨이 폭발적으로 늘어나는 등의 해프닝이 발생할 경우 APR이 평균 수준을 크게 상회(e.g. 53.8%)하는 경우도 발생한다. 만약 U.APY를 실시간으로 받아오게 되면 PT-GLP를 11월 15일에 구매한 사람은 잘못 반영된 U.APY로 인해 16일에 크게 손해를 보게 될 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjRDC7aUoYZoKA9GrI6dVg.png" /><figcaption>출처 : <a href="https://dune.com/saulius/gmx-analytics">Dune_GMX Analytics</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U02MUZVJDpGpYGE7N4KdMw.png" /><figcaption>출처 : <a href="https://dune.com/saulius/gmx-analytics">Dune_GMX Analytics</a></figcaption></figure><p>이와 같은 이유로 인해 Pendle에서는 아웃라이어 사건들이 미치는 영향을 줄이고 더 정확한 U.APY를 평가하기 위해 7d Moving Average를 사용하고 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*BDtR9lgXShhmutwM039uiA.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/pools/0xd0354d4e7bcf345fb117cabe41acadb724eccca2/zap/in">Pendle Finance</a></figcaption></figure><blockquote><strong>Yield Trading에 특화된 AMM</strong></blockquote><p>수동적인 투자자들은 PT를 구매하고 만기까지 보유하겠지만 조금 더 공격적인 투자자들은 채권의 만기가 도래하기 전까지 PT, YT를 계속해서 사고 팔 것이다. 과거 Pendle v1에서는 아래 그림과 같이 YT, OT(구 PT)를 서로 다른 유동성 풀을 통해 스왑하는 형태였는데 그로 인해 아래와 같은 문제들이 발생했다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aaL6u-SMUerNEnFqwaXojA.png" /><figcaption>출처 : <a href="https://legacy-v1.pendle.finance/market">Pendle v1</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjMwuxxkDIXzNRJEjqNhHg.png" /><figcaption>출처 : <a href="https://legacy-v1.pendle.finance/market">Pendle v1</a></figcaption></figure><ul><li>유동성 파편화 ==&gt; 스왑 비용 증가(테이커 손해), IL 발생(메이커 손해)</li><li>투자자 이윤 감소 ==&gt; $PENDLE 인센티브, 스왑 수수료 등이 여러 풀에 분산됨으로써 유동성 공급자들이 가져가는 보상이 줄어든다</li></ul><p>v2에서는 이런 이슈들을 해결하기 위해 YT Market을 없애고 YT, PT, SY에 대한 스왑을 모두PT Market에서 처리하는 구조를 채택한다. 아래 그림은 v2의 stETH-26DEC2024 Market인데 보기에서도 알 수 있듯이 유동성 풀이 SY 토큰과 PT 토큰으로만 구성이 되어 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*lHuiUrZAz1KEVf_EWuRkhw.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/pools/0xd0354d4e7bcf345fb117cabe41acadb724eccca2/zap/in">Pendle Finance</a></figcaption></figure><p>이와 같은 풀 구조에서는 하나의 유동성 풀 안에서 PT와 YT 스왑을 모두 처리하니 유동성이 파편화되는 문제로부터 자유롭고 테이커에게 더 좋은 스왑 조건을 제공할 수 있다. 아울러 SY가 채권이라고 하면 PT는 해당 채권의 제로쿠폰채이므로 두 자산간의 상관관계가 매우 높아 IL로부터 오는 리스크를 줄일 수 있다.</p><ul><li>PT는 ybtoken의 이자율이 변동하는 구간 안에서만 가격이 변동하니 SY와 가격이 크게 달라질 수 없으며 만기가 도래하면 SY와 그 가치가 동일해지므로 PT / SY 풀에 유동성을 공급한 투자자들은 만기까지 유동성을 인출하지 않으면 IL 자체에 노출되지 않게 된다.</li></ul><p>더 나아가 Pendle v2 AMM에서는 ybtoken의 이자율을 기반으로 PT &amp; YT 스왑이 가장 빈번하게 발생하는 구간에 유동성을 투입하는데 이는 스왑이 빈번하게 발생하는 구간에 유동성을 집중적으로 예치하는 Uniswap v3의 Concentrated Liquidity와 같이 자본을 효율적으로 사용할 수 있는 방법이다.</p><p><strong>[ Note : Concentrated Liquidity ]<br></strong>Pendle AMM에서는 ybtoken(e.g. $stETH)의 이자율이 예상 가능한 범위 안에서 변동한다는 것을 기반으로 유동성을 집중적으로 투입할 구간을 확정하고 해당 구간에 유동성을 집중적으로 투입하고 있다.</p><p>예컨대 라이도의 stETH APR은 Ethereum의 Consensus Layer(CL) APR과 Execution Layer(EL) APR에 영향을 받는데 14D Moving Average를 기준으로 보면 대략 변동폭이 예상 가능하다. 아래 그림은 14D Moving Average 기준으로 본 stETH의 APR이며 대략 4% ~ 9% 선 안에서 이자율이 변동되는 것을 알 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCEORzZmvRSi3p4CvSUuKQ.png" /><figcaption>출처 : <a href="https://dune.com/LidoAnalytical/lido-execution-layer-rewards">Dune_LidoAnalytical</a></figcaption></figure><p>U.APY가 4% ~ 8% 선이므로 PT 또한 해당 이자율의 수준 안에서 할인이 되어 스왑이 될 것으로 예상을 해볼 수 있고 위 아래로 버퍼(e.g. -3%, +3%)를 두고 해당 구간에 유동성을 집중적으로 공급할 수 있다.</p><p>참고로 CL APR은 밸리데이터에게 나가는 보상으로 네트워크에 스테이킹되어 있는 ETH의 개수가 늘어나면 APR이 하락한다. 반면에 EL APR은 Network Tx Fee와 MEV Bribe에서 오는 ETH 보상으로 Ethereum 네트워크 트래픽이 줄어들면 APR이 하락한다.</p><p><strong>[ Note : YT Mint &amp; Burn via Flash Swap ]</strong><br>YT Pool이 없는 상황에서 어떻게 YT 스왑이 가능한지에 대한 의문이 들 수 있는데 SY &amp; PT &amp; YT의 상관관계를 활용해 YT가 포함된 스왑은 Flash Swap으로 처리하면 가능하다. 이해를 돕기 위해 예시로 알아보자</p><ul><li>가정 : 1 SY-stETH : $1,000, 1 PT-stETH : $950, 1 YT-stETH: $50</li></ul><p><strong>YT-stETH Mint<br></strong>1. 투자자 A가 $1,000에 해당하는 YT-stETH($50)를 구매하기 위해 1 SY-stETH를 지불한다<br>(SY-stETH가 아닌 다른 자산을 갖고 올 경우 Kyberswap을 통해 최적 경로로 스왑)<br>2. 스왑 컨트랙트는 19 SY-stETH를 유동성 풀에서 인출하고 20 SY-stETH를 20 PT-stETH와 20 YT-stETH로 쪼갠다<br>3. 이 중 20 YT-stETH는 투자자에게 지급하고 나머지 20 PT-stETH는 19개의 SY-stETH로 스왑한다. <br>4. 2번에서 유동성 풀에서 빌린 19 SY-stETH를 반환하고 트랜잭션이 종료된다 <br>5. 결과적으로 3번에서 PT-stETH가 풀에 추가로 유입되면서 PT-stETH의 가격이 하락한다.</p><p><strong>YT-stETH Burn<br></strong>1. 투자자 A가 $1,000에 해당하는 YT-stETH($50)를 판매하기 위해 20 YT-stETH를 지불한다<br>2. 스왑 컨트랙트는 20 PT-stETH를 유동성 풀에서 인출하고 20 SY-stETH를 만든다<br>3. 이 중 1 SY-stETH는 투자자에게 지급하고 나머지 19 SY -stETH는 20개의 PT-stETH로 스왑한다. <br>4. 2번에서 유동성 풀에서 빌린 20 PT-stETH를 반환하고 트랜잭션이 종료된다<br>5. 결과적으로 3번에서 PT-stETH가 풀에서 추가로 인출되면서 PT-stETH의 가격이 상승한다.</p><blockquote><strong>Pendle이 제공하는 서비스의 본질은 Interest Rate Swap Market(금리 스왑 시장)</strong></blockquote><p><strong>[금리 스왑이란?]<br></strong>금리 스왑은 두 당사자(A, B)가 서로 다른 이자율 조건을 교환하는 금융상품인데 일반적으로 고정금리와 변동금리를 교환한다. 이때, 금리교환은 두 당사자가 예측하는 금리의 변동 방향성 차이에서 출발하는데 그 방향성을 맞춘 당사자는 비용을 절감하거나 수익을 볼 수 있다. 예시를 통해 더 자세하게 알아보자.</p><ul><li>스왑 매입 포지션(Long Position) : 고정금리를 지급하고 변동금리 수령하는 포지션으로 금리가 상승할 것이라고 예상</li><li>스왑 매도 포지션(Short Position) : 변동금리를 지급하고 고정금리 수령하는 포지션으로 금리가 하락할 것이라고 예상</li></ul><p><strong>채무자의 관점<br></strong>사업가 Ben과 Matthew는 모두 5년 만기로 동일한 금액의 자금을 조달했는데 Ben은 변동이자(Libor + 2%)를, Matthew는 고정이자(8%)를 지불해야 하는 상황이다.</p><p>이때 Ben은 앞으로 금리가 계속해서 상승할 것이라고 예상하고 있는 반면 Matthew는 금리가 지속적으로 하락할 것이라고 예상하고 있어 서로 금리스왑에 동의한다. 이때 Ben은 Matthew에게 7%의 고정금리를 약속하고 Matthew는 Ben에게 Libor + 1%의 변동금리를 약속한다. 금리스왑 이후에 Ben은 고정금리 8%를 지불하게 되고 Matthew는 변동금리를 Libor + 2%를 지불하게 되는데 그 이유는 아래와 같다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*QS24pLDgMnuQnk8dNN8NqA.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>Ben : 스왑 매입 포지션(Long Position)</p><ul><li>Libor + 2% : 기존에 내고 있던 이자 (1)</li><li>Libor + 1% : Matthew에게 받을 이자 (2)</li><li>7% : Matthew에게 지불해야 하는 이자 (3)</li><li>(1)과 (2)에서 Libor가 상쇄되면서 고정 금리 확정</li></ul><p>Matthew : 스왑 매도 포지션(Short Position)</p><ul><li>8% : 기존에 내고 있던 이자 (1)</li><li>Libor + 1% : Ben에게 지불해야 하는 이자 (2)</li><li>7% : Ben에게 받을 이자 (3)</li><li>(2)에서 Libor 이자 변수가 포함되면서 변동 금리 확정</li></ul><p>이해를 돕기 위해 채무자의 관점도 소개했지만 Pendle의 트레이딩 시장은 채권자의 관점에서 바라보는 것이 더 적합하다.</p><p><strong>채권자의 관점</strong><br>동네 친구 Digglet과 Loie는 Ben, Matthew가 발행한 채권을 구매했다.</p><p>이때 Digglet은 앞으로 금리가 계속 하락할 것이라고 예상하고 있는 반면 Loie는 금리가 계속 상승할 것이라고 예상하고 있어 서로 금리스왑에 동의한다. 이때 Digglet은 Loie에게 7%의 고정금리를 약속하고 Loie는 Digglet에게 Libor + 1%의 변동금리를 약속한다. 금리스왑 이후에 Digglet은 고정금리 8%를 지불하게 되고 Loie는 변동금리를 Libor + 2%를 지불하게 되는데 그 이유는 아래와 같다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*mDmNWVJ05-3UC-xqaQO92Q.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>Digglet : 스왑 매도 포지션(Short Position)</p><ul><li>Libor + 2% : 기존에 내고 있던 이자 (1)</li><li>Libor + 1% : Loie에게 받을 이자 (2)</li><li>7% : Loie에게 지불해야 하는 이자 (3)</li><li>(1)과 (2)에서 Libor가 상쇄되면서 고정 금리 확정</li></ul><p>Loie : 스왑 매수 포지션(Long Position)</p><ul><li>8% : 기존에 내고 있던 이자 (1)</li><li>Libor + 1% : Digglet에게 지불해야 하는 이자 (2)</li><li>7% : Digglet에게 받을 이자 (3)</li><li>(2)에서 Libor 이자 변수가 포함되면서 변동 금리 확정</li></ul><p>이 내용을 그대로 Pendle의 트레이딩 시장에 대입해 보자.</p><p>앞서 “<strong>PT, YT의 가격 책정과 합의 이자율(Implied APY)</strong>” 파트에서 ybtoken의 이자율에 맞춰서 PT &amp; YT의 가격이 변하며 이자율이 높아지면 PT의 가격이 하락하고 이자율이 낮아지면 PT의 가격이 상승한다는 점을 배웠고 “<strong>U.APY ≠ I.APY” </strong>파트의 예시들을 통해 PT를 구매할 경우 만기까지 고정 금리를 수령할 수 있다는 점도 배웠다.</p><ul><li>PT 가격이 하락 = YT 가격 상승</li><li>PT 가격 상승 = YT 가격 하락</li></ul><p>즉 Digglet은 YT를 구매했는데 U.APY의 하락을 예상하고 YT를 매도(변동 금리)하고 PT를 구매(고정 금리)하려는 투자자로 볼 수 있고 Loie는 PT를 매수(고정 금리)했는데 U.APY의 상승을 예상하고 PT를 매도하고 YT를 매수(변동 금리)하려는 투자자로 볼 수 있다.</p><p><strong>[ Note ]</strong><br>금리스왑에 대한 내용을 읽어본 후 “<strong>U.APY ≠ I.APY” </strong>파트를 다시 살펴보기를 권한다. Pendle이 왜 금리스왑을 위한 시장인지가 눈에 들어올 것이다.</p><p>물론 투자자에 따라서는 PT, YT를 구매하고 끝까지 들고 가는 경우도 있을 수 있다. 그러나 필자가 보기엔 Pendle 서비스의 핵심은 U.APY의 추이를 지켜보면서 금리를 계속해서 스왑하는 포인트에 있기 때문에 본질은 금리스왑을 위한 시장이라고 본다.</p><p><strong>[ Note : Yield Trading 리스크 ]<br></strong>Yield Trading을 하기 전에 반드시 SY &amp; PT &amp; YT의 관계를 파악하고 PT &amp; YT의 가격이 어떻게 책정이 되는지 이해할 필요가 있다. 특히 ybtoken의 이자 부분에 해당하는 YT의 경우 가격이 PT에 비해 현저히 낮기 때문에 가격 변화가 적다고 해도 전체 포지션에선 손실이 클 수 있기 때문에 주의를 할 필요가 있다.</p><ul><li>PT-ABC의 가격이 $20에서 $19로 떨어질 경우 가격이 5% 하락</li><li>YT-ABC의 가격이 $2에서 $1로 떨어질 경우 가격이 50% 하락</li></ul><p>예컨대 현재 글을 작성하는 시점(23년 4월 14일)으로부터 만기가 1년인 stETH-14APR2024 채권이 있고 시장이 열린 시점의 U.APY, I.APY, SY, PT 그리고 YT의 가격이 아래와 같다고 가정해 보자.</p><ul><li>U.APY = 4.2%, I.APY = 4%, Date to Maturity = 365d</li><li>SY-stETH = $2,000 | PT-stETH ≈ $1,923 | YT-stETH ≈ $77</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*9-5yQwrwtaqKeCe4lbXs8w.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>5일에 걸쳐서 네트워크에 스테이킹된 $ETH가 급증하면서 U.APY가 3%까지 하락하고 I.APY도 2.5% 선까지 떨어질 경우 아래와 같이 PT, YT의 가격이 변하게 된다.</p><ul><li>U.APY = 3%, I.APY = 2.5%, Date to Maturity = 360d</li><li>SY-stETH = $2,000 | PT-stETH ≈ $1,952 | YT-stETH ≈ $48</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*de_abOz-0xULdzUgwOLI3w.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><ul><li>PT-stETH from $1,923 ==&gt; $1,952 (약 1.5% 상승)</li><li>YTstETH from $77 ==&gt; $48 (약 37.7% 하락)</li><li>YT를 구매했다면 5일만에 ROI -37.7%를 맛보게 될 수 있다.</li></ul><p>여기서 중요하게 짚고 넘어갈 포인트는 Yield Trading ≠ Spot Trading이라는 점이다. Spot Trading에서는 자산의 가격에 대한 변동폭만 신경쓰면 되지만 Yield Trading에서는 자산의 가격뿐만 아니라 U.APY의 변동도 함께 고려해야 한다.</p><ul><li>Spot Trading ==&gt; $stETH의 가격 변동 추세만 확인</li><li>Yield Trading ==&gt; $stETH의 가격 변동 추세뿐만 아니라 Lido APR의 추세도 같이 봐 줘야 한다</li></ul><p>아울러 U.APY의 변화 추세를 이해하기 위해서는 ybtoken을 발행하는 Dapp의 어떻게 작동하는지, 이자가 쌓이는 로직이 어떻게 되어 있는지, 네트워크에 자금이 유입되고 있는지, 그리고 경쟁 서비스대비 성장 가능성이 얼마나 높은지 등에 대한 분석을 할 필요가 있다.</p><p>**<br>YT를 보유할 경우 U.APY가 1~2%만 변동해도 수익률에 큰 영향을 주기 때문에 스탑로스와 같이 손해를 확정짓고 빠르게 포지션을 청산할 수 있는 기능이 반드시 필요하다. 아울러 $ETH와 같은 블루칩 자산의 가격을 조작하는 것보다는 ybtoken의 이자율을 조작하는 것이 비용이 더 저렴하기 때문에 얼마든지 인위적으로 수치를 조작하는 공격이 발생할 수 있다는 위험이 있다.</p><blockquote><strong>Pendle의 성장 가능성 : LSD, Real Yield와 찰떡궁합</strong></blockquote><p>Pendle에서는 ybtoken을 채권화하고 1년 이상의 만기일을 부여하기 때문에 Dapp의 상품성이 떨어지거나 ybtoken의 기초자산이 부실할 경우 문제가 생길 수 있다. 따라서 $ETH, $BTC와 같은 네트워크 기반의 자산이나 스테이블 코인을 기축으로 하는 Dapp 중에서 실제로 이자를 유의미하게 창출할 수 있는 서비스 정도로 연동 대상이 제한된다. 그리고 이런 기준에 잘 부합하는 케이스가 LSD와 Real Yield Dapp들이다.</p><p><strong>LSD</strong><br>최근 SEC는 현물 거래소들이 제공하는 스테이킹 서비스가 증권의 성질을 가지고 있다고 판단하고 지속적으로 태클을 걸고 있는 상황인데 실제로 Kraken의 경우 샤펠라 업그레이드 이후 미국 고객들의 $ETH에 해당하는 양인<a href="https://www.theblock.co/post/226292/kraken-set-to-unstake-more-than-1-billion-worth-of-eth-after-shapella-upgrade"> 약 551,000개(≈ $1B USD)에 대한 인출</a>을 요청한 상황이다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ud-JBgkZV6ATTzpjMnHALw.png" /><figcaption>출처 : <a href="https://www.sec.gov/news/press-release/2023-25?ref=bankless.ghost.io">SEC</a></figcaption></figure><p>이와 같이 현물 거래소들이 제공하는 스테이킹 서비스에 제동이 걸릴 경우 이에 대한 반대급부로 LSD(e.g. $stETH, $rETH, $sfrxETH) 등이 혜택을 볼 수 있는데 현재 Pendle TVL의 50% 가까이를 LSD가 차지하고 있는 것을 감안하면 LSD의 성장이 Pendle의 성장에도 긍정적인 영향을 미칠 것이라고 기대해 볼 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZBbC3YWj1xtZaP4lMmZuQ.png" /><figcaption>출처 : <a href="https://app.sentio.xyz/pendle/pendle-dashboard/dashboards/Rey24S3z?from=1681398000&amp;to=1681484400">Pendle v2 Dashboard</a></figcaption></figure><p>더 나아가 Dapp(e.g. Lido, frxETH)의 TVL 대비 Pendle에서 활용되고 있는 LSD ybtoken의 규모가 매우 작다는 점을 감안하면 TVL이 여전히 오를 여지가 충분하다고 볼 수 있다.</p><ul><li>SY-stETH TVL ≈ $20M | stETH TVL ≈ $12B</li><li>SY-stETH의 TVL은 stETH의 약 0.16% 수준</li><li>stETH TVL의 1%만 유입되어도 $120M..</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvIZjOpWjsUOlbpPg2rTuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzOKw8NdpV5SqoLopcr11Q.png" /><figcaption>출처 : <a href="https://etherscan.io/address/0xcbC72d92b2dc8187414F6734718563898740C0BC">Etherscan_SY-stETH</a>, <a href="https://etherscan.io/token/0x5e8422345238f34275888049021821e8e08caa1f">Etherscan_stETH</a></figcaption></figure><ul><li>SY-sfrxETH ≈ $5.5M | frxETH TVL ≈ $288M</li><li>SY-sfrxETH의 TVL은 frxETH의 약 1.9% 수준</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pr6YqrI8ts0ffaUjZBhTTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0znDpCjZ66EogrtT5ccrqg.png" /><figcaption>출처 : <a href="https://etherscan.io/token/0x5e8422345238f34275888049021821e8e08caa1f">Etherscan_stETH</a>, <a href="https://etherscan.io/token/0xae7ab96520de3a18e5e111b5eaab095312d7fe84">Etherscan_frxETH</a></figcaption></figure><p><strong>[ Note : Pendle TVL ]</strong><br>모든 PT, YT는 SY로부터 오기 때문에 Pendle에 예치된 자산의 TVL은 SY-Token 컨트랙트가 보관하고 있는 자산을 통해 확인할 수 있다. 참고로 ybtoken을 SY-ybtoken으로 랩핑하면 ybtoken이 Router 컨트랙트를 거쳐서 최종적으로 SY-Token 컨트랙트로 전송이 된다.</p><p><strong>[ Note : Frax LSD(frxETH, sfrxETH) ]</strong><br>Frax의 LSD는 구조가 조금 특이한데 ETH와 1:1로 대응이 되는 $frxETH와 스테이킹 이자를 수령할 수 있는 $sfrxETH로 총 두 가지 토큰이 존재한다. 투자자는 $ETH로 $frxETH를 발행할 수 있는데 $frxETH 그 자체는 이자를 창출하지 않고 $frxETH를 스테이킹하고 $sfrxETH를 수령해야 $ETH 보상을 받을 수 있는 구조이다.</p><p>Frax LSD는 왜 Lido 같은 rebase model($stETH)이나 Rocket Pool과 같은 yield bearing model($rETH)을 택하지 않았을까?</p><p>정답은 Frax가 $CRV Guage에 행사할 수 있는 영향력에 있다. Curve 유동성 풀에 지급되는 $CRV 보상은 veCRV 홀더들이 결정하는데 현재 veCRV의 45% 정도를 Convex가 보유하고 있으므로 Convex에서 $CRV 보상량의 45%가 어느 풀로 갈 것인지를 결정할 수 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEU-fnWRPcBrQIEz6ObUEA.png" /><figcaption>출처 : <a href="https://dune.com/blockworks_research/cvx">Dune_Convex</a></figcaption></figure><p>그런데 Convex 안에서도 $CRV 보상이 어느 풀로 갈지는 vlCVX(vote-locked CVX)홀더들의 투표에 의해 결정된다. 따라서 최종적으로 CVX 홀더들이 $CRV 보상량의 45% 정도가 어느 풀로 갈 것인지 결정하는 구조인데 Frax는 자체적으로 보유한 $vlcvx뿐만 아니라 Votium을 통해서 획득한 $vlcvx로 Guage Weight Vote에 큰 영향력을 행사하고 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPt2EQdEuift8nkmL_W-Rw.png" /><figcaption>출처 : <a href="https://snapshot.org/#/cvx.eth/proposal/0xf2164daaa801b8b0c8fed6622a460050404c17a32bde7d822e62acb55a8fc262">Convex Snapshot</a></figcaption></figure><ul><li>가장 최근에 진행되고 있는 투표를 보면 상위 5개의 풀에서 Frax와 관련된 풀이 4개나 있는 것을 볼 수 있다.</li></ul><p>Frax에서는 이와 같은 영향력을 기반으로 $ETH-$frxETH Pool에 $CRV 보상이 지급될 수 있도록 게이지 투표를 진행하고 있으며 $frxETH가 $ETH 이자를 창출하지 못하더라도 투자자들이 $frxETH를 보유할 유인을 제공하고 있다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDXBYemPdZdLvQFiivZ7ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56RovDSEzIXmkD61rXZdvg.png" /><figcaption>출처 : <a href="https://curve.fi/#/ethereum/pools">Curve_Pool</a>, <a href="https://dao.curve.fi/gaugeweight">Curve_guageweight</a></figcaption></figure><p>아울러 $frxETH는 $ETH 이자를 창출하지만 해당 이자를 수령할 수 있는 투자자는 $sfrxETH로 한정되므로 더 많은 투자자들이 $frxETH를 Curve Pool에 예치할수록 $sfrxETH의 보상량은 증가하게 된다.</p><p>예컨대 $frxETH 1,000개가 있고 이 중 200개는 $frxETH의 형태로 Curve Pool에 존재하고 나머지 800개는 $sfrxETH의 형태로 스테이킹이 되어 있다면 $sfrxETH 홀더들은 $ETH 1000개에 대한 보상을 얻어가게 된다. 이로 인해 Lido나 Rocket Pool에 비해 더 높은 APR을 제공할 수 있는 구조를 지니고 있다.</p><p><strong>Real Yield</strong><br>Arbitrum 생태계에서는 Perp DEX + Real Yield를 기반으로 생태계가 탄탄하게 성장하고 있는데 유동성을 차입해서 마진 트레이딩을 지원하는 GMX와 투자자들의 PnL만 $DAI로 정산하는 Gains Network가 있다.</p><ul><li>GMX의 ybtoken = $GLP | Gains Network의 ybtoken = $gDAI</li><li>$GLP는 $ETH, $BTC와 같은 블루칩 자산들과 스테이블 코인을 포함하는 인덱스</li><li>$gDAI는 $DAI를 기반으로 하는 ybtoken</li><li>두 서비스 모두 Arbitrum에서 출시 후 승승장구하고 있다</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pV63xbrOavVr5mfBjcsfMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNuTjyJ2omsd5MByom1Oug.png" /><figcaption>출처 : <a href="https://defillama.com/">DeFiLlama</a></figcaption></figure><p>$GLP, $gDAI 모두 탄탄한 기초자산을 기반으로 하고 있고 Dapp내에서 발생하는 트레이딩 볼륨을 기반으로 유의미한 이자가 지급되기 때문에 Pendle에서 채권시장을 만들기 적합한 구조이다. 실제로 Pendle이 Arbitrum에 서비스를 배포한 이후 TVL이 지속적으로 상승하고 있는 추세인데 현재 Pendle Ethereum TVL까지 근접한 상황이다.</p><ul><li>Pendle Ethereum TVL ≈ $32M</li><li>Pendle Arbitrum TVL ≈ $28M</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pA8Onq62RhZAyRBNngB7Og.png" /><figcaption>출처 : <a href="https://defillama.com/protocol/pendle">DeFiLlama</a></figcaption></figure><p>Ethereum에서는 LSD, Arbitrum에서는 Real Yield가 주된 Yield Trading Market으로 자리를 잡은 상황이라고 볼 수 있다.</p><p><strong>[ Note : Liquidity Amplifier for Dapps ]</strong><br>SY &amp; PT &amp; YT 모두 ybtoken으로부터 나오는 자산들이기 때문에 Pendle에 존재하는 유동성은 온전히 Dapp에도 그대로 존재한다. 예컨대 아래 그림과 같이 $ETH로 PT-GLP를 구매할 경우 $ETH → $FRAX -&gt; SY-GLP -&gt; PT-GLP의 순서를 거쳐서 스왑이 진행되며 $FRAX를 $SY-GLP로 바꾸는 과정에서 GMX에 유동성이 추가로 유입된다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*jWqqtLJFoCFFDx54m9I81w.png" /><figcaption>출처 : <a href="https://app.pendle.finance/pro/markets/0x7d49e5adc0eaad9c027857767638613253ef125f/swap?view=pt">Pendle Finance</a></figcaption></figure><p>실제로 Pendle이 Stargate Snapshot에 올린 제안서를 보면 Pendle의 Market이 Dapp의 유동성 증폭에 크게 기여한 점을 확인할 수 있는데 이런 면에서는 Leveraged Yield Farming과 유사한 측면이 있다고도 볼 수 있겠다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-eoUxRp5zjMJ7QCCfgCew.png" /><figcaption>출처 : <a href="https://snapshot.org/#/stgdao.eth/proposal/0xb89734985fddc3bc70404eaa6d62100ddeeea26c54c0ea55f66a089f79dde3ca">Stargate Snapshot</a></figcaption></figure><blockquote><strong>맺음말</strong></blockquote><p>ybtoken을 원금과 이자로 분리해서 온체인 금리스왑 시장을 구현한 Pendle Finance는 담보 정도로 사용되고 있던 ybtoken의 새로운 유즈 케이스가 있음을 증명했다. 추후에는 PT, YT도 CDP나 Money Market에서 담보로 잡게 되는 날이 올 것이며 LSD, Real Yield Meta와도 매우 잘 맞기 때문에 성장 가능성이 상당히 높다고 본다.</p><p>그러나 YT의 경우 가격이 PT에 비해 현저히 낮아 작은 가격 변화만으로도 투자자의 포지션에 큰 손실을 야기할 수 있기 때문에 스탑로스와 같이 투자자가 손해를 확정짓고 빠르게 포지션을 청산할 수 있는 기능이 반드시 필요하다.</p><p>더 나아가 ybtoken을 발행한 Dapp의 구조를 코드레벨까지 완벽하게 분석을 했다고 해도 외부 요인(e.g. SEC의 규제로 인한 현물 거래소 $ETH 출금)에 의해 U.APY가 얼마든지 변할 수 있으므로 U.APY가 어떤 방향으로 변동을 할 것인지 예측하기가 쉽지 않아 Dapp 사용을 위한 진입 난도가 상당히 높은 편이다.</p><p>끝.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fc876a854cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Opinion] Leveraged Yield Farming의 어제와 오늘 : DeFi 생태계는 어떻게 발전했는가? (1/2)]]></title>
            <link>https://mad-scientist-shiba.medium.com/opinion-leveraged-yield-farming%EC%9D%98-%EC%96%B4%EC%A0%9C%EC%99%80-%EC%98%A4%EB%8A%98-defi-%EC%83%9D%ED%83%9C%EA%B3%84%EB%8A%94-%EC%96%B4%EB%96%BB%EA%B2%8C-%EB%B0%9C%EC%A0%84%ED%96%88%EB%8A%94%EA%B0%80-1-2-af1e80762761?source=rss-9c09afa2ac29------2</link>
            <guid isPermaLink="false">https://medium.com/p/af1e80762761</guid>
            <dc:creator><![CDATA[Mad Scientist Shiba]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 06:44:14 GMT</pubDate>
            <atom:updated>2023-03-21T07:53:44.088Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Opinion] Leveraged Yield Farming의 어제와 오늘 : DeFi 생태계는 어떻게 발전했는가? (1/2)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/0*iuX75Zrgfc3Xe-hm.jpg" /><figcaption>출처 : <a href="https://knowyourmeme.com/photos/1383321-pink-wojak">To the Moon!</a></figcaption></figure><p>통상적으로 유동성을 차입해서 이자 농사를 할 수 있는 DeFi 모델을 Leveraged Yield Farming(이하 “LYF”)이라고 부르는데 대표적으로는 BNB 네트워크의 <a href="https://app.alpacafinance.org/">Alpaca Finance</a>나 Klaytn 네트워크의 <a href="https://kleva.io/">KLEVA Protocol</a> 등이 있다.</p><p>본 내용은 총 두 편에 나눠서 연재할 생각이며 첫 번째 편에서는 LYF의 탄생 배경을 이해하기 위해 필자만의 방식으로 분석해본 DeFi 생태계의 발전사를 먼저 살펴보려고 한다.</p><p>두 번째 편에서는 LYF의 작동 원리와 상품 구조를 파악하면서 투자자가 LYF를 잘 이용할 수 있는 방법들에 대해 소개를 하겠다.</p><ul><li>간단하게 수익률과 리스크를 계산하는 방법도 포함이 될 예정인데 맛보기로 그래프를 먼저 공개</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLZzVBztUGvdzG4N9xXIxQ.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>(자산의 가격 변화에 따라 LYF를 하는 것과 단순히 자산을 들고 있는 것(HODL) 사이의 수익률 차이를 보여주는 그래프)</p><p>그러면 오늘의 주제부터 시작해보자.</p><blockquote><strong>LYF의 탄생 배경 (1) : 온체인 거래소의 등장 (고유 가격 발견 매커니즘 탑재)</strong></blockquote><p>오프체인 거래소(CEX)는 전통적인 오더북 형태로 트레이딩을 지원하는데 투자자들이 원활하게 거래를 할 수 있는 환경이 조성되기 위해서는 오더북에 항상 충분한 유동성이 존재해야 한다.</p><p>이때 “투자자들이 원활하게 거래를 할 수 있는 환경&quot;을 조성해 주는 주체가 바로 Market Maker(이하 “MM”)들이며 이들은 Bid-Ask 스프레드를 통해 수익을 내기 때문에 유동성을 공급할 인센티브가 존재한다.</p><ul><li>”투자자들이 원활하게 거래를 할 수 있는 환경”이란 자산의 가격이 해당 거래소에서 제대로 반영이 되어 Taker가 자산을 적정 가격에 매수/매도할 수 있는 환경을 말한다</li></ul><p>실제로 MM이 없으면 동일한 자산에 대해서도 Bid-Ask 스프레드가 크게 벌어질 수 있는데 스프레드가 커지면 커질수록 시장가에 자산을 구매하는 투자자(Taker)들이 손해를 보게 된다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39fRTw_nirsGptRHLTE81g.png" /><figcaption>출처 : Binance</figcaption></figure><ul><li>Lowest Ask Price : $81.96</li><li>Highest Bid Price : $81.95</li></ul><p>==&gt; Tight Spread!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkhFzON3ZDBOAjGJDfAxXg.png" /><figcaption>출처 : Probit Global</figcaption></figure><ul><li>Lowest Ask Price : $90.00</li><li>Highest Bid Price : $77.04</li></ul><p>==&gt; Not So Tight Spread!</p><p>**<br>$GMX 1개를 시장가로 주문하면 Binance에서는 0.345개는 $81.96, 0.655개는 $81.97에 구매할 수 있는 반면 Probit Global에서는 1개를 $90에 구매하게 되므로 Taker 입장에서는 무조건 Binance를 이용하는 것이 유리하다.</p><p>다시 본론으로 돌아와서, MM들이 오더북 모델에서 필수 불가결한 존재라는 것을 알게 됐으니 온체인 거래소를 오더북 모델로 만드는 경우에도 반드시 MM이 제 역할을 해줘야 한다. 그러나 온체인에서는 MM의 비용과 리스크가 크게 상승하게 되는데 MM이 제출하는 모든 오더는 가스비를 동반하게 될 뿐만 아니라 블록 타임 등과 같은 블록체인의 고유 성격이 주문의 체결 속도 등에도 영향을 미치게 되므로 호가 경쟁을 하는 MM 입장에서는 굉장히 불리한 환경이 아닐 수 없다. (호가 경쟁뿐만 아니라 시장 가격의 변화에도 대응을 할 수가 없으니 자산의 가격 변동에 그대로 노출된다)</p><p>위와 같은 블록체인의 고유 특성으로 인해 온체인 오더북 모델의 한계점이 명확하게 드러났고 DEX들은 전통적인 MM 없이도 “투자자들이 원활하게 거래를 할 수 있는 환경”이 조성될 수 있는 방식을 고민하게 되는데 그 해답을 찾아 DEX 모델을 대중화시킨 곳이 바로 2018년에 v1을 출시한 <a href="https://uniswap.org/">Uniswap</a>이다.</p><ul><li>참고로 CP-AMM을 따르는 DEX들은 대부분 Uniswap v2의 포크이며 v2는 2020년 5월에 출시했다</li><li>아울러 이번 포스팅의 주제는 아니지만 가격이 유사한 자산군간의 스왑에서는 x*y=k가 매우 비효율적인데 이런 문제를 해결하고자 탄생한 서비스가 바로 Curve이다. 이 주제는 다른 포스팅에서 자세히 다루도록 하겠다.</li></ul><p>여기까지 읽었으면 아래와 같은 의문점이 들어야 한다.</p><ul><li>MM의 역할은 자산의 가격이 거래소에 제대로 반영이 될 수 있도록 충분한 유동성을 공급하는 것이고 자산의 가격을 발견하는 매커니즘을 코드가 대체한 것은 이해가 된다. 그러나 AMM 또한 제대로 작동을 하기 위해서는 누군가가 유동성을 공급해야 하는 것 아닌가? 유동성 공급자의 인센티브(Bid-Ask 스프레드)가 사라진 상황에서 어떻게 유동성을 모을 수 있는가?</li></ul><p>좋은 지적이며 Uniswap에서는 위와 같은 문제를 해소하기 위해 플랫폼에서 발생하는 거래 수수료(Trading Fee) 전액을 유동성 공급자들에게 지급하는 구조를 선택하게 된다. 유동성 공급자 입장에서는 인센티브가 Bid-Ask 스프레드 ==&gt; 거래 수수료로 바뀐 것이고 거래소 입장에서는 유동성을 모으기 위해 매출을 전액(혹은 일부) 포기한 것이다.</p><p><strong>정리하면,</strong> Uniswap은 온체인 환경에 적합한 거래소 모델을 설계했으며 기존 MM들이 전통적으로 하던 역할을 코드와 유동성 공급자가 수행하도록 했다. 그리고 블록체인 위에서도 거래소 모델이 운영 가능함을 증명했다.</p><p><strong>[Note]</strong><br>온체인에서 운영이 되고 있는 다수의 DeFi 서비스들이 자산의 가격에 대한 정보를 오프체인에서 받아오게 되는데 이 경우 신뢰할 수 있는 제 3자(e.g. <a href="https://chain.link/">Chainlink</a>)에게 절대적으로 의존을 하게 되는 구조이다. 즉, 제 3자가 제공하는 정보가 옳다고 가정을 하고 서비스를 영위해야 한다.</p><p>반면에 AMM 모델은 플랫폼 안에서 발생하는 거래를 기반으로 자산의 가격을 스스로 창조하는 구조이므로 적어도 자산의 가격을 결정함에 있어서는 제 3자의 영향을 줄일 수 있다는 장점이 있다.</p><blockquote><strong>LYF의 탄생 배경 (2) : Liquidity Mining의 등장</strong></blockquote><p>DeFi 스페이스의 OG 중 하나인 Compound가 2020년 6월 중순에 자체 토큰인 $COMP를 출시하면서 Liqudity Mining(“이하 LM”)이라는 개념을 소개한다.</p><ul><li>Compound 이전에도 자체 토큰을 보유한 프로토콜들이 몇몇 있었지만 LM이라는 개념을 소개한 것은 Compound가 처음이다</li></ul><p>기존 DeFi 서비스들에서 유동성 공급자들의 수입원은 대출 이자나 거래 수수료로부터 나왔는데 LM이라는 개념이 도입되면서 DeFi 서비스가 자체적으로 발행한 토큰을 추가로 보상으로 지급하기 시작한다. 그리고 Compound를 시작으로 Balancer, Curve, Aave, 그리고 Sushiswap 등이 모두 뒤를 이어 자체 토큰을 발행하고 LM 구조를 차용하기 시작하는데 이런 토큰 인센티브가 기존 대출 이자나 거래 수수료보다 압도적으로 높았기에 많은 자금이 DeFi 생태계로 몰리게 된다. 실제로 LM이 소개되기 이전에는 생태계 TVL에 큰 변화가 없다가 LM이 2020년 6월에 도입된 이후 6개월 만에 생태계 TVL이 약 15배 이상 성장을 한다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*421iO9rQXa5hOHCa8X_IKQ.png" /><figcaption>출처 : DeFiLlama</figcaption></figure><p><strong>[Note]</strong><br>Uniswap v2 포크 중 하나인 Sushiswap은 이 LM이라는 개념을 활용해 Uniswap의 유동성을 약 $800M 가까이 뺏어오는데 성공했는데 Uniswap으로 하여금 토큰을 반강제로 새로 발행하도록 유도했다고 평가를 받는다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ja-J6oUJpDUbEr2PrWLgIg.png" /><figcaption>출처 : <a href="https://www.coindesk.com/tech/2020/09/09/sushiswap-will-withdraw-up-to-830m-from-uniswap-today-why-it-matters-for-defi/">Coindesk</a></figcaption></figure><p>아울러 Sushiswap이 Uniswap을 대상으로 진행한 공격을 “Vampire Attack”이라고 부르는데 이런 공격에 대한 많은 <a href="https://twitter.com/BenDiFrancesco/status/1303690152871686146?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1303690152871686146%7Ctwgr%5E4f959ae4683fd613fbcfcdc6dd6c0bb521458f9b%7Ctwcon%5Es1_c10&amp;ref_url=https%3A%2F%2Fwww.coindesk.com%2Ftech%2F2020%2F09%2F09%2Fsushiswap-will-withdraw-up-to-830m-from-uniswap-today-why-it-matters-for-defi%2F">비판</a>이 있었고 그 주된 골자는 코드만 포크해서 토큰 하나 얹어서 성공할 수 있으면 누가 공을 들여서 혁신적인 코드를 만들겠냐는 것이다.</p><p>그러나 수치만 보면 재밌게도 Uniswap은 오히려 Sushiswap 덕분에 혜택을 봤다고 볼 수도 있는데 실제로 Sushiswap 론칭 전의 Uniswap TVL보다 Vampire Attack 이후 Uniswap TVL이 더 높기 때문이다. (론칭 전 약 $300M, Vampire Attack 후 약 $500M)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uK2ZE8wg2xwObgXYCVO_jQ.png" /><figcaption>출처 : DeFiLlama</figcaption></figure><p><strong>정리하면</strong>, Compound로부터 시작한 LM 구조는 기존 대출 이자나 거래 수수료에 비해 높은 인센티브를 유동성 공급자에게 제공함으로써 타 서비스에 비해 우위를 점할 수 있는 전략임이 증명됐고 DEX를 포함한 다른 DeFi 서비스들이 이 구조를 차용하기 시작했다. 그리고 높은 인센티브를 수령하고 싶은 수많은 투자자들이 물 밀듯이 DeFi 생태계에 유입되면서 TVL이 크게 증가했다.</p><p><strong>[Personal Opinion]</strong><br>LM 구조는 대부분의 경우 폰지 사기에 가깝고 지속 가능하지 않다. LM이 계속해서 높은 인센티브를 제공하기 위해서는 외부에서 끊임없이 자금이 들어와야 한다는 전제 조건이 붙는데 자금이 계속 유입되는 것은 사실상 불가능하기 때문이다.</p><p>내가 팔면 누군가는 그걸 계속 사줘야 가격이 유지되는데 (바이백 재원 + 매수세) &lt; 매도세일 경우 자산의 가격은 우하향 곡선을 그리게 된다.</p><p>따라서 LM은 초반에 Hype가 존재할 때 먼저 들어간 사람이 무조건 유리하며 이런 기회들을 엿보면서 보상을 쓸어가는 투자자들의 유동성을 “Mercenary Liquidity”라고 부른다.</p><p>참고로 이 Mercenary Liquidity 문제를 해결하기 위해 게임 이론을 접목해서 등장한 서비스가 그 유명한 <a href="https://www.olympusdao.finance/">Olympus DAO</a>인데 채권을 발행해 유동성이 프로토콜에 묶이도록 유도하는 구조를 고안했다.</p><blockquote><strong>LYF의 탄생 배경 (3) : Yield Optimizer의 등장 (Yield Auto-Compounder)</strong></blockquote><p>LM이 DeFi 서비스들 사이에서 주된 인센티브 모델로 자리를 잡으면서 높은 보상(=신기루)을 바라보고 많은 자금이 온체인에 유입된다. 실제로 위에서 언급한 바와 같이 2020년 6월부터 12월까지 DeFi TVL이 약 $1B에서 $15B으로 크게 상승했는데 이건 시작에 불과했고 2021년 12월에는 TVL 약 $170B까지 찍는다. (필자의 기억으로는 DeFi TVL ATH가 약 $180B 수준이었던 것 같다)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeV5xRhUGKvY8Dw06gL0MA.png" /><figcaption>출처 : DeFiLlama</figcaption></figure><p>그리고 이렇게 DeFi 생태계가 성장하면서 LM의 편의성을 극대화하는 서비스들이 하나 둘 씩 등장하게 되는데 편의상 이런 서비스들을 “Yield Optimizer”라고 부르겠다.</p><p>LM은 투자자가 직접 수동으로 보상을 수령해야 하는 구조이며 보상량을 계산할 때 1) 전체 유동성 대비 투자자의 지분과 2) 자산을 예치한 기간을 고려해서 보상액이 계산이 된다.</p><ul><li>편의상 Liqudity Mining 보상은 $ABC, 투자자가 예치한 자산은 $XYZ라고 하겠다</li></ul><p>이때 많은 투자자들은 전체 유동성 대비 본인의 $XYZ 지분을 늘리고 복리예치 효과를 누리기 위해 매일 $ABC를 수령해서 $XYZ로 스왑하고 재예치하는 작업을 반복하는데 그 과정은 아래와 같다.</p><ol><li>$ABC Claim</li><li>$ABC ==&gt; $XYZ Swap</li><li>$XYZ Reinvest</li></ol><p>3번의 트랜잭션 모두 컨트랙트와 상호작용을 하기 때문에 가스비를 지불해야 하는데 투자자 입장에서는 추가 비용이 발생하는 것이다. 이뿐만 아니라 바쁜 현대인이 언제 저 작업을 매일 하고 있겠는가?</p><p>이런 불편함을 해결해주는 서비스들이 바로 Yield Optimizer들인데 유저를 대신해서 1~3 작업을 진행하고 서비스 대가로 수수료(Performance Fee)를 일부 부과하는 모델들이다.</p><ul><li>Yield Optimizer들은 일정 주기(e.g. 6시간)로 1~3 작업을 진행하는데 이때 투자자들의 자산을 모아서 한번에 해당 작업을 진행하고 소정의 수수료를 수취한다</li><li>수수료 지급에 대한 비용을 상쇄하기 위해 투자자들에게 프로토콜이 직접 발행한 토큰을 보상으로 지급한다</li></ul><p><strong>예시로 보는 수동 복리예치와 Yield Optimizer의 수익률 차이</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*feuMc5M8CVkOUzETu-FRfQ.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>주요 파라미터 및 가정</p><ul><li>APY = (1+r/n)^n — 1</li><li>Yield APR = APY 공식의 r (APR에 변동이 없다고 가정)</li><li>Compounded Yearly = APY 공식의 n</li><li>$XYZ의 가격에 변동이 없다고 가정</li><li>실제로는 연산량에 따라 다르겠지만 Gas per Tx이 $10이라고 가정</li></ul><p>Manually Compound</p><ul><li>APY ≈ 171.74% (((1+1/1460)¹⁴⁶⁰ — 1) * 100%)</li><li>Equity in 1 year ($XYZ) ≈ $135,868 ($50,000 * (100% + 171.735..%) )</li><li>Total Gas in 1 year = $43,800 ($10 * 3 * 1460)</li><li>Net Equity ≈ 92,068 ($135,868 — $43,800)</li></ul><p>Use Yield Optimizer</p><ul><li>APY ≈ 145.89% (((1+(1–0.1+0)/1460)¹⁴⁶⁰ — 1) * 100%)</li><li>Equity in 1 year ($XYZ) ≈ $122,946 ($50,000 * (100% + 145.89…%))</li><li>Net Equity ≈ $122,946</li></ul><p>Yield Optimizer를 이용하는 경우 가스비가 별도로 발생하지 않기 때문에 Performance Fee가 차감이 되어도 결과적으로 더 큰 수익을 올릴 가능성이 높다. 아울러 위 예시에서는 Yield Optimizer에서 지급하는 토큰 보상을 0이라고 가정했는데 실제로는 해당 보상까지 포함하면 수익은 더 늘어나게 된다.</p><p>물론 가스비가 저렴한 체인이나 Performance Fee가 높은 Yield Optimizer를 이용할 경우 수동으로 복리예치를 하는 것이 더 이득이 될 수도 있다. 예컨대 아래 예시와 같이 가스비를 $1 수준으로 낮추고 Performance Fee를 2배로 높이면 수동으로 복리예치하는 것이 Yield Optimizer를 이용하는 것보다 더 높은 수익을 제공할 가능성이 있다. (그러나 여전히 유저가 직접 수동으로 작업을 진행해야 하니 불편함이 해소되지 않는다는 문제는 존재한다.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cngL4GqkcMiJfZt5PUzV2Q.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>Yield Optimizer가 위와 같이 LM을 할 때 유저의 편의성을 증진하고 경우에 따라서는 더 높은 수익을 제공할 수 있다는 사실을 확인했다.</p><p>그러나 위에서 LM과 Yield Optimizer 내용을 소개하면서 가장 중요한 부분이 누락됐는데 <strong>투자자의 포지션이 자산의 가격 하락에 그대로 노출되는 한계점을 지니고 있다는 사실</strong>이다.</p><p>기본적으로 LM, Yield Optimizer 모두 DEX의 유동성 풀을 이용하기 때문에 투자자가 반드시 두 자산을 보유한 상황에서 참여를 해야 한다. 예컨대 $BNB / $ETH 유동성 풀에서 Farming을 하고 싶을 경우 유저는 사전에 $BNB, $ETH를 둘 다 구하거나 하나만 구해서 Zap 기능을 이용하게 되는데 결과적으로 $BNB, $ETH를 반반씩 소유하게 된다.</p><p>따라서 $BNB, $ETH 중 하나라도 가격이 하락하면 필연적으로 손해를 보게 되며 유동성 풀에서 얻는 Yield보다 자산의 가격 하락으로 발생하는 손해가 더 클 경우 PnL이 음수가 된다. (두 자산 모두에 대한 강제 롱 포지션)</p><ul><li>IL(Impermanent Loss)로부터 오는 손실은 생략한다</li></ul><p>따라서 1) LM에 참여할 때 특정 자산에 대한 롱/숏 포지션을 가져가면서 강제로 롱 포지션을 잡아야 하는 구조적 한계를 극복하고 2) Yield Optimizer와 동일한 수준의 편의성을 제공할 수 있는 서비스에 대한 시장의 수요가 발생한다.</p><p>그리고 이 수요를 충족하는 서비스 바로 본 아티클 시리즈의 주인공인 <strong>Leveraged Yield Farming</strong>이다.</p><p>Leveraged Yield Farming에 대한 자세한 소개는 다음 편에 이어서 하도록 하겠다…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af1e80762761" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[기능 소개 : Auto-Buy(Sell), Stop-Loss, and Take-Profit for MakerDAO]]></title>
            <link>https://mad-scientist-shiba.medium.com/%EA%B8%B0%EB%8A%A5-%EC%86%8C%EA%B0%9C-auto-buy-sell-stop-loss-and-take-profit-for-makerdao-8eb1451dfcd7?source=rss-9c09afa2ac29------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eb1451dfcd7</guid>
            <dc:creator><![CDATA[Mad Scientist Shiba]]></dc:creator>
            <pubDate>Wed, 15 Mar 2023 04:36:56 GMT</pubDate>
            <atom:updated>2023-03-18T03:50:27.395Z</atom:updated>
            <content:encoded><![CDATA[<h3>[기능 소개] Auto-Buy(Sell), Stop-Loss, and Take-Profit for MakerDAO</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vy7ooScWlfGSQLu9" /><figcaption>Photo by <a href="https://unsplash.com/@shubzweb3?utm_source=medium&amp;utm_medium=referral">Shubham&#39;s Web3</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>본 편에서는 MakerDAO의 자동화된 트레이딩 툴인 Auto-Buy(Sell), Stop-Loss, Take-Profit에 대해 알아볼 예정이며 독자가 CDP에 대한 기본적인 이해가 있다는 전제를 깔고 있다.</p><blockquote><strong>용어 정리(Glossary)</strong></blockquote><p><em>LTV(Loan-To-Value)</em><br>: 예치한 담보대비 발행한 DAI의 비율을 표현하며 Collateralization Ratio의 역수이다</p><ul><li>LTV = Minted DAI(+Debt) / User Margin * 100%</li><li>Collateralization Ratio = 1 / LTV</li></ul><p><em>Auto-Buy</em><br>: 자동 매수 기능으로 Vault의 담보 가치가 상승해서 LTV가 하락하면 DAI를 추가로 발행해서 담보로 스왑해 담보에 대한 롱 포지션을 강화한다</p><p><em>Auto-Sell</em><br>: 자동 매도 기능으로 Vault의 담보 가치가 하락해 LTV가 상승하면 담보를 일부 매도해서 DAI를 상환하고 청산 위험을 낮춘다</p><p><em>Stop-Loss</em><br>: 스탑로스는 출구 전략 중 하나로 손실을 확정짓고 빠르게 포지션에서 벗어나는 전략이다</p><p><em>Take-Profit</em><br>: 테이크 프로핏은 수익을 확정짓는 기법으로 사전에 정한 목표 이익률에 맞춰 익절을 하는 전략이다</p><p><em>Auto-Buy(Sell) Trigger</em><br>: Auto-Buy(Sell)을 촉발하는 LTV 지점이다. LTV가 Trigger Point에 도달하면 자동으로 Auto-Buy(Sell)이 실행된다</p><p><em>Auto-Buy(Sell) Target</em><br>: Trigger Point에서 Auto-Buy(Sell)이 실행된 이후 새롭게 업데이트가 되는 Vault LTV이다.</p><ul><li>Auto-Buy 시나리오에서는 Target이 Trigger보다 항상 높다</li><li>Auto-Sell 시나리오에서는 Target이 Trigger 보다 항상 낮다</li></ul><p><em>Maximum Buy Price(최대 매수 가격)</em><br>: Auto-Buy에서 담보를 매수할 때 Vault Owner가 지불할 용의가 있는 최대 가격</p><ul><li>담보가 Maximum Buy Price를 초과하면 Auto-Buy가 중지된다</li></ul><p><em>Minimum Sell Price(최소 매도 가격)</em><br>: Auto-Sell에서 담보를 매도할 때 Vault Owner가 수령할 용의가 있는 최소 가격</p><ul><li>담보가 Minimum Sell Price 미만으로 하락하면 Auto-Sell이 중지된다</li></ul><blockquote>용어만 봐서는 감이 잘 안 올 수 있으니 본론에서는 전체적인 맥락을 파악할 수 있도록 해당 기능의 전반적인 구조를 시각 자료와 예시를 통해 파악하고 이후 기능의 작동 원리를 다루도록 하겠다.</blockquote><blockquote><strong>Visualization</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgXtZMywzhCIjojzfo-KiQ.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><ol><li>Bandwidth 구간에서 Auto-Sell(Buy)를 설정할 수 있고 유저는 그 이외의 구간에서 Take-Profit, Stop-Loss를 설정할 수 있다</li><li>Stop-Loss는 Liquidation LTV를 넘을 수 없다</li><li>하나의 Vault Position에서 Auto-Sell(Buy), Take-Profit, 그리고 Stop-Loss를 모두 설정할 수 있다</li></ol><p>그러면 실제 수치를 기입해서 조금 더 구체적으로 살펴보자.</p><blockquote><strong>Mad Scientist Shiba의 Vault Position</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTqPkYkxnhO6Qw8e9sWupQ.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p>Mad Scientist Shiba가 위 그림과 같이 Auto Trading 기능을 설정했다는 것은 아래와 같은 심리가 깔려 있다는 뜻이다.</p><ol><li>담보의 가격이 상승해 LTV가 20%까지 하락하면 DAI를 추가로 발행해서 담보를 매수하겠다. 단, 담보를 무한정 사는 것은 아니고 LTV가 28%에 맞춰지는 선에서 멈추겠다.</li><li>담보의 가격이 하락해 LTV가 38%까지 상승하면 담보를 매도하고 DAI를 상환하겠다. 단, 담보를 무한정 매도하는 것은 아니고 LTV가 32%에 맞춰지는 선에서 멈추겠다.</li><li>담보의 가격이 상승해 LTV가 10%까지 하락하면 Vault Position을 닫고 수익을 실현하겠다</li><li>담보의 가격이 하락해 LTV가 42%까지 상승하면 강제 청산을 피하기 위해 Vault Position을 닫고 손실을 확정 짓겠다.</li></ol><p>여기까지 읽었으면 아래와 같은 의문점이 들어야 한다.</p><ul><li>LTV가 하락할 때 Take-Profit Point에 도달하기 전에 Auto-Buy Trigger가 발동하는 구조인데 Take-Profit이 가능한가?</li><li>LTV가 상승할 때 Stop-Loss에 도달하기 전에 Auto-Sell Trigger가 발동하는 구조인데 Stop-Loss가 가능한가?</li></ul><p>결론부터 말하면 가능하다. 단, Vault Owner가 사전에 Maximum Buy Price와 Minimum Sell Price를 입력해야 한다</p><ul><li>담보의 가격이 Maximum Buy Price를 초과할 경우 Auto-Buy가 동작하지 않게 되는데 이때 가격 상승 추세가 이어지면 LTV가 Take-Profit Point까지 도달할 수 있다.</li><li>마찬가지로 담보의 가격이 Minimum Sell Price 미만으로 하락할 경우 Auto-Sell이 동작하지 않게 되고 이때 가격 하락 추세가 이어지면 LTV가 Stop-Loss Point까지 도달할 수 있다.</li></ul><p>결국 Maximum Buy Price는 익절 지점을, Minimum Sell Price는 손절 지점을 정하는 것이라고 볼 수 있다.</p><p>**<br>참고로 Maximum Buy Price와 Minimum Sell Price를 입력하지 않아도 Take-Profit과 Stop-Loss가 발동할 수 있는데 이 경우는 자산의 가격이 단기간에 급격하게 하락하는 경우이다.</p><p>즉, 봇이 Vault 포지션을 체크하는 인터벌 사이에 담보 자산의 가격이 크게 폭락할 경우 Auto-Buy(Sell)을 스킵하고 바로 Take-Profit이나 Stop-Loss가 발동할 수 있다.</p><p>다만 온/오프체인에 유동성이 풍부한 자산의 경우 단기간에 자산의 가격이 크게 하락할 위험이 타 자산에 비해 적으며 프로토콜이 자산의 가격을 어떻게 평가하느냐에 따라 단기간 가격 변동성에 영향을 덜 받도록 설계할 수 있다.</p><blockquote><strong>Auto-Buy</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgwoNF1JAKBSQTLZ2faLUQ.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p><strong>1. 특징</strong></p><ul><li>트레이딩 툴 중에 유일하게 Flash Mint를 이용하지 않는다</li><li>Auto-Buy Trigger, Auto-Buy Target, Maximum Buy Price(선택)를 사전에 정해야한다</li><li>Vault LTV가 낮아지면 DAI를 추가로 발행해서 담보물을 매수한다</li></ul><p><strong>2. 추가 발행되는 DAI 계산 공식 ( B = (TV-D) / (1-T) )</strong></p><ul><li>Vault TVL = V</li><li>Debt = D</li><li>Buy Amount = B</li><li>Target(%) = T</li><li>V,D는 Auto-Buy가 실행되는 시점을 기준으로 한다</li></ul><p><strong>3. 2번 공식의 도출 과정</strong></p><ul><li>D+B / V+B = T</li><li>D+B = TV + TB</li><li>B(1-T) = TV — D</li><li>∴ B = (TV-D) / (1-T)</li></ul><p>**<br>Buy Amount를 분자와 분모에 모두 합산하는데 그 이유는 DAI를 발행하는 것에서 그치지 않고 담보를 추가 매수해서 Vault에 재예치하기 때문이다.</p><p>아울러 Auto-Buy Target 시점의 LTV가 Auto-Buy Trigger 시점의 LTV보다 항상 높으므로 TV &gt; D가 성립한다</p><ul><li>Auto-Buy Target LTV : 28%</li><li>Auto-Buy Trigger LTV : 20%</li></ul><p><strong>4. 예시</strong></p><ul><li>V = $7,500</li><li>D = $1,500</li><li>Auto-Buy Trigger = 20% (D/V = 20%)</li><li>Target(%) = 28%</li><li>B ≈ 833.33… ( (7,500*0.28 — 1,500) / (1–0.28) )</li><li>V’ ≈ $8,333.33…</li><li>D’ ≈ $2,333.33…</li><li>LTV ≈ 28% (D’/V’ ≈ 28%)</li></ul><p>(V’, D’는 Buy Amount가 합산된 이후의 수치)</p><blockquote><strong>Auto-Sell</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYTWxyZ_LQLZ_Lab1lC7aw.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p><strong>1. 특징</strong></p><ul><li>Flash Mint를 이용해 상환해야 하는 DAI를 선발행한다</li><li>Auto-Sell Trigger, Auto-Sell Target, Minimum Sell Price(선택)를 사전에 정해야한다</li><li>Vault LTV가 높아지면 담보물을 매도해서 DAI를 상환하고 청산 위험을 줄인다</li></ul><p><strong>2. 상환해야 하는 DAI 계산 공식 ( S = (D-TV) / (1-T) )</strong></p><ul><li>Vault TVL = V</li><li>Debt = D</li><li>Sell Amount = S</li><li>Target(%) = T</li><li>V,D는 Auto-Sell이 실행되는 시점을 기준으로 한다</li></ul><p><strong>3. 2번 공식의 도출 과정</strong></p><ul><li>D-S / V-S = T</li><li>D-S = TV -TS</li><li>S(T-1) = TV — D</li><li>∴ S = (D-TV) / (1-T)</li></ul><p>**</p><p>Sell Amount를 분자와 분모에 모두 차감하는데 그 이유는 담보를 매도하는 것에서 그치지 않고 DAI를 상환하는 과정도 포함되기 때문이다.</p><p>Auto-Sell Target 시점의 LTV가 Auto-Sell Trigger LTV보다 항상 낮기 때문에 D &gt; TV가 성립한다</p><ul><li>Auto-Sell Target LTV : 32%</li><li>Auto-Sell Trigger LTV : 38%</li></ul><p>Auto-Sell은 Flashmint Module을 이용하므로 Sell Amount가 곧 Flashmint Amount이다.</p><p><strong>4. 예시</strong></p><ul><li>V = $4,000</li><li>D = $1,520</li><li>Auto-Sell Trigger = 38% (D/V = 38%)</li><li>Target(%) = 32%</li><li>S ≈ 352.94… ( (1,520-4,000*0.32) / (1–0.32) )</li><li>V’ ≈ $3,647.06…</li><li>D’ ≈ $1,167.06…</li><li>LTV ≈ 32% (D’/V’ ≈ 32%)</li></ul><p>(V’, D’는 Sell Amount가 합산된 이후의 수치)</p><blockquote><strong>Stop-Loss</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03YXUSKEm75NOdSxV1pZ9g.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p><strong>1. 특징</strong></p><ul><li>Flash Mint를 이용해 상환해야 하는 DAI를 선발행한다</li><li>Minimum Sell Price 이하로 담보의 가격이 계속해서 하락하는 추세가 이어질 경우 Stop-Loss가 발동할 수 있다</li><li>Minimum Sell Price를 설정하지 않았어도 담보의 가격이 짧은 순간에 폭락할 경우 Stop-Loss가 발동할 수 있다</li><li>강제 청산에서 발생하는 청산인 수수료 비용을 절감할 수 있고 더 큰 손실을 방지할 수 있다</li><li>투자자는 Stop-Loss 발동 이후 자산을 DAI 혹은 담보의 형태로 수령할 수 있는데 DAI의 형태로 수령할 경우 담보를 전액 DAI로 스왑하며 담보의 형태로 수령할 경우 Flashmint Loan 상환에 필요한 금액만 DAI로 스왑한다</li></ul><p>**<br>얼핏 보기에는 Stop-Loss 이후 담보의 형태로 자산을 수령하는 것이 스왑이 덜 발생하므로 투자자에게 유리한 것처럼 느껴질 수 있는데 꼭 그렇다고 단정 지을 수는 없다.</p><p>Stop-Loss가 발동을 했다는 것은 해당 담보물의 가격이 계속해서 하락을 하고 있는 추세라고 해석을 할 수 있는데(반드시 그런 것은 아니지만..) 담보를 수령 후 즉각적인 대응을 할 수 없는 상황이라면 담보의 가격 하락으로 인한 추가 손해에 그대로 노출된다.</p><p>따라서 경우에 따라서는 스왑 비용을 감수하더라도 DAI로 수령하는 것이 손실을 줄이는 방향이 될 수 있다.</p><p><strong>2. 상환해야 하는 DAI</strong></p><ul><li>공식이 따로 없다. Vault에 누적된 전체 부채에 해당하는 DAI를 상환하면 된다</li></ul><p><strong>3. 예시</strong></p><ul><li>V = $5,000</li><li>D = $1,500</li><li>LTV = 30% (D/V = 30%)</li><li>Stop Loss Point = 40%</li></ul><p>위 Vault Position에서 Stop-Loss가 발동하기 위해서는 자산의 가격이 25% 하락해야 하는데 자산의 가격 하락폭은 <strong>1-(LTV/Stop Loss Point)</strong>로 계산을 할 수 있다.</p><p>편의를 위해 Vault Owner가 Auto-Sell을 따로 설정하지 않은 상황에서 자산 가격이 25% 하락했다고 가정을 해보면 V’, D’, 그리고 LTV 값은 아래와 같이 업데이트가 된다.</p><ul><li>Asset Price Drop = 25%</li><li>V’ = $3,750</li><li>D’ =$1,500</li><li>LTV = 40% (D’/V’)</li></ul><p>LTV가 Stop-Loss Point에 도달했으므로 Stop-Loss 프로세스가 진행되면서 D’ 상환에 필요한 DAI가 선발행되고 부채 상환이 진행된다. 이후 Flashmint Loan 상환을 위해 V’의 일부를 사용하게 되는데 이때 유저가 Stop-Loss 이후 수령하기를 희망하는 담보의 종류에 따라 스왑량이 달라진다.</p><p>Stop-Loss 이후 유저는 담보의 자산 가격 하락분(+소정의 수수료)만큼 손해를 보게 되는데 위 경우는 25% + α이다.</p><blockquote><strong>Take-Profit</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BylzFxw-aUPJptifkXBfgg.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><p><strong>1. 특징</strong></p><ul><li>Flash Mint를 이용해 상환해야 하는 DAI를 선발행한다</li><li>Maximum Buy Price 이상으로 담보의 가격이 계속해서 상승을 하는 추세가 이어질 경우 Take-Profit이 발동할 수 있다</li><li>Maximum Buy Price를 설정하지 않았어도 담보의 가격이 짧은 순간에 폭등할 경우 Take-Profit이 발동할 수 있다</li><li>투자자는 Take-Profit 발동 이후 자산을 DAI 혹은 담보의 형태로 수령할 수 있는데 DAI의 형태로 수령할 경우 담보를 전액 DAI로 스왑하며 담보의 형태로 수령할 경우 Flashmint Loan 상환에 필요한 금액만 DAI로 스왑한다</li></ul><p>**</p><p>Stop-Loss와 마찬가지로 비슷한 이유로 Take-Profit도 자산을 DAI의 형태로 수령하는 것이 반드시 유리한 것은 아니다.</p><p><strong>2. 상환해야 하는 DAI</strong></p><ul><li>Stop-Loss와 동일</li></ul><p><strong>3. 예시</strong></p><ul><li>V = $5,000</li><li>D = $1,500</li><li>LTV = 30% (D/V = 30%)</li><li>Take Profit Point = 10%</li></ul><p>위 Vault Position에서 Take-Profit이 발동하기 위해서는 자산의 가격이 200% 상승해야 하는데 자산의 가격 상승폭은 (<strong>LTV/Take Profit Point) -1</strong>로 계산을 할 수 있다.</p><p>편의를 위해 Vault Owner가 Auto-Buy를 따로 설정하지 않은 상황에서 자산 가격이 200% 상승했다고 가정을 해보면 V’, D’, 그리고 LTV 값은 아래와 같이 업데이트가 된다.</p><ul><li>Asset Price Pump= 200%</li><li>V’ = $15,000</li><li>D’ =$1,500</li><li>LTV = 10% (D’/V’)</li></ul><p>LTV가 Take-Profit Point에 도달했으므로 Take-Profit 프로세스가 진행되면서 D’ 상환에 필요한 DAI가 선발행되고 부채 상환이 진행된다. 이후 Flashmint Loan 상환을 위해 V’의 일부를 사용하게 되는데 이때 유저가 Take-Profit 이후 수령하기를 희망하는 담보의 종류에 따라 스왑량이 달라진다.</p><p>Take-Profit 이후 유저는 담보의 자산 가격 상승분(-소정의 수수료)만큼 이득를 보게 되는데 위 경우는 200%-α 이다.</p><blockquote><strong>Take-Profit &amp; Stop-Loss 흐름도 (참고사항)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rbXKXoOp1h2RqAPBaZsXHQ.png" /><figcaption>출처 : Mad Scientist Shiba</figcaption></figure><blockquote><strong>Why Flashmint?</strong></blockquote><p>Auto-Sell, Take-Profit, 그리고 Stop-Loss에서 모두 Flashmint를 활용하고 있는데 왜 그냥 Vault의 담보를 팔아서 DAI를 구하면 되지 무담보로 DAI를 먼저 발행(물론 하나의 트랜잭션 안에서 부채를 상환하니 무담보는 아니라고 우길 수도 있겠지만..)하는 구조를 선택했는지 이해를 할 필요가 있다.</p><p>Auto-Sell, Stop-Loss 과정에서는 Vault Owner의 담보물을 매도하는 과정이 포함이 되는데 두 경우 모두 담보물의 가치가 최초 Vault 생성 시점보다 낮아져 LTV가 상승한 상황으로 볼 수 있다.</p><p>따라서 Stop-Loss가 발동되거나 청산이 되지 않는 선에서 Vault 담보를 꺼내서 DAI로 스왑해야 하는데 Auto-Sell Target에 도달하기 위해선 이 과정을 여러 번 반복해야 할 수도 있다. (여러 트랜잭션에 나눠서 처리)</p><ul><li>LTV가 허락하는 선에서 담보를 인출 ==&gt; DAI로 스왑 후 부채 상환</li><li>if LTV != Auto-Sell Target ==&gt; 위 과정 다시 반복</li><li>(Stop-Loss도 마찬가지로 LTV가 0이 될 때까지 해당 과정을 반복..)</li></ul><p>여기서 문제는 하나의 트랜잭션 안에서 위 작업을 처리하지 못하면 가스비는 둘째 치고 의도치 않은 다양한 리스크에 프로토콜과 투자자 모두 노출된다는 점에 있다.</p><ul><li>예컨대 담보를 인출해서 DAI로 스왑하는 과정에서 담보의 가격이 크게 하락해서 강제 청산이 발생할 수도 있을 것이고 프로토콜이 위 작업을 진행하고 있는데 투자자가 Vault에 자산을 추가로 예치하거나 인출을 하는 행위 등으로 인해 LTV가 변해서 Auto-Sell, Stop-Loss 등이 제 기능을 못할 수도 있다.</li></ul><p>따라서 프로토콜 입장에서는 반드시 위 과정을 하나의 트랜잭션 안에서 처리하는 것이 중요한데 여기에 최적화된 기능이 Flashmint이다. 참고로 통상적으로 Flashmint 함수의 마지막 줄에 Loan을 갚으라고 강제하는 코드가 포함되기 때문에 무담보로 그냥 대출을 받는 경우는 사실상 없다.</p><p>Flashmint로 Exploit를 하는 경우는 대출을 받은 자산으로 다른 자산의 가격을 조작하는 등의 수법을 포함하는 것이지 Flashmint 그 자체로는 악의적인 행위를 하기 어렵다.</p><blockquote><strong>맺음말</strong></blockquote><p>이번 편에서는 MakerDAO의 자동화된 트레이딩 툴인 Auto-Buy(Sell), Stop-Loss, Take-Profit에 대해 알아보았다.</p><p>크립토라는 자산군은 가격 변동성이 매우 높을뿐만 아니라 장이 24시간 돌아가기 때문에 투자자 입장에서 본인의 포지션을 계속해서 모니터링 하는 것이 매우 피로도가 높은 작업이 아닐 수 없다.</p><p>그렇기에 Stop-Loss, Take-Profit 같은 툴이 트레이딩을 할 때 매우 유용한데 일반적으로 오프체인 트레이딩(CEX)에서 많이 사용을 한다.</p><p>MakerDAO는 이런 트레이딩 툴을 온체인에서 CDP의 특성에 맞춰 그들만의 방식으로 구현을 했으며 그 과정에서 Auto-Sell(Buy)와 같이 레버리지 포지션을 조절하는 기능도 추가를 한 셈이다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eb1451dfcd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>