MCPcopy Create free account
hub / github.com/cowprotocol/services / read_quote

Function read_quote

crates/database/src/orders.rs:432–441  ·  view source on GitHub ↗
(
    ex: &mut PgConnection,
    id: &OrderUid,
)

Source from the content-addressed store, hash-verified

430
431#[instrument(skip_all)]
432pub async fn read_quote(
433 ex: &mut PgConnection,
434 id: &OrderUid,
435) -> Result<Option<Quote>, sqlx::Error> {
436 let query = r#"
437SELECT * FROM order_quotes
438WHERE order_uid = $1
439"#;
440 sqlx::query_as(query).bind(id).fetch_optional(ex).await
441}
442
443#[instrument(skip_all)]
444pub async fn read_quotes(

Calls

no outgoing calls

Tested by 2

quote_stream_smokeFunction · 0.68
place_order_with_quoteFunction · 0.68