Skip to content

Commit

Permalink
fix: sync version
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Oct 1, 2024
1 parent e769138 commit 6f7d5ec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contracts/pricefeeds/PriceFeedWith4626Support.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract PriceFeedWith4626Support is IPriceFeed {
error InvalidInt256();

/// @notice Version of the price feed
uint public constant override version = 1;
uint public constant VERSION = 1;

/// @notice Description of the price feed
string public override description;
Expand Down Expand Up @@ -84,4 +84,12 @@ contract PriceFeedWith4626Support is IPriceFeed {
if (n > uint256(type(int256).max)) revert InvalidInt256();
return int256(n);
}

/**
* @notice Price for the latest round
* @return The version of the price feed contract
**/
function version() external pure returns (uint256) {
return VERSION;
}
}

0 comments on commit 6f7d5ec

Please sign in to comment.