Skip to content

Commit

Permalink
Merge branch 'woof-software/meth-price-feed' of github.com:woof-softw…
Browse files Browse the repository at this point in the history
…are/comet into woof-software/add-meth-to-mainnet-usdt
  • Loading branch information
MishaShWoof committed Nov 12, 2024
2 parents 4be0acb + 3cff00d commit 99b05ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/pricefeeds/METHExchangeRatePriceFeed.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract METHExchangeRatePriceFeed is IPriceFeed {
error BadDecimals();

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

/// @notice Description of the price feed
string public description;
Expand Down Expand Up @@ -67,7 +67,6 @@ contract METHExchangeRatePriceFeed is IPriceFeed {
uint256 updatedAt,
uint80 answeredInRound
) {
// https://etherscan.io/address/0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f#readProxyContract#F19
// rate = 1 mETH in ETH
uint256 rate = IRateProvider(underlyingPriceFeed).mETHToETH(1e18);
// protocol uses only the answer value. Other data fields are not provided by the underlying pricefeed and are not used in Comet protocol
Expand All @@ -90,7 +89,7 @@ contract METHExchangeRatePriceFeed is IPriceFeed {
}

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

0 comments on commit 99b05ed

Please sign in to comment.