DexHelpers ​
Inherits:Constants
Functions ​
validAddress ​
solidity
modifier validAddress(address value_);
constructor ​
solidity
constructor(address dex_, address deployerContract_, bool isCenterPriceActive_)
validAddress(dex_)
validAddress(deployerContract_);
_getCenterPriceShift ​
solidity
function _getCenterPriceShift() internal view returns (uint256);
_getDexVariables ​
solidity
function _getDexVariables() internal view returns (uint256);
_getDexVariables2 ​
solidity
function _getDexVariables2() internal view returns (uint256);
_getCenterPriceFromCenterPriceAddress ​
solidity
function _getCenterPriceFromCenterPriceAddress(uint256 centerPriceNonce_) internal view returns (uint256);
_calcCenterPrice ​
solidity
function _calcCenterPrice(uint256 dexVariables_, uint256 centerPriceNonce_)
internal
view
returns (uint256 newCenterPrice_);
_fetchCenterPrice ​
solidity
function _fetchCenterPrice() internal view returns (uint256 centerPrice_);
_getDexFee ​
solidity
function _getDexFee() internal view returns (uint256 fee_);
getDexCenterPrice ​
solidity
function getDexCenterPrice() public view returns (uint256);
getDexRevenueCut ​
returns the revenue cut for the dex
solidity
function getDexRevenueCut() public view returns (uint256 revenueCut_);
getDexFeeAndRevenueCut ​
returns the fee and revenue cut for the dex
solidity
function getDexFeeAndRevenueCut() public view returns (uint256 fee_, uint256 revenueCut_);
getDexVariables ​
returns the last stored prices of the pool and the last interaction time stamp
solidity
function getDexVariables()
public
view
returns (uint256 lastToLastStoredPrice_, uint256 lastStoredPriceOfPool_, uint256 lastInteractionTimeStamp_);