Skip to content

Commit f8c12d9

Browse files
committed
Merge remote-tracking branch 'origin/sparrowDom/nativeStaking' into nicka/fix-accounting
2 parents a332c98 + ec4933b commit f8c12d9

File tree

136 files changed

+16107
-491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+16107
-491
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.0;
3+
4+
import { OETHOracleRouter } from "./OETHOracleRouter.sol";
5+
6+
// @notice Oracle Router that returns 1e18 for all prices
7+
// used solely for deployment to testnets
8+
contract OETHFixedOracle is OETHOracleRouter {
9+
constructor(address _auraPriceFeed) OETHOracleRouter(_auraPriceFeed) {}
10+
11+
/**
12+
* @dev The price feed contract to use for a particular asset along with
13+
* maximum data staleness
14+
* @param asset address of the asset
15+
* @return feedAddress address of the price feed for the asset
16+
* @return maxStaleness maximum acceptable data staleness duration
17+
*/
18+
// solhint-disable-next-line no-unused-vars
19+
function feedMetadata(address asset)
20+
internal
21+
view
22+
virtual
23+
override
24+
returns (address feedAddress, uint256 maxStaleness)
25+
{
26+
// fixes price for all of the assets
27+
feedAddress = FIXED_PRICE;
28+
maxStaleness = 0;
29+
}
30+
}

contracts/contracts/strategies/NativeStaking/FeeAccumulator.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pragma solidity ^0.8.0;
44
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
55

66
import { Governable } from "../../governance/Governable.sol";
7-
import { IWETH9 } from "../../interfaces/IWETH9.sol";
87

98
/**
109
* @title Fee Accumulator for Native Staking SSV Strategy

0 commit comments

Comments
 (0)