Skip to content

Commit e8708a8

Browse files
committed
Merge branch 'master' into crispheaney/isolated-position
2 parents eb60940 + 1e129e3 commit e8708a8

File tree

176 files changed

+13689
-3534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+13689
-3534
lines changed

.eslintrc.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ module.exports = {
3737
// Restrict importing BN from bn.js
3838
"group": ["bn.js"],
3939
"message": "Import BN from @drift-labs/sdk instead",
40-
}
40+
},
41+
{
42+
// Prevent imports from index files within the same package
43+
group: [
44+
'**/index',
45+
'**/index.ts',
46+
],
47+
message:
48+
'Do not import from index file within the same package. Import directly from source files instead. This prevents barrel imports.',
49+
},
4150
],
4251
},
4352
],

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ jobs:
304304
VERSION: ${{ needs.release.outputs.version }}
305305
working-directory: ./sdk
306306
check-for-program-version-changes:
307-
runs-on: ubuntu-latest
307+
runs-on: ubicloud
308308
# Set job outputs to values from filter step
309309
outputs:
310310
program: ${{ steps.filter.outputs.program }}

CHANGELOG.md

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,151 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Features
1111

12+
- program: support scaled ui extension ([#1894](https://github.com/drift-labs/protocol-v2/pull/1894))
13+
14+
### Fixes
15+
16+
### Breaking
17+
18+
## [2.137.0] - 2025-09-15
19+
20+
### Features
21+
22+
- program: post only respects reduce only ([#1878](https://github.com/drift-labs/protocol-v2/pull/1878))
23+
- program: add sequence id to exchange/mm oracle ([#1834](https://github.com/drift-labs/protocol-v2/pull/1834))
24+
- program: perp position max margin ratio ([#1847](https://github.com/drift-labs/protocol-v2/pull/1847))
25+
- program: add padding to swift messages ([#1845](https://github.com/drift-labs/protocol-v2/pull/1845))
26+
- program: rm lp ([#1755](https://github.com/drift-labs/protocol-v2/pull/1755))
27+
28+
### Fixes
29+
30+
- program: make it easier to fill step size orders ([#1799](https://github.com/drift-labs/protocol-v2/pull/1799))
31+
- program: relax fee tier constraints for maker ([#1876](https://github.com/drift-labs/protocol-v2/pull/1876))
32+
33+
### Breaking
34+
35+
## [2.136.0] - 2025-09-03
36+
37+
### Features
38+
39+
- program: update referral fee validate rules ([#1843](https://github.com/drift-labs/protocol-v2/pull/1843))
40+
41+
### Fixes
42+
43+
### Breaking
44+
45+
## [2.135.0] - 2025-08-22
46+
47+
### Features
48+
49+
### Fixes
50+
51+
- program: trigger price use 5min mark price ([#1830](https://github.com/drift-labs/protocol-v2/pull/1830))
52+
53+
### Breaking
54+
55+
## [2.134.0] - 2025-08-13
56+
57+
### Features
58+
59+
- program: add new settle pnl invariants ([#1812](https://github.com/drift-labs/protocol-v2/pull/1812))
60+
- program: add update_perp_market_pnl_pool ([#1810](https://github.com/drift-labs/protocol-v2/pull/1810))
61+
- program: increase min margin ratio invariant constant ([#1802](https://github.com/drift-labs/protocol-v2/pull/1802))
62+
- program: update mark twap crank use 5min basis for bid/ask ([#1769](https://github.com/drift-labs/protocol-v2/pull/1769))
63+
64+
### Fixes
65+
66+
- program: remove burn lp shares invariant ([#1816](https://github.com/drift-labs/protocol-v2/pull/1816))
67+
- program: correct fee tier 5 volume requirement ([#1800](https://github.com/drift-labs/protocol-v2/pull/1800))
68+
- program: fix small number mark-twap-integer-bias ([#1783](https://github.com/drift-labs/protocol-v2/pull/1783))
69+
70+
### Breaking
71+
72+
## [2.133.0] - 2025-08-11
73+
74+
### Features
75+
76+
### Fixes
77+
78+
### Breaking
79+
80+
- program: have TRY_SETTLE pnl mode fail ([#1809](https://github.com/drift-labs/protocol-v2/pull/1809))
81+
82+
## [2.132.0] - 2025-08-06
83+
84+
### Features
85+
86+
- program: update max borrow delta/utilization thresholds ([#1760](https://github.com/drift-labs/protocol-v2/pull/1801))
87+
88+
### Fixes
89+
90+
### Breaking
91+
92+
## [2.131.1] - 2025-08-04
93+
94+
### Features
95+
96+
### Fixes
97+
98+
- program: update-fee-tier-validates ([#1798](https://github.com/drift-labs/protocol-v2/pull/1798))
99+
100+
### Breaking
101+
102+
## [2.131.0] - 2025-08-04
103+
104+
### Features
105+
106+
- program: update stake + volume fee tier determination ([#1792](https://github.com/drift-labs/protocol-v2/pull/1792))
107+
108+
### Fixes
109+
110+
- program: less aggressive fill bands for spot swaps ([#1796](https://github.com/drift-labs/protocol-v2/pull/1796))
111+
112+
### Breaking
113+
114+
## [2.130.0] - 2025-07-29
115+
116+
### Features
117+
118+
- program: new median price for trigger orders ([#1716](https://github.com/drift-labs/protocol-v2/pull/1716))
119+
- program: mm oracle ([#1767](https://github.com/drift-labs/protocol-v2/pull/1767))
120+
- program: add high leverage maintenance margin mode ([#1759](https://github.com/drift-labs/protocol-v2/pull/1759))
121+
122+
### Fixes
123+
124+
- program: update validate fill price to work both directions ([#1772](https://github.com/drift-labs/protocol-v2/pull/1772))
125+
126+
### Breaking
127+
128+
## [2.129.0] - 2025-07-23
129+
130+
### Features
131+
132+
- program: lp reduce only ([#1749](https://github.com/drift-labs/protocol-v2/pull/1749))
133+
- program: new margin mode enum ([#1765](https://github.com/drift-labs/protocol-v2/pull/1765))
134+
135+
### Fixes
136+
137+
- program: fix reference price decay ([#1761](https://github.com/drift-labs/protocol-v2/pull/1761))
138+
139+
### Breaking
140+
141+
## [2.128.1] - 2025-07-21
142+
143+
### Features
144+
145+
### Fixes
146+
147+
- program: reference-price-offset-override ([#1760](https://github.com/drift-labs/protocol-v2/pull/1760))
148+
149+
### Breaking
150+
151+
## [2.128.0] - 2025-07-20
152+
153+
### Features
154+
155+
- program: smooth decay for reference price offset ([#1758)](https://github.com/drift-labs/protocol-v2/pull/1758))
156+
12157
### Fixes
13158

14159
### Breaking

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)