fix: regression in rewards provider where lowestFetched is off by one (#18392)

This commit is contained in:
Josh 2021-07-02 12:06:40 -07:00 committed by GitHub
parent 7cd6224caf
commit d2b07dca9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ async function fetchRewards(
}
const results = await Promise.all(requests);
const lowestFetchedEpoch = fromEpoch - requests.length;
const lowestFetchedEpoch = fromEpoch - requests.length + 1;
dispatch({
type: ActionType.Update,