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 ad8398e3d4
commit 26a540a57c
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]}`);
}
}
}
}