Skip to content
🚧 Under Development! May be incomplete.Some pages/links may be incomplete or subject to change.

ComposableStablePoolFactory

0xfD772657FC8c4Ed3884AfF151b680883814052FA | ABI JSON

Functions

create

Deploys a new ComposableStablePool.

solidity
function create(
    string memory name,
    string memory symbol,
    IERC20[] memory tokens,
    uint256 amplificationParameter,
    IRateProvider[] memory rateProviders,
    uint256[] memory tokenRateCacheDurations,
    bool exemptFromYieldProtocolFeeFlag,
    uint256 swapFeePercentage,
    address owner,
    bytes32 salt
) external returns (ComposableStablePool)

Parameters

NameTypeDescription
namestringThe name of the pool token
symbolstringThe symbol of the pool token
tokensIERC20[]Array of token addresses in the pool
amplificationParameteruint256The amplification parameter (A factor) for the pool
rateProvidersIRateProvider[]Array of rate provider addresses for each token
tokenRateCacheDurationsuint256[]Array of cache durations for each token's rate
exemptFromYieldProtocolFeeFlagboolBoolean flag indicating if tokens are exempt from yield protocol fees
swapFeePercentageuint256The swap fee percentage for the pool
owneraddressThe owner address of the pool
saltbytes32Unique salt for deterministic pool address creation

isPoolFromFactory

Returns true if pool was created by this factory.

solidity
function isPoolFromFactory(address pool) external view returns (bool);

isDisabled

Check whether the derived factory has been disabled.

solidity
function isDisabled() external view returns (bool);

disable

Disable the factory, preventing the creation of more pools. Already existing pools are unaffected. Once a factory is disabled, it cannot be re-enabled.

solidity
function disable() external;