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

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,