Depositing & Borrowing
BenFi's core functionalities involve two roles:
-
Depositor: Deposits BUSD to earn fixed interest.
-
Borrower: Stakes BTC as collateral to borrow BUSD, allowing users to flexibly increase capital utilization without selling their BTC. This mechanism is executed transparently on-chain, ensuring the security of funds for both parties.
Collateral
Collateral is the asset that a borrower pledges to secure a loan.
-
Borrowers must pledge sufficient assets (BTC) to borrow BUSD.
-
Purpose: To safeguard depositor funds. If the borrower defaults, the collateral will be liquidated to repay the loan.
What is LTV (Loan-to-Value Ratio)?
LTV (Loan-to-Value) is a key metric for assessing borrowing risk, calculated as:
LTV = Borrowing Amount / Collateral Value
Example: If a user stakes BTC, worth $200,000, to borrow $100,000 worth of BUSD, the LTV is 50%. ⚠️ Risk Warning: The higher the LTV, the greater the proportion of the borrowing amount to the value of the collateral asset, and the higher the risk.
-
When this ratio exceeds the liquidation threshold, the borrowing order faces a risk of liquidation.
Matching Cycle
Matching Core Logic
-
Priority Rules
-
Renewal deposit/borrow orders are prioritized for matching and sorted in chronological order of their original creation time (the earlier the order was created, the sooner it will be processed).
-
New orders are sorted by their submission time within the current cycle.
-
-
Key Principles
-
Borrow orders must be matched completely (no partial borrowing allowed). Deposit orders allow partial matching.
-
If renewal fails to match, the order immediately expires, requiring repayment; otherwise, liquidation is triggered.
-
Reasons for renewal failure include, but are not limited to:
-
The order has already entered the liquidation process.
-
Fewer market investors are available; currently, renewal is only supported when matched with new deposit orders.
-
-
-
Matching Process
-
The initial maximum borrowable amount for the day is the total amount of deposit orders that enter the matching process on that day.
-
Prioritize the matching of borrowing orders, starting from the earliest order:
-
If (Total Borrowed Amount Already Matched Today + Current Borrowing Order Amount) > Maximum Borrowable Amount Today, then the current order matching fails, and the borrowing matching terminates. The total borrowed amount for the day is the total amount that has been successfully matched so far.
-
If (Total Borrowed Amount Already Matched Today + Current Borrowing Order Amount) <= Maximum Borrowable Amount Today, then the current order is matched successfully. Simultaneously, Total Borrowed Amount Today += Current Order Borrowing Amount. Proceed to match the next order.
-
-
Deposit Order Matching:
-
If (Total Matched Deposits Today + Current Deposit Order Amount) > Total Borrowed Amount Today, then the current order is partially matched; Matched Amount = Total Borrowed Amount Today - Total Matched Deposit Amount; Matching terminates.
-
If (Total Matched Deposits Today + Current Deposit Order Amount) < Total Borrowed Amount Today, then the current order is fully matched successfully; Total Matched Deposits Today += Current Deposit Order Amount, then proceed to match the next deposit order.
-
Matching Result Processing
-
Matched Orders:
-
New Borrowing/Deposit Order: Generate new borrowing/deposit orders. The principal is user-set, and the interest rate is the locked rate.
-
Renewal orders generate renewal orders. The loan principal is the user's initial setting ➖ early repayment part. The deposit principal is the user's initial setting. The current interest rate is the locked interest rate, and the interest is the sum of historical interest ➖ repaid interest.
-
-
Unmatched Orders:
-
New Borrowing/Deposit: Returned to pre-deposit status, available for matching in the next cycle.
-
Renewal Deposit Orders: Returned to pre-deposit status, available for matching in the next cycle. While in pre-deposit status, users can withdraw.
-
Renewal Borrowing Orders: The order expires. The user must repay; failure to repay on time results in the disposal of collateral.
-
Post-Cycle Process
-
Interest Rate Locked: All matched orders retain a fixed interest rate for the duration of the cycle.
-
LTV Monitoring: Real-time monitoring of Loan-to-Value (LTV) ratios. If LTV exceeds the threshold, a liquidation warning is triggered.
-
Expiration & Liquidation:
-
Borrower repays on time → Reclaims collateral.
-
Failure to repay on time → Automatic auction of collateral to repay the loan.
-