Skip to content

Commit

Permalink
Pay nBTC fees into reward pool/fee pool
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Feb 13, 2024
1 parent e8068d8 commit a20b445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ impl InnerApp {
fn deduct_nbtc_fee(&mut self, amount: Amount) -> Result<()> {
disable_fee();
let signer = self.signer()?;
self.bitcoin.accounts.withdraw(signer, amount)?.burn();

let fee = self.bitcoin.accounts.withdraw(signer, amount)?;
self.bitcoin.give_rewards(fee)?;
Ok(())
}

Expand Down

0 comments on commit a20b445

Please sign in to comment.