File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ if optimal usage factor = 0
8080
8181```
8282usage factor = max(reserve usage factor, open interest usage factor)
83- reserve usage factor = reserve usage / max reserve
83+ reserve usage factor = reserved USD / max reserve
8484max reserve = reserve factor * pool usd
8585open interest usage factor = open interest / max open interest
8686```
Original file line number Diff line number Diff line change 11# Funding fee
22
3+ ## Purpose
4+
35- Incentivise the balancing of long and short positions,
46- Side with larger open interest pays a funding fee to the side with the smaller open interest
57- Balances long and short demands
68 - Traders pay each other instead of LPs directly covering trader profits
79
8- > How is funding fee rate calculated?
10+ ## How is funding fee rate calculated?
911
1012` MarketUtils.getNextFundingAmountPerSize `
1113
@@ -69,7 +71,7 @@ F = s * min(|F|, F_max)
6971F = s * max(|F|, F_min)
7072```
7173
72- > How is funding fee updated for trader?
74+ ## How is funding fee updated for trader?
7375
7476```
7577MarketUtils.updateFundingState
@@ -127,7 +129,7 @@ ExecuteOrderUtils.executeOrder
127129 └─ position.setShortTokenClaimableFundingAmountPerSize
128130```
129131
130- > How is funding fee claimed by LP?
132+ ## How is funding fee claimed by LP?
131133
132134Claim fees from increased pool amount
133135
You can’t perform that action at this time.
0 commit comments