Skip to content

Commit

Permalink
fix: parameters tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Dec 31, 2024
1 parent a286912 commit 71f0618
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,13 @@ describeSuite({
};
const calcIssuanceDecrease = (feeWithTip: bigint, tip?: bigint): bigint => {
const feeWithTipBN = new BN(feeWithTip.toString());
const tipBN = new BN(tip?.toString() || "0");
const feeWithoutTipBN = feeWithTipBN.sub(tipBN);

const [burnFeePart, _treasuryFeePart] = split(
feeWithoutTipBN,
burnProportion.value(),
t.proportion.value()
);
const [burnTipPart, _treasuryTipPart] = split(
tipBN,
const [burnFeeWithTipPart, _treasuryFeeWithTipPart] = split(
feeWithTipBN,
burnProportion.value(),
t.proportion.value()
);

return BigInt(burnFeePart.add(burnTipPart).toString());
return BigInt(burnFeeWithTipPart.toString());
};

for (const txnType of TransactionTypes) {
Expand Down

0 comments on commit 71f0618

Please sign in to comment.