|
1 | 1 | # @mrgnlabs/marginfi-client-v2 |
2 | 2 |
|
| 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 | + |
3 | 47 | ## 5.0.0 |
4 | 48 |
|
5 | 49 | ### Major Changes |
|
0 commit comments