fix (billing): use fx quote for stripe to lightning

This commit is contained in:
2026-04-11 23:36:23 +05:45
parent 2bdd4280d5
commit 5214439abb
2 changed files with 122 additions and 10 deletions
+2 -1
View File
@@ -800,8 +800,9 @@ async fn get_invoice_bolt11(
}
let amount_due = invoice["amount_due"].as_i64().unwrap_or(0);
let currency = invoice["currency"].as_str().unwrap_or("usd");
match state.api.billing.create_bolt11(amount_due).await {
match state.api.billing.create_bolt11(amount_due, currency).await {
Ok(bolt11) => Ok(ok(StatusCode::OK, serde_json::json!({ "bolt11": bolt11 }))),
Err(e) => Ok(err(
StatusCode::INTERNAL_SERVER_ERROR,