ComposableStablePoolFactory

Berachain Browse chains

0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1

Solidity v0.7.1+commit.f4a555be

🤖
Query this contract from your AI
Reference: 0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1
Sample prompt: "Tell me the current state of berachain/0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1"
No AI wired up yet? → mcp.smarts.md · Browse chains
Berachain is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
11
Write Functions
2
Events
2

Read Functions

getActionId(selector: bytes4) view

Return the action ID associated with the given function selector.✨ AI

dev: Returns the action identifier associated with the external function described by `selector`.

Parameters

Name Type Description
selector bytes4 4-byte function selector to derive the action ID from.✨ AI

Returns

Name Type Description
bytes32 32-byte action identifier derived from the provided selector.✨ AI
getAuthorizer() view

Returns the address of the factory's current authorizer contract.✨ AI

dev: Returns the Vault's Authorizer.

Returns

Name Type Description
address The address of the authorizer contract that governs permissioning for pools.✨ AI
getCreationCode() view

Returns the creation bytecode used to deploy new ComposableStablePool instances.✨ AI

dev: Returns the creation code of the contract this factory creates.

Returns

Name Type Description
bytes The raw creation bytecode (bytes) for the pool implementation, used when deploying a new pool contract.✨ AI
getCreationCodeContracts() view

Returns the two addresses the factory uses as creation-code contracts when deploying pools.✨ AI

dev: Returns the two addresses where the creation code of the contract crated by this factory is stored.

Returns

Name Type Description
contractA address Address of the first creation-code contract the factory stores for deploying pools.✨ AI
contractB address Address of the second creation-code contract the factory stores for deploying pools.✨ AI
getPauseConfiguration() view

Returns the pool's pause window and buffer period durations.✨ AI

dev: Returns the current `TemporarilyPausable` configuration that will be applied to Pools created by this factory. `pauseWindowDuration` will decrease over time until it reaches zero, at which point both it and `bufferPeriodDuration` will be zero forever, meaning deployed Pools will not be pausable.

Returns

Name Type Description
pauseWindowDuration uint256 pauseWindowDuration: Maximum time (in seconds) the pool can remain paused.✨ AI
bufferPeriodDuration uint256 bufferPeriodDuration: Additional buffer time (in seconds) after the pause window for governance actions.✨ AI
getPoolVersion() view

Returns the version identifier of the pool implementation.✨ AI

dev: Returns a JSON representation of the deployed pool version containing name, version number and task ID. This is typically only useful in complex Pool deployment schemes, where multiple subsystems need to know about each other. Note that this value will only be updated at factory creation time.

Returns

Name Type Description
string The pool implementation version string, such as a semantic version or other identifier.✨ AI
getProtocolFeePercentagesProvider() view

Returns the address of the protocol fee percentages provider.✨ AI

Returns

Name Type Description
address Address of the contract that supplies protocol fee percentages.✨ AI
getVault() view

Returns the Balancer Vault

Returns

Name Type Description
address
isDisabled() view

Checks whether the factory is disabled.✨ AI

dev: Check whether the derived factory has been disabled.

Returns

Name Type Description
bool True when the factory is disabled and cannot create new pools; false otherwise.✨ AI
isPoolFromFactory(pool: address) view

Checks whether the specified pool address was created by this factory.✨ AI

dev: Returns true if `pool` was created by this factory.

Parameters

Name Type Description
pool address Address of the pool to check.✨ AI

Returns

Name Type Description
bool True if the pool was created by this factory; otherwise false.✨ AI
version() view

Return the factory contract version string.✨ AI

dev: Returns a JSON representation of the contract version containing name, version number and task ID.

Returns

Name Type Description
string The factory version as a string (semantic version, e.g. 1.0.0).✨ AI

Write Functions

create(name: string, symbol: string, tokens: address[], amplificationParameter: uint256, rateProviders: address[], tokenRateCacheDurations: uint256[], exemptFromYieldProtocolFeeFlag: bool, swapFeePercentage: uint256, owner: address, salt: bytes32) nonpayable

Creates and returns a new Composable Stable Pool contract instance.✨ AI

dev: Deploys a new `ComposableStablePool`.

Parameters

Name Type Description
name string Pool name.✨ AI
symbol string Pool token symbol.✨ AI
tokens address[] Initial list of constituent token addresses.✨ AI
amplificationParameter uint256 Initial A (amplification) parameter for the stable swap curve.✨ AI
rateProviders address[] Addresses providing per-token exchange rates or oracle feeds.✨ AI
tokenRateCacheDurations uint256[] Cache durations (in seconds) for each token rate provider.✨ AI
exemptFromYieldProtocolFeeFlag bool If true, exempts the pool from yield protocol fees.✨ AI
swapFeePercentage uint256 Swap fee expressed in the contract's fixed-point percentage units.✨ AI
owner address Initial owner address for the deployed pool.✨ AI
salt bytes32 Deployment salt used for deterministic address creation.✨ AI

Returns

Name Type Description
address The address of the newly deployed pool contract.✨ AI
disable() nonpayable

Disable the factory so it no longer creates new Composable Stable Pools.✨ AI

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

Events

FactoryDisabled()
PoolCreated(pool: address)
Name Type Indexed Description
pool address