Skip to content

DexSmartColOracleImpl ​

Git Source

Inherits:DexOracleBase

State Variables ​

X128 ​

solidity
uint256 private constant X128 = 0xffffffffffffffffffffffffffffffff;

RESERVES_SCALER ​

solidity
uint256 private immutable RESERVES_SCALER;

Functions ​

constructor ​

solidity
constructor();

_getDexSmartColExchangeRate ​

returns price per 1 col share (quoteToken / colShare) in token decimals scaled to 1e27

solidity
function _getDexSmartColExchangeRate(uint256 conversionPrice_, uint256 token0Reserves_, uint256 token1Reserves_)
    internal
    view
    returns (uint256 rate_);

dexSmartColSharesRates ​

Returns the rates of shares (totalReserves/totalShares)

solidity
function dexSmartColSharesRates() public view virtual returns (uint256 operate_, uint256 liquidate_);