ComposableStablePoolFactory

Berachain

0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1

Solidity v0.7.1+commit.f4a555be

🤖
通过你的 AI 查询此合约
引用: 0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1
示例提示词: "Tell me the current state of berachain/0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1"
还没有接入 AI?→ mcp.smarts.md
Berachain 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
11
写入函数
2
事件
2

读取函数

getActionId(selector: bytes4) view

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

开发者: Returns the action identifier associated with the external function described by `selector`.

参数

名称 类型 描述
selector bytes4 4-byte function selector to derive the action ID from.✨ AI

返回值

名称 类型 描述
bytes32 32-byte action identifier derived from the provided selector.✨ AI
getAuthorizer() view

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

开发者: Returns the Vault's Authorizer.

返回值

名称 类型 描述
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

开发者: Returns the creation code of the contract this factory creates.

返回值

名称 类型 描述
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

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

返回值

名称 类型 描述
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

开发者: 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.

返回值

名称 类型 描述
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

开发者: 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.

返回值

名称 类型 描述
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

返回值

名称 类型 描述
address Address of the contract that supplies protocol fee percentages.✨ AI
getVault() view

Returns the Balancer Vault

返回值

名称 类型 描述
address
isDisabled() view

Checks whether the factory is disabled.✨ AI

开发者: Check whether the derived factory has been disabled.

返回值

名称 类型 描述
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

开发者: Returns true if `pool` was created by this factory.

参数

名称 类型 描述
pool address Address of the pool to check.✨ AI

返回值

名称 类型 描述
bool True if the pool was created by this factory; otherwise false.✨ AI
version() view

Return the factory contract version string.✨ AI

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

返回值

名称 类型 描述
string The factory version as a string (semantic version, e.g. 1.0.0).✨ AI

写入函数

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

开发者: Deploys a new `ComposableStablePool`.

参数

名称 类型 描述
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

返回值

名称 类型 描述
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

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

事件

FactoryDisabled()
PoolCreated(pool: address)
名称 类型 已索引 描述
pool address