-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(forecast): Forecasting can miss a funding schedule depending on the start time. #1486
Comments
monetr/pkg/forecast/forecast_test.go Lines 130 to 227 in faa9777
This test proves the bug exists |
So the I've created a new |
I've just removed the MidnightInLocal function in the fix. All tests pass with the new Midnight function which is more accurate to the desired behavior anyway. |
When the start time of a forecast is too close to when the next funding event would occur, the forecast might miss that funding event. This is likely due to some midnight adjustments that it's doing.
The text was updated successfully, but these errors were encountered: