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