PoolCreationHelper

Berachain

0x55dcce8165c88aad4403a15a9ce3a8e244657dd2

Solidity v0.7.1+commit.f4a555be

🤖
透過你的 AI 查詢此合約
參考: 0x55dcce8165c88aad4403a15a9ce3a8e244657dd2
範例提示詞: "Tell me the current state of berachain/0x55dcce8165c88aad4403a15a9ce3a8e244657dd2"
還沒有接入 AI?→ mcp.smarts.md
Berachain 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
4
寫入函式
2
事件
2

讀取函式

composableStablePoolFactory() view

Returns the address of the composable stable pool factory used by this helper.✨ AI

回傳值

名稱 類型 描述
address Address of the composable stable pool factory contract.✨ AI
vault() view

Returns the Vault contract address used by this helper.✨ AI

回傳值

名稱 類型 描述
address The Vault contract address that holds and manages pooled assets for created pools.✨ AI
wBERA() view

Returns the wBERA token contract address.✨ AI

回傳值

名稱 類型 描述
address The address of the wrapped BERA (wBERA) token contract.✨ AI
weightedPoolFactory() view

Returns the address of the Weighted Pool factory used to deploy new weighted pools.✨ AI

回傳值

名稱 類型 描述
address The address of the Weighted Pool factory contract.✨ AI

寫入函式

createAndJoinStablePool(name: string, symbol: string, createPoolTokens: address[], amplificationParameter: uint256, rateProviders: address[], tokenRateCacheDurations: uint256[], exemptFromYieldProtocolFeeFlag: bool, swapFeePercentage: uint256, amountsIn: uint256[], owner: address, salt: bytes32, joinWBERAPoolWithBERA: bool) payable

Creates a stable pool and joins it in a single transaction.

開發者: Allows users to create a WBERA stable pool and join it with either WBERA or BERA, depending on the value of `joinWBERAPoolWithBERA` flag and msg.value.

參數

名稱 類型 描述
name string Name of the pool
symbol string Symbol of the pool
createPoolTokens address[] Tokens to create the pool with
amplificationParameter uint256 Amplification parameter for the pool
rateProviders address[] Rate providers for the pool
tokenRateCacheDurations uint256[] Cache durations for the pool tokens
exemptFromYieldProtocolFeeFlag bool If true, exempt from yield protocol fee
swapFeePercentage uint256 Swap fee percentage for the pool
amountsIn uint256[] Amounts to join the pool with
owner address Owner of the pool
salt bytes32 Salt for the pool
joinWBERAPoolWithBERA bool If true, join the WBERA pool with BERA.

回傳值

名稱 類型 描述
pool address
createAndJoinWeightedPool(name: string, symbol: string, createPoolTokens: address[], joinPoolTokens: address[], normalizedWeights: uint256[], rateProviders: address[], swapFeePercentage: uint256, amountsIn: uint256[], owner: address, salt: bytes32) payable

Creates a weighted pool and joins it in a single transaction.

開發者: Allows users to create a WBERA weighted pool and join it with either WBERA or BERA.

參數

名稱 類型 描述
name string Name of the pool
symbol string Symbol of the pool
createPoolTokens address[] Tokens to create the pool with
joinPoolTokens address[] Tokens to join the pool with
normalizedWeights uint256[] Normalized weights for the pool
rateProviders address[] Rate providers for the pool
swapFeePercentage uint256 Swap fee percentage for the pool
amountsIn uint256[] Amounts to join the pool with
owner address Owner of the pool
salt bytes32 Salt for the pool

回傳值

名稱 類型 描述
pool address

事件

ComposableStablePoolCreated(name: string, symbol: string, pool: address)

Emitted when a composable stable pool is created

名稱 類型 已索引 描述
name string
symbol string
pool address
WeightedPoolCreated(name: string, symbol: string, pool: address)

Emitted when a weighted pool is created

名稱 類型 已索引 描述
name string
symbol string
pool address