Skip to content

Commit

Permalink
Merge branch 'develop' into add-custom-404
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum authored Nov 1, 2024
2 parents a2d54ad + 5254ecc commit 8de1221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ impl InnerApp {
) -> Result<()> {
#[cfg(feature = "ethereum")]
{
disable_fee();
let signer = self.signer()?;
let mut coins = self.bitcoin.accounts.withdraw(signer, amount)?;

Expand Down
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 8de1221

Please sign in to comment.