Appearance
Potentia Factory
1. createPool
solidity
function createPool(
address underlying,
uint256 power,
uint256 adjustRate,
address operator,
uint256 halfTime,
address oracle
) external nonReentrant returns (address)
The createPool
accepts these parameters and deploy a new PotentiaPool. It returns the address of the deployed pool.
Parameters
Name | Type | Description |
---|---|---|
underlying | address | Address of the underlying asset |
power | uint256 | Power of the derivative i.e |
adjustRate | uint256 | Rate to adjust the moving price |
operator | address | Address of the Pool Operator |
halfTime | uint256 | Parameter related to pool funding rate |
oracle | address | Chainlink asset's price feed address |
NOTE
The adjustRate and halfTime must be set using certain specifications. Contact the Potentia team for the same.