diff --git a/CHANGELOG.md b/CHANGELOG.md index 14978ea7499..28be6e5514a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - [10946](https://github.com/vegaprotocol/vega/issues/10945) - Save dispatch strategy for recurring governance transfer in the database. - [10943](https://github.com/vegaprotocol/vega/issues/10943) - Fix error message format when node vote is sent again. +- [10952](https://github.com/vegaprotocol/vega/issues/10952) - Fix bug that caused spot markets to get stuck in opening auction. ## 0.75.0 diff --git a/core/execution/spot/auction.go b/core/execution/spot/auction.go index 1ce54a6f734..ef3755187c9 100644 --- a/core/execution/spot/auction.go +++ b/core/execution/spot/auction.go @@ -88,20 +88,8 @@ func (m *Market) checkAuction(ctx context.Context, now time.Time, idgen common.I return } - // check that from liquidity point of view we can leave the opening auction - _, bestStaticBidVolume, _ := m.getBestStaticBidPriceAndVolume() - _, bestStaticAskVolume, _ := m.getBestStaticAskPriceAndVolume() - if m.getSuppliedStake().GTE(m.getTargetStake()) && bestStaticBidVolume > 0 && bestStaticAskVolume > 0 { - m.as.SetReadyToLeave() - } - - if !m.as.CanLeave() { - if e := m.as.AuctionExtended(ctx, now); e != nil { - m.broker.Send(e) - } - return - } - // opening auction requirements satisfied at this point, other requirements still need to be checked downstream though + // opening auction period has expired, and we have trades, we should be ready to leave + // other requirements still need to be checked downstream though m.as.SetReadyToLeave() m.pMonitor.CheckPrice(ctx, m.as, trades, true, false) if m.as.ExtensionTrigger() == types.AuctionTriggerPrice {