> For the complete documentation index, see [llms.txt](https://hxz-1.gitbook.io/redelegator-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hxz-1.gitbook.io/redelegator-finance/how-redelegator-works/stake-flow-lido.md).

# Stake Flow (Lido)

The canonical run. Suggestion chip: **"Stake 0.00001 USDC on Lido — allow Lido only, prevent spending above the cap"** → wstETH back in your wallet, end-to-end on Base mainnet.

### Flow Overview

#### 1. Intent

Type the intent or tap the suggestion chip in the composer.

<figure><img src="/files/YoJWogzf2Ws77WuVlPTq" alt=""><figcaption></figcaption></figure>

#### 2. Reasoning (Venice AI)

`/api/venice/reasoning` turns the intent into a zod-validated `Strategy` — budget, allocation to Lido, spend cap.

<figure><img src="/files/dAKrdrRBEqHdQILJSsy6" alt=""><figcaption></figcaption></figure>

#### 3. One signature (EIP-7715)

MetaMask prompts for a single `erc20-token-periodic` grant for USDC to the Orchestrator. Off-chain, no gas.

<figure><img src="/files/lCyyZKoPz4IbN4KtETJX" alt="" width="184"><figcaption></figcaption></figure>

#### 4. Redelegation chain

`/api/execute` builds Orchestrator → Dex Aggregator → Liquid Staking → 1Shot target, each hop narrowed by an `Erc20TransferAmount` caveat.

#### 5. Gasless redemption (1Shot)

The bundle goes to the 1Shot relayer (`estimate → fee-adjust → send`); it redeems the chain on-chain and takes its fee in USDC. The UI polls until confirmed.

<figure><img src="/files/otP2qLYTI0B9fDQumBDa" alt=""><figcaption></figcaption></figure>

#### 6. Swap to the user (LI.FI)

On redeem, the Liquid Staking agent swaps USDC → wstETH via LI.FI with **your wallet as recipient**. wstETH appears in MetaMask; the feed shows BaseScan links for every step.

<figure><img src="/files/IjI4yVxJXymNKvnBHK8Q" alt=""><figcaption></figcaption></figure>


---

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

```
GET https://hxz-1.gitbook.io/redelegator-finance/how-redelegator-works/stake-flow-lido.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
