IFluidOracle ​
Functions ​
getExchangeRate ​
Returns the raw underlying exchange rate in 1e27 precision, without applying collateral/debt caps.
Heartbeat-aware read: if a heartbeat refresh is due, computes and returns the fresh rate without requiring a storage write.
function getExchangeRate() external view returns (uint256 exchangeRate_);getExchangeRateOperate ​
Get the exchangeRate_ between the underlying asset and the peg asset in 1e27 for operates
function getExchangeRateOperate() external view returns (uint256 exchangeRate_);getExchangeRateLiquidate ​
Get the exchangeRate_ between the underlying asset and the peg asset in 1e27 for liquidations
function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_);getExchangeRateOperateRaw ​
Same as getExchangeRateOperate(), for resolver/UI reads only. May bypass checks that can revert on the guarded getter.
Example today: L2 sequencer uptime / grace-period. Additional bypasses may be added here over time.
function getExchangeRateOperateRaw() external view returns (uint256 exchangeRate_);getExchangeRateLiquidateRaw ​
Same as getExchangeRateLiquidate(), for resolver/UI reads only. May bypass checks that can revert on the guarded getter.
Example today: L2 sequencer uptime / grace-period. Additional bypasses may be added here over time.
function getExchangeRateLiquidateRaw() external view returns (uint256 exchangeRate_);getExchangeRateRaw ​
Same as getExchangeRate(), for resolver/UI reads only. May bypass checks that can revert on the guarded getter.
Example today: L2 sequencer uptime / grace-period. Additional bypasses may be added here over time.
function getExchangeRateRaw() external view returns (uint256 exchangeRate_);infoName ​
helper string to easily identify the oracle. E.g. token symbols
function infoName() external view returns (string memory);targetDecimals ​
target decimals of the returned oracle rate when scaling to 1e27. E.g. for ETH / USDC it would be 15 because diff of ETH decimals to 1e27 is 9, and USDC has 6 decimals, so 6+9 = 15, e.g. 2029,047772120364926 For USDC / ETH: 21 + 18 = 39, e.g. 0,000492842018675092636829357843847601646
function targetDecimals() external view returns (uint8);