fluid-contracts-public/contracts/oracle/oracles/weETHOracle.sol

19 lines
714 B
Solidity

// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.21;
import { FluidOracle } from "../fluidOracle.sol";
import { WeETHOracleImpl } from "../implementations/weETHOracleImpl.sol";
import { IWeETH } from "../interfaces/external/IWeETH.sol";
/// @title WeETHOracle
/// @notice Gets the exchange rate between weETH and eETH directly from the weETH contract.
contract WeETHOracle is FluidOracle, WeETHOracleImpl {
/// @notice constructor sets the weETH `weETH_` token address.
constructor(IWeETH weETH_) WeETHOracleImpl(weETH_) {}
/// @inheritdoc FluidOracle
function getExchangeRate() external view override returns (uint256 exchangeRate_) {
return _getWeETHExchangeRate();
}
}