# Rehypothecation Module

{% hint style="info" %}
**Source:** `src/fira_bonding/RehypothecationModule.sol`
{% endhint %}

## Contract summary

A configuration contract that stores three parameters (in basis points) controlling the FW idle ratio:

| Parameter   | Purpose                                                    |
| ----------- | ---------------------------------------------------------- |
| `phiMin`    | Minimum idle ratio — triggers vault withdrawal if breached |
| `phiMax`    | Maximum idle ratio — triggers vault deposit if breached    |
| `phiTarget` | Target idle ratio — used by `forceRehypothecation()`       |

## How it's used

FW tokens reference this module when `triggerRehypothecation()` or `forceRehypothecation()` is called. The FW contract reads `phiMin`, `phiMax`, and `phiTarget` from the module and rebalances accordingly.

The module is set on the FW token by the owner. Setting it to `address(0)` disables rehypothecation entirely.

## Related pages

* [Rehypothecation (Feature)](https://docs.fira.money/developers/features/rehypothecation)
* [FW Tokens](https://docs.fira.money/developers/token-contracts/fw-tokens)
