proxyFactory docs
address implementation
Returns the implementation address for the pool proxies.
address _registry
struct IRigoblockPoolProxyFactory.Parameters _parameters
modifier onlyRigoblockDao()
constructor(address newImplementation, address registry) public
function createPool(string name, string symbol, address baseToken) external returns (address newPoolAddress, bytes32 poolId)
Creates a new Rigoblock pool.
Name | Type | Description |
---|---|---|
name | string | String of the name. |
symbol | string | String of the symbol. |
baseToken | address | Address of the base token. |
Name | Type | Description |
---|---|---|
newPoolAddress | address | Address of the new pool. |
poolId | bytes32 | Id of the new pool. |
function setImplementation(address newImplementation) external
Allows Rigoblock Dao to update factory pool implementation.
Name | Type | Description |
---|---|---|
newImplementation | address | Address of the new implementation contract. |
function setRegistry(address newRegistry) external
Allows owner to update the registry.
Name | Type | Description |
---|---|---|
newRegistry | address | Address of the new registry. |
function parameters() external view returns (struct IRigoblockPoolProxyFactory.Parameters)
Returns the pool initialization parameters at proxy deploy.
Name | Type | Description |
---|---|---|
[0] | struct IRigoblockPoolProxyFactory.Parameters | Tuple of the pool parameters. |
function getRegistry() public view returns (address)
Returns the address of the pool registry.
Name | Type | Description |
---|---|---|
[0] | address | Address of the registry. |
function _createPool(string name, string symbol, address baseToken) internal returns (bytes32 salt, contract RigoblockPoolProxy newProxy)
Creates a pool and routes to eventful.
Name | Type | Description |
---|---|---|
name | string | String of the name. |
symbol | string | String of the symbol. |
baseToken | address | Address of the base token. |
function _isContract(address target) private view returns (bool)
Returns whether an address is a contract.
Name | Type | Description |
---|---|---|
[0] | bool | Bool target address has code. |
Last modified 10mo ago