Synthetixio / issues

0 stars 3 forks source link

Futures migration plan #416

Closed artdgn closed 2 years ago

artdgn commented 2 years ago

As the current markets can't be made upgradable (to prevent committing to storage layout), future feature updates (e.g. synth margin) will require user initiated migrations,

The current contract system should support a minimal migration flow:

A minimal migration settings for the old market could be:

After winding down an old market, when its debt reaches a negligible number - it can be paused and disconnected from market manager.

Of course separate tests for migration flow should be added to ensure that everything works as expected when migration will be needed.