protocol-v2
protocol-v2 copied to clipboard
On-chain perpetuals dex with multiple liquidity mechanisms
This PR adjusts the API provided for the Jupiter package. The default API was updated for swap/quote to leverage [jupiterapi.com](https://www.jupiterapi.com/). The API offers higher rate limits (up to 10 rps)...
Minor change to readme to try improve salience for available Drift documentation
Add gprc implementation for subscribing to account updates - DriftClientAccountSubscriber: https://github.com/drift-labs/protocol-v2/blob/master/sdk/src/accounts/types.ts#L51 - UserAccountSubscriber: https://github.com/drift-labs/protocol-v2/blob/master/sdk/src/accounts/types.ts#L93C18-L93C39 Need to do more research but may unlock using Shyft drift indexes: https://x.com/Shyft_to/status/1800214445672583243?lang=en
Currently place_and_take_perp_order tx will succeed whether or not there is a fill. I suggest retro'ing the unused [_maker_order_id](https://github.com/drift-labs/protocol-v2/blob/master/programs/drift/src/instructions/user.rs#L1173) into a flag that specifies when the tx should fail: 1) there...
New parameter `should_fail_on_partial_or_no_fill` added regarding issue#1211. link:https://github.com/drift-labs/protocol-v2/issues/1211
todos: - [x] - update spot_liquidator logic or test - [x] - add less strict stable coin oracle staleness