Display lower <1 s/vB fee rate tiers for Liquid

fixes #859
This commit is contained in:
softsimon committed 2021-11-10 00:04:58 +04:00
1 parent 5ff7e3669e
commit 5c5f3e09eb
2 files changed
+20 -3

No files matched your search

@@ -349,9 +349,17 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
}
if (feeLevels[i] <= this.limitFee) {
if (i === 0) {
this.feeLevelsOrdered.push('0 - 1');
if (this.stateService.network === 'liquid') {
this.feeLevelsOrdered.push('0 - 0.1');
} else {
this.feeLevelsOrdered.push('0 - 1');
}
} else {
this.feeLevelsOrdered.push(`${feeLevels[i - 1]} - ${feeLevels[i]}`);
if (this.stateService.network === 'liquid') {
this.feeLevelsOrdered.push(`${feeLevels[i - 1] / 10} - ${feeLevels[i] / 10}`);
} else {
this.feeLevelsOrdered.push(`${feeLevels[i - 1]} - ${feeLevels[i]}`);
}
}
}
}