SUSDeOracle

Gets the exchange rate between sUSDe and USDe directly from the sUSDe contract, adjusted for decimals of a debt token (get amount of debt token for 1 sUSDe).

constructor

constructor(string infoName_, contract IERC4626 sUSDe_, uint8 debtTokenDecimals_) public

constructor sets the sUSDe sUSDe_ token address and calculates scaling for exchange rate based on debtTokenDecimals_ (token decimals of debt token, e.g. of USDC / USDT = 6)

getExchangeRateOperate

function getExchangeRateOperate() public view returns (uint256 exchangeRate_)

Get the exchangeRate_ between the underlying asset and the peg asset in 1e27 for operates

getExchangeRateLiquidate

function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_)

Get the exchangeRate_ between the underlying asset and the peg asset in 1e27 for liquidations

getExchangeRate

function getExchangeRate() external view returns (uint256 exchangeRate_)

Deprecated. Use getExchangeRateOperate() and getExchangeRateLiquidate() instead. Only implemented for backwards compatibility.