Skip to content

DexFactoryViews ​

Git Source

Inherits:Variables

Abstract contract providing view functions for DEX factory-related operations

Functions ​

getPoolAddress ​

Get the address of a Pool given its ID

solidity
function getPoolAddress(uint256 poolId_) public view returns (address pool_);

Parameters

NameTypeDescription
poolId_uint256The ID of the Pool

Returns

NameTypeDescription
pool_addressThe address of the Pool

getTotalPools ​

Get the total number of Pools

solidity
function getTotalPools() public view returns (uint256);

Returns

NameTypeDescription
<none>uint256The total number of Pools

getAllPoolAddresses ​

Get an array of all Pool addresses

solidity
function getAllPoolAddresses() public view returns (address[] memory pools_);

Returns

NameTypeDescription
pools_address[]An array containing all Pool addresses