ComposableStablePoolFactory
Berachain0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1
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
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
dev: Returns the action identifier associated with the external function described by `selector`.
Parameters
| Name | Type | Description |
|---|---|---|
| selector | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
getAuthorizer()
view
dev: Returns the Vault's Authorizer.
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
getCreationCode()
view
dev: Returns the creation code of the contract this factory creates.
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes |
getCreationCodeContracts()
view
dev: Returns the two addresses where the creation code of the contract crated by this factory is stored.
Returns
| Name | Type | Description |
|---|---|---|
| contractA | address | |
| contractB | address |
getPauseConfiguration()
view
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 | |
| bufferPeriodDuration | uint256 |
getPoolVersion()
view
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 |
getProtocolFeePercentagesProvider()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
getVault()
view
Returns the Balancer Vault
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
isDisabled()
view
dev: Check whether the derived factory has been disabled.
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
isPoolFromFactory(pool: address)
view
dev: Returns true if `pool` was created by this factory.
Parameters
| Name | Type | Description |
|---|---|---|
| pool | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
version()
view
dev: Returns a JSON representation of the contract version containing name, version number and task ID.
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Write Functions
create(name: string, symbol: string, tokens: address[], amplificationParameter: uint256, rateProviders: address[], tokenRateCacheDurations: uint256[], exemptFromYieldProtocolFeeFlag: bool, swapFeePercentage: uint256, owner: address, salt: bytes32)
nonpayable
dev: Deploys a new `ComposableStablePool`.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | |
| symbol | string | |
| tokens | address[] | |
| amplificationParameter | uint256 | |
| rateProviders | address[] | |
| tokenRateCacheDurations | uint256[] | |
| exemptFromYieldProtocolFeeFlag | bool | |
| swapFeePercentage | uint256 | |
| owner | address | |
| salt | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
disable()
nonpayable
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 | ✓ |