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

# Balances

> Managing your token balances on Limora

The Balances page provides a comprehensive view of your funds across wallet, trading, and matching balances.

***

## Balance Types

Limora uses three distinct balance categories:

<CardGroup cols={3}>
  <Card title="Wallet Balance" icon="wallet">
    Tokens in your connected wallet, not yet deposited to Limora.
  </Card>

  <Card title="Trading Balance" icon="chart-line">
    Funds deposited for opening leveraged trades.
  </Card>

  <Card title="Matching Balance" icon="coins">
    Funds deposited for matching/lending to traders.
  </Card>
</CardGroup>

***

## Balances Overview

### What You'll See

| Column      | Description                      |
| ----------- | -------------------------------- |
| Token       | Token symbol and icon            |
| Wallet      | Balance in your connected wallet |
| Trading     | Balance available for trading    |
| Matching    | Balance available for matching   |
| In Use      | Funds locked in active positions |
| Total Value | USD value across all balances    |

### Example View

```
Token    | Wallet    | Trading  | Matching | In Use   | Value
---------|-----------|----------|----------|----------|--------
USDC     | 1,000     | 500      | 2,000    | 1,500    | $4,000
ETH      | 0.5       | -        | -        | -        | $1,500
         |           |          |          | Total:   | $5,500
```

***

## Managing Trading Balance

### Depositing to Trade

Move funds from wallet to trading balance:

<Steps>
  <Step title="Select Token">
    Click on the token you want to deposit (e.g., USDC)
  </Step>

  <Step title="Choose Action">Select "Deposit to Trading"</Step>
  <Step title="Enter Amount">Input the amount to deposit</Step>
  <Step title="Confirm">Approve the transaction in your wallet</Step>
</Steps>

### Withdrawing from Trade

Move funds back to your wallet:

<Steps>
  <Step title="Select Token">Click on the token row</Step>
  <Step title="Choose Action">Select "Withdraw from Trading"</Step>

  <Step title="Enter Amount">
    Input the amount (up to your available trading balance)
  </Step>

  <Step title="Confirm">Approve the transaction in your wallet</Step>
</Steps>

***

## Managing Matching Balance

### Depositing to Match

Move funds to your matching pool:

1. Navigate to the **Match** page
2. Enter the deposit amount
3. Approve and confirm the transaction

See [Depositing](/lending/depositing) for detailed instructions.

### Withdrawing from Match

Withdraw available (unmatched) funds:

1. Navigate to the **Match** page
2. Enter the withdrawal amount
3. Confirm the transaction

See [Withdrawing](/lending/withdrawing) for detailed instructions.

***

## Balance States

### Available vs. In Use

**Available Balance**: Funds you can use immediately

* Open new trades (trading balance)
* Match new trades (matching balance)
* Withdraw to wallet

**In Use**: Funds locked in active positions

* Trading: Collateral in open positions
* Matching: Funds matched with active trades
* Cannot be withdrawn until positions close

### Balance Flow

```mermaid theme={null}
graph LR
    W[Wallet] -->|Deposit| T[Trading Balance]
    T -->|Withdraw| W
    T -->|Open Trade| A[Active Position]
    A -->|Close Trade| T

    W -->|Deposit| M[Matching Balance]
    M -->|Withdraw| W
    M -->|Match Trade| AM[Active Match]
    AM -->|Trade Closes| M
```

***

## Supported Tokens

### Trading Collateral

| Token | Status   | Use                              |
| ----- | -------- | -------------------------------- |
| USDC  | ✅ Active | Primary collateral for all pairs |

### Future Support

Additional tokens may be added:

* ETH as collateral
* Additional stablecoins (USDT, DAI)

***

## Balance Actions

### Quick Actions

From the Balances page, you can:

| Action   | Description                                 |
| -------- | ------------------------------------------- |
| Deposit  | Move tokens from wallet to trading/matching |
| Withdraw | Move tokens back to wallet                  |
| Transfer | Move between trading and matching balances  |
| Trade    | Quick link to open a position               |
| Match    | Quick link to matching page                 |

### Batch Operations

For multiple tokens or large amounts:

* Each deposit/withdraw requires a separate transaction
* Consider gas costs when making multiple small transactions
* Batch similar operations when possible

***

## Understanding USD Values

### Price Sources

Token values are displayed in USD using:

* Real-time oracle prices for crypto
* Stablecoins assumed at \$1.00

### Unrealized P\&L

Your balances include unrealized P\&L from:

* Active trades (Trading Balance section)
* Active matches (Matching Balance section)

<Note>
  Displayed values update in real-time but actual balance changes only occur
  when positions are closed.
</Note>

***

## Security Considerations

<AccordionGroup>
  <Accordion title="Funds custody">
    * Wallet Balance: Fully in your control - Trading Balance: Held in Limora
      smart contracts - Matching Balance: Held in Limora smart contracts Smart
      contract funds are non-custodial—you can withdraw available balances at any
      time.
  </Accordion>

  <Accordion title="Approval management">
    Depositing requires token approval. Review and manage approvals at
    [Revoke.cash](https://revoke.cash).
  </Accordion>

  <Accordion title="Balance verification">
    Always verify balances shown match your wallet and on-chain data.
    Discrepancies may indicate UI issues.
  </Accordion>
</AccordionGroup>

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Balance not updating">
    * Wait for transaction confirmation - Refresh the page - Check transaction
      status on Basescan
  </Accordion>

  <Accordion title="Can't withdraw full amount">
    * Some funds may be locked in active positions - Check "In Use" column for
      locked amounts - Wait for positions to close
  </Accordion>

  <Accordion title="Token not showing">
    * Ensure you're on Base network - Token may need to be imported to wallet -
      Refresh the page
  </Accordion>

  <Accordion title="Wrong balance displayed">
    * Compare with wallet and Basescan - Clear browser cache - Try a different
      browser
  </Accordion>
</AccordionGroup>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Opening Trades" icon="arrow-right" href="/trading/opening-trades">
    Use your trading balance to open positions.
  </Card>

  <Card title="Matching" icon="handshake" href="/lending/overview">
    Use your matching balance to earn interest.
  </Card>
</CardGroup>
