Skip to content

Conversation

@noisekit
Copy link
Contributor

Currently having issues with invalid price feed (as snx price is 2h stale at the time of testing)

image

@noisekit noisekit requested review from dbeal-eth and kaleb-keny July 22, 2025 00:27
@noisekit noisekit self-assigned this Jul 22, 2025
(, int256 currentRewardTokenRate, , uint256 updateTime, ) = rewardsTokenRateAggregator.latestRoundData();
if (currentRewardTokenRate == 0 || updateTime < block.timestamp - 1 hours) {
(, int256 currentRewardTokenRate,, uint256 updateTime,) = rewardsTokenRateAggregator.latestRoundData();
if (currentRewardTokenRate == 0 || updateTime < block.timestamp - 1 days - 1 hours) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit 25 hours here probably better way to write it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is quite readable and matches the report better, unless there is a technical downside - would probably be nicer this way?

@noisekit noisekit merged commit ea1e3d3 into master Jul 23, 2025
2 checks passed
@noisekit noisekit deleted the deploy branch July 23, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants