mithraiclabs / psyoptions-frontend

15 stars 11 forks source link

Load OpenOrders and UnsettledFunds for expired markets #701

Open tomjohn1028 opened 2 years ago

tomjohn1028 commented 2 years ago

Right now users with OpenOrders or UnsettledFunds (i.e. even when their open orders get pruned) cannot get their assets back to their wallet

jasonchitla commented 2 years ago

this is caused when the market is not in the market meta package then the open orders wont show. so this is not a production issue since we do not remove expired markets from the market meta package.

you can see why this is happening from this snippet inside SerumOpenOrdersContext, that marketsBySerumKey is the market-meta data: image

we will keep this in the back of our minds when we get @Taylor123 changes in (exile market meta package).