Skip to content

Commit

Permalink
fix: chain swap miner fee calculations (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored May 29, 2024
1 parent edae12f commit 0416a9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Fees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const Fees = () => {
const chainCfg = cfg as ChainPairTypeTaproot;
let fee =
chainCfg.fees.minerFees.server +
chainCfg.fees.minerFees.user.lockup +
chainCfg.fees.minerFees.user.claim;
if (isToUnconfidentialLiquid()) {
fee += 1;
Expand Down
5 changes: 1 addition & 4 deletions tests/components/Fees.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ describe("Fees component", () => {

const fees = pairs.chain[BTC][LBTC].fees;
expect(signals.minerFee()).toEqual(
fees.minerFees.server +
fees.minerFees.user.lockup +
fees.minerFees.user.claim +
1,
fees.minerFees.server + fees.minerFees.user.claim + 1,
);
});
});

0 comments on commit 0416a9d

Please sign in to comment.