DexFactoryViews ​
Inherits:Variables
Abstract contract providing view functions for DEX factory-related operations
Functions ​
getDexAddress ​
Get the address of a DEX given its ID
solidity
function getDexAddress(uint256 dexId_) public view returns (address dex_);
Parameters
Name | Type | Description |
---|---|---|
dexId_ | uint256 | The ID of the DEX |
Returns
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
getDexId ​
Get the ID of a DEX given its address
solidity
function getDexId(address dex_) public view returns (uint256 id_);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
id_ | uint256 | The ID of the DEX |
getTotalDexes ​
Get the total number of DEXes
solidity
function getTotalDexes() public view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The total number of DEXes |
getAllDexAddresses ​
Get an array of all DEX addresses
solidity
function getAllDexAddresses() public view returns (address[] memory dexes_);
Returns
Name | Type | Description |
---|---|---|
dexes_ | address[] | An array containing all DEX addresses |