bigshortbets / market-frontend

BigShortBet$ P2P Market is a cutting-edge peer-to-peer marketplace built on the principles of decentralization that allows direct P2P trading on unique & event-based markets. Enjoy ultra-low fees and no swaps. Powered by $BigSB.
https://app.bigsb.io
GNU General Public License v3.0
2 stars 4 forks source link

Funds not returning to Wallet Balance after closing Position #98

Closed DanDanielD closed 3 weeks ago

DanDanielD commented 1 month ago

When placing an order, funds are taken from the Wallet Balance and reserved. When the open order is matched and the position is opened, the funds (initial margin) are moved to Market Margin. After closing the position, the funds remain in Market Margin and do not return to the Wallet Balance, causing depletion of funds in the Wallet Balance over time, which prevents placing new Open Orders.

The solution is to automatically transfer part of the funds from Market Margin back to Wallet Balance, as discussed during our Zoom call.

kacpergumieniuk commented 3 weeks ago

thats not frontend logic @DanDanielD