> ## 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 意图启用链上竞争和灵活的订单类型，让求解器优化结算并捕获跨链机会。

目前，只有一个输出结算器存在：– [`OutputSettlerCoin.sol`](https://github.com/openintentsframework/oif-contracts/blob/3e4682f4366a6dd0aa46be59b5922c2231a52d41/src/output/coin/OutputSettlerCoin.sol) – 它支持四种订单类型：简单限价订单、荷兰式拍卖、独家限价订单和独家荷兰式拍卖。有关特定订单类型的更多详细信息，请参阅[拍卖](/zh-Hans/lifi-intents/for-solvers/auctions)部分。

## CoinFiller

要配置使用哪种拍卖类型，请设置关联的 `output.context`。

```solidity theme={"system"}
struct MandateOutput {
    ...
    bytes call;
    bytes context;
}`;
```

使用以下伪代码：

```solidity theme={"system"}
uint256 slope;
uint256 stopTime;
string orderType; // "limit" 或 "dutch"

if (orderType == "limit") fulfillmentContext = "0x" || fulfillmentContext = "0x00";
if (orderType == "dutch") fulfillmentContext = abi.encodePacked(0x01, slope, stopTime);
```

特别是对于荷兰式拍卖，如果订单包含多个输出，则只有第一个输出将作为拍卖运行。其余的将解析为最差价格。这是因为求解器只有动力在订单的第一个输出上竞争，因为一旦有人填充剩余的输出，该输出的获胜者就是整个订单的获胜者。
