· 项目推荐 · 18 min read

Pendle V2 - part1

Pendle V2 (Part 1/3) — 基金会

Pendle V2 (Part 1/3) — 基金会

Pendle V2 (Part 1/3) — 基金会

Introducing the 1st key component of Pendle V2,a brand new AMM。This post will serve to walk through the various features while the whitepaper is available here for a technical dive into the mechanics。

介绍 Pendle V2 的第一个关键组件,一个全新的 AMM。这篇文章将用于介绍各种功能,而白皮书可在此处获得,以便对机制进行技术深入研究。

Pendle V1 settled over notional $350,000,000 worth of yield trades within a year of launch,and we got a chance to experiment with a wide range of assets,from stablecoins to tokens with 80,000% APR。Being able to experience this first-hand provided us with insights that we would never have considered before。

Pendle V1 在推出后的一年内结算了价值超过 350,000,000 美元的名义收益交易,我们有机会尝试各种资产,从稳定币到年利率为 80,000%的代币。能够亲身体验这一点为我们提供了以前从未考虑过的见解。

We’ve consolidated all this into V2 and rebuilt the AMM。We are truly excited to bring it to life as a foundational building block for yield markets。We’d also like to credit the Notional Finance team for their novel AMM which enables fixed rates trading,one that we’ve adopted as the baseline model。We’ve conducted a study in the whitepaper which illustrates how significantly it improves on the current popular AMM models。

我们已将所有这些整合到 V2 中,并重建了 AMM。我们真的很高兴能将其作为收益市场的基础组成部分。我们还想感谢 Notional Finance 团队的新颖 AMM,该 AMM 支持固定利率交易,我们已将其作为基准模型。我们在白皮书中进行了一项研究,说明了它与当前流行的 AMM 模型相比的显着改进。

The V2 AMM introduces multiple features focusing on friendly liquidity provision,capital efficiency and flexibility。Here are some key points:

V2 AMM 引入了多种功能,专注于友好的流动性提供,资本效率和灵活性。以下是一些关键点:

  • LP 的最小无常损失 (IL);Minimal impermanent loss (IL) for LPs
  • 资本效率比 V1 提高 200 倍;Up to 200x improvement on capital efficiency from V1
  • 低滑点交易;Low-slippage trades
  • LP 从 2 种资产的交易中赚取费用,同时仅提供 1 种资产的流动性;LPs earn fees from the trading of 2 assets while only providing liquidity for 1
  • AMM 可以优化任何特定的收益率范围,以优化流动性;AMM can be optimized any specific yield ranges to optimize liquidity

A quick primer to PT and YT 👇

PT 和 YT 的快速入门 👇

资本效率 Capital Efficiency

1 个池,2 个市场 1 Pool,2 Markets

Say goodbye to liquidity fragmentation,PTs and YTs can both be traded using a single pool of PT liquidity,enabled by utilizing flash swaps!

告别流动性碎片化,PT 和 YT 都可以使用单一的 PT 流动性池进行交易,通过利用闪兑来实现!

This has benefits on multiple fronts:

这在多个方面都有好处:

LPs have better returns with their liquidity working doubly hard。They earn fees coming from 2 markets while only providing liquidity for 1 asset。

LP 的流动性加倍,回报率更高。他们赚取来自 2 个市场的手续费,同时只为 1 种资产提供流动性。

Traders benefit from deeper liquidity and a much improved UX as PT and YT swaps can all be executed on Pendle。V1 suffered from fragmentation as it required 2 separate pools for trading PT and YT。

交易者受益于更深层次的流动性和大幅改善的用户体验,因为 PT 和 YT 兑换都可以在 Pendle 上执行。V1 遭受了碎片化,因为它需要 2 个单独的池来交易 PT 和 YT。

For Pendle as a protocol,PT trades now contribute to protocol revenue (which previously wasn’t the case)。PENDLE incentives will also be better utilized as they can be focused on a single pool to improve both PT and YT liquidity。

