> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sodax.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> SODAX is mainnet-only (no testnet chains or RPC endpoints exist) with a hub-and-spoke architecture; Sonic is the hub. SODAX is non-custodial protocol/software: it routes and settles; independent solvers on the marketplace fill — never say 'our solver', 'the SODAX solver', that SODAX trades, takes custody, or fills orders. For frontend/React integrations, prefer @sodax/dapp-kit hooks over calling @sodax/sdk directly. SDK operations — the methods that build, submit or await a transaction, and the API/quote calls — return Result<T, E> ({ ok: true, value } or { ok: false, error }): check result.ok, never wrap them in try/catch or branch on error.message; discriminate on the narrow error.code union instead. Synchronous config getters (getPartnerFee, getSupportedSwapTokens, getVault, ...) return their value directly, not a Result.

# Yield

> Leveraged yield vaults as ordinary intent-based swaps — open-source SDK or HTTP API, both live on mainnet.

Enter and exit leverage-yield vault positions as ordinary intent-based swaps — no vault-specific approvals or bespoke deposit calls.

Both integration paths are live on production: the `@sodax/sdk` leverage yield module, and the HTTP API at `https://api.sodax.com/v1/leverage-yield`. For a step-by-step walkthrough of either, see [Integrate Leverage Yield](https://docs.sodax.com/developers/how-to/integrate_leverage_yield.md).

For an SDK integration, start with the [deposit and withdraw flows](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield.md#flows). Review [vault risks](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield.md#the-risk-the-spread-can-invert), [completion](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield.md#completion-paths-and-timeout), and [errors](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield.md#error-handling) before integrating.

## Integration reference

> [card] [HTTP API](https://docs.sodax.com/developers/http-api/leverage.md)
>
> Vault deposit / withdraw over HTTP.

> [card] [SDK method reference](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield.md)
>
> `@sodax/sdk` — deposit, withdraw, APR, and position data.

### Next steps

> [card] [Effective APR](https://docs.sodax.com/developers/packages/foundation/sdk/functional-modules/leverage_yield_apr.md)
>
> How vault APR is calculated in the SDK.

> [card] [React frontend](https://docs.sodax.com/developers/packages/experience/dapp-kit.md)
>
> `@sodax/dapp-kit` hooks with wallet wiring included.

> [card] [Build it with an AI agent](https://docs.sodax.com/developers/how-to/integrate_leverage_yield.md#ai-agents)
>
> The `@sodax/skills` leverage-yield skills teach your agent the vault flows.


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