Skip to content

DexSmartT4CLOracleL2 ​

Git Source

Inherits:FluidOracleL2, DexSmartT4CLOracle

Gets the exchange rate between a Fluid Dex smart collateral and smart debt for a T4 vault. returns amount of debt shares per 1 col share.

-> Reserves from Liquidity, adjusted for conversion price. -> Reserves conversion price from Chainlink feeds.

Functions ​

constructor ​

solidity
constructor(DexSmartT4CLOracle.DexSmartT4CLOracleParams memory params_, address sequencerUptimeFeed_)
    DexSmartT4CLOracle(params_)
    FluidOracleL2(sequencerUptimeFeed_);

getExchangeRateOperate ​

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

getExchangeRateLiquidate ​

solidity
function getExchangeRateLiquidate()
    public
    view
    override(DexSmartT4CLOracle, FluidOracleL2)
    returns (uint256 exchangeRate_);

getExchangeRate ​

solidity
function getExchangeRate() public view override(DexSmartT4CLOracle, FluidOracleL2) returns (uint256 exchangeRate_);