Skip to content

Commit

Permalink
Added monthly income report public init.
Browse files Browse the repository at this point in the history
  • Loading branch information
kukabi committed Jun 24, 2024
1 parent ad65694 commit d5fee65
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Sources/SubVTData/Model/Report/MonthlyIncomeReport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ public struct MonthlyIncome: Hashable {
public let year: UInt32
public let month: UInt32
public let income: Decimal

public init(
year: UInt32,
month: UInt32,
income: Decimal
) {
self.year = year
self.month = month
self.income = income
}
}

extension MonthlyIncome: Codable {}
Expand All @@ -12,6 +22,16 @@ public struct MonthlyIncomeReport {
public let rewardee: AccountId
public let tokenSymbol: String
public let monthlyIncome: [MonthlyIncome]

public init(
rewardee: AccountId,
tokenSymbol: String,
monthlyIncome: [MonthlyIncome]
) {
self.rewardee = rewardee
self.tokenSymbol = tokenSymbol
self.monthlyIncome = monthlyIncome
}
}

extension MonthlyIncomeReport: Codable {}

0 comments on commit d5fee65

Please sign in to comment.