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

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

View File

@@ -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]}`);
}
}
}
}