Releases: drift-labs/protocol-v2
v2.151.0
What's Changed
- sdk: add spot 62 to constants file by @0xbigz in #2045
- fix: decoding isolated position fields correctly by @LukasDeco in #2046
- program: add paused operations to user stats by @crispheaney in #2037
Full Changelog: v2.150.0...v2.151.0
verified build hash: 5bb1577ca22ec687ca11d10b9a69f19cbff99c4232f3dc89d56ff20912c2390b
v2.150.0
What's Changed
- sdk: idl diff by @wphan in #2033
- sdk: add-constants-spot-market-index-61 by @0xbigz in #2036
- sdk: add-const-market-index-83 by @0xbigz in #2040
- fix: undefined on getting isolated free collateral + positionType param for perpBuyingPower by @LukasDeco in #2038
- fix: force positionflag to 0 by @LukasDeco in #2041
- refactor(sdk): remove event listeners during user unsubscribe by @ChesterSim in #2044
- program: update-low-risk-order-criteria by @0xbigz in #2042
- sdk: sync-ref-price-logic-w-prgm by @0xbigz in #2043
- program: ix to reset old lp fields by @crispheaney in #2018
Full Changelog: v2.149.1...v2.150.0
verified build hash: 9884087cf42eda58401bb077c8e5a3241e3c55aa54cc2eb85cb89b7fb1e4aa75
v2.149.1
What's Changed
- lukas/update margin calc to match onchain by @LukasDeco in #2007
- feat: bump node to 22 by @LukasDeco in #2026
- feat: bump to node 22 github action by @LukasDeco in #2027
- feat: better comments on user by @LukasDeco in #2028
- sdk: spot-market-35-oracle-update by @0xbigz in #2029
- sdk: add optional userAccountPublicKey to getSwapIxV2 by @lowkeynicc in #2030
- sdk: fix exactOut swaps by @lowkeynicc in #2031
- sdk: allow external signer for deposits by @lowkeynicc in #1974
- program: calc-ref-price-offset-calc-enhance by @0xbigz in #1786
- program: let anotehr signer deposit on user behalf by @crispheaney in #1891
- program: add DepositRecord::spot_balance_after by @wphan in #2034
Full Changelog: v2.148.0...v2.149.1
verified build hash: 7b5cb34486dae56d1dc42d3393eb33343b9a76f2e959d64c25fa260109793ebf
v2.148.0
What's Changed
- pyth lazer zero guard by @moosecat2 in #2023
- add conditional decoding for ConstituentMap by @lowkeynicc in #2022
- dlp admin update fee transfer scalars by @moosecat2 in #2024
Full Changelog: v2.147.0...v2.148.0
verified build hash: 643aad4acd09f4290be8df01a8e5d660a5d711d83be036ebe5fd09e2b555ad27
v2.147.0
What's Changed
- Update swap client type and verbiage by @cha-kos in #2009
- ui: tighten swap types by @cha-kos in #2015
- sdk: update-pyth-lazer-spot-feeds by @0xbigz in #2017
- remove some unused deps by @jordy25519 in #2012
- migrate spot market oracles by @moosecat2 in #2020
- small proram tweaks by @moosecat2 in #2021
Full Changelog: v2.146.0...v2.147.0
verified build hash: 4532e517f1733bf8dfb3696f604ca5cc437952d2b425a168608c2fae2879495e
v2.146.0
What's Changed
- program: add isolated_position_deposit to swift params by @crispheaney in #2002
- sdk: remove launchcoin lazerid by @wphan in #2003
- remove pythid by @wphan in #2004
- lukas/fix grpc multi user smol bugs by @LukasDeco in #1995
- Add backwards compatibility for swap client args by @cha-kos in #2006
- optional status for delisted markets in constants files by @moosecat2 in #2011
- Dlp refactor amm cache by @moosecat2 in #2010
- consolidate some admin funcs by @moosecat2 in #2014
- program: add-market-settle-rev-pool-pause-operation by @0xbigz in #2013
Full Changelog: v2.145.1...v2.146.0
verified build hash: 87df4b247789cfc8fadc9e33d81e699de7f6b2e72e86125372263dc45b3c6355
v2.145.1
What's Changed
- feat: decoding user isolated position fields by @LukasDeco in #1996
- fix: re-add accidentally yeeted ws v2 susbcribers by @LukasDeco in #1997
- amm cache init refactor by @moosecat2 in #1998
- add delete amm cache ix by @moosecat2 in #1999
- remove delete amm cache ixs by @moosecat2 in #2000
- fix tests for amm cache by @wphan in #2001
Full Changelog: v2.145.0...v2.145.1
verified build hash: fea0e173ece006649f95372002b026c4a1860c688f774c4a7f8bdfcb1c3d29e1
v2.145.0
What's Changed
- Implement Unified Swap Client by @cha-kos in #1993
- feat: update getPlaceSignedMsgTakerPerpOrderIxs for iso position deposit by @LukasDeco in #1976
- DLP by @moosecat2 in #1885
Full Changelog: v2.144.0...v2.145.0
verified build hash: 35e9ddbb01e5486233f7ef4acc1bae0825ab7b747592c93109f44061ca915c7e
v2.144.0
What's Changed
- sdk: add to constants spot-plus-market-index-82 by @0xbigz in #1982
- sdk: cap max size fn at max oi by @lowkeynicc in #1983
- sdk: add titan client by @jeremyhwong in #1972
- fix: support fetching initial data for delisted markets, just not being subscribed by @LukasDeco in #1985
- clean up oracle validity logs by @moosecat2 in #1984
- Fix build by @cha-kos in #1987
- Keep oracle data of delisted markets. by @DecentralizedDev in #1988
- Fix build by @cha-kos in #1989
- Multi User GRPC by @LukasDeco in #1970
- program: use-5min-for-target-expiry-price by @0xbigz in #1967
New Contributors
- @jeremyhwong made their first contribution in #1972
- @cha-kos made their first contribution in #1987
Full Changelog: v2.143.0...v2.144.0
verified build hash: 514c7863471ac5dfe757f6ce81b5f169a0f24620651dc0f1ef42deb9814a80c2
v2.143.0
What's Changed
- rm println by @jordy25519 in #1962
- fix: cleanup potential mem leaks on grpc v2 by @LukasDeco in #1963
- sdk: add-max-size-for-target-liability-weight by @0xbigz in #1961
- sdk: add includeOpenOrders option for perp position health by @lowkeynicc in #1966
- Mm oracle sdk patch by @moosecat2 in #1977
- is oracle divergent sdk fix by @moosecat2 in #1978
- use custom msg! macro for drift-rs by @jordy25519 in #1975
- sdk: update jlp oracle to pyth lazer by @wphan in #1980
- program: initial-margin-hlm-imf change by @0xbigz in #1969
- amm available for low risk orders by @moosecat2 in #1968
Full Changelog: v2.142.0...v2.143.0
verified build hash: e1ee95e374f3bd271bed928d26c6bc97643c4c5f47cc7797b05b5814f71eda9e