Skip to content
2 changes: 2 additions & 0 deletions server-example/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ async fn example_quote(
amount_out: example_quoted_amount,
maker: maker_pubkey,
prioritization_fee_to_use: quote_request.suggested_prioritization_fees,
receiver: quote_request.receiver.clone(),
}
}
QuoteType::ExactOut => {
Expand All @@ -187,6 +188,7 @@ async fn example_quote(
amount_out: quote_request.amount.clone(),
maker: maker_pubkey,
prioritization_fee_to_use: quote_request.suggested_prioritization_fees,
receiver: quote_request.receiver.clone(),
}
}
};
Expand Down
4 changes: 4 additions & 0 deletions webhook-api/src/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ pub struct QuoteRequest {
#[schema(examples("true", "false"))]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_wsol: Option<bool>,
/// Receiver address
#[schema(examples("5v2Vd71VoJ1wZhz1PkhTY48mrJwS6wF4LfvDbYPnJ3bc"))]
#[serde(skip_serializing_if = "Option::is_none")]
pub receiver: Option<String>,
}

/// Order to be fulfilled by the Market Maker
Expand Down
4 changes: 4 additions & 0 deletions webhook-api/src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ pub struct QuoteResponse {
#[schema(examples("5v2Vd71VoJ1wZhz1PkhTY48mrJwS6wF4LfvDbYPnJ3bc"))]
#[serde(skip_serializing_if = "Option::is_none")]
pub taker: Option<String>,
/// Receiver is optional here
#[schema(examples("5v2Vd71VoJ1wZhz1PkhTY48mrJwS6wF4LfvDbYPnJ3bc"))]
#[serde(skip_serializing_if = "Option::is_none")]
pub receiver: Option<String>,
}

/// Response to a swap request to the Market Maker
Expand Down