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

# Fees

> Every Goat LP fee, what it is charged on and where it goes.

<Frame>
  <img src="https://mintcdn.com/cashmerelabs/VaU9JZozZKsaMUY5/images/goat-lp/cover-fees.png?fit=max&auto=format&n=VaU9JZozZKsaMUY5&q=85&s=db9220bd0f8150c8c81c806c6547f898" alt="Fees cover: a receipt listing the Goat LP fees: 10% of fees added back on auto-compound, 10% of fees collected with Send fees to my wallet, 0.15% per auto-range move, 0.15% once on auto-exit and 0.65% of the swapped part when paying with one token; gas for automation runs is paid by us." noZoom width="1600" height="640" data-path="images/goat-lp/cover-fees.png" />
</Frame>

<Callout type="warning">
  Goat LP is experimental. Use small amounts.
</Callout>

Goat LP charges only when it does work for you. Analytics are free, and actions without a swap cost only
gas. Every manual fee is shown in tokens and dollars before you sign; automation fees are shown as a rate in the
setup sheet.

## All fees

| Action | Goat LP fee | Charged on | Gas |
| - | - | - | - |
| Analytics, dashboards, search | **Free** | | |
| Deposit, withdraw, collect, create or move range **without a swap** | **None** | | You pay |
| Paying the WETH side with ETH (WETH pairs) | **None** (wrapping is 1:1) | | You pay |
| Manual tools **that swap** (one-token deposit, withdraw or collect, move range with a swap) | **0.65%** | The swapped part only | You pay |
| Compound, manual or automatic | **10%** | The fees added back | Auto: paid by us |
| Auto-compound, **Send fees to my wallet** (Uniswap v4) | **10%** | The fees collected (the other 90% goes to your wallet) | Paid by us |
| Auto-range | **0.15%** per move | v4: the principal taken out. v3: everything added to the new position, collected fees included | Paid by us |
| Auto-exit | **0.15%** once, when it closes | v4: the principal taken out. v3: what comes out | Paid by us |
| Swaps inside automations | **No 0.65%** | Only the pool fee and Uniswap's protocol fee | |
| Turning an automation on, changing it, stopping it, **Allow #new** | **None** | | You pay |

Uniswap pool fees go to the pool's liquidity providers, not to Cashmere.

## Manual-tool swap fee: 0.65%

When a manual tool swaps, Uniswap's Universal Router keeps 0.65% of that swap's output for Cashmere and
passes the rest on, in the same transaction. Only the swapped part is charged.

* Before you sign, the app decodes the transaction and refuses it unless the fee goes to the fee address
  at exactly 0.65%. The app's code will never build a fee above 1%.
* Today, if a swap fills better than quoted, the extra goes to you. You always get at least the minimum
  shown in the review.

**Example.** You deposit 1,000 USDG as one token into an ETH / USDG range, and the tool swaps 480 USDG into
ETH. The fee is 0.65% of the ETH that swap returns, worth about 3.12 USDG. The 520 USDG that was not
swapped is not charged.

<Accordion title="Step by step: pay with one token">
  <img className="block dark:hidden" src="https://mintcdn.com/cashmerelabs/VaU9JZozZKsaMUY5/images/goat-lp/diagram-zap-light.png?fit=max&auto=format&n=VaU9JZozZKsaMUY5&q=85&s=91f82e2f5bc198e153a878f44f746a86" alt="Pay with one token: you send one token, part of it is swapped so the deposit matches your range, and both tokens go in; Goat LP fee is 0.65% of the swapped part." width="2400" height="940" data-path="images/goat-lp/diagram-zap-light.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/cashmerelabs/VaU9JZozZKsaMUY5/images/goat-lp/diagram-zap-dark.png?fit=max&auto=format&n=VaU9JZozZKsaMUY5&q=85&s=067961788b73ebec43b934486823f9de" alt="Pay with one token: you send one token, part of it is swapped so the deposit matches your range, and both tokens go in; Goat LP fee is 0.65% of the swapped part." width="2400" height="940" data-path="images/goat-lp/diagram-zap-dark.png" />
</Accordion>

## Compound: 10%

**10% of the fees added back · gas paid by us** (on auto-compound runs).

* It is never charged on your principal.
* What does not fit your range comes back to your wallet, with no fee.
* The swap inside a compound pays only the pool fee. There is no 0.65% on it.
* On Uniswap v4, **Send fees to my wallet** collects the fees for you instead: 10% of the fees collected,
  and the other 90% goes to your wallet. Gas paid by us.

## Auto-range and auto-exit: 0.15%

| Example | Uniswap v4 | Uniswap v3 |
| - | - | - |
| Move a position with \$10,000 of principal and \$40 of uncollected fees | \$15.00 (the \$40 of fees is not charged and goes into the new position) | About \$15.06 (0.15% of \$10,040 added to the new position) |
| Close a position with \$5,000 of principal | \$7.50 | 0.15% of what comes out |

The swap inside a move is about half of the value. It pays the pool fee and Uniswap's protocol fee only:
on v4 at most your highest swap fee (default 1%), on v3 only in the fee tiers Goat lists for the pair.
Price movement during the swap is limited by your price protection (default 0.50%).

## Where fees go

Every Goat LP fee goes to Cashmere's fee address,
[`0x2bf95e5f307FB84e19851865193a14DaB01A561F`](https://robinhoodchain.blockscout.com/address/0x2bf95e5f307FB84e19851865193a14DaB01A561F).

* Compound fees and v4 automation fees are paid out in the same transaction.
* v3 auto-range and auto-exit fees stay in those contracts until Cashmere withdraws them.
* The 0.65% fee is paid by Uniswap's Universal Router straight from the swap output.

## Can fees change?

* Compound 10%: fixed in the one-click compound contracts. The automation fees (10% on v3 auto-compound,
  0.15% on auto-range and auto-exit) can only be **lowered**. No one can raise them.
* The 0.65% manual-tool fee is an app setting with a hard limit of 1% in the app's code. The exact rate is
  written into every transaction you sign.
* The owner Safe can change the fee address. Before any automation transaction, the app checks that the
  contract's fee address is the one above.

<Callout type="info">
  Gas for keeper runs is paid by Cashmere. It still shows in the position's gas line in analytics, because
  the position used the service.
</Callout>


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