SUSDeOracleImpl

This contract is used to get the exchange rate between sUSDe and USDe, adjusted for token decimals of a debt token (e.g. USDC / USDT)

_SUSDE_PRICE_SCALER_MULTIPLIER

uint256 _SUSDE_PRICE_SCALER_MULTIPLIER

constant value for price scaling to reduce gas usage

_SUSDE

contract IERC4626 _SUSDE

SUSDE contract, e.g. on mainnet 0x9d39a5de30e57443bff2a8307a4256c8797a3497

_DEBT_TOKEN_DECIMALS

uint8 _DEBT_TOKEN_DECIMALS

constructor

constructor(contract IERC4626 sUSDe_, uint8 debtTokenDecimals_) internal

constructor sets the sUSDe sUSDe_ token address.

_getSUSDeExchangeRate

function _getSUSDeExchangeRate() internal view returns (uint256 rate_)

Get the exchange rate from sUSDe contract (amount of USDe for 1 sUSDe)

Return Values

NameTypeDescription
rate_uint256The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS

sUSDeOracleData

function sUSDeOracleData() public view returns (uint256 sUSDeExchangeRate_, contract IERC4626 sUSDe_, uint256 debtTokenDecimals_)

returns all sUSDe oracle related data as utility for easy off-chain use / block explorer in a single view method