Deploy a New Pool for Integrated Protocol

What protocols are already integrated?

For a full list of protocols that already have linear pools, please check out the linear pools repositoryopen in new window.

Protocol Ids

When deploying a Linear Pool, it's important to properly set the protocolId argument. This helps explain to prospective LPs what protocol the Linear Pool is using, since some factories can be used for multiple protocols. A list of currently registered protocols can be found hereopen in new window. If a specific protocol is not on the list, additional protocols can be added by governanceopen in new window. Protocols that are forks of other protocols should register their own protocolId!

Frequently Used Factories

ERC-4626 (deploymentsopen in new window)

If a user has a token, TKN, that has a corresponding ERC-4626 tokenized vault, xTKN, then it is immediately possible to create an ERC-4626 Linear Pool from the factory with TKN as the main token and Wrapped aTKN as the wrapped token.

Aave V2 (deploymentsopen in new window)

If a user has a token, TKN, that has a corresponding Aave aToken, aTKN, then it is possible to create an Aave Linear Pool; however, it is important to note that aTKN must be wrapped in a Static aToken Wrapper since aTokens are not natively compatible with Balancer V2!

Need to deploy a Static aToken Wrapper?

To create a Static aToken Wrapper for Aave V2, follow the instructions in this repositoryopen in new window.

Wrappers are coming soon for Aave V3! They will be ERC-4626 compatible.

MetaPools

To create liquidity for a new token with a market on a compatible protocol, pool creators can create a MetaPool. MetaPools help consolidate liquidity to a few primary pools, and reduce the burned on pool creators for sourcing their own liquidity.

For example, if a creator wanted to build liquidity around a new stablecoin, USDX, with aToken aUSDX, a pool creator could make an Aave Linear Pool bb-a-USDX and pair it with BPT from the existing bb-a-USD. This would create trading pairs with USDC, USDT, DAI, USDX, and all of their respective wrapped aTokens. This architecture keeps all of the underlying tokens of bb-a-USD in the same pool while still opening simple swap paths to the newly paired tokens.

Need More Help?

Feel free to come by the Balancer Discordopen in new window with any questions.