Skip to content

Commit

Permalink
Merge pull request #330 from nomic-io/withdrawal-validation
Browse files Browse the repository at this point in the history
Fix withdrawal validation
  • Loading branch information
mappum authored Nov 1, 2024
2 parents 0216e39 + 5e5af20 commit a347c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcoin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ impl Bitcoin {
);
}

let value = Into::<u64>::into(amount) / self.config.units_per_sat;
let value = (Into::<u64>::into(amount) - fee_amount) / self.config.units_per_sat;
if value < self.config.min_withdrawal_amount {
return Err(OrgaError::App(
"Withdrawal is smaller than than the minimum amount".to_string(),
Expand Down

0 comments on commit a347c08

Please sign in to comment.