From 9363004252115f57894f5dfd9cad628a59e3fc50 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Mon, 22 Apr 2024 08:08:03 +0200 Subject: [PATCH 1/2] [accelerator] change default bid prepaid --- .../accelerate-checkout/accelerate-checkout.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index 1cfb51673..0075602a0 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -117,7 +117,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { } // Make min extra fee at least 50% of the current tx fee 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.cost = this.maxBidBoost + estimation.mempoolBaseFee + estimation.vsizeFee; } From 6e2c0bac43ee75349b28e3959defedda22c9f31b Mon Sep 17 00:00:00 2001 From: orangesurf <91332210+orangesurf@users.noreply.github.com> Date: Mon, 22 Apr 2024 20:18:40 +0200 Subject: [PATCH 2/2] Update accelerate-checkout.component.ts Analysis suggests 1.5 would be a good starting point https://gist.github.com/orangesurf/5f69da2ffbdd1b737be53789e1783b03 --- .../accelerate-checkout/accelerate-checkout.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index 0075602a0..bd9bc453a 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -117,7 +117,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { } // Make min extra fee at least 50% of the current tx fee const minExtraBoost = nextRoundNumber(Math.max(estimation.cost * 2, estimation.txSummary.effectiveFee)); - const DEFAULT_BID_RATIO = 1; + const DEFAULT_BID_RATIO = 1.5; this.maxBidBoost = minExtraBoost * DEFAULT_BID_RATIO; this.cost = this.maxBidBoost + estimation.mempoolBaseFee + estimation.vsizeFee; }