protocol-v2 icon indicating copy to clipboard operation
protocol-v2 copied to clipboard

On-chain perpetuals dex with multiple liquidity mechanisms

Results 94 protocol-v2 issues
Sort by recently updated
recently updated
newest added

Added the following to initialize: price_oracle.magic = MAGIC; price_oracle.ver = VERSION; price_oracle.atype = AccountType::Price; Added the following to set_price: price_oracle.curr_slot = clock.slot; price_oracle.valid_slot = clock.slot;

Can devent be used for swaps, spot and margin trades? That is, via the code, API, bots. How about the UI - can a browser wallet be connected and trade...

FastSingleTxSender should send the transaction only once. ```typescript class FastSingleTxSender { async sendRawTransaction( rawTransaction: Buffer | Uint8Array, opts: ConfirmOptions ): Promise { let txid: TransactionSignature; try { txid = await...

![image](https://github.com/drift-labs/protocol-v2/assets/64510150/3464d112-f45c-4186-acac-e1341a2c619e) i think jupiterClinent should be call /v6 now and i try jup api doc : ![image](https://github.com/drift-labs/protocol-v2/assets/64510150/34c1f48c-d5bc-4770-ae8f-d5cc2acb72fe) call this fail too , but change to v6 all is good

First, I placed a short order, then set a SL order with market price. However, after closing the short position, I noticed that the SL order did not get cancelled.