Skip to main content
The LI.FI Intent System modularizes three components of the cross-chain intent flow:
  1. Input Settler – Handles the source chain funds.
  2. Output Settler – Handles the destination chain funds.
  3. Oracle System – Makes Output Settlement statements available for the input settler.
LI.FI Intent Calls Diagram Historically, these components have been intertwined, which presented scaling challenges. A componentized approach allows for greater flexibility and extensibility, enabling different input and output settlement schemes and validation layers to be mixed and matched.

Input Settlement

The input settlement scheme manages user deposits and releases funds to solvers once intents are fulfilled. The LI.FI intent currently implements two input settlement scheme: The intent system imposes no restrictions on the implementation of input settlements. Input settlements can access proven outputs through validation layers by calling efficientRequireProven. If an order contains multiple outputs and the outputs are filled by different solvers, the filler of the first output in the order specification is considered the canonical solver. Learn more about Input Settlement →

Output Settlement

The output settlement scheme handles the delivery of assets on destination chains. It imposes no interface requirements, order structure, or order type, except that an interface to validate payloads must be provided:
interface IPayloadCreator {
    function arePayloadsValid(
        bytes[] calldata payloads
    ) external view returns (bool);
}
This allows the output settlement scheme to be incredibly flexible; it can support any order type on any virtual machine, as long as the filled order can be expressed as an opaque bytes array. The initial version of the intent system uses MandateOutput, with the encoding described by MandateOutputEncodingLib.sol. If the input settlement could validate this call, the inputs could be appropriately paid to the solver. However, this information only exists on the output settlement on the output chain. Learn more about Output Settlement →

Oracle System

The oracle system ferries valid payloads from the output chain to the input chain. It serves as the bridge that confirms output delivery has occurred. Any validation layer can be added as long as it supports validating a payload from a remote chain. Currently available validation layers include: Before emitting messages, the oracle is expected to check if one or more payloads are valid and then ship them to the input chain:
function submit(address proofSource, bytes[] calldata payloads) external payable {
    // Check if the payloads are valid.
    if (!IPayloadCreator(proofSource).arePayloadsValid(payloads)) revert NotAllPayloadsValid();

    // Payloads are valid. We can submit them on behalf of proofSource.
    _submit(proofSource, payloads);
}
Oracles may use custom message encodings, custom relaying properties, custom interfaces, or other special integration concerns. Internal oracle messaging is not standardized. On the input chain, the oracle system is expected to validate the payload(s) through a virtual machine local hash:
interface IValidationLayer {
    /**
     * @notice Check if a series of data has been attested to.
     * @dev Does not return a boolean; instead, it reverts if false.
     * This function returns true if proofSeries is empty.
     * @param proofSeries remoteOracle, remoteChainId, and dataHash encoded in chunks of 32*4=128 bytes.
     */
    function efficientRequireProven(
        bytes calldata proofSeries
    ) external view;
}
Using only the payload hash makes the system more efficient, as less data is passed around. No attempt is made at standardizing the payload. As a result, there may be incompatibilities between the input and output settlement layers. Learn more about Validation Layers →

Security Assumptions

The intent system includes resource locks, which create trust boundaries between key actors:
  • Sponsors (users) trust that arbiters won’t fraudulently finalize issued locks.
  • Arbiters and solvers trust allocators not to co-sign overlapping locks exceeding user deposits.
No single actor can independently access funds, creating a secure environment for cross-chain transactions. For more about security and intent validation, see order-validation →

Integration Points

LI.FI intent is designed to be highly composable, with different components capable of being swapped out as needed:
  • Input Settlement: New resource lock standards and standard intent interfaces can be integrated.
  • Output Settlement: New order types and fulfillment mechanisms can be added.
  • Oracle System: Different cross-chain messaging protocols and proof layers can be supported.
Integrators can freely pick and choose which components to use for which swaps. This gives intent issuers maximum flexibility to describe their desired end state.

Same Chain Intents

LI.FI intent was designed for composable cross-chain swaps but has been optimised to support same-chain intents in a compatible and familiar envelope. Same chain intents uses the Output Settlement as a oracle system. To use LI.FI Intent for same chain swaps, the intent has to be configured with the Output Settler as the input and output oracle. Solver filling same chain intents can optionally use a callback to receive the inputs before delivering the outputs.
Same Chain Intent without Callback

Same Chain Intent

Same Chain intent with Callback

Same Chain Intent with callback

To receive inputs before delivering outputs, your solver has to support orderFinalised. When using the callback to receive inputs, it is important to fill and setAttestations for the intent outputs within the callback.
function orderFinalised(
    uint256[2][] calldata inputs,
    bytes calldata call
) external
For more about same-chain callback, see the same-chain test case. For more about same chain intents, see Output Settler as Oracle

Smart Contracts

Currently maintained LI.FI Intent deployment can be found below. They are deployed to the same addresses for each chain and can be permissionlessly deployed to new chains. Mainnet: [Ethereum, Base, Arbitrum] Testnet: [Sepolia, Base Sepolia, Arbitrum Sepolia, Optimism Sepolia]
  • Input Settler Compact: 0x0000000000cd5f7fDEc90a03a31F79E5Fbc6A9Cf
  • Input Settler Escrow: 0x000025c3226C00B2Cdc200005a1600509f4e00C0
  • Output Settler: 0x0000000000eC36B683C2E6AC89e9A75989C22a2e
  • Polymer Oracle Mainnet: 0x0000006ea400569c0040d6e5ba651c00848409be
  • Polymer Oracle Testnet: 0x00d5b500ECa100F7cdeDC800eC631Aca00BaAC00
  • Uniswap The Compact: 0x00000000000000171ede64904551eeDF3C6C9788