Releases: drift-labs/protocol-v2
v2.132.0
v2.131.1
What's Changed
- Add lint for index imports by @ChesterSim in #1787
- sdk: revert grpc account subscribers to v2.126.0-beta.0 by @wphan in #1789
- lukas/gill websocket sub by @LukasDeco in #1781
- fix: ws v2 subscriber hangs on async iterable loop by @LukasDeco in #1793
- fix: websocket order subscriber using v2 too soon by @LukasDeco in #1794
- sdk: enter-high-leverage-mode-false by @0xbigz in #1791
- refactor(sdk): allow user client input for cancel orders by @ChesterSim in #1797
- program: relax fill validation for spot/swap by @crispheaney in #1796
- bigz/determine-fee-tier-update by @0xbigz in #1792
- program: update-fee-tier-validates by @0xbigz in #1798
Full Changelog: v2.130.0...v2.131.1_0
verified build: 4bba9ab64f98c55e50c9d4dd8521ee722d70d2069c8eb5e0a3951a4166639c78
v2.130.0
What's Changed
- sdk: add detailed subscription log name by @wphan in #1773
- sdk: add more ws reconnect checks and logs by @wphan in #1774
- program: add-high-leverage-maintenance-mode by @0xbigz in #1759
- Remove barrel imports from SDK by @ChesterSim in #1777
- Nour/mm oracle 2 by @crispheaney in #1767
- Improve circular dependencies 1 by @ChesterSim in #1776
- Improve Circular Dependencies 2 by @ChesterSim in #1778
- Remove Circular Dependencies 3 by @ChesterSim in #1779
- vamm l2 oracle changes by @NourAlharithi in #1780
- program: stop counting reduce only orders to open bids/asks by @crispheaney in #1746
- Nour/validate fill change by @NourAlharithi in #1772
- sdk: revert drift interface by @crispheaney in #1784
- sdk: restore grpc disconnect default behavior by @wphan in #1782
- program: trigger price based on oracle and basis by @crispheaney in #1716
Full Changelog: v2.129.0...v2.130.0
verified build hash: 20e7a51008fd8a015b07a2d7742d52ef1d6866a49a480bfb0749b664fd3873ca
v2.129.0
What's Changed
- program: update-max-settle-if-gov-constant by @0xbigz in #1763
- program: correct-ref-price-min by @0xbigz in #1761
- Nour/mm oracle by @NourAlharithi in #1738
- program: make lp shares reduce only by @crispheaney in #1749
- fix tests by @NourAlharithi in #1764
- program: add new margin mode enum by @crispheaney in #1765
- Nour/move ixs around by @NourAlharithi in #1766
Full Changelog: v2.128.1...v2.129.0
hash: ca3aa9c79895723c59fad58f59810748e5293e0e9158acc7961c5dced71456a1
v2.128.1
v2.128.0
What's Changed
- sdk: handle undefined transfer hook program by @wphan in #1737
- sdk: add const-spot-market-index-56 by @0xbigz in #1736
- sdk: migrate PUMP-PERP oracle source by @lowkeynicc in #1739
- chore: bump web3js by @LukasDeco in #1742
- sdk: add high leverage check to getMarginRequirement by @lowkeynicc in #1743
- zero unused amm fields by @NourAlharithi in #1735
- decomm additional amm field by @NourAlharithi in #1751
- sdk: ref price offset calc by @wphan in #1750
- sdk: update launchcoin and cloud oracles by @crispheaney in #1752
- Revert "sdk: add more descriptive account subscriber names" by @wphan in #1754
- program: add amm decay for reference price offset by @0xbigz in #1732
- program: amm decay for reference price offset abs fix + sdk by @0xbigz in #1758
- program: fix validate_perp_market accounting for inv spread adj by @crispheaney in #1741
- program: rm validate_perp_fill_possible by @crispheaney in #1740
- program: update-ref-reward-limits by @0xbigz in #1722
Full Changelog: v2.127.0...v2.128.0
Verified build hash: 04997a254fec32248afddfb30a056bb178953c75a10b7364c4c698eee5449432
v2.127.0
What's Changed
- sdk: add constants-market-index-55 by @0xbigz in #1728
- sdk: add constants market index 75 by @0xbigz in #1729
- program: allow hot admin to update prelaunch oracle by @crispheaney in #1734
- program: init passing in remaining accounts for transfer hook by @crispheaney in #1730
verified build hash: b55e622a18f2bded83eef5da3986c1f524a1cdce3d26a560dac6675ce2fd90fa
Full Changelog: v2.126.0...v2.127.0
v2.126.0
What's Changed
- sdk: only count taker fee in calculateEntriesEffectOnFreeCollateral f… by @lowkeynicc in #1694
- Separate getAddInsuranceFundStakeIxs by @Jesscha in #1695
- idl: amm-inv-adj-latest-idl by @0xbigz in #1697
- sdk: spot-market-index-54 constants by @0xbigz in #1696
- fix(dlob): filter signedMsg orders by taking vs resting status by @jordy25519 in #1700
- refactor(sdk): enforce payer to only interact with own if stake and user stats by @ChesterSim in #1709
- fix AMM reference price offset by @wphan in #1683
- sdk: fix grpc reconnect logic by @wphan in #1717
- program: add-recenter-amm-crank-instruction by @0xbigz in #1706
- program: account for initial margin ratio for disable_user_high_lever… by @crispheaney in #1720
- program: allow subset of transfer to revenue pool for protocol if by @crispheaney in #1721
- Wphan/usermap eventemitter by @wphan in #1724
New Contributors
verified build hash: ffaf9b22d39d31e767f6928634df41a7e3caa179a34495845fa0c9509084e302
Full Changelog: v2.125.0...v2.126.0
v2.125.0
What's Changed
- program: three-point-std-estimator by @0xbigz in #1686
- sdk: add-updatePerpMarketOracleSlotDelayOverride by @0xbigz in #1691
- program: add-amm-inventory-spread-adjustment-param by @0xbigz in #1690
- program: max-apr-rev-settle-by-spot-market by @0xbigz in #1692
- program: better account for imf in calculate_max_perp_order_size by @crispheaney in #1693
Verified Build: d58138040c774e5a5b345e67d22fa5e7879f5cc3695b6f4dbf18d1f8bac6aed9
Full Changelog: v2.124.0...v2.125.0
v2.124.0
What's Changed
- sdk: calculateVolSpreadBN-sync by @0xbigz in #1671
- sdk: calculate-spread-bn-add-amm-spread-adjustment by @0xbigz in #1672
- sdk: add getTriggerAuctionStartPrice by @0xbigz in #1654
- feat: customized cadence account loader by @LukasDeco in #1666
- sdk: sync-user-trade-tier-calcs by @0xbigz in #1673
- refactor(ui): add callback logic, fix polling frequency update by @ChesterSim in #1676
- program: less order param sanitization for long tail perps by @crispheaney in #1680
- Wphan/custom coder by @wphan in #1682
- sdk: safer-calculate-spread-reserve-math by @0xbigz in #1681
- sdk: update getMaxLeverageForPerp to use usdc logic by @lowkeynicc in #1678
- programy: override for oracle delay by @crispheaney in #1679
- program: programmatic rebalance between protocol owned if holdings by @crispheaney in #1653
- sdk: improve-aclient-accounts-logic by @0xbigz in #1684
- program: improve-amm-spread-validates by @0xbigz in #1685
verified build: 775ed711be2227b296d0c8a325eca0c86d2cd4dc5d358a6818b37d6eda20c0c2
Full Changelog: v2.123.0...v2.124.0