RocketTokenExchangeRateProvider

Git Source

Inherits: IExchangeRateProvider, Initializable, ReentrancyGuardUpgradeable

Rocket Token exchange rate.

State Variables

rocketToken

Rocket Token contract

RocketTokenRETHInterface private rocketToken;

Functions

initialize

Initialize the contract

function initialize(RocketTokenRETHInterface _rocketToken) public initializer;

exchangeRate

Get the exchange rate

function exchangeRate() external view returns (uint256);

exchangeRateDecimals

Get the exchange rate decimals

function exchangeRateDecimals() external pure returns (uint256);

Errors

RocketTokenNotSet

Error thrown when the Rocket Token is not set

error RocketTokenNotSet();