protocol-v2
protocol-v2 copied to clipboard
On-chain perpetuals dex with multiple liquidity mechanisms
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...
 i think jupiterClinent should be call /v6 now and i try jup api doc :  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.