Skip to content

DexConstantsViews ​

Git Source

Abstract contract providing view functions for DEX constants

Functions ​

getPoolConstantsView ​

returns all Pool constants

solidity
function getPoolConstantsView(address pool_) public view returns (IFluidDexT1.ConstantViews memory constantsView_);

getPoolConstantsView2 ​

returns all Pool constants 2

solidity
function getPoolConstantsView2(address pool_) public view returns (IFluidDexT1.ConstantViews2 memory constantsView2_);

getPoolTokens ​

Get the addresses of the tokens in a Pool

solidity
function getPoolTokens(address pool_) public view returns (address token0_, address token1_);

Parameters

NameTypeDescription
pool_addressThe address of the Pool

Returns

NameTypeDescription
token0_addressThe address of token0 in the Pool
token1_addressThe address of token1 in the Pool