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

# Idle Finance

> Access risk-adjusted yield through Idle's tranched vaults

## What this yield is

* **Protocol**: Idle Finance tranched vaults
* **Asset**: stETH, MATIC, USDC, USDe, WETH
* **Products**: Senior Tranches (lower risk) + Junior Tranches (higher risk/yield)
* **Network**: Ethereum

<Note>
  Idle Finance offers two classes of tranches: Senior Tranches receive a guaranteed minimum yield with lower risk, while Junior Tranches receive outperforming APYs in exchange for higher risk exposure.
</Note>

## Required inputs

| Parameter | Description                      |
| --------- | -------------------------------- |
| `yieldId` | The specific Idle vault yield ID |
| `address` | User's wallet address            |
| `amount`  | Amount to deposit                |

## Tranche types

<Tabs>
  <Tab title="Senior Tranche">
    **Lower risk, stable yield**

    * Receives guaranteed minimum portion of yield
    * Protected by Junior tranche liquidity
    * Lower but more predictable returns
  </Tab>

  <Tab title="Junior Tranche">
    **Higher risk, higher yield**

    * Receives outperforming APYs
    * Takes on increased risk exposure
    * Potential for higher returns
  </Tab>
</Tabs>

## Actions & lifecycle

<Tabs>
  <Tab title="Enter">
    **Action**: Deposit assets into Idle vault

    * Choose Senior or Junior tranche
    * Supply the underlying asset
    * Begin earning yield
  </Tab>

  <Tab title="Exit">
    **Action**: Withdraw assets from the vault

    * Redeem tranche tokens for underlying
    * Receive principal plus accrued yield
    * Instant withdrawal
  </Tab>
</Tabs>

## Example flow

<Steps>
  <Step title="Get yield metadata">
    Fetch available Idle vaults and their current rates.
  </Step>

  <Step title="Enter position">
    Call the enter action with your deposit amount.
  </Step>

  <Step title="Sign & submit">
    Sign the transaction and broadcast to the network.
  </Step>

  <Step title="Track balances">
    Monitor your position via the balances endpoint.
  </Step>
</Steps>

<CodeGroup>
  ```bash Get yield metadata theme={null}
  curl --request GET \
    --url https://api.yield.xyz/v1/yields/ethereum-usdc-aammsteakusdc-vault \
    --header 'accept: application/json' \
    --header 'x-api-key: <API_KEY>'
  ```

  ```bash Enter position theme={null}
  curl --request POST \
    --url https://api.yield.xyz/v1/actions/enter \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --header 'x-api-key: <API_KEY>' \
    --data '{
      "yieldId": "ethereum-usdc-aammsteakusdc-vault",
      "address": "0xYOUR_ADDRESS",
      "arguments": {
        "amount": "1000"
      }
    }'
  ```
</CodeGroup>

## Operational notes

<AccordionGroup>
  <Accordion title="No pending actions">
    Idle Finance vaults have no pending actions. Yield accrues automatically.
  </Accordion>

  <Accordion title="Risk/reward tradeoff">
    Junior tranches earn higher APYs but bear the first loss in case of underlying strategy issues. Senior tranches are protected but earn less.
  </Accordion>

  <Accordion title="Underlying strategies">
    Vaults leverage various DeFi protocols including Lido, Instadapp, Steakhouse, Gearbox, and Ethena.
  </Accordion>
</AccordionGroup>

## Yield IDs for this protocol

<AccordionGroup>
  <Accordion title="Show Idle Finance yield IDs">
    **Vault naming**: `aa` prefix = Junior, `bb` prefix = Senior

    ### Ethereum

    | Yield ID                              | Name                         |
    | ------------------------------------- | ---------------------------- |
    | ethereum-steth-aainstadappsteth-vault | Instadapp stETH Junior Vault |
    | ethereum-steth-bbinstadappsteth-vault | Instadapp stETH Senior Vault |
    | ethereum-steth-aalidosteth-vault      | Lido stETH Junior Vault      |
    | ethereum-steth-bblidosteth-vault      | Lido stETH Senior Vault      |
    | ethereum-matic-aalidostmatic-vault    | Lido stMATIC Junior Vault    |
    | ethereum-matic-bblidostmatic-vault    | Lido stMATIC Senior Vault    |
    | ethereum-usdc-aammsteakusdc-vault     | Steakhouse USDC Junior Vault |
    | ethereum-usdc-bbmmsteakusdc-vault     | Steakhouse USDC Senior Vault |
    | ethereum-usdc-aagearusdc-vault        | Gearbox USDC Junior Vault    |
    | ethereum-usdc-bbgearusdc-vault        | Gearbox USDC Senior Vault    |
    | ethereum-weth-aagearweth-vault        | Gearbox WETH Junior Vault    |
    | ethereum-weth-bbgearweth-vault        | Gearbox WETH Senior Vault    |
    | ethereum-usde-ethenausdejr-vault      | Ethena USDe Junior Vault     |
    | ethereum-usde-ethenausdesr-vault      | Ethena USDe Senior Vault     |
  </Accordion>
</AccordionGroup>

## See also

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/documentation/getting-started/quickstart">
    Get started with Yield.xyz
  </Card>

  <Card title="Actions & Balances" icon="arrow-right-arrow-left" href="/documentation/core-concepts/actions-and-transactions">
    Understand how actions work
  </Card>
</CardGroup>
