OCPoolFactory
OCPoolFactory
getPool
createPool
_create a new pool
createPool
is a helper function to create a new pool.
Emits a {PoolCreated} event.
If the pool already exists, it will revert.
If the pool is created successfully, it will return the pool address and be added to getPool
.
Requirements:
_token must be valid
getPool[_token]
must be empty_
Parameters
Name
Type
Description
_token
address
token address
Return Values
Name
Type
Description
pool
address
address