Skip to content

WeightedPoolFactory

0xa966fA8F2d5B087FFFA499C0C1240589371Af409 | 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;