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