> For the complete documentation index, see [llms.txt](https://docs.orriss.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orriss.xyz/providing-liquidity.md). Agents can also search and read this documentation through its [MCP server](https://docs.orriss.xyz/~gitbook/mcp).

# Providing liquidity

Allocate SOL and USDC across bins, read a position and withdraw both assets with accrued LP fees.

Choose bins according to the trades you want to fill. In the SOL/USDC deposit view, bins below the reference take **USDC**, funding buys of SOL by the pool. Bins at and above the reference take **SOL**, funding sales of SOL by the pool. You can fund one side or both.

## Open a position

1. Open **Liquidity → Create position**. Check the pair and use **Pool ↗** to inspect the pool account. The center of the bin chart is marked **0% · Oracle**.
2. Click a bin or drag across a range. Inspect a bin to see its interval, **Bin reserves** and **Your deposit**. A wider range assigns capital to more execution levels. A tighter selection places more of a fixed budget in each selected level.
3. Enter an amount under **Deposit amounts**. The SOL/USDC ticket splits each token across the selected bins on that side and shows the amounts required on both sides. Check these before signing. The terminal reserves 0.007 SOL of headroom for rent and network fees when checking a wallet balance. Actual costs depend on the accounts the transaction needs.
4. Connect the funding wallet and select **Create position**. The program checks that the reference is fresh and that the shares issued meet the submitted minimum for each funded bin. After confirmation, open **Positions** with the same wallet.

## Read the balances

The original deposit transaction records the quantities supplied at entry. If the **Deposited** fields show a dash, use that transaction as the cost basis. **Withdrawable** shows your current pro-rata claim on the two token reserves. If traders bought SOL from your bins, you may see less SOL and more USDC. Other LPs in the same bin own their share of that same inventory. The LP portion of fees accrues in the asset that traders paid and is already included in the withdrawable amounts.

A useful comparison is the value of holding the original deposit. At a common price of P USDC per SOL, a deposit of B SOL and Q USDC is worth B × P + Q. Apply the same calculation to the current withdrawable quantities and compare the values. Include account and transaction costs if measuring wallet-level returns. Fees, flow direction and changes in inventory all affect the result. [LP accounting](https://docs.orriss.xyz/bin-pricing/lp-accounting.md)

## Close a position

In **Positions**, select **Withdraw all + fees** and review the transaction in the owning wallet. The program pays both token claims, burns the position’s shares in each selected bin, closes the position account and returns its rent lamports. Each position closes in full. Separate positions can be closed independently.

Withdrawal uses each bin’s recorded token reserves and share supply. It requires no fresh reference price. If a refresh has stalled, the displayed valuation may be old while the token claims remain calculable. [Reference prices](https://docs.orriss.xyz/bin-pricing/reference-price.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.orriss.xyz/providing-liquidity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
