> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Pendle

> Yield tokenization and trading with Pendle

<Warning>
  **Looking for Contributors!** This Skill needs an implementation.

  Contributing a Skill involves:

  1. Writing a reference implementation with full functionality
  2. Adding comprehensive tests
  3. Writing documentation with usage examples

  See the [ethers-provider Skill](https://github.com/evmts/voltaire/tree/main/examples/ethers-provider) for an example of a complete Skill implementation.

  Interested? Open an issue or PR at [github.com/evmts/voltaire](https://github.com/evmts/voltaire).
</Warning>

<Info>
  **Skill** — Copyable reference implementation. Use as-is or customize. See [Skills Philosophy](/concepts/skills).
</Info>

Tokenize and trade yield with Pendle's PT (Principal Token) and YT (Yield Token) system.

## Planned Implementation

### Tokenize Yield

```typescript theme={null}
import { Pendle } from './Pendle.js';

const pendle = Pendle({ provider, router: PENDLE_ROUTER });

// Mint PT and YT from yield-bearing asset
await pendle.mintPyFromToken({
  receiver: userAddress,
  yt: YT_ADDRESS,
  tokenIn: STETH,
  amountIn: parseEther('10'),
  signer,
});
```

### Trade PT/YT

```typescript theme={null}
// Buy PT (fixed yield)
await pendle.swapExactTokenForPt({
  receiver: userAddress,
  market: MARKET_ADDRESS,
  tokenIn: WETH,
  amountIn: parseEther('1'),
  slippage: 0.01,
  signer,
});

// Sell YT
await pendle.swapExactYtForToken({
  receiver: userAddress,
  market: MARKET_ADDRESS,
  amountYtIn: ytBalance,
  tokenOut: WETH,
  slippage: 0.01,
  signer,
});
```

### Redeem at Maturity

```typescript theme={null}
// Redeem PT after maturity
await pendle.redeemPyToToken({
  receiver: userAddress,
  yt: YT_ADDRESS,
  amountPy: ptBalance,
  tokenOut: UNDERLYING,
  signer,
});
```

## Resources

* [Pendle Documentation](https://docs.pendle.finance/)
* [Pendle Contracts](https://github.com/pendle-finance/pendle-core-v2)

## Related

* [lido](/skills/lido) — stETH yield source
* [eigenlayer](/skills/eigenlayer) — Restaking yield
