DexFactoryViews ​
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
Name | Type | Description |
---|---|---|
poolId_ | uint256 | The ID of the Pool |
Returns
Name | Type | Description |
---|---|---|
pool_ | address | The address of the Pool |
getTotalPools ​
Get the total number of Pools
solidity
function getTotalPools() public view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The total number of Pools |
getAllPoolAddresses ​
Get an array of all Pool addresses
solidity
function getAllPoolAddresses() public view returns (address[] memory pools_);
Returns
Name | Type | Description |
---|---|---|
pools_ | address[] | An array containing all Pool addresses |