# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.resupply.finance/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# Welcome to Resupply

\
Resupply is a decentralized stablecoin protocol that turns the yield on **crvUSD** and **frxUSD** into a safer, higher yielding borrowing experience. You supply stablecoins to proven lending markets (Curve Lend, Curve Lend v2, Fraxlend), borrow **reUSD** against them, and earn the market yield while the protocol's revenue flows back to stakers, savers, and the insurance pool.

Vist the website: [www.resupply.fi](https://www.resupply.fi)


# Overview

Resupply is a decentralized stablecoin protocol. Depositors supply **crvUSD** or **frxUSD** to battle tested lending markets (Curve Lend, Curve Lend v2, Fraxlend), borrow **reUSD** against that collateral, and keep earning the underlying lending yield. **reUSD** is backed 1:1 by these stablecoin denominated positions.

### How Resupply works

1. **Borrowers** earn the lending market's yield on their collateral while paying a **borrow rate** which is always at least half the lending rate, half the **sfrxUSD** "risk-free" rate or 2%, whichever is greater.
2. **Revenue** (borrow interest + redemption fees) is routed to a fee deposit and split every week: **70% to RSUP stakers, 15% to sreUSD stakers, 10% to the Insurance Pool, and 5% to the Treasury**.
3. **RSUP emissions** are directed by governance at voting incentives, the insurance pool, and directly at borrowers.
4. The revenue that borrowers generate will directly correlate with the emissions directed towards them. The more revenue a borrower generates for Resupply, the greater the share of emissions it will receive.


# Collateralized Debt Positions

Collateralized Debt Positions (CDP) are created by depositing **crvUSD** or **frxUSD** into a vault paired against a Curve Lend or Frax Lend lending position.

## Collateral Types

Collateral is always  the selected lending market accepts (crvUSD & frxUSD). Your collateral keeps earning the market's lending yield plus boosted rewards in the form of CRV & CVX.&#x20;

#### crvUSD&#x20;

crvUSD deposited into a CDP on Resupply will be supplied to a lending position of the user's choice on Curve Lend and deposited on Convex Finance. Each lending position will earn the underlying lending fees as well as boosted CRV & CVX rewards.

#### frxUSD&#x20;

frxUSD deposited into a CDP on Resupply will be supplied to a lending position of the user's choice on FraxLend. Each lending position will earn the underlying lending fees.

## Minting reUSD

Minting **reUSD** against each collateral type will have a maximum Loan-To-Value (LTV) set per lending position as set by governance. In addition, governance will also define a possible maximum borrow limit per lending position as deemed necessary.

The minimum amount of **reUSD** that can be minted against a CDP is 1000 **reUSD**.

A mint fee for minting **reUSD** is possible but is currently set to zero. This can be turned on later if deemed necessary.

## Borrow Fee Rate

The borrow rate for **reUSD** will be set at half the underlying lending fee rate, half the "risk-free rate,"  or two percent, whichever is greater. **sfrxUSD's** current APY will be used as the oracle to define the "risk-free rate."&#x20;

The borrow rate is then dynamically adjusted up to 60% of the "risk-free rate" or sfrxUSD's APY based on the peg of **reUSD**. This Dynamic off-peg fee goes fully to [Savings reUSD](/resupply-protocol/savings-reusd).


# Insurance Pool

The Insurance Pool is a user depositable vault that earns **reUSD** from a share of the borrow fees as well as **RSUP** governance tokens. All **reUSD** deposited will be used to insure the protocol from any potential bad debt, as well as used during CDP liquidation events to buy the collateral. **10%** of weekly protocol fees + a set amount of RSUP emissions (Controlled by Governance) goes to the insurance pool.

## Unstaking Cooldown

Unstaking from the Insurance Pool triggers a **7-day cooldown period**. During this time, users won’t receive **RSUP** tokens or be able to withdraw, but they will continue earning **reUSD** rewards. Once the cooldown period ends, users can fully withdraw their **reUSD**.

## CDP Liquidations

When a CDP is liquidated, any collateral deposited will be bought by the insurance pool directly using the deposited **reUSD** and distributed to the insurance pool holders. The **reUSD** used to purchase the liquidation will be burned. The **crvUSD** or **frxUSD** from the liquidation will be distributed to the insurance pool.\
\
Since liquidations tap into insurance pool for liquidations there is no need for flash loans or swaps to complete the liquidation. The liquidated collateral is moved to liquidation handler contract which attempts to withdraw all the underlying collateral from the lending pool. If there is not enough liquidity to withdraw all underlying collateral it can be continually attempted until able to be completed.

## Bad Debt

In the event bad debt is detected in the system, **reUSD** deposited in the insurance pool will assume the risk and purchase all bad debt collateral. The **reUSD** used to purchase the bad debt will be burned. In the event the collateral is forcefully ejected as bad debt, insurance pool holders will need to withdraw the collateral from the lending positions themselves.

In the event the bad debt is larger than what is available in the insurance pool, the protocol will assume the extra bad debt, and the rest of the collateral will be held by the protocol.


# Stability Mechanics

Resupply uses a redemption model for maintaining the stability of the **reUSD** stablecoin. The redemption model only maintains a price floor of $1.00 minus a small redemption fee, that is configurable by the DAO. If the **reUSD** depeg were to move upwards, this would be beneficial as it would encourage more borrowing. A **1%** fee will be used for redemptions, allocating **0.95%** to the borrower and the remaining **0.05%** to the protocol.\
\
**Note:** If **crvUSD** depegs upward and is worth **$1.05** instead of **$1.00**, the redemption fee increases by **5%**. The same applies to **frxUSD**, if it continues to depeg upward, the redemption fee rises by the same percentage as the depeg amount.

Unlike other redemption models Resupply redemption model is communal, affecting not just a single user but the entire lending pool.  Redeemers may choose which pools will be redeemed against, but a weighted discount will be used to encourage which pools to redeem against. The longer a pool goes without being redeemed against the greater the discount on said pool.

## Redemption Example

Let's assume in this example that **100 reUSD** are required to restore the peg and the redemption fee is **1%**.

1. Redeemer acquires **100 reUSD** from the market and triggers a redemption.
2. Borrowers have **$99** worth of collateral removed.
3. The redeemer receives **$99** worth of collateral.
4. The borrower's debt has been reduced by **99.95** reUSD. Effectively reducing it by an extra **0.95 reUSD**.
5. The resupply protocol receives a fee of **0.05 reUSD**.


# Savings reUSD

Savings reUSD (**sreUSD**) is a growth-oriented vault that allows long-term holders of **reUSD** to earn sustainable yield directly from the protocol’s weekly revenue. It is implemented as a standard ERC-4626 vault with auto-compounding mechanics, which means that depositors continuously accrue yield without the need for lockups, cooldown periods, penalty fees, or separate reward tokens. Yield is sourced from total protocol revenue and is distributed directly to stakers.

The introduction of **sreUSD** is designed to strengthen the stability of **reUSD’s** peg while creating new opportunities for integrations within the broader DeFi ecosystem. A dynamic interest-rate mechanism adjusts borrowing costs based on how closely **reUSD** tracks its peg. When the peg is stable, borrowing rates are lower, reducing fees to the base level. When **reUSD** trades below peg, borrowing rates increase up to a defined threshold. This additional revenue collected during periods of peg stress is funneled directly into **sreUSD**.&#x20;

## Key Features

* Standard ERC-4626 vault with auto-compounding **reUSD** yield
* Yield is sourced from total weekly protocol revenue and streamed to vault depositors
* No cooldowns, lockups, or penalties
* No emissions or extra reward tokens
* Native LayerZero bridging support

## Peg-Based Dynamic Interest Rates

A new interest rate calculator has been deployed across all **reUSD** pairs. It includes `priceWeight` multiplier that adjusts borrowing rates based on how closely **reUSD** tracks its peg:

* Interest will continue to be calculated based on underlying lending interest, **sfrxUSD** interest, and a constant **2%**
* `priceWeight` is used to determine how much of the underlying interest or sfrxusd interest should be used as fees. Previously, this was a flat **50%**. Going forward it will be a range between **50%** (on-peg) and **60%** (off-peg).
* As the **reUSD** peg approaches **1.00**, interest rates decrease back to the base **50%** of underlying/sfrxusd interest rates.
* As the price falls below peg, rates increase to a max of **60%** of underlying/sfrxusd interest rates.
* The rate adjustment is bounded by configurable min/max thresholds (ie. How much of the underlying/sfrxusd rates should be charged as fees)

This mechanism increases fees during periods of peg instability. The additional revenue it creates is distributed as yield to **sreUSD**.

#### Example:

At the conclusion of epoch X:

* the time-weighted price of **reUSD** was **$0.992**
* **sfrxUSD** yield was **10%** and was higher than all underlying lending rates
* **80k reUSD** was collected via interest
* **20k reUSD** collected via redemptions

This means the effective interest rate during this period was **58%** of sfrxUSD, or **5.8%** (**5% base + 0.8% off-peg**). This allows us to compute the following two components:

1. base interest fees (**5%**): **\~68.96k**
2. off-peg fees (**0.8%**): **\~11.03k**

Therefore **11.03k reUSD** is immediately allocated to **sreUSD** and the remaining **68.96k** interest fees + **20k** redemption fees are pooled and split according to the ratios above.

In this example, the final distributions would be as follows

| Destination    | Amount                                 |
| -------------- | -------------------------------------- |
| Staked RSUP    | 62.27k                                 |
| sreUSD         | 24.37k (13.34k + 11.03k)               |
| Insurance Pool | 8.89k                                  |
| Treasury       | 4.44k                                  |
| **Total**      | \~100k (80k interest + 20k redemption) |


# Tokenomics

**RSUP** is the Resupply governance token. It is minted on a **set inflation schedule** (no hard cap).

* Staking **RSUP** grants **protocol revenue (reUSD)** + **voting power** (1 staked RSUP ≈ 1 weight).
* Unstaking is a two-step process with a **14-day cooldown (2 epochs)**; while cooling down you stop earning revenue and voting power.
* RSUP is emitted to **voting incentives**, the **insurance pool**, and **borrowers** via governance set weights.

### Launch distribution (5-year schedule)

* **60%** of the 5-year emissions were minted at Token Generation Event (TGE).
* Emissions ramp: **12% → 10% → 8% → 6% → 4%** per year over 5 years, then **2% tail inflation**.
* Protocol allocations (vested):
  * **20%** Convex protocol sub-DAO (5y vest — staked for veCRV power + revenue)
  * **10%** Yearn protocol (5y vest)
  * **0.5%** Frax Protocol (codebase grant, 1y vest)
  * **15%** Prisma token burns incl. liquid lockers (5y)
  * **2%** Prisma hack victims (2y)
  * **2%** Team (1y)
  * **10.5%** Treasury (5y)
  * Remaining \~**31%** emitted as protocol emissions (voting incentives / insurance / borrowers)
* **RSUP** that **Prisma** holders redeemed at the **11.54:1** PRISMA:RSUP conversion vests over 5 years.<br>

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FiOeSKkZMC8F7zy4wY0Nc%2Fressuply-gitbook-token-distribution-banner-1280x640-v1%20(2).png?alt=media&amp;token=bafa77fe-7d78-4c70-820b-57efa9a86457" alt=""><figcaption></figcaption></figure>


# Emissions

**RSUP** is emitted on a **governance-set inflation schedule** — and is directed at three categories (the split is adjustable by governance per epoch):

* **Voting incentives** — streamed to platforms that incentivize **reUSD/RSUP** on-chain liquidity (e.g. Convex/Yearn vote markets).
* **Insurance Pool** — a stable **RSUP** stream to insurance providers (see Insurance Pool).
* **Borrowers** — borrower directed emissions are weighted by how much revenue each lending pool generates: the more borrowing fees a pool produces, the larger its share of the borrower emission pool.


# Protocol Revenue

* The protocol will generate revenue in the form of redemption fees and borrow fees. All protocol fees will be distributed to **RSUP** stakers, the insurance pool, and the Resupply Treasury.
* Unstaking **RSUP** tokens will be subject to a cool down period in which no rewards are granted.
* Fee split will be adjustable by governance vote.

## Current Revenue Splits

| **Recipient**  | **Split** |
| -------------- | --------- |
| Staked RSUP    | 70%       |
| sreUSD         | 15%       |
| Insurance Pool | 10%       |
| Treasury       | 5%        |


# Governance Voting

Resupply governance is fully on-chain. All contracts on Resupply will be owned by a main core contract with a separate voter contract that is able to execute any transactions as though it is core.

Staking **RSUP** tokens is required to participate in governance voting. Unstaking of **RSUP** tokens is subject to a cooldown period in which no rewards will be given. The staking contract will work on a one week epoch system. New stakers must wait 1 epoch before they are granted voting power.

Resupply contracts are owned by **Core**, and a dedicated **Voter** contract (`0x1111…E6`, the active instance.

### Live parameters (verified on-chain, 2026-08-11)

| Parameter                                | Value                         |
| ---------------------------------------- | ----------------------------- |
| Epoch length                             | 7 days (weekly)               |
| Staking cooldown                         | 2 epochs (14 days)            |
| Weight of 1 staked RSUP                  | \~1 weight (no lock boost)    |
| Min weight to create proposal            | **1% of total staked weight** |
| Quorum to pass                           | **30%** of total weight       |
| Cooldown between proposals (same wallet) | 1 day                         |
| Voting period                            | 1 week                        |
| Execution delay after vote passes        | 1 day                         |
| Execution deadline                       | 3 weeks (after creation)      |


# Using Resupply

Resupply provides users with a decentralized stablecoin protocol designed to leverage liquidity and stability in lending markets. This platform enables users to supply assets, borrow **reUSD**, participate in governance, stake **RSUP**, and claim rewards.

### Main Navigation Menu

The top navigation bar provides access to the app’s core functionalities:

* **Supply** – Deposit **crvUSD** or **frxUSD** into lending markets like Curve Lend or Fraxlend and borrow **reUSD**.
* **Claim** – Collect earned **RSUP** and **reUSD** rewards from various activities within the protocol.
* **Governance** (Dropdown Menu)
  * **RSUP** – Stake, unstake, and manage governance tokens.
  * **Proposals** – View, vote on, and track governance proposals.

### Key Sections of the Resupply

#### 1. [Supply to Markets](/how-to-guides/using-resupply/deposit-collateral-and-borrow-reusd)

* Users can supply **crvUSD** or **frxUSD** into supported lending markets.
* Borrow **reUSD** against deposited assets.
* View key metrics like **interest rates, collateral ratio, and TVL.**

#### 2. [Claimable Rewards](/how-to-guides/using-resupply/claiming-rewards)

* Displays total **RSUP** and **reUSD** rewards earned from different activities.
* Users can claim rewards individually or all at once.
* Rewards can come from **crvUSD & frxUSD** markets or **RSUP staking.**

#### 3. [RSUP Staking](/how-to-guides/using-resupply/rsup-token-staking-unstaking)

* Stake **RSUP** to earn protocol revenue and gain governance voting power.
* Unstaking requires a **14-day cooldown period.**
* Users can track their vote power and total staked **RSUP**.

#### 4. [Insurance Pool](/how-to-guides/using-resupply/staking-in-the-insurance-pool)

* Users stake **reUSD** to help secure the protocol.
* In return, they earn protocol revenue and **RSUP rewards.**
* Unstaking requires a **7-day cooldown period.**

#### 5. [Governance Proposals](/how-to-guides/using-resupply/resupply-governance-proposals)

* Users can view **active, passed, failed, and executable proposals.**
* Each proposal shows its quorum percentage and voting results.
* Stakers can vote on proposals to influence protocol decisions.

#### 6. [RSUP Vesting & Airdrops](/how-to-guides/using-resupply/rsup-vesting-and-airdrop-claims)

* Users can claim vested RSUP from airdrops.
* Each airdrop has a specific vesting period before fully claimable.
* Includes compensation distributions (e.g., Prisma hack victims).

#### 7. [Redeeming PRISMA for RSUP](/how-to-guides/using-resupply/redeeming-prisma-for-vesting-rsup-tokens)

* Convert **Prisma, cvxPRISMA** and **yPRISMA** into vesting **RSUP.**
* Redemptions follow a **5-year vesting schedule.**


# Selecting a Lending Market

The [**Supply**](https://resupply.fi/supply) page provides users with an interface to explore and interact with different lending markets on Fraxlend or Curve Lend. Users can supply collateral to a variety of markets and borrow **reUSD** against their deposited collateral. Each market will display unique borrowing rates and total value locked (TVL), allowing users to choose their preferred market to supply collateral to.

#### [Supply Page](https://resupply.fi/supply)

**Market List & Search Functionality:**

* Users can browse through different markets and use the search bar to find specific markets as well.
* Sorting options allow filtering by vAPR, total borrowed **reUSD**, collateral vAPR, and TVL.<br>

**Each market displays:**

* **Borrow vAPR:** The interest rate for borrowing **reUSD**.
* **Total Borrowed reUSD:** The total amount of **reUSD** borrowed within the market.
* **Collateral vAPR:** The yield earned on supplied collateral.
* **Total Value Locked (TVL):** The total collateral supplied in the market.\ <br>

**Market Selection & Position Management:**

* Users can view their active positions in each market under the **My positions** section.
* The **Manage** button enables quick access to deposit, borrow, repay, and withdraw functions for the selected market.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2F9lGyVCxF44i97jKA7T8Q%2FScreenshot%202025-03-18%20at%209.26.07%E2%80%AFAM.png?alt=media&amp;token=2deb36d0-9b3e-4d2c-a79e-cb8f8dbcd9b8" alt=""><figcaption></figcaption></figure>


# Deposit Collateral & Borrow reUSD

Open a position on the [Supply](https://resupply.finance/supply) page, pick a market (e.g. crvUSD sfrxUSD), and press **Manage**.

### Key market parameters

* **Max LTV** – the maximum loan-to-value you can borrow against your collateral (up to **95%** on stablecoin collateral markets; lower on volatile collateral).
* **Minimum borrow** – **1,000 reUSD** per market.
* **Liquidation fee** – **5%** on liquidated collateral (covered by the Insurance Pool mechanism).
* **Maximum borrow amount** – per-market borrow limit, ramped by the protocol (BorrowLimitController/Keeper) as utilization dictates.

### Steps

1. **Deposit** – choose an amount (or **Max**). Approve the token, then deposit your collateral; it begins earning the market's collateral vAPR immediately.
2. **Borrow** – enter a **reUSD** amount ≥ the minimum. Your borrow rate (cost) and any reward rate are shown; net vAPR accounts for both.
3. **Watch your ratios** – the interface shows your collateral ratio and liquidation distance.
4. Optional: **leverage** — switch the leverage toggle under Deposit to loop borrow+deposit in one transaction (see Leverage).

### Functionality & User Actions

#### 1. Deposit Collateral / Borrow reUSD

* Deposit additional **frxUSD** or **crvUSD** to increase your collateral.
* Borrow more reUSD, with a minimum borrowing limit of **1,000 reUSD**.
* The interface includes a **Max** button for quick maximum allocation.

#### 2. Repay reUSD

* Users can repay their borrowed reUSD to reduce outstanding debt and improve their collateral ratio.

#### 3. Withdraw Collateral

* If the user maintains a safe collateral ratio, they can withdraw their collateral deposits.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FOar6OlcGC8d2Pqu3grk3%2FScreenshot%202025-03-14%20at%2010.25.49%E2%80%AFAM.png?alt=media&amp;token=b8d7f2ed-0625-4e8a-9732-d49b255e6bde" alt=""><figcaption></figcaption></figure>


# Repaying / Withdrawing Collateral

Use the **Repay** and **Withdraw** tabs inside a market (Manage) to exit or de-risk a position.

### Repay reUSD

* Repay a **partial** amount, or use **Close (repay entirely)** to repay the full balance and close the loan.
* **Max** fills the repay box with your wallet's **reUSD** balance; **Repay** executes.
* After repaying above your LTV, you may withdraw the freed collateral.

### Withdraw collateral

* Withdraw only works if your **collateral ratio stays above the market max LTV** after the withdrawal — otherwise the transaction reverts.
* Note: a *redemption* from another user cannot reduce a pair below its **10,000 reUSD leftover-debt floor**; directly repaying your own debt to zero is always fine

### Functionality & User Actions

* The **Max** button enables users to repay using all **reUSD** currently held in wallet.
* The **Repay** button initiates the repayment transaction.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FDve0UpDw9RYkTBWDEaI2%2FScreenshot%202025-03-14%20at%2010.51.56%E2%80%AFAM.png?alt=media&amp;token=3041fedd-19d6-4a27-91ff-bb661e8e5a74" alt=""><figcaption></figcaption></figure>


# RSUP Token Staking / Unstaking

[RSUP staking](https://resupply.finance/governance/rsup) is how you earn protocol revenue (**reUSD**) and governance voting power. Staked **RSUP** ≥ the voting-power bar is also what qualifies you to create or vote on proposals.

### Stake RSUP

1. Go to **Governance → RSUP**.
2. Enter an amount (or **Max**), **Approve** RSUP, then **Stake**.
3. Your weight activates on the **next epoch boundary** (weekly epoch); newly staked **RSUP** does not count for the current epoch.

### Unstake RSUP (two steps, 14 days)

1. **Request cooldown** – pick an amount (or **Max**) and confirm. Your RSUP (and its voting power + revenue) stop earning immediately.
2. **Withdraw** after **2 epochs (\~14 days)** the RSUP is withdrawable.&#x20;

Notes:

* **RSUP** in cooldown earns **nothing** (no revenue, no voting power).
* **RSUP** staked during the warm-up cannot be put into cooldown until the next epoch.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2Fhxhhh04zgpAuRNpIsFcD%2FScreenshot%202025-03-15%20at%2010.11.12%E2%80%AFAM.png?alt=media&amp;token=70d1b72b-1b1a-4781-b2ad-4f0e71759d5f" alt=""><figcaption></figcaption></figure>

#### Unstaking RSUP

* **Request a cooldown:** This initiates a **14-day waiting period** before a withdrawal is possible.
* **Withdraw after cooldown:** Once the waiting period is over, the user can finalize the unstaking process and retrieve their RSUP tokens.

#### **Cooldown Mechanism**

* Once **RSUP** enters the cooldown state, it is no longer eligible for governance voting or staking rewards.
* Users cannot enter “cooldown” for RSUP tokens that have been staked during the warm up period until the following epoch (7 days every Thursday 00:00 utc).&#x20;

#### How to Unstake

* Users input the RSUP token amount they want to move into “cooldown”.
* The **"Max"** button allows for full cooldown allocation.
* Clicking **"Request Cooldown"** initiates the 14-day unstaking process.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FelvFFcyklbuUgCvA7CDk%2FScreenshot%202025-03-15%20at%2010.11.35%E2%80%AFAM.png?alt=media&amp;token=9b4dfc5c-2888-431d-9d90-0ce67769b1ed" alt=""><figcaption></figcaption></figure>


# Staking in the Insurance Pool

The [Insurance Pool](https://resupply.fi/insurance-pool) allows users to deposit **reUSD** and contribute to the protocol’s safety by accepting a share of protocol risk. In return, users receive a share of protocol revenue and **RSUP** rewards as compensation for their participation.

#### Key Features of the Insurance Pool

**Risk & Reward Mechanism:**

* Users stake **reUSD** to help secure the protocol.
* In exchange, they earn protocol revenue and **RSUP** tokens.
* Participants accept a portion of the protocol’s risk by providing capital.
* **reUSD** may be converted to **crvUSD** or **frxUSD** during liquidations.<br>

**vAPR Display:**

* Displays the current reward rate, indicating how much yield stakers can expect.

#### How to Stake reUSD

1. Enter the desired amount of **reUSD** to stake.
2. Click **Approve** to allow the transaction.
3. Once approved, click **Stake** to deposit funds into the Insurance Pool.
4. Users can also click **Max** to stake the entire available balance.

#### Unstaking & Cooldown Period

* Unstaking is a two-step process:

1. Initiate unstaking triggers a **7-day cooldown.**
2. While in cooldown, you won’t receive **RSUP** tokens or be able to withdraw. However, you will still receive **reUSD** rewards.
3. After the cooldown period, users can fully **withdraw their reUSD.**

Users must navigate to the **Unstake** tab to complete the process.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FJw1mtgmeM5iRLE2C5amS%2FScreenshot%202025-03-14%20at%2010.48.17%E2%80%AFAM.png?alt=media&amp;token=e8067803-ddab-4abd-adff-1a0884cba130" alt=""><figcaption></figcaption></figure>


# Claiming Rewards

The [Claim page](https://resupply.fi/claim) provides users with a centralized interface to view and collect rewards accumulated across multiple markets and staked positions. Users can claim **RSUP** and **reUSD** rewards from various sources with the option to claim them individually or all at once.

| Source                        | What you claim                                          |
| ----------------------------- | ------------------------------------------------------- |
| Lending markets               | Rewards from borrowing/supplying (e.g. boosted rewards) |
| RSUP staking                  | Weekly protocol-revenue share (reUSD)                   |
| Insurance Pool                | Revenue share + RSUP emissions                          |
| Savings reUSD                 | Auto-compounding yield (sreUSD)                         |
| Retention program (borrowers) | Borrower-directed RSUP emissions                        |
| PRISMA → RSUP vesting         | Vested RSUP (if you redeemed PRISMA)                    |

### How to claim

* **Claim** next to a source claims just that reward.
* **Select all** + **Claim All** executes one transaction for everything claimable.
* The totals bar shows your combined claimable value.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FyJbwRN6kxmp7Eaen617a%2FIMAGE%202025-02-24%2011%3A36%3A25.jpg?alt=media&amp;token=cfdbb2e0-b5bb-4949-946e-00def450969c" alt=""><figcaption></figcaption></figure>


# Leverage

Resupply allows users to automatically leverage their position with one click. On the [Supply](https://resupply.fi/supply) page, under the deposit tab, users can toggle the leverage option on or off. Leverage allows users to loop the borrow & deposit process, amplifying the borrowed amount of **reUSD**.

**Leverage Slider:**

* Users can select a leverage level ranging from **2x to 19.1x**.
* Higher leverage increases both the borrowed amount and deposited collateral.<br>

**Leverage Mechanics:**

* When leverage is applied, the system borrows **reUSD**, swaps it for **crvUSD/frxUSD**, and deposits it as collateral.<br>

**Leverage Breakdown:**

* **Initial Deposit:** The base amount of **crvUSD/frxUSD** deposited.
* **Total Borrowed:** The total amount of **reUSD** borrowed through leverage.
* **Total Collateral:** The final **crvUSD/frxUSD** collateral after applying leverage.
* **Collateral Ratio:** The percentage of collateral relative to borrowed funds.<br>

**Slippage Warning:**

* Users will be informed about the estimated slippage (e.g., 0.24%) due to **reUSD** → **crvUSD/frxUSD** swaps.
* This means that the final collateral amount will be slightly lower due to the conversion rate and trade size.

#### Approval & Execution Buttons

* **Approve:** Grants permission for the smart contract to handle **crvUSD** or **frxUSD**.
* **Deposit & Leverage:** Executes the operation, depositing **crvUSD** or **frxUSD** and applying the chosen leverage amount.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FyaFYonj37a0Mdv3p8dpW%2FScreenshot%202025-03-10%20at%2011.36.47%E2%80%AFAM.png?alt=media&amp;token=18d92b49-ab59-4a8d-8636-02cce3f0ab83" alt=""><figcaption></figcaption></figure>


# Resupply Governance Proposals

The [Governance Proposals page](https://resupply.fi/governance/proposals) allows users to vote on, and track governance proposals within the Resupply protocol. Through this interface, users can actively engage in decision making processes that shape the protocol’s future.

#### Governance Page

* **Proposal Status & Quorum:**
  * **Each proposal displays:**
    * **Proposal Number** – Unique identifier for each governance decision.
    * &#x20;**Quorum Percentage** -  The percentage of votes needed to validate a proposal.
    * **Proposal Status:**
      * &#x20;**Passed** – The proposal met quorum and was successfully approved.
      * &#x20;**Failed** – The proposal did not meet the required votes.
      * &#x20;**Stale** – The proposal did not meet quorum or was not executed.

#### How to Engage with Proposals

* Users can click on individual proposals to view more details, including start time, end time and voting results.
* Those with staked **RSUP** tokens can participate in voting to approve or reject governance proposals.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2F65l9X0NTxXeYVlDtWnmJ%2FScreenshot%202025-03-14%20at%2011.03.19%E2%80%AFAM.png?alt=media&amp;token=097eff9e-27a0-4c63-b85b-03f1e2f23da6" alt=""><figcaption></figcaption></figure>


# RSUP Vesting & Airdrop Claims

The **RSUP** Vesting system allows users to claim **RSUP** token allocations from different airdrop distributions. These airdrops are subject to vesting schedules, meaning users can gradually unlock and claim their **RSUP** tokens over time. This can be found [here](https://resupply.fi/governance/rsup) below the Stake RSUP section. **In order to see this section you must have a wallet with Prisma, cvxPrisma, or yPrisma connected.**

#### Key Features of the Vesting System

* **Airdrop Vesting Periods:**

  * Each airdrop has a fixed vesting end date, which is the same for all recipients, regardless of when they claim.
  * Once the vesting period is complete, the full **RSUP** token amount becomes claimable.<br>

  **Custom Recipient Option:**\
  \
  Users have the ability to redirect their airdrop claims to a different recipient by toggling the **Use custom recipient** option.

#### Available Airdrops for Claiming

**Team Airdrop**

* Distributed to team members as part of the protocol’s incentive structure.

**Airdrop to Prisma Hack Victims**

* Compensation for users affected by the Prisma hack.

**Airdrop to Compensate vePrisma Unlock Penalty**

* Issued to users who incurred penalties when unlocking **vePrisma**.

#### How to Claim RSUP

Users can click the **Claim** button to receive their allocated **RSUP** tokens.


# Redeeming PRISMA for Vesting RSUP tokens

### Converting PRISMA, cvxPRISMA, and yPRISMA tokens

The Redeem **PRISMA** feature allows users to convert their Prisma-based tokens (**PRISMA, cvxPRISMA, and yPRISMA**) into a vesting allocation of **RSUP** tokens. This process allows Prisma token holders to convert to **RSUP** tokens. This can be found [here](https://resupply.fi/governance/rsup) below the Stake **RSUP** section. **In order to see this section you must have a wallet with Prisma, cvxPrisma, or yPrisma connected.**

#### Features of the Redemption System

* **Token Conversion for RSUP tokens:**
  * Users can convert **PRISMA**, **cvxPRISMA,** and **yPRISMA** into **RSUP** tokens.
  * Conversion occurs at a fixed **11.54:1 ratio.**
  * **Vesting duration: 5 years**, meaning **RSUP** tokens will unlock gradually over this period of time.\ <br>
* **Custom Recipient Option:**
  * Users can toggle **"Use custom recipient"** to send redeemed RSUP tokens to another wallet address.

#### Redemption Options

**Redeem Prisma / cvxPRISMA / yPRISMA tokens**

* Users can input a custom amount or use the **Max** button for full redemption.
* The process requires an **Approve** step before finalizing the redemption process.

#### How to Redeem

1. Enter the desired amount of **Prisma, cvxPRISMA or yPRISMA** tokens.
2. Click **Approve** to allow token conversion.
3. Once approved, select **Redeem for Vesting RSUP** to initiate the vesting process.

<figure><img src="https://700558760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuvAB3MBg39dnAFUqHuUe%2Fuploads%2FDQTg5uSDsyEtDKlkxJrJ%2FRSUP%20page%20-%20redeem%20prisma%3Acvxprisma%3Ayprisma.png?alt=media&amp;token=e3d40edc-a83e-4729-8cbd-889ffa0e4ca3" alt=""><figcaption></figcaption></figure>


# Risks

Interacting with any DeFi protocol carries risk of loss, and Resupply is no exception. Read this section and the audits before supplying funds.

### Resupply-specific risks

* **Peg risk** – **reUSD** is backed by stablecoin denominated lending positions and is kept near $1.00 by a redemption floor (\~$1.00 − fee). Prolonged depegs raise borrowing costs (off-peg fee) and can trigger redemptions against your position.
* **Collateral risk** – markets accept volatile collateral (**WETH, wstETH, WBTC**, …, plus stablecoins). A sharp move down can liquidate positions (5% liquidation fee); liquidations settle through the Insurance Pool.
* **Insurance Pool tail risk** – insurance stakers earn yield for bearing exactly this risk; in a mass-liquidation or bad debt event, pool **reUSD** is burned and holders absorb the loss beyond pool cover.
* **Lending-market / integration risk** – funds sit in Curve Lend, Curve Lend v2 and Fraxlend positions; a bug, exploit or insolvency in those platforms (or their reward vaults — **Convex/Yearn**) could impair collateral. **sreUSD** additionally carries bridge risk (LayerZero OFT).
* **Governance risk** – **RSUP** governance can adjust fees, limits, and permissions by vote (30% quorum); staked weight concentration means a majority coalition controls the protocol.
* **Oracle / keeper reliance** – interest, liquidations and borrow-limit ramps rely on oracles and the protocol keeper; degraded operation can delay liquidations.

### Third-party reviews always apply

Convex Finance, Curve Finance, Frax Finance, LlamaLend v2, and LayerZero carry their own risks — review their docs and risk frameworks too.


# Audits

List of formal audits performed on contracts for Resupply.

| Auditor       | Date        | Scope / note                   |
| ------------- | ----------- | ------------------------------ |
| yAudit        | 11 Jan 2025 | RSUP + core protocol contracts |
| ChainSecurity | 28 Feb 2025 | Full Resupply protocol review  |

\
[yAudit, 11 January 2025](https://github.com/resupplyfi/resupply/blob/main/audits/rsup_yaudit_report.pdf)

[ChainSecurity, 28 Febraury 2025](https://github.com/resupplyfi/resupply/blob/main/audits/ChainSecurity_Resupply_Resupply_audit.pdf)


# Resupply Treasury

The Resupply Treasury is a Core owned contract fed by the **5% treasury slice** of weekly protocol revenue plus the **10.5% RSUP launch allocation** (vested over 5 years).

* **Use** – award/incentivize actions, tokens, people, or platforms that positively influence the protocol (liquidity, integrations, grants).
* **Control** – the Treasury is operated by the Resupply **multisig** (3 of 4), granted permissions via Core; broader allocations are subject to RSUP governance.
* **Visibility** – see live flows on the [Revenue](https://resupply.finance/revenue) page; the contract's balances are public on-chain (see Contract Addresses).


# Multisig and Admin Permissions

## Multisig Address

* Ethereum: [GnosisSafe](https://app.safe.global/home?safe=eth:0xFE11a5009f2121622271e7dd0FD470264e076af6)
* Fraxtal: [GnosisSafe](https://safe.mainnet.frax.com/home?safe=fraxtal:0xFE11a5009f2121622271e7dd0FD470264e076af6)

## Multisig Members (3 of 4)

* C2tP - Convex Finance
* Winthorpe - Convex Finance
* Wavey - Yearn
* Dudesahn - Yearn

## Multisig Permissions

The following roles are occupied by the Resupply main multisig. All roles are subject to change by Resupply governance.

* **Treasury Manager:**&#x20;
  * Controls the Resupply treasury
  * Collect and distribute voting incentives on incentive markets like Votium, Vote Market, and yBribe
* **Guardian:**&#x20;
  * Can pause the protocol in an emergency
  * Can cancel malicious governance proposals

## How Permissions in Resupply Work

* All Resupply contracts are owned by `Core`, which can authorize specific accounts (generically referred to as "operators") to call specified functions on protocol or non-protocol assets from the context of Core.\
  \
  *Example:* `Voter.cancelProposal()` *is guarded with onlyOwner, but a trusted account may be granted authorization to call it via* `Core.execute()`*.*<br>
* Roles (e.g., Guardian) are contracts with a fixed set of authorizations granted to it by governance. They serve as method to group related permissions that have been granted and add transparency.<br>
* Roles contracts follow an upgradeable proxy pattern in order to expand their scope over time while maintaining the same address. The proxies are owned by \`Core\` which means that upgrades can be performed only via successful governance vote.


# Bug Bounties

**Scope:** Issues which can lead to substantial loss of money, critical bugs like a broken live-ness condition or irreversible loss of funds.

**Disclosure policy:**

* Let us know as soon as possible upon discovery of a potential security issue.
* Provide us a reasonable amount of time to resolve the issue before any disclosure **to the public or a third-party.**

**Exclusions:**

* Already known vulnerabilities.
* Vulnerabilities in front-end code not leading to smart contract vulnerabilities.

**Eligibility:**

* You must be the first reporter of the vulnerability
* You must be able to verify a signature from same address
* Provide enough information about the vulnerability

**Bounty payout:**

| Likelihood     | Low Severity | Medium Severity | High Severity |
| -------------- | ------------ | --------------- | ------------- |
| Almost Certain | $10,000.00   | $50,000.00      | $250,000.00   |
| Possible       | $1,000.00    | $10,000.00      | $50,000.00    |
| Unlikely       | $1,000.00    | $1,000.00       | $10,000.00    |

**Contact:** <contact@resupply.fi>


# Contract Addresses

All contracts are on **Ethereum mainnet**. The authoritative, always-updated list is [deployment/contracts.json](https://github.com/resupplyfi/resupply/blob/main/deployment/contracts.json); the table below is the frequently referenced subset (check contracts.json for the full list including every lending market and reward stream).

### Core & governance

| Contract                | Address                                      |
| ----------------------- | -------------------------------------------- |
| Core                    | `0xc07e000044F95655c11fda4cD37F70A94d7e0a7d` |
| Governance Token (RSUP) | `0x419905009e4656fdC02418C7Df35B1E61Ed5F726` |
| Governance Staker       | `0x22222222E9fE38F6f1FC8C61b25228adB4D8B953` |
| **Voter (active)**      | `0x11111111063874cE8dC6232cb5C1C849359476E6` |
| Emissions Controller    | `0x33333333df05b0D52edD13D230461E5A0f5a4706` |
| Vest Manager            | `0x6666666677B06CB55EbF802BB12f8876360f919c` |
| Registry                | `0x10101010E0C3171D894B71B3400668aF311e7D94` |

### Stablecoin & markets

| Contract               | Address                                      |
| ---------------------- | -------------------------------------------- |
| Stablecoin (reUSD)     | `0x57aB1E0003F623289CD798B1824Be09a793e4Bec` |
| Savings reUSD (sreUSD) | `0x557AB1e003951A73c12D16F0fEA8490E39C33C35` |
| Insurance Pool         | `0x00000000efe883b3304aFf71eaCf72Dbc3e1b577` |
| Pair Deployer V2       | `0x5555555558B7309ecB0FbB23e609ec3c6f74C2Ea` |
| Treasury               | `0x4444444455bF42de586A88426E5412971eA48324` |

Full market list (incl. crvUSD sDOLA/syrupUSDC/sfrxUSD/sxeUSD/sUSDc, frxUSD WBTC/sfrETH/sUSDc/scrUSD, crvUSD WETH/wstETH/WBTC) is in `deployment/contracts.json` under `PAIR_*` keys (the set is governance-driven — check the manifest for additions/removals).

### Operations & security

| Contract                          | Address                                      |
| --------------------------------- | -------------------------------------------- |
| Redemption Operator (proxy)       | `0x3F7C15d053Ab332D194D0040815E466d34387E40` |
| Redemption Handler                | `0x5eeB063d0abefBBc78F576E28d762a16b637A025` |
| Liquidation Handler               | `0x88888888c227c36401493Ed9F3e3Dcc3800B2634` |
| Borrow Limit Controller           | `0x0950000465476F4470e74AeD93E7dd414012BB7D` |
| Keeper                            | `0x49F7AA38af55322dE009ADD5f10a602CD26Ee958` |
| Fee Deposit                       | `0x07Ad4630985ADe5B5307806C43E57e0A9A932C52` |
| Fee Deposit Controller            | `0xC700000506423Bad12d5EB6D55b35EA9F5384Df6` |
| Guardian (operator proxy)         | `0xA4745e0B1F40ab3DCFD98F381835De591a8974E3` |
| Treasury manager (operator proxy) | `0x4CF97a55d58Aad14C493A46C8151a0BFffb10403` |
| Multisig (3-of-4)                 | `0xFE11a5009f2121622271e7dd0FD470264e076af6` |
| Retention Incentives              | `0xB9415639618e70aBb71A0F4F8bbB2643Bf337892` |
| Retention Receiver                | `0x6E7D5dade33f76F480EA38E3c47f870de74906F1` |


