=> {
>
{
this.hostEarnings = await getHostEarnings()
+ },
+
+ async getHoloFuelDailyStats(): Promise {
+ this.earningsStats = await getHoloFuelDailyStats()
+ },
+
+ resetHoloFuelDailyStats(): void {
+ this.earningsStats = {
+ dailies: [],
+ redeemed: 0
+ }
}
}
})
diff --git a/src/types/types.ts b/src/types/types.ts
index a64b524..036497c 100644
--- a/src/types/types.ts
+++ b/src/types/types.ts
@@ -108,14 +108,13 @@ export interface InvoiceDue {
export interface DailyEarningsData {
date: string
- paid: number
- unpaid: number
+ paid: string
+ unpaid: string
}
export interface EarningsData {
- current: number
- previous: number
- daily: DailyEarningsData[]
+ redeemed: number
+ dailies: DailyEarningsData[]
}
export enum ECriteriaType {