-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/sparrowDom/nativeStaking' into n…
…icka/native-staking-fork-tests
- Loading branch information
Showing
134 changed files
with
16,106 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.