Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 committed Apr 4, 2024
1 parent 71ed216 commit 6a8840e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ impl Wallet {

let temp_recv_amt = onchain_amount_sat;
let invoice_amt_minus_service_fee = temp_recv_amt + fees_lockup + fees_claim;
let invoice_amount_sat = (invoice_amt_minus_service_fee as f64 * 100.0 / (100.0 - p)).ceil() as u64;
let invoice_amount_sat =
(invoice_amt_minus_service_fee as f64 * 100.0 / (100.0 - p)).ceil() as u64;

Ok((onchain_amount_sat, invoice_amount_sat))
}
Expand Down

0 comments on commit 6a8840e

Please sign in to comment.