proxyFactory docs
RigoblockPoolProxyFactory
implementation
address implementationReturns the implementation address for the pool proxies.
Return Values
_registry
address _registry_parameters
struct IRigoblockPoolProxyFactory.Parameters _parametersonlyRigoblockDao
modifier onlyRigoblockDao()constructor
constructor(address newImplementation, address registry) publiccreatePool
Creates a new Rigoblock pool.
Parameters
name
string
String of the name.
symbol
string
String of the symbol.
baseToken
address
Address of the base token.
Return Values
newPoolAddress
address
Address of the new pool.
poolId
bytes32
Id of the new pool.
setImplementation
Allows Rigoblock Dao to update factory pool implementation.
Parameters
newImplementation
address
Address of the new implementation contract.
setRegistry
Allows owner to update the registry.
Parameters
newRegistry
address
Address of the new registry.
parameters
Returns the pool initialization parameters at proxy deploy.
Return Values
[0]
struct IRigoblockPoolProxyFactory.Parameters
Tuple of the pool parameters.
getRegistry
Returns the address of the pool registry.
Return Values
[0]
address
Address of the registry.
_createPool
Creates a pool and routes to eventful.
Parameters
name
string
String of the name.
symbol
string
String of the symbol.
baseToken
address
Address of the base token.
_isContract
Returns whether an address is a contract.
Return Values
[0]
bool
Bool target address has code.
Last updated