Skip to content

Commit

Permalink
fix: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Oct 22, 2024
1 parent 6f7d5ec commit 53bc4b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/pricefeeds/PriceFeedWith4626Support.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ contract PriceFeedWith4626Support is IPriceFeed {
uint256 rate = IERC4626(rateProvider).convertToAssets(10**rateProviderDecimals);
(uint80 roundId_, int256 underlyingPrice, uint256 startedAt_, uint256 updatedAt_, uint80 answeredInRound_) = AggregatorV3Interface(underlyingPriceFeed).latestRoundData();

// We return the round data of the underlying asset price feed because of its shorter heartbeat (1hr vs 24hr)
if (rate <= 0 || underlyingPrice <= 0) return (roundId_, 0, startedAt_, updatedAt_, answeredInRound_);

int256 price = signed256(rate) * underlyingPrice * priceFeedScale / combinedScale;
Expand Down

0 comments on commit 53bc4b9

Please sign in to comment.