# Providing Liquidity

{% hint style="info" %}
From here on, we consider USDC/ETH Marginly pool for simplicity which works in conjunction with the corresponding Uniswap v3 USDC/ETH pool.
{% endhint %}

### Now

Liquidity providers deposit **quote asset** (USDC) or **base asset** (ETH) liquidity into the pool for other users to borrow. Users then earn variable interest rates when traders borrow USDC to go long or borrow ETH to go short. USDC providers earn rewards in USDC, while ETH providers earn rewards in ETH. \
\
ETH holders (USDC borrowers) pay interest fees in USDC to USDC holders (ETH borrowers), who  pay interest fees in ETH in return. The system is symmetric: longs pay shorts, and shorts pay longs. All debt accruals and reward accruals are pairwise. In *Marginly,* we calculate and handle these accruals as coefficients on user collateral and debt recorded in the system.&#x20;

### In Future

In later versions of the *Marginly protocol,* we could also facilitate investment in different currencies: e.g., invest WBTC in an ETH/USDC long position.

* the initial conversion of WBTC to ETH (initial margin) for a long position
* the initial conversion of WBTC to USDC (initial margin) for a short position

We'd need to monitor the input currency (WBTC) exposure to the collateral currency (ETH or USDC) ticker.

Profit is given by the margin value (ETH margin) in WBTC and the trading P\&L on the ETH/USDC exposure.


---

# Agent Instructions: 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://docs.marginly.com/protocol-mechanics/providing-liquidity.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.
