From a3e72af8de785074d6b59f9b6d2008b8030b1ecf Mon Sep 17 00:00:00 2001 From: "kody.low" Date: Sun, 26 May 2024 17:20:50 -0700 Subject: [PATCH] fix: notes on todos --- fedimint-nwc/src/nwc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fedimint-nwc/src/nwc.rs b/fedimint-nwc/src/nwc.rs index 490e637..19100d9 100644 --- a/fedimint-nwc/src/nwc.rs +++ b/fedimint-nwc/src/nwc.rs @@ -265,6 +265,9 @@ async fn handle_lookup_invoice( }) } +// TODO: Implement this with multimint + db +// should normally do multimint balance check + db payments manager balance +// for throughput and limit checks async fn handle_get_balance(db: &Database) -> Result { let tracker = db.sum_payments().map_err(|e| NIP47Error { code: ErrorCode::Unauthorized, @@ -281,6 +284,7 @@ async fn handle_get_balance(db: &Database) -> Result { }) } +// TODO: Implement this instead of the boilerplate async fn handle_get_info() -> Result { Ok(Response { result_type: Method::GetInfo,