metaDAOproject / meta-dao-frontend

https://app.themetadao.org
Other
16 stars 16 forks source link

Closing markets script #65

Open Henry-E opened 3 months ago

Henry-E commented 3 months ago

Openbook-TWAP supports three new instructions, see all the PRs linked here https://hackmd.io/@HenryE/Bkvk6eG10#Openbook-TWAP

The process for shutting the down the market is as follows

You can see the flow here in the tests. Though it's easier in the tests because we already know all of the open order account pubkeys. https://github.com/metaDAOproject/openbook-twap/blob/develop/tests/openbook-twap.ts#L428-L529

R-K-H commented 1 month ago

So we'll only have this for v0.2 ONE market, we will circle back on this depending on the future state, but going to append this to the FaaS board to ensure we've got coverage in the upcoming week.