Skip to content

Commit c8c8c99

Browse files
authored
Merge pull request #11245 from vegaprotocol/11244-spot-expiring-stop
fix: typos expiringOrders -> expiringStopOrders
2 parents bb48d38 + 24a189c commit c8c8c99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/types/snapshot_nodes.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,6 +2901,7 @@ func ExecSpotMarketFromProto(em *snapshot.SpotMarket) *ExecSpotMarket {
29012901
AuctionState: AuctionStateFromProto(em.AuctionState),
29022902
PeggedOrders: PeggedOrdersStateFromProto(em.PeggedOrders),
29032903
ExpiringOrders: make([]*Order, 0, len(em.ExpiringOrders)),
2904+
ExpiringStopOrders: make([]*Order, 0, len(em.ExpiringStopOrders)),
29042905
LastEquityShareDistributed: em.LastEquityShareDistributed,
29052906
EquityShare: EquityShareFromProto(em.EquityShare),
29062907
LastBestAsk: lastBA,
@@ -2924,7 +2925,7 @@ func ExecSpotMarketFromProto(em *snapshot.SpotMarket) *ExecSpotMarket {
29242925
ret.ExpiringOrders = append(ret.ExpiringOrders, or)
29252926
}
29262927
for _, o := range em.ExpiringStopOrders {
2927-
ret.ExpiringStopOrders = append(ret.ExpiringOrders, &Order{ID: o.Id, ExpiresAt: o.ExpiresAt})
2928+
ret.ExpiringStopOrders = append(ret.ExpiringStopOrders, &Order{ID: o.Id, ExpiresAt: o.ExpiresAt})
29282929
}
29292930
return &ret
29302931
}
@@ -2936,6 +2937,7 @@ func (e ExecSpotMarket) IntoProto() *snapshot.SpotMarket {
29362937
AuctionState: e.AuctionState.IntoProto(),
29372938
PeggedOrders: e.PeggedOrders.IntoProto(),
29382939
ExpiringOrders: make([]*vega.Order, 0, len(e.ExpiringOrders)),
2940+
ExpiringStopOrders: make([]*vega.Order, 0, len(e.ExpiringStopOrders)),
29392941
LastEquityShareDistributed: e.LastEquityShareDistributed,
29402942
EquityShare: e.EquityShare.IntoProto(),
29412943
LastBestAsk: e.LastBestAsk.String(),
@@ -2962,7 +2964,7 @@ func (e ExecSpotMarket) IntoProto() *snapshot.SpotMarket {
29622964
ret.ExpiringOrders = append(ret.ExpiringOrders, o.IntoProto())
29632965
}
29642966
for _, o := range e.ExpiringStopOrders {
2965-
ret.ExpiringStopOrders = append(ret.ExpiringOrders, &vega.Order{Id: o.ID, ExpiresAt: o.ExpiresAt})
2967+
ret.ExpiringStopOrders = append(ret.ExpiringStopOrders, &vega.Order{Id: o.ID, ExpiresAt: o.ExpiresAt})
29662968
}
29672969
return &ret
29682970
}

0 commit comments

Comments
 (0)