QuantAMMWeightedPoolFactory

Git Sourcearrow-up-right

Inherits: IPoolVersion, BasePoolFactory, Version

General Weighted Pool factory

This is the most general factory, which allows up to eight tokens and arbitrary weights.

State Variables

_poolVersion

string private _poolVersion;

_updateWeightRunner

address private immutable _updateWeightRunner;

Functions

constructor

constructor(
    IVault vault,
    uint32 pauseWindowDuration,
    string memory factoryVersion,
    string memory poolVersion,
    address updateWeightRunner
) BasePoolFactory(vault, pauseWindowDuration, type(QuantAMMWeightedPool).creationCode) Version(factoryVersion);

Parameters

Name
Type
Description

vault

IVault

the balancer v3 valt

pauseWindowDuration

uint32

the pause duration

factoryVersion

string

factory version

poolVersion

string

pool version

updateWeightRunner

address

singleton update weight runner

getPoolVersion

_constructionChecks

_initialisationCheck

createWithoutArgs

create

Deploys a new WeightedPool.

Tokens must be sorted for pool registration.

Errors

NormalizedWeightInvariant

Indicates that the sum of the pool tokens' weights is not FP 1.

MinWeight

Indicates that one of the pool tokens' weight is below the minimum allowed.

ImcompatibleRouterConfiguration

Unsafe or bad configuration for routers and liquidity management

Structs

CreationNewPoolParams

Last updated