# Does CurveUSD charge any fees?

In the CurveUSD protocol, there are two types of fees users can potentially be exposed to:&#x20;

* Borrowing fees (dynamic)
* Fees/losses during liquidations (both soft and hard liquidations).

## Borrowing fees

CurveUSD has a dynamic borrow rate implemented for each market (collateral asset).

The rate adjusts depending on a Peg Keeper contract's debt during the process of keeping the $crvUSD at $1. If the Peg Keeper has burned all uncollateralized $crvUSD (zero debt), and the price of $crvUSD is still below $1, the borrow rates increase rapidly.

Formula: `rate = rate0 * exp(-(p - 1) / sigma) * exp(-peg_keeper_debt / (total_debt * peg_keeper_target_fraction))`

{% hint style="info" %}
*Formula interpretation: - when the $crvUSD price goes lower, the rate goes higher, and vice versa. - when Peg Keeper's debt goes lower, the rate goes higher, and vice versa.*
{% endhint %}

### Soft liquidation losses

During soft liquidations, the collateral is sold at a slightly lower price compared to the market price as an incentive for arbitrage bots, causing users to experience certain losses.

Soft liquidation losses increase as the number of price swings within the bands increases. Choosing a bigger number of bands gives you wider price range for liquidation, but increases chances of higher loss during soft liquidations (and gas costs).

### Hard liquidation losses

The hard liquidation fees are variable.

If the position is fully liquidated, the liquidators gain all the collateral by paying 100% debt back, and get a liquidation discount (currently set to 6%).

In case of partial liquidation, there is no discount and users are not experiencing the loss by giving up the extra margin (over-collatearization).

***

## Related Articles:

* [CurveUSD](https://help.defisaver.com/protocols/curveusd)
* [Dashboard & Use-case](https://help.defisaver.com/protocols/curveusd/dashboard-and-use-case)


---

# 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://help.defisaver.com/protocols/curveusd/does-curveusd-charge-any-fees.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.
