Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
rate integration
  • Loading branch information
teddy-nodeset committed Jun 28, 2024
1 parent 6a17eb3 commit 054e4da
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 20 deletions.
3 changes: 0 additions & 3 deletions contracts/Interfaces/Oracles/IXRETHOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ interface IXRETHOracle {
/// @return The total value locked in the protocol, in wei, for each minipool + rewards earned.
function getTotalYieldAccrued() external view returns (uint);

/// @dev Sets decentralized data provided by the Constellation network's cryptographic fraud proofs.
/// @param yield The total value locked in the protocol, in wei, for each minipool + rewards earned.
function setTotalYieldAccrued(uint yield) external;
}
22 changes: 22 additions & 0 deletions contracts/Oracle/XRETHOracle.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX License Identifier: GPL v3

import '../Interfaces/Oracles/IXRETHOracle.sol';
import '../UpgradeableBase.sol';

pragma solidity 0.8.17;

contract XRETHOracle is IXRETHOracle, UpgradeableBase {

address public oracleService; // is gonna be rated

constructor() initializer {}

/// @dev Initializes the FundRouter contract with the specified directory address.
/// @param _directoryAddress The address of the directory contract.
function initializeOracleService(address _directoryAddress, address _oracleService) public virtual initializer {
super.initialize(_directoryAddress);
oracleService = _oracleService;
}

function getTotalYieldAccrued() external view override returns (uint) {}
}
2 changes: 1 addition & 1 deletion contracts/Testing/Mocks/MockRETHOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contract MockRETHOracle is IXRETHOracle {

uint private _yield = 0 ether;

function setTotalYieldAccrued(uint yield) public override {
function setTotalYieldAccrued(uint yield) public {
_yield = yield;
}

Expand Down
Loading

0 comments on commit 054e4da

Please sign in to comment.