@@ -2901,6 +2901,7 @@ func ExecSpotMarketFromProto(em *snapshot.SpotMarket) *ExecSpotMarket {
2901
2901
AuctionState : AuctionStateFromProto (em .AuctionState ),
2902
2902
PeggedOrders : PeggedOrdersStateFromProto (em .PeggedOrders ),
2903
2903
ExpiringOrders : make ([]* Order , 0 , len (em .ExpiringOrders )),
2904
+ ExpiringStopOrders : make ([]* Order , 0 , len (em .ExpiringStopOrders )),
2904
2905
LastEquityShareDistributed : em .LastEquityShareDistributed ,
2905
2906
EquityShare : EquityShareFromProto (em .EquityShare ),
2906
2907
LastBestAsk : lastBA ,
@@ -2924,7 +2925,7 @@ func ExecSpotMarketFromProto(em *snapshot.SpotMarket) *ExecSpotMarket {
2924
2925
ret .ExpiringOrders = append (ret .ExpiringOrders , or )
2925
2926
}
2926
2927
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 })
2928
2929
}
2929
2930
return & ret
2930
2931
}
@@ -2936,6 +2937,7 @@ func (e ExecSpotMarket) IntoProto() *snapshot.SpotMarket {
2936
2937
AuctionState : e .AuctionState .IntoProto (),
2937
2938
PeggedOrders : e .PeggedOrders .IntoProto (),
2938
2939
ExpiringOrders : make ([]* vega.Order , 0 , len (e .ExpiringOrders )),
2940
+ ExpiringStopOrders : make ([]* vega.Order , 0 , len (e .ExpiringStopOrders )),
2939
2941
LastEquityShareDistributed : e .LastEquityShareDistributed ,
2940
2942
EquityShare : e .EquityShare .IntoProto (),
2941
2943
LastBestAsk : e .LastBestAsk .String (),
@@ -2962,7 +2964,7 @@ func (e ExecSpotMarket) IntoProto() *snapshot.SpotMarket {
2962
2964
ret .ExpiringOrders = append (ret .ExpiringOrders , o .IntoProto ())
2963
2965
}
2964
2966
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 })
2966
2968
}
2967
2969
return & ret
2968
2970
}
0 commit comments