Refer a fren and earn rewards!

Yes, take me there!

Logo

-

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

Executed
#250 - mills ERA

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

Details

avatar

HarryGasWallet

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
«
Set FiRM yv-sUSDS-DOLA Market minimum debt to

3,000

DOLA
»
FiRMBorrowController-v2
.setMinDebt(
FiRM yv-sUSDS-DOLA Market,

3000000000000000000000

)

Action 2
«
Set FiRM scrvUSD-DOLA Market minimum debt to

3,000

DOLA
»
FiRM scrvUSD-DOLA Market,

3000000000000000000000

)

Action 3
«
Set FiRM yv-scrvUSD-DOLA Market minimum debt to

3,000

DOLA
»
FiRM yv-scrvUSD-DOLA Market,

3000000000000000000000

)

Action 4
«
Set FiRM PT-sUSDe-27MAR25 Market staleness threshold to

86,460

seconds (01d:00h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 5
«
Set FiRM sUSDe-DOLA Market staleness threshold to

86,460

seconds (01d:00h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 6
«
Set FiRM yv-sUSDe-DOLA Market staleness threshold to

86,460

seconds (01d:00h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 7
«
Set FiRM sUSDS-DOLA Market staleness threshold to

3,660

seconds (01h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 8
«
Set FiRM yv-sUSDS-DOLA Market staleness threshold to

3,660

seconds (01h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 9
«
Set FiRM scrvUSD-DOLA Market staleness threshold to

86,460

seconds (01d:00h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 10
«
Set FiRM yv-scrvUSD-DOLA Market staleness threshold to

86,460

seconds (01d:00h:01m:00s)
»
FiRMBorrowController-v2
.setStalenessThreshold(

)

Action 11
«
Set FiRM sUSDe-DOLA Market Daily Borrow Limit to

1,000,000

DOLA
»
FiRM sUSDe-DOLA Market,

1000000000000000000000000

)

Action 12
«
Set FiRM yv-sUSDe-DOLA Market Daily Borrow Limit to

1,000,000

DOLA
»
FiRM yv-sUSDe-DOLA Market,

1000000000000000000000000

)

Action 13
«
Set FiRM sUSDS-DOLA Market Daily Borrow Limit to

1,000,000

DOLA
»
FiRM sUSDS-DOLA Market,

1000000000000000000000000

)

Action 14
«
Set FiRM yv-sUSDS-DOLA Market Daily Borrow Limit to

1,000,000

DOLA
»
FiRM yv-sUSDS-DOLA Market,

1000000000000000000000000

)

Action 15
«
Set FiRM scrvUSD-DOLA Market Daily Borrow Limit to

1,000,000

DOLA
»
FiRM scrvUSD-DOLA Market,

1000000000000000000000000

)

Action 16
«
Set FiRM yv-scrvUSD-DOLA Market Daily Borrow Limit to

1,000,000

DOLA
»
FiRM yv-scrvUSD-DOLA Market,

1000000000000000000000000

)

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