uxd-program
uxd-program copied to clipboard
Sell collateral diff and Settle USDC balance after closing the short perp position
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](https://user-images.githubusercontent.com/40299747/138976681-1852fdd8-1ebc-4cee-96fa-674cc73f29cc.png)
![Screenshot 2021-10-27 at 7 46 48 AM](https://user-images.githubusercontent.com/40299747/138976686-99cb2bf2-bd9e-4d81-b272-719b26ad92cf.png)
![Screenshot 2021-10-27 at 7 47 00 AM](https://user-images.githubusercontent.com/40299747/138976704-0bf8d169-02ce-4c56-99f9-ff7d26f56fa9.png)