Skip to content

SUSDsOracleImpl ​

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

_SUSDS_PRICE_SCALER_MULTIPLIER ​

solidity
uint256 _SUSDS_PRICE_SCALER_MULTIPLIER

constant value for price scaling to reduce gas usage

_SUSDS ​

solidity
contract IERC4626 _SUSDS

SUSDS contract

_DEBT_TOKEN_DECIMALS ​

solidity
uint8 _DEBT_TOKEN_DECIMALS

constructor ​

solidity
constructor(contract IERC4626 sUSDs_, uint8 debtTokenDecimals_) internal

constructor sets the sUSDs sUSDs_ token address.

_getSUSDsExchangeRate ​

solidity
function _getSUSDsExchangeRate() internal view returns (uint256 rate_)

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

Return Values ​

NameTypeDescription
rate_uint256The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS

sUSDsOracleData ​

solidity
function sUSDsOracleData() public view returns (uint256 sUSDsExchangeRate_, contract IERC4626 sUSDs_, uint256 debtTokenDecimals_)

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