💰Borrowing Optimization
• Coming later •
Last updated
• Coming later •
Last updated
REBALANCE enhances the DeFi experience by introducing an advanced borrowing refinancing system, designed to optimize debt positions and mitigate the risk of liquidation through strategic refinancing and a soft-liquidation process. Here’s how it works:
The algorithm takes into account each integrated protocols’ math, to count the potential influence of the liquidity on the borrowing rates and utilization. The refinancing process involves several key steps to ensure debt positions benefit from optimal interest rates.
Calculation: The system calculates which lending protocol offers the best rate for the user's debt position based on the on-chain data.
Refinance initiation: The efficient allocation model is transferred to the loans vault.
Refinance execution: Protocol takes a flash loan, repays borrowing position, and withdraws a collateral. Then the debt is transferred to a new protocol offering a better rate.
The cornerstone of managing debt positions within REBALANCE is the computation of the user’s health factor. This metric determines the risk of liquidation for a debt position. Due to Solidity's limitations with decimal numbers, the health factor is scaled by a factor of 1e18. A health factor below 1e18 signals an "unhealthy" position, indicating it is at risk of liquidation. (see formula below)
REBALANCE employs a "soft-liquidation" process to manage positions nearing liquidation.
If a user's health factor falls between 1e18 and 0.95e18, indicating moderate risk, only up to 50% of the debt can be liquidated. For health factors at or below 0.95e18, full liquidation becomes possible.
This process is regulated by introducing a "close factor" to manage liquidation extents. (see formula below)
During liquidation, liquidators repay part of the debt to receive asset shares from the liquidated user at a discounted rate, typically 97% of the asset's oracle price, applying a 3% penalty on the user for asset liquidation.