Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Jan 21, 2025
1 parent 55b18a7 commit 0fe9fef
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/driver/src/domain/competition/auction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,15 @@ type Balances = HashMap<BalanceGroup, order::SellAmount>;

impl AuctionProcessor {
/// Process the auction by prioritizing the orders and filtering out
/// unfillable orders as well as those that failed to fetch app data.
/// Fetches full app data for each order and returns an auction with
/// updated orders.
/// unfillable orders. Fetches full app data for each order and returns an
/// auction with updated orders.
pub async fn prioritize(&self, auction: Auction, solver: &eth::H160) -> Auction {
Auction {
orders: self.prioritize_orders(&auction, solver).await,
..auction
}
}

/// Prioritize well priced and filter out unfillable orders from the given
/// auction.
fn prioritize_orders(
&self,
auction: &Auction,
Expand Down Expand Up @@ -419,7 +416,7 @@ impl AuctionProcessor {
(*cow_amm.address(), cow_amm.validated_template_order(prices, signature_validator, &domain_separator).await)
}),
)
.await;
.await;

// Convert results to domain format.
let domain_separator =
Expand Down

0 comments on commit 0fe9fef

Please sign in to comment.