DexSmartColPegOracle ​
Gets the exchange rate between a Fluid Dex smart collateral shares and normal debt.
plugs result of DexSmartColOracleImpl into any existing FluidOracle. result of DexSmartColOracleImpl is e.g. for WSTETH/ETH smart col, WSTETH amount per 1 share. we need 1 share in relation to debt. so e.g. wstETH/ETH smart col w.r.t. USDC debt. so plug result into wstETH/USDC oracle then we get USDC per 1 share. can be paired with DexSmartDebtOracle to create an Oracle for type 4 smart col & smart debt.
_COL_DEBT_ORACLE ​
contract IFluidOracle _COL_DEBT_ORACLE
external IFluidOracle used to convert from col shares to a Fluid vault debt token
_COL_DEBT_INVERT ​
bool _COL_DEBT_INVERT
_COL_DEBT_DECIMALS ​
uint8 _COL_DEBT_DECIMALS
_COL_DEBT_DIVISOR ​
uint256 _COL_DEBT_DIVISOR
constructor ​
constructor(string infoName_, address dexPool_, address reservesConversionOracle_, bool quoteInToken0_, bool reservesConversionInvert_, uint256 reservesPegBufferPercent_, contract IFluidOracle colDebtOracle_, bool colDebtInvert_, uint8 colDebtDecimals_) public
getExchangeRateOperate ​
function getExchangeRateOperate() public view virtual returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for operates
getExchangeRateLiquidate ​
function getExchangeRateLiquidate() public view virtual returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for liquidations
getExchangeRate ​
function getExchangeRate() public view virtual returns (uint256 exchangeRate_)
Deprecated. Use getExchangeRateOperate()
and getExchangeRateLiquidate()
instead. Only implemented for backwards compatibility.
getDexSmartColOracleData ​
function getDexSmartColOracleData() public view returns (address colDebtOracle_, bool colDebtInvert_, uint8 colDebtDecimals_)
Returns Col/Debt Oracle data