Merge pull request #4966 from mempool/nymkappa/fix-fee-paid

[accelerator] fix fee paid calculation
This commit is contained in:
wiz 2024-04-14 00:20:42 +09:00 committed by GitHub
commit 1082889b64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
const minExtraBoost = nextRoundNumber(Math.max(estimation.cost * 2, estimation.txSummary.effectiveFee));
const DEFAULT_BID_RATIO = 2;
this.maxBidBoost = minExtraBoost * DEFAULT_BID_RATIO;
this.cost = this.maxBidBoost * DEFAULT_BID_RATIO + estimation.mempoolBaseFee + estimation.vsizeFee;
this.cost = this.maxBidBoost + estimation.mempoolBaseFee + estimation.vsizeFee;
}
}),