chore: adjust displayed Instrument payout with suffix notation

This commit is contained in:
pskfyi 2022-01-14 23:43:20 -08:00 committed by pskfyi
parent ffa677812e
commit 03cb459114
1 changed files with 7 additions and 2 deletions

View File

@ -17,8 +17,8 @@
class="absolute top-0 left-0 right-0 w-full text-center text-sm h-5"
:class="`text-${$store.getters.activeTab.darkColor}`"
>
{{ reward }} <span class="fas fa-hourglass-half" /> every
{{ interval }} seconds
{{ rewardText }} <span class="fas fa-hourglass-half" /> /
{{ interval }} sec
</span>
</div>
<div
@ -92,6 +92,11 @@ export default {
reward() {
return this.process.baseReward * (1 + this.process.workerLevel)
},
rewardText() {
return this.$store.getters.suffixedDecimalText(
this.process.baseReward * (1 + this.process.workerLevel)
)
},
interval() {
return this.process.completionRequired / 10 /* in seconds */
},