dydxprotocol / v4-web

Other
73 stars 60 forks source link

Cross Free Collateral not updating correctly when canceling isolated margin limit orders #832

Open ManticorePrivacy opened 1 month ago

ManticorePrivacy commented 1 month ago

I've noticed an issue with how the Cross Free Collateral balance behaves when working with isolated margin limit orders.

Here's what I'm experiencing:

I'm not sure if I'm misunderstanding something about how Cross Free Collateral should work, or if this is indeed a bug.

Steps to reproduce:

  1. Have some balance in your account
  2. Open several limit orders in isolated margin mode
  3. Watch your Cross Free Collateral decrease
  4. Cancel one of the limit orders
  5. Notice that your Cross Free Collateral doesn't change
  6. Cancel all remaining limit orders
  7. See that your Cross Free Collateral finally updates to the correct amount

Capture

Thanks for your help!

linear[bot] commented 1 month ago

GH-54 Cross Free Collateral not updating correctly when canceling isolated margin limit orders