Rehypothecation
As was described for Dynamic Lenders, we take a portion of the LP deposit reserve and supply this to a floating rate market. This reserve amount is dynamically managed based on a set of preset parameters from the DAO.
Reserve Allocation Model
We define a parameter a reserve ratio ϕ representing the ratio of liquid (unrehypothecated) FW-USDC reserves to the total FW-USDC supply in the pool:
We also define a target reserve ratio ϕtarget, along with lower and upper tolerance bounds ϕmin and ϕmax, respectively. This reserve ratio is calculated with every market action. If the calculated reserve ratio ϕ falls outside the acceptable range [ϕmin,ϕmax], the system rebalances the reserves to restore ϕ to the target value:
For example, if ϕ drops below ϕmin, additional FW-USDC from the liquid reserve is allocated to the variable-rate vault, effectively increasing rehypothecation. Conversely, if ϕ exceeds d ϕmax, FW-USDC is withdrawn from the vault to increase liquid reserves.
Example Flows
Let's assume a market has 1000 FW-USDC and of this amount, 200 currently have their corresponding USDC reserve allocated to a variable rate market. Therefore, 800 remain in reserve, making ϕ=1000800=0.8.
ϕtarget=0.75
ϕmin=0.65
ϕmax=0.85
Case 1 - Withdrawal
Let's assume a borrow trade comes through the market (swap BT for FW) and a user borrows 500 FW-USDC, making the remaining reserve 500 FW-USDC. Upon recomputing our reserve ratio, we now have ϕ=500300=0.6→ϕ<ϕmin which triggers a reserve rebalance.
To do this, the smart contract rebalanaces the reserves by withdrawing 75 USDC from the variable rate market to bring the reserve ratio to the target rate ϕnew=500375=0.75=ϕtarget.
Case 2 - Deposit
In this case, let's assume a lending trade comes through the market (swap FW for BT) and a user lends 400 FW-USDC, making the new reserve 1200 FW-USDC. Upon recomputing our reserve ratio, we now have ϕ=14001200≈0.857→ϕ>ϕmax which triggers a reserve rebalance.
To do this, the smart contract rebalanaces the reserves by deposting 150 USDC of the unrehypothecated reserves to the variable rate market to bring the reserve ratio to the target rate ϕnew=14001050=0.75=ϕtarget.
Last updated