diff --git a/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts b/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts
index d83303619..0a6ef065c 100644
--- a/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts
+++ b/frontend/src/app/components/acceleration/acceleration-stats/acceleration-stats.component.ts
@@ -27,11 +27,11 @@ export class AccelerationStatsComponent implements OnInit {
let totalFeesPaid = 0;
let totalSucceeded = 0;
let totalCanceled = 0;
- for (const acceleration of accelerations) {
- if (acceleration.status === 'completed') {
+ for (const acc of accelerations) {
+ if (acc.status === 'completed') {
totalSucceeded++;
- totalFeesPaid += acceleration.feePaid || 0;
- } else if (acceleration.status === 'failed') {
+ totalFeesPaid += (acc.feePaid - acc.baseFee - acc.vsizeFee) || 0;
+ } else if (acc.status === 'failed') {
totalCanceled++;
}
}
diff --git a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html
index 45709a47e..9a919ca54 100644
--- a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html
+++ b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.html
@@ -14,7 +14,7 @@
Requested |
- Out-of-band Fee |
+ Bid Boost |
Block |
Status |
@@ -39,7 +39,7 @@
- {{ (acceleration.feePaid) | number }} sat
+ {{ (acceleration.boost) | number }} sat
|
~
diff --git a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts
index ddd89d31c..69af8b966 100644
--- a/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts
+++ b/frontend/src/app/components/acceleration/accelerations-list/accelerations-list.component.ts
@@ -49,6 +49,9 @@ export class AccelerationsListComponent implements OnInit {
acceleration.status = acceleration.status || 'accelerating';
}
}
+ for (const acc of accelerations) {
+ acc.boost = acc.feePaid - acc.baseFee - acc.vsizeFee;
+ }
if (this.widget) {
return of(accelerations.slice(-6).reverse());
} else {
diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html
index 8ac4cf919..9ad939deb 100644
--- a/frontend/src/app/components/transaction/transaction.component.html
+++ b/frontend/src/app/components/transaction/transaction.component.html
@@ -529,7 +529,7 @@
| Effective fee rate |
-
+
diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts
index 409ba33ff..883a3fa7f 100644
--- a/frontend/src/app/components/transaction/transaction.component.ts
+++ b/frontend/src/app/components/transaction/transaction.component.ts
@@ -255,7 +255,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
).subscribe((accelerationHistory) => {
for (const acceleration of accelerationHistory) {
if (acceleration.txid === this.txId && (acceleration.status === 'completed' || acceleration.status === 'mined') && acceleration.feePaid > 0) {
- acceleration.actualFeeDelta = Math.max(acceleration.effectiveFee, acceleration.effectiveFee + acceleration.feePaid - acceleration.baseFee - acceleration.vsizeFee);
+ acceleration.acceleratedFee = Math.max(acceleration.effectiveFee, acceleration.effectiveFee + acceleration.feePaid - acceleration.baseFee - acceleration.vsizeFee);
this.accelerationInfo = acceleration;
}
}
diff --git a/frontend/src/app/interfaces/node-api.interface.ts b/frontend/src/app/interfaces/node-api.interface.ts
index e225eb758..1ca0d7725 100644
--- a/frontend/src/app/interfaces/node-api.interface.ts
+++ b/frontend/src/app/interfaces/node-api.interface.ts
@@ -319,7 +319,8 @@ export interface Acceleration {
blockHash: string;
blockHeight: number;
- actualFeeDelta?: number;
+ acceleratedFee?: number;
+ boost?: number;
}
export interface AccelerationHistoryParams {
|