// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.24; /// @notice General interface for token exchange rates. interface IRateProvider { /** * @notice An 18 decimal fixed point number representing the exchange rate of one token to another related token. * @dev The meaning of this rate depends on the context. Note that there may be an error associated with a token * rate, and the caller might require a certain rounding direction to ensure correctness. This (legacy) interface * does not take a rounding direction or return an error, so great care must be taken when interpreting and using * rates in downstream computations. * * @return rate The current token rate */ function getRate() external view returns (uint256 rate); }