> For the complete documentation index, see [llms.txt](https://doc.outrun.build/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.outrun.build/en/zh/memeverse-quan-lian-she-qu-gong-shi-qi-dong-qi/omnichain.md).

# 跨链互操作

## 一条 Memecoin，多链共识

Memeverse 基于 LayerZero 构建，Memecoin 本身就是**全链代币（OFT）**。这意味着一个 Memecoin 可以同时在多条链上启动、流通，共识不被单一链困住。

## 多链启动

发起人可以选择在多条链上**同时启动**一个 Memecoin。不同链上的用户都能用本链的 uAsset 参与创世，不必跨链折腾。各链的创世、阶段推进和四池彼此独立：一条链启动成功、进入锁定，另一条链可能因募资不足而退款，互不影响。

## 治理链

每个 Memecoin 启动时会指定一条链作为它的**治理链**：这条链上部署着该 Memecoin 的收益库（YieldVault）和 DAO 治理合约（Governor）。Memecoin 的质押、收益分配、DAO 投票都以治理链为枢纽。为何要单链聚合？因为治理与收益结算需要一个统一的状态中心，跨链分散会让投票权和收益分配难以一致。发起人通常选流动性最好、gas 最优的链作为治理链。

## 跨链质押

Memecoin 可以跨链转移到**治理链**，在那里质押进收益库。无论你原本在哪条链上拿到 Memecoin，都能跨到治理链参与质押、赚取收益、行使治理权——但跨链质押依赖治理链上的收益库已就位，到账后需核验份额，详见下文「跨链的可靠性」。

## 收益跨链聚合

一个 Memecoin 可能在多条链上都有交易，各链产生的手续费收益会**跨链汇聚**到治理链的收益库，统一分配给所有质押者。交易发生在哪条链不重要，收益统一归集。

## 创世积分也跨链

创世积分（GenesisCredit）同样是全链代币，可以跨链转移（详见 [创世积分](/en/zh/memeverse-quan-lian-she-qu-gong-shi-qi-dong-qi/genesis-credit.md)）。积分在主链（发放积分的链）领取后，才能跨链转移；目标链只能收到转移过来的积分，不能直接领取空投。你可以把积分跨到另一条链，参与那里的 Memecoin 创世。

## 跨链的可靠性

Memecoin 与创世积分跨链时，协议要求发送方**精确支付**跨链消息费（多退少补都会回退），并带防重放保护，避免重复到账、重复记账。

跨链转账不是一个单次动作，而是三个阶段，各自可能成功也可能失败，不能混为一谈：

1. **发送**——在源链上执行。消息费不精确，或金额低于跨链最小精度，交易直接回退、资金不动；金额不是最小精度的整数倍时，截断后的部分发送，余量当笔退回。
2. **到账**——目标链铸造出 Memecoin / 创世积分。发送成功后消息进入跨链通道排队投递；目标链暂时无法接收时，协议**不会撤销源链已完成的发送**，消息会在目标链重新投递。极少数情况下（目标链接收消息的预算配置过低），可能出现源链已销毁、目标链迟迟未铸造的滞留状态——资金不丢失，但停留在「已发出、未到账」，需要手动恢复。
3. **落位**——到账后的后续动作，如质押进收益库。这一步失败会退回、可重新执行；目标收益库不存在时，到账的 Memecoin 直接转给接收人，而不是自动质押——**不产生质押份额与投票权**。

| 阶段 | 失败情况              | 结果                          |
| -- | ----------------- | --------------------------- |
| 发送 | 消息费不精确 / 金额低于最小精度 | 交易直接回退，资金不动                 |
| 发送 | 金额非最小精度整数倍        | 截断部分发送，余量当笔退回               |
| 到账 | 目标链暂时无法接收         | 不撤销源链，消息在目标链重新投递            |
| 到账 | 目标链接收预算配置过低       | 源链已销毁、目标链未铸造的滞留，需手动恢复       |
| 落位 | 收益库不存在            | 到账 Memecoin 直接转给接收人，不产生质押份额 |

![跨链三阶段：发送、到账、落位](https://455963667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNqvI82LfLjzpO8GXdwTv%2Fuploads%2Fgit-blob-306b8b43fb7287a9afe7920c6c187d9e20e9c966%2Fomnichain-stages.svg?alt=media)

所以「跨链发送成功」「目标链到账成功」「目标链质押成功」是三件不同的事：前一步成功不代表后一步成功。

收益库什么时候会不存在？它在治理链完成创世、进入锁定阶段时才部署。如果发起跨链质押时，治理链还没走到这一步（或该 Memecoin 最终创世失败、进入退款阶段），收益库就不存在，跨链到账只会「只到账、不质押」；即使治理链收益库已就位，源链自身创世未完成时发起，也会出现同样的降级。跨链质押发起时没有阶段校验，发起前也无法预先得知对端收益库是否就位。

因此，跨链质押到账后，请**核验收益库份额**，而不只是核对代币余额：份额到账才代表质押真正生效、才有收益和投票权。若到账的只有裸币、没有份额，说明这次质押未生效——可在收益库就位后重新发起；若该 Memecoin 最终未能成功启动，则不会有收益库，也就无法质押。

> 注：uAsset（OutStake 侧）的跨链另带速率限制，防异常大额流出；Memeverse 侧的 Memecoin / 创世积分跨链采用不同的安全约束。

## 全链带来什么

全链原生让 Memeverse 的 Memecoin 从一出生就是**多链资产**：

* 触达多链用户，不局限于某条链的社区。
* 资产身份、治理与收益跨链统一；各链流动性独立建池，按链分布。
* 与 OutStake 的全链 uAsset 天然衔接，资本在链间自由流动。

这是 Outrun「全链」定位在 Memeverse 的直接体现。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.outrun.build/en/zh/memeverse-quan-lian-she-qu-gong-shi-qi-dong-qi/omnichain.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
