Skip to content

Commit

Permalink
Merge pull request #3182 from OlympusDAO/develop
Browse files Browse the repository at this point in the history
[Release] - RBS Observation Index Fix
  • Loading branch information
brightiron authored Jul 5, 2024
2 parents 4bae19c + 2c32d99 commit 03f32b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Range/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const PriceHistory = () => {
const contract = RANGE_PRICE_CONTRACT.getEthersContract(networks.MAINNET);
const lastObservationIndex = await contract.nextObsIndex();
const secondsToSubtract = await contract.observationFrequency();
const totalObservations = 10;
const totalObservations = lastObservationIndex < 10 ? lastObservationIndex : 10;
let currentDate = new Date(); // Start with the current date
const resultsArray: {
price: number;
Expand Down

0 comments on commit 03f32b1

Please sign in to comment.