Skip to content

Sub account stuck and balance not returning to master account after closing full amount order #44

@hammadtq

Description

@hammadtq

Issue:
When placing a trader order with the full amount available in the master account, closing the order causes errors and the sub account gets stuck with funds not returning to the master account.

Steps to reproduce:

  1. Place a trader order using the full amount available in master account
  2. Close the order

Error observed:
Console error: useSyncTrades cleanup queue task failed

Result:

  • Sub account gets stuck
  • Balance does not return to master account
  • User cannot access their funds

Expected behavior:

  • Order closes cleanly without errors
  • Sub account balance properly returns to master account
  • No console errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions