IFluidCappedRate ​
Inherits:IFluidOracle
Functions ​
getExchangeRateOperateDebt ​
Get the operate() exchange rate for debt asset side, with no cap upwards and capped decrease
solidity
function getExchangeRateOperateDebt() external view returns (uint256 exchangeRate_);
getExchangeRateLiquidateDebt ​
Get the liquidate() exchange rate for debt asset side, with max APR cap upwards, and capped decrease
solidity
function getExchangeRateLiquidateDebt() external view returns (uint256 exchangeRate_);
centerPrice ​
Retrieves the center price for use in a Fluid dex pool
This function is marked as non-constant (potentially state-changing) to allow flexibility in price fetching mechanisms. While typically used as a read-only operation, this design permits write operations if needed for certain token pairs (e.g., fetching up-to-date exchange rates that may require state changes).
solidity
function centerPrice() external returns (uint256 price_);
Returns
Name | Type | Description |
---|---|---|
price_ | uint256 | The current price ratio of token1 to token0, expressed with 27 decimal places |