impl ledger.Register.Between

This commit is contained in:
bel
2023-10-26 19:16:40 -06:00
parent 0c50ee5a89
commit d93a3560da
3 changed files with 54 additions and 0 deletions

View File

@@ -36,3 +36,13 @@ func NewInterestPredictor(namePattern string, currencyPattern string, apy float6
return result
}
}
func NewContributionPredictor(reg ledger.Register) Predictor {
monthlyRate := getMonthlyContributionRate(reg)
return func(given ledger.Balances, delta time.Duration) ledger.Balances {
panic(nil)
}
}
func getMonthlyContributionRate(reg ledger.Register) map[string]ledger.Balance {
}