Skip to content

Commit

Permalink
Fix maxfee_percent integer division
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed Oct 3, 2023
1 parent b7d7029 commit 6bd02c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl LightningNode {

breez_config.working_dir = config.local_persistence_path.clone();
// TODO configure `exemptfee` when exposed by Breez
breez_config.maxfee_percent = (MAX_FEE_PERMYRIAD / 100).into();
breez_config.maxfee_percent = MAX_FEE_PERMYRIAD as f64 / 100_f64;

let sdk = rt
.handle()
Expand Down

0 comments on commit 6bd02c5

Please sign in to comment.