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

# 金库存款配方

> 通过 LI.FI Composer 存入 Morpho、Euler、Felix Vanilla、Neverland 和其他金库协议的复制粘贴配方。

通过 Composer 存入支持的金库协议的复制粘贴配方。

<Note>
  所有配方都使用 `GET /quote` 端点。相同的 `toToken` 地址适用于 `POST /advanced/routes` 和 LI.FI SDK。完整集成指南请参见 [API 集成](/composer/guides/api-integration) 或 [SDK 集成](/composer/guides/sdk-integration)。
</Note>

***

## Morpho 金库（V1 和 V2）

[Morpho](https://morpho.org/) 是一个具有优化金库策略的借贷协议。Composer 支持 V1 和 V2 金库。

### 同链：USDC → Base 上的 Morpho 金库

这是原始 Composer 文档中的示例：将 1 USDC 存入 Base 上的 Morpho 金库。

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=8453&toChain=8453&fromToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&toToken=0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=1000000'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: 8453,                                              // Base
      toChain: 8453,                                                // Base (同链)
      fromToken: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',     // Base 上的 USDC
      toToken: '0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A',       // Base 上的 Morpho 金库代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: '1000000',                                        // 1 USDC (6 位小数)
    },
  });
  ```
</CodeGroup>

| 参数           | 值                                            | 说明                  |
| ------------ | -------------------------------------------- | ------------------- |
| `fromChain`  | `8453`                                       | Base                |
| `toChain`    | `8453`                                       | Base (同链)           |
| `fromToken`  | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` | Base 上的 USDC        |
| `toToken`    | `0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A` | Base 上的 Morpho 金库代币 |
| `fromAmount` | `1000000`                                    | 1 USDC (6 位小数)      |

### 跨链：Ethereum 上的 ETH → Base 上的 Morpho 金库

跨链 Composer：使用来自 Ethereum 的 ETH 存入 Base 上的 Morpho 金库，全部在单个用户流程中完成。路由引擎自动确定最优路径（跨链、兑换、存款）。

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=1&toChain=8453&fromToken=0x0000000000000000000000000000000000000000&toToken=0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=100000000000000000'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: 1,                                                 // Ethereum
      toChain: 8453,                                                // Base
      fromToken: '0x0000000000000000000000000000000000000000',       // ETH (原生)
      toToken: '0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A',       // Base 上的 Morpho 金库代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: '100000000000000000',                             // 0.1 ETH (18 位小数)
    },
  });
  ```
</CodeGroup>

<Note>
  跨链 Composer 流程需要通过 `GET /status` 进行状态轮询。完整执行流程请参见 [跨链 Composer 模式](/composer/guides/cross-chain-compose)。
</Note>

***

## Euler 金库

[Euler](https://www.euler.finance/) 是一个借贷协议。Composer 支持存款和取款操作。

### 同链：存入 Euler 金库

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=CHAIN_ID&toChain=CHAIN_ID&fromToken=SOURCE_TOKEN_ADDRESS&toToken=EULER_VAULT_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=AMOUNT_IN_SMALLEST_UNIT'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: CHAIN_ID,
      toChain: CHAIN_ID,
      fromToken: 'SOURCE_TOKEN_ADDRESS',
      toToken: 'EULER_VAULT_TOKEN_ADDRESS',       // Euler 金库代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: 'AMOUNT_IN_SMALLEST_UNIT',
    },
  });
  ```
</CodeGroup>

<Tip>
  将 `EULER_VAULT_TOKEN_ADDRESS` 替换为您目标金库的特定 Euler 金库代币地址。您可以在 [Euler 应用](https://www.euler.finance/) 上找到金库代币地址。
</Tip>

***

## Felix Vanilla 金库

[Felix Vanilla](https://www.usefelix.xyz/) 金库支持存款和取款。

### 同链：存入 Felix Vanilla 金库

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=CHAIN_ID&toChain=CHAIN_ID&fromToken=SOURCE_TOKEN_ADDRESS&toToken=FELIX_VAULT_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=AMOUNT_IN_SMALLEST_UNIT'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: CHAIN_ID,
      toChain: CHAIN_ID,
      fromToken: 'SOURCE_TOKEN_ADDRESS',
      toToken: 'FELIX_VAULT_TOKEN_ADDRESS',       // Felix Vanilla 金库代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: 'AMOUNT_IN_SMALLEST_UNIT',
    },
  });
  ```
</CodeGroup>

***

## Neverland 金库

[Neverland](https://neverland.money/) 金库支持存款和取款。

### 同链：存入 Neverland 金库

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=CHAIN_ID&toChain=CHAIN_ID&fromToken=SOURCE_TOKEN_ADDRESS&toToken=NEVERLAND_VAULT_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=AMOUNT_IN_SMALLEST_UNIT'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: CHAIN_ID,
      toChain: CHAIN_ID,
      fromToken: 'SOURCE_TOKEN_ADDRESS',
      toToken: 'NEVERLAND_VAULT_TOKEN_ADDRESS',   // Neverland 金库代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: 'AMOUNT_IN_SMALLEST_UNIT',
    },
  });
  ```
</CodeGroup>

***

## Pendle 收益代币

[Pendle](https://www.pendle.finance/) 实现收益代币化。Composer 支持存款和取款。

### 同链：存入 Pendle

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=CHAIN_ID&toChain=CHAIN_ID&fromToken=SOURCE_TOKEN_ADDRESS&toToken=PENDLE_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=AMOUNT_IN_SMALLEST_UNIT'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: CHAIN_ID,
      toChain: CHAIN_ID,
      fromToken: 'SOURCE_TOKEN_ADDRESS',
      toToken: 'PENDLE_TOKEN_ADDRESS',             // Pendle 收益代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: 'AMOUNT_IN_SMALLEST_UNIT',
    },
  });
  ```
</CodeGroup>

***

## 仅存款协议

以下协议仅支持**存款**（无法通过 Composer 取款）：

* **[Maple](https://maple.finance/)** — 借贷协议
* **[Ethena](https://ethena.fi/)** — USDe 到 sUSDe，ENA 到 sENA 转换
* **[Kinetiq](https://kinetiq.xyz/)** — 质押（参见 [质押配方](/composer/recipes/staking)）

对于这些协议，使用相同的 `GET /quote` 模式，将协议的金库/质押代币作为 `toToken`。

***

## 通用模式

每个金库存款配方都遵循相同的模式：

```
GET /quote
  fromChain  = 源链 ID
  toChain    = 目标链 ID（相同或不同）
  fromToken  = 您起始的代币
  toToken    = 金库代币地址（这会触发 Composer）
  fromAmount = 最小单位的金额
  fromAddress = 您的钱包
  toAddress   = 您的钱包（接收金库代币）
```

**唯一的 Composer 特定细节**是 `toToken` 必须是[支持的协议](/composer/reference/supported-protocols)的金库代币地址。其他所有内容都与标准 LI.FI 兑换或跨链请求相同。

***

## 下一步

<CardGroup cols={2}>
  <Card title="质押配方" icon="coins" href="/composer/recipes/staking">
    Lido wstETH、EtherFi、Kinetiq 质押配方
  </Card>

  <Card title="借贷配方" icon="building-columns" href="/composer/recipes/lending">
    Aave V3、HyperLend、Seamless 借贷配方
  </Card>

  <Card title="支持的协议" icon="list" href="/composer/reference/supported-protocols">
    支持的协议和功能的完整列表
  </Card>

  <Card title="跨链模式" icon="bridge" href="/composer/guides/cross-chain-compose">
    单个流程中的跨链 + 存款
  </Card>
</CardGroup>
