Skip to content

DexFactoryVariables ​

Git Source

Inherits: Owned, StorageRead, Error

State Variables ​

_deployers ​

deployer can deploy new Dex Pool contract owner can add/remove deployer. Owner is deployer by default.

solidity
mapping(address => bool) internal _deployers

_globalAuths ​

global auths can update any dex pool config. owner can add/remove global auths. Owner is global auth by default.

solidity
mapping(address => bool) internal _globalAuths

_dexAuths ​

dex auths can update specific dex config. owner can add/remove dex auths. Owner is dex auth by default. dex => auth => add/remove

solidity
mapping(address => mapping(address => bool)) internal _dexAuths

_totalDexes ​

total no of dexes deployed by the factory only addresses that have deployer role or owner can deploy new dex pool.

solidity
uint256 internal _totalDexes

_dexDeploymentLogics ​

dex deployment logics for deploying dex pool These logic contracts hold the deployment logics of specific dexes and are called via .delegatecall inside deployDex(). only addresses that have owner can add/remove new dex deployment logic.

solidity
mapping(address => bool) internal _dexDeploymentLogics

Functions ​

constructor ​

solidity
constructor(address owner_) Owned(owner_);