Skip to content

Commit

Permalink
feat: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 12, 2024
1 parent f79398e commit ffa9c69
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crates/cdk/src/mint/mint_nut04.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ impl Mint {
.await?
.unwrap();

let amount_paid = quote.amount_paid + amount;

let quote = MintQuote {
id: quote.id,
mint_url: quote.mint_url,
Expand All @@ -228,10 +230,17 @@ impl Mint {
state: MintQuoteState::Paid,
expiry: quote.expiry,
request_lookup_id: quote.request_lookup_id,
amount_paid: quote.amount_paid + amount,
amount_paid,
amount_issued: quote.amount_issued,
};

tracing::debug!(
"Quote: {}, Amount paid: {}, amount issued: {}",
quote.id,
amount_paid,
quote.amount_issued
);

self.localstore.add_mint_quote(quote).await?;
}
Ok(())
Expand Down

0 comments on commit ffa9c69

Please sign in to comment.