对于 Pendle 作为协议,PT 交易现在为协议收入做出了贡献 (以前不是这样)。PENDLE 激励措施也将得到更好的利用,因为它们可以集中在一个池中,以提高 PT 和 YT 的流动性。

*请参阅附录以了解其工作原理。Refer to the appendix on how it works

专门用于收益交易 Specialized for Yield Trading

Introducing 2 concepts to enhance liquidity depth — Concentrated Liquidity and a Dynamic Curve

引入两个概念来增强流动性深度——集中流动性和动态曲线

集中流动性 Concentrated Liquidity

Yields are often cyclical in nature and typically swing between highs and lows (much like a pendulum!)。Typically,the floor and ceiling for the yield of a liquid asset are much easier to predict than its price。

收益率本质上通常是周期性的,通常在高点和低点之间摆动 (很像钟摆!)。通常,流动资产收益率的下限和上限比其价格更容易预测。

For example,the annual yield of staked ETH is likely to fluctuate in a band of 0.5–12%. Knowing the rough yield range of an asset enables us to concentrate liquidity within that range。

例如,质押 ETH 的年收益率可能会在 0.5-12% 的范围内波动。了解资产的粗略收益率范围使我们能够将流动性集中在该范围内。

Given the previous example,the V2 AMM can be optimized for such a range on staked ETH。The result is something conceptually similar to UniV3’s concentrated liquidity whereby liquidity is utilized much more effectively,while still retaining fungible LP tokens。

鉴于前面的示例,V2 AMM 可以针对质押 ETH 的此类范围进行优化。这个结果在概念上类似于 UniV3 的集中流动性,流动性得到更有效的利用,同时仍保留可替代的 LP 代币。

According to our simulation in this yield range,Pendle V2 improves capital efficiency by over 70x,making the liquidity of that pool equivalent to 70x deeper than a V1 pool of the same size。

根据我们在此收益率范围内的模拟,Pendle V2 将资本效率提高了 70 倍以上,使该池的流动性相当于相同规模的 V1 池的 70 倍。

动态曲线 Dynamic Curve

The AMM model’s curve is specifically designed for yield trading。As time passes,PT and YT prices naturally shift as they approach maturity。The AMM curve automatically shifts to account for these changes,such that one will only trade the interest rate changes and not the prices of the individual assets。

AMM 模型的曲线专为收益交易而设计。随着时间的流逝,PT 和 YT 价格在接近到期时自然会发生变化。AMM 曲线会自动移动以考虑这些变化,因此人们将只交易利率变化,而不是单个资产的价格。

The curve shifts also adjust the model to be more capital efficient as we approach maturity by taking into account the fact that PT trades closer to the underlying asset price (for example,it becomes infinitely capital efficient at the maturity where PT trades 1-to-1 against the underlying asset)。

曲线偏移还通过考虑 PT 交易更接近标的资产价格的事实,调整模型以提高资本效率,因为我们接近到期日 (例如,在 PT 对标的资产进行 1 比 1 交易的到期日,它变得无限资本高效)。

最小无常损失 Minimal IL

To further enhance the improvements to liquidity providers,the V2 AMM is set up such that IL is not a concern。IL is negligible as LPs provide PT and its corresponding yield-bearing asset,which are closely correlated。On top of that,the maximum IL is deterministic for liquidity provision to maturity。

为了进一步加强对流动性提供者的改进,V2 AMM 的设置使得 IL 不是一个问题。IL 可以忽略不计,因为 LP 提供 PT 及其相应的收益率资产,两者密切相关。最重要的是,最大 IL 对于流动性供应至到期具有确定性。

As a bonus for liquidity providers:the assets provided also generate yield。As such,Pendle V2 LPs will be earning yields from:

