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

WeightedPoolFactory

0x09836Ff4aa44C9b8ddD2f85683aC6846E139fFBf | ABI JSON

Functions

create

Deploys a new WeightedPool.

solidity
function create(
    string memory name,
    string memory symbol,
    IERC20[] memory tokens,
    uint256[] memory normalizedWeights,
    IRateProvider[] memory rateProviders,
    uint256 swapFeePercentage,
    address owner,
    bytes32 salt
) external returns (address);

Parameters

NameTypeDescription
namestringThe name of the pool token
symbolstringThe symbol of the pool token
tokensIERC20[]Array of token addresses in the pool
normalizedWeightsuint256[]Array of normalized weights for each token
rateProvidersIRateProvider[]Array of rate provider addresses for each token
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;