uxd-program icon indicating copy to clipboard operation
uxd-program copied to clipboard

Sell collateral diff and Settle USDC balance after closing the short perp position

Open acamill opened this issue 4 years ago • 2 comments

The verification of "filled" quantity did not work...

Putting these here to remember. Will do today.

The settling need to be caller right before doing a new order seems. Might be costy computing wise

Screenshot 2021-10-27 at 7 46 40 AM Screenshot 2021-10-27 at 7 46 48 AM Screenshot 2021-10-27 at 7 47 00 AM

acamill avatar Oct 26 '21 23:10 acamill

More on settlement image

acamill avatar Oct 27 '21 00:10 acamill

This should be done only if it's positive, else we just sell the remainder collateral and keep the usdc on the account

acamill avatar Nov 15 '21 18:11 acamill