Bonfida / dex-v4

Orderbook-based on-chain SPL token swap market
101 stars 32 forks source link

Circuit Breaker #21

Open armaniferrante opened 3 years ago

armaniferrante commented 3 years ago

We should consider adding a circuit breaker mechanism to automatically pause a market in extraordinary circumstances, e.g., a crank hasn't been run in some period of time or price changes are too extreme.

dr497 commented 3 years ago

To be clear, you mean a disable market instruction that an admin key can trigger in those circumstances?

armaniferrante commented 3 years ago

To be clear, you mean a disable market instruction that an admin key can trigger in those circumstances?

I was thinking it would happen automatically, though an admin key accomplishes much of this.