Skip to content

Commit 8bd6693

Browse files
committed
note
1 parent a267da9 commit 8bd6693

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

notes/position/borrowing_fee.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if optimal usage factor = 0
8080

8181
```
8282
usage 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
8484
max reserve = reserve factor * pool usd
8585
open interest usage factor = open interest / max open interest
8686
```

notes/position/funding_fee.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
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)
6971
F = 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
```
7577
MarketUtils.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

132134
Claim fees from increased pool amount
133135

0 commit comments

Comments
 (0)