Refer a fren and earn rewards!

Yes, take me there!

Logo

-

Update the FiRM Borrow Controller To Linear Borrow Limit Replenishments [1/2]

Executed
#298 - mills ERA

Created Jun 11th, 2025 - Executed Jun 16th, 2025

Details

avatar

HarryGasWallet

Update the FiRM Borrow Controller

Forum Post: https://forum.inverse.finance/t/update-the-firm-borrow-controller/572

Summary

This proposal aims to update the borrow controller for all active markets on FiRM to implement an improved method of handling the daily borrow limit. The changes will introduce a rolling 24-hour limit, replacing the current system, which resets the borrow limit at midnight (00:00 UTC).

Background

The borrow controller in FiRM serves as a gatekeeper for borrowing transactions, determining if users are permitted to borrow based on the following criteria:

  • Market Daily Borrow Limit: Verifies that the requested borrow amount does not exceed the remaining daily borrow limit for the market.
  • Smart Contract Verification: Checks whether the borrowing address is a smart contract and, if so, ensures it is on the whitelist.

The daily borrow limit is a key risk management feature designed to:

  • Mitigate potential DAO losses in the event of an exploit
  • Limit the financial gain for would-be exploiters

Currently, the daily borrow limit resets entirely at midnight (00:00 UTC), leading to the following drawbacks:

  • Double Borrowing Exploitability: A borrower can execute a transaction just before midnight and another immediately after, effectively doubling the daily limit in a short period.
  • Non-Linear Competition: In competitive markets like DOLA/USR, borrowers who act first after midnight can consume the entire limit, leaving no capacity for others.

To address these issues, we propose shifting to a rolling 24-hour borrow limit. This updated mechanism will replenish borrowing capacity incrementally with each passing second, rather than resetting at a fixed time.

Implementation

The rolling-limit borrow controller we are reinstating has already proved itself in production: it was first rolled out by Grace Protocol and later activated on a group of pilot markets within FiRM, where it underwent rigorous live testing. During the subsequent Pectra-compliant controller upgrade, that rolling-limit module was inadvertently removed from those markets. This proposal simply restores the same, fully validated logic—while keeping every other feature of the current controller—and extends it to every active FiRM market. The code has passed exhaustive internal testing as well as an independent external review, giving the DAO high confidence in its reliability and security.

Onchain Actions:

  • Set operator of new BorrowController to the BorrowControllerMigrationHelper
  • Add new BorrowController as DBR minter
  • Add new BorrowController as borrowController for half of FiRM markets (limited by governor action limit)
  • Migrate allowlisted addresses from old BorrowController to new BorrowController
  • Migrate market staleness, mindebt and debtlimit parameters from old BorrowController to new BorrowController
  • Set operator of new BorrowController to governance

Actions

Action 1
0x01ec...4ce8
.setOperator(
0x829A...456D

)

Action 2
DBR
.addMinter(

)

Action 3
FiRM cvxCRV Market
.setBorrowController(

)

Action 4
FiRM CRV Market
.setBorrowController(

)

Action 5
FiRM INV Market
.setBorrowController(

)

Action 6
FiRM WETH Market
.setBorrowController(

)

Action 7
FiRM st-yCRV Market
.setBorrowController(

)

Action 8
Action 9
Action 10
Action 11
Action 12
Action 13
Action 14
Action 15
Action 18
0x829a...456d
.transferOwnership(

)

Proof of Reviews

Members allowed to make Drafts can sign the fact that they reviewed the Draft Proposal

Loading...

For Votes

2 voters

122.51k votes

avatar

0x759a...f430

100.50k

avatar

CryptoHarry

22.00k

Against Votes

0 voters

0.00 votes

Subscribe to Our Newsletter

Join thousands of subscribers in receiving weekly updates about Inverse products, partnerships, and early-bird news shared only with subscribers!

Products

sDOLADOLAINVFiRMStable Yields

Social