> ## 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.

# Overview

> Runnable Composer flows for common tasks, on one chain or across chains, with a pointer to the SDK examples repo.

Each recipe is one runnable task: the SDK code, how to run it, and what to check in the compile result.

## Same-chain

> [card] [Swap and deposit](https://docs.li.fi/composer/composer-api/recipes/swap-and-deposit.md)
>
> Swap WETH to USDC, then deposit the USDC into Aave. You pick each step.

> [card] [Split a deposit across vaults](https://docs.li.fi/composer/composer-api/recipes/split-deposit.md)
>
> Divide USDC between an Aave and a Morpho vault.

> [card] [Deposit with a server-planned route](https://docs.li.fi/composer/composer-api/recipes/server-planned-route.md)
>
> Composer plans up to two hops (swap included) from USDT into an Aave position, with `sdk.route`.

> [card] [Add liquidity on Uniswap](https://docs.li.fi/composer/composer-api/recipes/uniswap-liquidity.md)
>
> Add to a V2 pair from one token, or mint a V3 position.

> [card] [Consolidate tokens into USDC](https://docs.li.fi/composer/composer-api/recipes/consolidate-to-usdc.md)
>
> Swap several stablecoins into USDC in one transaction.

## Cross-chain flows

> [card] [Bridge and deposit](https://docs.li.fi/composer/composer-api/recipes/bridge-and-deposit.md)
>
> Bridge USDC to Base and deposit it into Aave, with one signature.

> [card] [Pay cross-chain](https://docs.li.fi/composer/composer-api/recipes/pay-cross-chain.md)
>
> Pay exact amounts to a payee and a fee recipient on Base, from ETH on Arbitrum. One signature: both get paid or neither does.

To only send tokens to an address on another chain, use [`lifi.bridge`](https://docs.li.fi/composer/composer-api/ops/lifi-bridge#example) with a `destination`; see [Which cross-chain path?](https://docs.li.fi/composer/composer-api/concepts/cross-chain-flows.md#which-cross-chain-path).

## More examples

The [`composer-sdk-examples`](https://github.com/lifinance/composer-sdk-examples/tree/main/examples) repo has about 40 runnable examples. A few cover tasks these recipes do not:

* [`aaveBorrow.ts`](https://github.com/lifinance/composer-sdk-examples/blob/main/examples/aaveBorrow.ts): supply collateral and borrow from Aave.
* [`callContract.ts`](https://github.com/lifinance/composer-sdk-examples/blob/main/examples/callContract.ts): call an arbitrary contract with `core.call`.
* [`simulateCompiledSwap.ts`](https://github.com/lifinance/composer-sdk-examples/blob/main/examples/simulateCompiledSwap.ts): simulate a compiled transaction with `sdk.simulate`.

> [!NOTE]
>
> The examples repo may pin an older SDK version. These recipes target `@lifi/composer-sdk` and `@lifi/compose-spec` 0.14.0.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.