Skip to content

Commit 2f7de5c

Browse files
committed
RELEASING: Releasing 1 package(s)
Releases: @mrgnlabs/marginfi-client-v2@6.0.0 [skip ci]
1 parent dfc2b53 commit 2f7de5c

File tree

3 files changed

+46
-7
lines changed

3 files changed

+46
-7
lines changed

.changeset/thin-teams-mix.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/marginfi-client-v2/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# @mrgnlabs/marginfi-client-v2
22

3+
## 6.0.0
4+
5+
### Major Changes
6+
7+
- dfc2b53: # 🚀 Major Changes (version 6.0.0)
8+
9+
- **Improved SOL Wrapping & Unwrapping** 🌀
10+
Handling of **native SOL and wSOL token accounts** has been significantly improved across the platform.
11+
12+
- More robust detection and management of wSOL accounts.
13+
- Improved behavior in transaction builders like `makeLooperTx` and `makeRepayWithCollateralTx`.
14+
- Better UX and fewer edge case failures when wrapping or unwrapping SOL in margin and flashloan flows.
15+
16+
- **MEV Reward Support via Stake Pool Flow** 💰
17+
Users who deposit native SOL into the **Single Validator Stake Pool (SVSP)** now earn MEV rewards on their stake—just as they would when staking with a validator.
18+
19+
- Each epoch, MEV rewards earned by the **main pool** are temporarily moved to an **"on-ramp" account**, where they are staked to the same validator.
20+
- In the following epoch, that stake is moved back into the **main pool**.
21+
- This cycle repeats each epoch for new MEV rewards.
22+
23+
- **New IDL Logic & Account Inference** 🧠
24+
This release revamps instruction generation with **implied account arguments** and convenience flags:
25+
26+
## 🧩 Implied Anchor Arguments
27+
28+
- Most instructions now infer required accounts based on minimal inputs.
29+
- Reduces boilerplate significantly when using the SDK from TypeScript.
30+
31+
## 📉 Deposit Up to Limit
32+
33+
- New `depositUpToLimit` flag allows deposits to fill the remaining capacity of a bank.
34+
35+
## ⚠️ Backwards Compatibility Notes
36+
37+
- Most instructions now use updated account names (e.g., `marginfi_group``group`) but maintain account order.
38+
- **Non-breaking** for Rust clients using positional metas.
39+
- **Potentially breaking** for TypeScript clients or CPI consumers that pass accounts manually.
40+
- Use `accountsPartial` to override inference where necessary.
41+
42+
## 🛠 Minor Improvements to Bundle Handling
43+
44+
- Slight improvements to bundle error handling.
45+
- More consistent signature behavior
46+
347
## 5.0.0
448

549
### Major Changes

packages/marginfi-client-v2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mrgnlabs/marginfi-client-v2",
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"license": "MIT",
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"@coral-xyz/anchor": "^0.30.1",
1919
"@coral-xyz/borsh": "^0.30.1",
20-
"@mrgnlabs/mrgn-common": "workspace:*",
20+
"@mrgnlabs/mrgn-common": "2.0.2",
2121
"@pythnetwork/pyth-solana-receiver": "^0.8.0",
2222
"@solana/wallet-adapter-base": "^0.9.23",
2323
"@solana/web3.js": "^1.93.2",

0 commit comments

Comments
 (0)