@@ -166,25 +166,20 @@ mod defaults {
166166}
167167
168168/// Order pricing priority mode for determining which orders to price first
169- #[ derive( Debug , Deserialize , Serialize , Clone , Copy , PartialEq , Eq ) ]
169+ #[ derive( Default , Debug , Deserialize , Serialize , Clone , Copy , PartialEq , Eq ) ]
170170#[ serde( rename_all = "snake_case" ) ]
171171pub enum OrderPricingPriority {
172172 /// Process orders in random order to distribute competition among provers
173+ #[ default]
173174 Random ,
174175 /// Process orders in the order they were observed (FIFO)
175176 ObservationTime ,
176177 /// Process orders by shortest expiry first (earliest deadline)
177178 ShortestExpiry ,
178179}
179180
180- impl Default for OrderPricingPriority {
181- fn default ( ) -> Self {
182- Self :: Random
183- }
184- }
185-
186181/// Order commitment priority mode for determining which orders to commit to first
187- #[ derive( Debug , Deserialize , Serialize , Clone , Copy , PartialEq , Eq ) ]
182+ #[ derive( Default , Debug , Deserialize , Serialize , Clone , Copy , PartialEq , Eq ) ]
188183#[ serde( rename_all = "snake_case" ) ]
189184pub enum OrderCommitmentPriority {
190185 /// Process orders in random order to distribute competition among provers
@@ -194,15 +189,10 @@ pub enum OrderCommitmentPriority {
194189 /// Process lock-and-fulfill orders by highest ETH payment, then fulfill-after-lock-expire random weighted by collateral reward
195190 Price ,
196191 /// Process lock-and-fulfill orders by highest ETH price per cycle, then fulfill-after-lock-expire random weighted by collateral reward
192+ #[ default]
197193 CyclePrice ,
198194}
199195
200- impl Default for OrderCommitmentPriority {
201- fn default ( ) -> Self {
202- Self :: CyclePrice
203- }
204- }
205-
206196/// All configuration related to markets mechanics
207197#[ derive( Debug , Deserialize , Serialize ) ]
208198#[ non_exhaustive]
0 commit comments