Refer a fren and earn rewards!

Yes, take me there!

Logo

-

Update FiRM Borrow Controller for the PT-sUSDe-27MAR25 and LP Markets (1/2)

Executed
#249 - mills ERA

Created Dec 18th, 2024 - Executed Dec 23rd, 2024

Details

avatar

CryptoHarry

Update FiRM Borrow Controller for the PT-sUSDe-27MAR25 and LP Markets

Forum Post: https://forum.inverse.finance/t/update-firm-borrow-controller-for-the-pt-susde-27mar25-and-lp-markets/505

Summary

This proposal aims to update the borrow controller for the PT-sUSDe-27MAR25 market and DOLA LP markest 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 PT-sUSDe, 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 new borrow controller logic has been rigorously tested and deployed in production by Grace protocol for over 6 months. By adapting this proven system for FiRM, we can enhance risk management while maintaining operational consistency. The updated borrow controller has undergone thorough internal and external reviews to ensure its reliability and security.

This proposal focuses initially on the PT-sUSDe-27MAR25 and LP markets, which have the highest demand and urgency for improvement. Once validated, the changes will be incrementally rolled out to the remaining FiRM markets.

On-Chain Actions

Actions

Action 1
FiRM PT-sUSDe-27MAR25 Market
.setBorrowController(
FiRMBorrowController-v2

)

Action 2
Action 4
Action 8
Action 11
«
Set FiRM PT-sUSDe-27MAR25 Market Daily Borrow Limit to

2,000,000

DOLA
»
FiRM PT-sUSDe-27MAR25 Market,

2000000000000000000000000

)

Action 14
«
Set FiRM PT-sUSDe-27MAR25 Market minimum debt to

3,000

DOLA
»
FiRM PT-sUSDe-27MAR25 Market,

3000000000000000000000

)

Action 15
«
Set FiRM sUSDe-DOLA Market minimum debt to

3,000

DOLA
»
FiRM sUSDe-DOLA Market,

3000000000000000000000

)

Action 16
«
Set FiRM yv-sUSDe-DOLA Market minimum debt to

3,000

DOLA
»
FiRM yv-sUSDe-DOLA Market,

3000000000000000000000

)

Action 17
«
Set FiRM sUSDS-DOLA Market minimum debt to

3,000

DOLA
»
FiRM sUSDS-DOLA Market,

3000000000000000000000

)

Proof of Reviews

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

Loading...

For Votes

2 voters

105.54k votes

avatar

0x759a...f430

85.00k

avatar

CryptoHarry

20.54k

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

sDOLADOLAsINVINVFiRM

Social