Skip to content

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

NameTypeDescription
underlyingaddressAddress of the underlying asset
poweruint256Power of the derivative i.e 2,3...
adjustRateuint256Rate to adjust the moving price
operatoraddressAddress of the Pool Operator
halfTimeuint256Parameter related to pool funding rate
oracleaddressChainlink asset's price feed address

NOTE

The adjustRate and halfTime must be set using certain specifications. Contact the Potentia team for the same.