# Fees

## Redemption Fee

The fee is derived from a Base Rate, which increases with redemptions and decays over time:&#x20;

1. Base Rate and Decay:
   * The base rate starts at zero. Every time someone redeems BSD, this base rate goes up.
   * When redemptions cease, the Base Rate decays exponentially over time based on blocks elapsed since the last redemption. The decay factor is pre-calculated for different time intervals, effectively reducing the rate to zero over 72 hours of inactivity.
2. Ratio and Scaling:
   * When you redeem BSD, the redemption amount is compared to the total BSD supply.&#x20;
   * The resulting ratio is then scaled by 0.5 and added to the base rate, bumping the base rate up proportionate to the size of recent redemption(s).&#x20;
3. Final Redemption Fee:
   * The updated base rate determines the fee.&#x20;
   * Redemption fee minimum: 0.5%

This fee is assessed in sBTC and subtracted from the redemption amount. The fee will go to the vault(s) consumed in the redemption.&#x20;

## Borrow Fee

1. **Base Rate and Decay**:
   * Base rate decay works exactly the same as redemption fee.&#x20;
   * Critically, borrowing does not increase the base rate, only redemptions.&#x20;
2. **Final Borrow Fee**:
   * The current decayed base rate determines the fee.&#x20;
   * Borrow fee minimum: 0.0%
   * Borrow fee maximum: 5%

The fee is assessed in BSD and added to the vault debt.&#x20;

Note: There are no fees for repaying debt.&#x20;

{% hint style="info" %}
If the protocol is in recovery mode the borrow fee is always zero to encourage new, highly collateralized, debt creation.&#x20;
{% endhint %}


---

# 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.bsd.money/protocol/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.
