Formulas and Calculations
The Throttle Module relies on various formulas and calculations to achieve its functionality
Throttle function
t(r,s,m,(DL,ΔVsΔVb))→(ΔB,H)<(x,y) Rule for comparing pairs is as following:
∀a,b,c,d∈Q, (a,b)<(c,d)⟺(a<b and c<d)
Where:
m: Multiplier on borrowing amount
DL: Potential liquidation amount at risk over market depth
ΔVsΔVb: Rate of increase in borrowing velocity versus supply velocity
(ΔB,H): Output tuple representing delta in borrowing/supply and market health factor
(x,y): Threshold values for output control
Q is set of all rational numbers
This means that:
Throttle Function is calculated
Output values are compared with Threshold Values
Further actions are based on the result of comparison
Borrowing and supply velocities
Borrowing velocity, Vb=Wallets transacted per epochNet increase in borrowing (USD) Supply velocity, Vs=Wallets transacted per epochNet increase in supply (USD)
Rate of change of these velocities
ΔB=Rate of change of Vb,ΔS=Rate of change of Vs
Borrow Rate Calculations
If ΔSΔB≥Critical level⇒rnew=m⋅r+s Where rnew is a new borrow rate after applying multiplier and surcharge
Total pool at risk ratio
If sudden 50% downside risk, then:
if PtotalPat risk<x⇒ no action neededif x≤PtotalPat risk<y⇒adjust borrow/supply rates gradually+emit warningsif PtotalPat risk≥y⇒adjust rates immediately and liquidate Where:
x - primary threshold
y - secondary threshold
Pat−risk - pool value at risk
Ptotal - total value of pool
x<y
Rate Adjustment Formula
Adjusted borrow rate=Base Borrow Rate×(1+Multiplier×(ΔBΔS−CR))+ Surcharge Last updated