Submitted by gpersoon, also found by cmichel
Suppose there is a synthetic token where the price stays constant, for example:
In that case assetPriceHasChanged will never be true (again) and marketUpdateIndex[marketIndex] will never increase.
This means the _executeOutstandingNextPrice* functions will never be executed, which means the market effectively will be stuck.
LongShort.sol L669
Recommend enhancing _updateSystemStateInternal so that after a certain period of time without price movements (for example 1 day), the entire function is executed (including the marketUpdateIndex[marketIndex] += 1;)
JasoonS (Float) disputed:
JasoonS (Float) commented:
moose-code (Float) commented:
0xean (judge) commented:
