Parameters:
long open interest of each currency in USD for all users
short open interest of each currency in absolute value in USD for all users. soi >=0
a risk management parameter for each currency. pr
net position of each currency in USD for all users. (loi-soi)
funding rate of each currency
total LP tokensβ net asset value, in USD, equal to LPβs cash after instantly closing all user positions without fee
Assume the funding rate velocity is positively correlated with LPsβ.
When rβ
s>=0,
dtdrβ=β©β¨β§ββVmaxβprβ
LPsββ
VmaxβVmaxβββsβ€βprβ
LPsβ(βprβ
LP,prβ
LP]s>prβ
LPβ When rβ
s<0,
dtdrβ=β©β¨β§ββ2β
Vmaxβ2β
prβ
LPsββ
Vmaxβ2β
Vmaxβββsβ€βprβ
LPsβ(βprβ
LP,prβ
LP]s>prβ
LPβ