0x55dcce8165c88aad4403a15a9ce3a8e244657dd2
Solidity v0.7.1+commit.f4a555be
🤖
Query this contract from your AI
Reference:
0x55dcce8165c88aad4403a15a9ce3a8e244657dd2
Sample prompt:
"Tell me the current state of berachain/0x55dcce8165c88aad4403a15a9ce3a8e244657dd2"
No AI wired up yet? →
mcp.smarts.md
· Browse chains
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
4
Write Functions
2
Events
2
Read Functions
composableStablePoolFactory()
view
Returns the address of the composable stable pool factory used by this helper.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address of the composable stable pool factory contract.✨ AI |
vault()
view
Returns the Vault contract address used by this helper.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The Vault contract address that holds and manages pooled assets for created pools.✨ AI |
wBERA()
view
Returns the wBERA token contract address.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | 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
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the Weighted Pool factory contract.✨ AI |
Write Functions
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.
dev: 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.
Parameters
| Name | Type | Description |
|---|---|---|
| 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. |
Returns
| Name | Type | Description |
|---|---|---|
| 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.
dev: Allows users to create a WBERA weighted pool and join it with either WBERA or BERA.
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Returns
| Name | Type | Description |
|---|---|---|
| pool | address |
Events
ComposableStablePoolCreated(name: string, symbol: string, pool: address)
Emitted when a composable stable pool is created
| Name | Type | Indexed | Description |
|---|---|---|---|
| name | string | ||
| symbol | string | ||
| pool | address | ✓ |
WeightedPoolCreated(name: string, symbol: string, pool: address)
Emitted when a weighted pool is created
| Name | Type | Indexed | Description |
|---|---|---|---|
| name | string | ||
| symbol | string | ||
| pool | address | ✓ |