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

Replace recursion with more stable binary search for root calc

When using placeAndTakePerpOrder I'm seeing that only a very small % of transactions actually result in a sucessfull trade. Transactions are run and they are sucessfully run but it does...

Context: 1. Drift-Gateway is used to place and then modify order on `DOGE-PERP` market (mainnet) 2. Order placement is successful with `market_index = 7` and `market_type = "perp"` parameters 3....

I'm using commit 79fdcab4ab4be6199de58ebb634c9aa3ab82691b, with `cargo test` These tests are failing, rendering the programs unusable ```rust #[test] fn perp_market() { let expected_size = std::mem::size_of::() + 8; let actual_size = PerpMarket::SIZE;...

Hey there, while experimenting a bit with rift on devnet, I noticed and issue that i believe is part of the code. Excuse me if I understand something wrong, but...