Skip to content

SUSDsOracle ​

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

constructor ​

solidity
constructor(string infoName_, contract IERC4626 sUSDs_, uint8 debtTokenDecimals_) public

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

getExchangeRateOperate ​

solidity
function getExchangeRateOperate() public view returns (uint256 exchangeRate_)

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

getExchangeRateLiquidate ​

solidity
function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_)

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

getExchangeRate ​

solidity
function getExchangeRate() external view returns (uint256 exchangeRate_)

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