lil perp
lil perp
During liquidations, we want user perp positions to enter the jit auction while liquidators simultaneously take over their positions. This allows active mm's and the amm to take over the...
Add the misc. update_user_* tx to driftpy drift_client: https://drift-labs.github.io/v2-teacher/?typescript#updating-user
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...