Skip to content

Commit

Permalink
fix: notes on todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed May 27, 2024
1 parent 5d5b21e commit a3e72af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fedimint-nwc/src/nwc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response, NIP47Error> {
let tracker = db.sum_payments().map_err(|e| NIP47Error {
code: ErrorCode::Unauthorized,
Expand All @@ -281,6 +284,7 @@ async fn handle_get_balance(db: &Database) -> Result<Response, NIP47Error> {
})
}

// TODO: Implement this instead of the boilerplate
async fn handle_get_info() -> Result<Response, NIP47Error> {
Ok(Response {
result_type: Method::GetInfo,
Expand Down

0 comments on commit a3e72af

Please sign in to comment.