Skip to content

DexPublicViews ​

Git Source

Abstract contract providing view functions for DEX public data

Functions ​

getDexPricesAndExchangePrices ​

Get the prices and exchange prices for a DEX

expected to be called via callStatic

solidity
function getDexPricesAndExchangePrices(address dex_) public returns (IFluidDexT1.PricesAndExchangePrice memory pex_);

Parameters

NameTypeDescription
dex_addressThe address of the DEX

Returns

NameTypeDescription
pex_IFluidDexT1.PricesAndExchangePriceA struct containing prices and exchange prices

getDexCollateralReserves ​

Get the collateral reserves for a DEX

expected to be called via callStatic

solidity
function getDexCollateralReserves(address dex_) public returns (IFluidDexT1.CollateralReserves memory reserves_);

Parameters

NameTypeDescription
dex_addressThe address of the DEX

Returns

NameTypeDescription
reserves_IFluidDexT1.CollateralReservesA struct containing collateral reserve information

getDexDebtReserves ​

Get the debt reserves for a DEX

expected to be called via callStatic

solidity
function getDexDebtReserves(address dex_) public returns (IFluidDexT1.DebtReserves memory reserves_);

Parameters

NameTypeDescription
dex_addressThe address of the DEX

Returns

NameTypeDescription
reserves_IFluidDexT1.DebtReservesA struct containing debt reserve information