Skip to content

Commit 1972e66

Browse files
authored
Merge branch 'develop' into cometv1
2 parents c3e608d + 898fb04 commit 1972e66

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
- [11380](https://github.com/vegaprotocol/vega/issues/11380) - Handle broken stop orders in prepare proposal.
5050
- [11136](https://github.com/vegaprotocol/vega/issues/11136) - Fix premature invocation of post commit hooks in case of fee stats event.
5151
- [11409](https://github.com/vegaprotocol/vega/issues/11409) - When updating a capped market - copy the cap from the existing market definition.
52+
- [11415](https://github.com/vegaprotocol/vega/issues/11415) - End long block auction when expired.
5253

5354
## 0.76.1
5455

core/execution/future/auction.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ func (m *Market) checkAuction(ctx context.Context, now time.Time, idgen common.I
126126
if m.as.Trigger() == types.AuctionTriggerLiquidityTargetNotMet || m.as.Trigger() == types.AuctionTriggerUnableToDeployLPOrders {
127127
m.as.SetReadyToLeave()
128128
}
129+
130+
if m.as.Trigger() == types.AuctionTriggerLongBlock || m.as.ExtensionTrigger() == types.AuctionTriggerLongBlock {
131+
if endTS := m.as.ExpiresAt(); endTS != nil && endTS.Before(now) {
132+
m.as.SetReadyToLeave()
133+
}
134+
}
135+
129136
// price and liquidity auctions
130137
isPrice := m.as.IsPriceAuction() || m.as.IsPriceExtension()
131138
if !isPrice {

core/execution/spot/auction.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ func (m *Market) checkAuction(ctx context.Context, now time.Time, idgen common.I
111111
return
112112
}
113113

114+
if m.as.Trigger() == types.AuctionTriggerLongBlock || m.as.ExtensionTrigger() == types.AuctionTriggerLongBlock {
115+
if endTS := m.as.ExpiresAt(); endTS != nil && endTS.Before(now) {
116+
m.as.SetReadyToLeave()
117+
}
118+
}
119+
114120
isPrice := m.as.IsPriceAuction() || m.as.IsPriceExtension()
115121
if isPrice || m.as.CanLeave() {
116122
m.pMonitor.CheckPrice(ctx, m.as, indicativeUncrossingPrice, true, true)

0 commit comments

Comments
 (0)