Synthetixio / issues

0 stars 3 forks source link

FuturesMarket pausing #415

Closed artdgn closed 2 years ago

artdgn commented 2 years ago

Futures markets needs to be pausable separately from the rest of the system. This is required for being able to wind down markets for future migrations (e.g. cross collateral markets).

Two options:

  1. Simple variant: just a system status flag. Cons: when paused funding rate still accumulates, users have no option to close positions and can get liquidated when resumed.
  2. Complex variant: pause and resume methods on the markets which prevent accumulating funding rate (by pushing 0 as last funding entry), and allow closing positions at a fixed "last price" (either from oracle, or from owner if oracle price is invalid).
artdgn commented 2 years ago

https://github.com/Synthetixio/synthetix/pull/1692