Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei <92177534+andrei-21@users.noreply.github.com>
  • Loading branch information
danielgranhao and andrei-21 committed Oct 25, 2023
1 parent 5b08254 commit 34cc376
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,11 @@ pub(crate) struct UserPreferences {
timezone_config: TzConfig,
}

/// Information about an LNURL-pay
/// Information about an LNURL-pay.
pub struct LnUrlPayDetails {
pub min_sendable: Amount,
pub max_sendable: Amount,
/// An internal struct is not supposed to be inspected, but only passed to [`LightningNode::pay_lnurlp`].
pub request_data: LnUrlPayRequestData,
}

Expand All @@ -299,7 +300,7 @@ impl LnUrlPayDetails {
max_sendable: request_data
.max_sendable
.as_msats()
.to_amount_down(exchange_rate),
.to_amount_up(exchange_rate),
request_data,
}
}
Expand Down

0 comments on commit 34cc376

Please sign in to comment.