Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sparrowDom/nativeStaking' into n…
Browse files Browse the repository at this point in the history
…icka/native-staking-fork-tests
  • Loading branch information
naddison36 committed Apr 29, 2024
2 parents 76c703f + 6179cb1 commit f91e078
Show file tree
Hide file tree
Showing 134 changed files with 16,106 additions and 444 deletions.
30 changes: 30 additions & 0 deletions contracts/contracts/oracle/OETHFixedOracle.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import { OETHOracleRouter } from "./OETHOracleRouter.sol";

// @notice Oracle Router that returns 1e18 for all prices
// used solely for deployment to testnets
contract OETHFixedOracle is OETHOracleRouter {
constructor(address _auraPriceFeed) OETHOracleRouter(_auraPriceFeed) {}

/**
* @dev The price feed contract to use for a particular asset along with
* maximum data staleness
* @param asset address of the asset
* @return feedAddress address of the price feed for the asset
* @return maxStaleness maximum acceptable data staleness duration
*/
// solhint-disable-next-line no-unused-vars
function feedMetadata(address asset)
internal
view
virtual
override
returns (address feedAddress, uint256 maxStaleness)
{
// fixes price for all of the assets
feedAddress = FIXED_PRICE;
maxStaleness = 0;
}
}
Loading

0 comments on commit f91e078

Please sign in to comment.