[accelerator] change default bid prepaid

This commit is contained in:
nymkappa 2024-04-22 08:08:03 +02:00
parent 2297ff72f5
commit 9363004252
No known key found for this signature in database
GPG Key ID: 92358FC85D9645DE

View File

@ -117,7 +117,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
} }
// Make min extra fee at least 50% of the current tx fee // Make min extra fee at least 50% of the current tx fee
const minExtraBoost = nextRoundNumber(Math.max(estimation.cost * 2, estimation.txSummary.effectiveFee)); const minExtraBoost = nextRoundNumber(Math.max(estimation.cost * 2, estimation.txSummary.effectiveFee));
const DEFAULT_BID_RATIO = 2; const DEFAULT_BID_RATIO = 1;
this.maxBidBoost = minExtraBoost * DEFAULT_BID_RATIO; this.maxBidBoost = minExtraBoost * DEFAULT_BID_RATIO;
this.cost = this.maxBidBoost + estimation.mempoolBaseFee + estimation.vsizeFee; this.cost = this.maxBidBoost + estimation.mempoolBaseFee + estimation.vsizeFee;
} }