Skip to content

DexConversionPriceDirectNoBorrow ​

Git Source

Inherits:DexConversionPriceGetter

returns the reserves conversion price fetched directly from the Fluid Dex Pool.

IMPORTANT: TO BE USED ONLY WITH NO BORROW VAULTS (very tight borrow limits).

State Variables ​

X8 ​

solidity
uint256 private constant X8 = 0xff;

X40 ​

solidity
uint256 private constant X40 = 0xffffffffff;

Functions ​

_getDexReservesConversionPriceOperate ​

returns lastStoredPrice at Dex, e.g. for USDC_ETH Dex it returns ETH per 1 USDC, already scaled to 1e27.

solidity
function _getDexReservesConversionPriceOperate() internal view override returns (uint256 conversionPrice_);

_getDexReservesConversionPriceLiquidate ​

returns lastStoredPrice at Dex, e.g. for USDC_ETH Dex it returns ETH per 1 USDC, already scaled to 1e27.

solidity
function _getDexReservesConversionPriceLiquidate() internal view override returns (uint256 conversionPrice_);