作为流动性提供者的奖励:所提供的资产也会产生收益。因此,Pendle V2 LP 将从以下方面获得收益:

  1. PT 提供的固定收益;Fixed yield from the PT provided
  2. 收益资产提供的收益 ¹;Yields from yield-bearing assets provided¹
  3. Swap 手续费 (来自 PT 和 YT 交易);Swap fees (from both PT and YT trades)
  4. PENDLE 激励措施;PENDLE incentives

With minimal IL alongside these yield sources,there is little downside in providing liquidity in Pendle V2 if the yield-bearing assets are being held as part of a longer-term strategy。

由于这些收益来源的 IL 极小,如果将收益资产作为长期策略的一部分持有,那么在 Pendle V2 中提供流动性几乎没有负面影响。

更多功能 More Features

Auto-routing is built into V2,allowing anyone to trade or provide liquidity for PTs and YTs with any major asset。This is key to enable the smooth UX everyone is used to and allow Pendle users to take advantage of the deep liquidity that already exists on major DEXes。

V2 内置了自动路由功能,允许任何人使用任何主要资产交易或为 PT 和 YT 提供流动性。这是实现每个人都习惯的流畅用户体验的关键,并允许 Pendle 用户利用主要 DEX 上已经存在的深度流动性。

V2 also introduces a dynamic fee rate to improve the trading experience where fees are based on interest rates instead of the absolute amount。This means that the absolute fees per dollar trade will decrease over time,as the same change in interest is equivalent to a smaller change in absolute price。E.g. There will be less swap fee from trading the same yield on a 1-month maturity vs a 1-year maturity。

V2 还引入了动态费率,以改善交易体验,其中费用基于利率而不是绝对金额。这意味着每美元交易的绝对费用将随着时间的推移而减少,因为相同的利息变化相当于绝对价格的较小变化。例如,与1年到期相比,在 1 个月期限交易相同收益率的交易费会更少。

Significant efforts have also been made to gas optimization to ensure transactions on V2 will be as cost-efficient as possible。

在 gas 优化方面也做出了重大努力,以确保 V2 上的交易将尽可能具有成本效益。

To further unlock the composability of fixed-rate products on Pendle,we’ve adapted a TWAP oracle for interest rates on Pendle’s V2 AMM。The TWAP oracle is adapted from UniswapV3,which allows for querying the TWAP of any duration for up to 9 days with no extra infrastructure needed。We’re beyond excited to see what can be built on top of Pendle,e.g. fixed rate lending/borrowing with PT,leveraged fixed rate,etc.

为了进一步解锁 Pendle 上固定利率产品的可组合性,我们针对 Pendle 的 V2 AMM 的利率调整了 TWAP 预言机。TWAP 预言机改编自 UniswapV3,它允许查询任何持续时间的 TWAP 长达9天,无需额外的基础设施。我们非常兴奋地看到可以在 Pendle 之上构建什么,例如固定利率 PT 贷款/借款,杠杆固定利率等。

下一步是什么 What’s Next

This first post has shared the key features of the V2 AMM which will act as the foundational infrastructure for yield markets。Part 2 will elaborate on how we will enable open,permissionless access for everyone。

第一篇文章分享了 V2 AMM 的主要功能,它将作为收益市场的基础基础设施。第 2 部分将详细说明我们将如何为每个人实现开放、无需许可的访问。

Until then,stay up-to-date by following our Twitter and joining the community

在此之前,请关注我们的 Twitter 并加入社区,了解最新信息。

附录 Appendix

YT 与 PT AMM 的兑换 YT Swaps with PT AMM

The V2 AMM is designed specifically for trading fixed rates with PT in focused ranges。

V2 AMM 专为在集中范围内交易固定利率而设计。

In V2,PT is always traded against its underlying asset。By doing so (e.g. PT-aUSDC / aUSDC pool)¹,IL is significantly mitigated by the high correlation between both assets。

在 V2 中,PT 始终与其标的资产进行交易。通过这样做 (例如 PT-aUSDC/aUSDC 池) ¹,两种资产之间的高度相关性显著缓解了 IL。

