1f26a54399
* Perps: fix position lifetime; explicit closing When an order is placed and the position needs to be created, the settlement token is marked as in use. The perp position and the in-use flag are only released with the new perp_close_position instruction. * Tests: Factor out common floating-point comparisons * Rename PerpClosePosition -> PerpDeactivatePosition |
||
---|---|---|
.. | ||
mango-v4 | ||
margin-trade |