Skip to content

SUSDeOracle ​

Git Source

Inherits:FluidOracle, SUSDeOracleImpl

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).

Functions ​

constructor ​

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)

solidity
constructor(string memory infoName_, IERC4626 sUSDe_, uint8 debtTokenDecimals_)
    SUSDeOracleImpl(sUSDe_, debtTokenDecimals_)
    FluidOracle(infoName_);

getExchangeRateOperate ​

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

getExchangeRateLiquidate ​

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

getExchangeRate ​

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