Swapping PT is a straightforward process of swapping between the 2 assets in the pool,while YT swaps utilize flash swaps in the PT pools。

兑换 PT 是在池中的 2 个资产之间进行交换的简单过程,而兑换 YT 则利用 PT 池中的闪兑。

As PT and YT can be minted from and redeemed to 1 unit of the underlying asset,we can express the following price relationship:

由于 PT 和 YT 可以从标的资产的 1 个单位铸造和赎回,我们可以表示以下价格关系:

P(PT) + P(YT) = P(标的资产)

Note:P(Asset) represents the price of Asset

注:P (资产) 代表资产价格

Knowing that YT price has an inverted correlation against PT price,we made use of this price relationship to route YT transactions through PT pools,effectively making use of one pool for both YT and PT trades。

知道 YT 价格与 PT 价格呈反比相关性,我们利用这种价格关系通过 PT 池路由 YT 交易,有效地利用一个池进行 YT 和 PT 交易。

How does it work?Let’s run through the steps with aUSDC as an example。

它是如何工作的?让我们以 aUSDC 为例完成这些步骤。

购买 YT-aUSDC Buying YT-aUSDC:

  1. 买方将 aUSDC 发送到兑换合约中 (从任何主要代币自动路由);Buyer sends aUSDC into the swap contract (auto-routed from any major token)
  2. 合约从池中借入更多 aUSDC;Contract borrows more aUSDC from the pool
  3. Mint 来自所有 aUSDC 的 PT-aUSDC 和 YT-aUSDC;Mint PT-aUSDC and YT-aUSDC from all of the aUSDC
  4. 将 YT 发送给买家;Send the YTs to the buyer
  5. PT 以 aUSDC 出售,以偿还步骤 2 中的贷款;The PTs are sold for aUSDC to repay the loan from step 2

卖出 YT-aUSDC;Selling YT-aUSDC:

  1. 卖方发送 YT-aUSDC 到兑换合约;Seller sends YT-aUSDC to swap contract
  2. 合约从池中借入等量的 PT-aUSDC;Contract borrows an equivalent amount of PT-aUSDC from the pool
  3. YT 和 PT 用于赎回 USDC;The YTs and PTs are used to redeem aUSDC
  4. aUSDC 的一部分被交换为 PT-aUSDC,以偿还步骤 2 中的贷款;A portion of the aUSDC is swapped to PT-aUSDC to repay the loan from step 2
  5. aUSDC 被发送给卖家 (或路由到任何主要代币,例如 ETH、USDC、wBTC 等);aUSDC is sent to the seller (or routed to any major tokens,e.g. ETH,USDC,wBTC,etc)

As shown above,YT trades are executed through PT/ybToken pool。As the pool accommodates both PT and YT swaps,LPs are expected to earn fees from both YT and PT swaps。Even though the pools consist of PTs and SYs,users can trade PT and YT with any major tokens supported,Pendle contracts will automatically route the tokens into the necessary assets。

如上所示,YT 交易通过 PT/ybToken 池执行。由于池同时容纳 PT 和 YT 的兑换,因此 LP 预计将从 YT 和 PT 的兑换中赚取费用。即使池由 PTs 和 SYs 组成,用户也可以使用支持的任何主要代币交易 PT 和 YT,Pendle 合约会自动将代币路由到必要的资产中。

¹ V2 AMM supports PT-ybToken / sy-ybToken where SY (standardized yield) is a standardized wrapped version of any ybTokens。Read more here。E.g. sy-aUSDC is simply wrapped aUSDC and is used to mint PT-aUSDC and YT-aUSDC。

¹ V2 AMM 支持 PT-ybToken/sy-ybToken,其中 SY (标准化收益率) 是任何 ybTokens 的标准化包装版本。在此处阅读更多内容。例如,sy-aUSDC 被简单地包装为 aUSDC,用于铸造 PT-aUSDC 和 YT-aUSDC。

Share:
Back to Blog