ComposableStablePoolFactory
Berachain0xdfa30bda0375d4763711ab0cc8d91b20bfcc87e1
Solidity v0.7.1+commit.f4a555be
概览
读取函数
Return the action ID associated with the given function selector.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| selector | bytes4 | 4-byte function selector to derive the action ID from.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | 32-byte action identifier derived from the provided selector.✨ AI |
Returns the address of the factory's current authorizer contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the authorizer contract that governs permissioning for pools.✨ AI |
Returns the creation bytecode used to deploy new ComposableStablePool instances.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes | The raw creation bytecode (bytes) for the pool implementation, used when deploying a new pool contract.✨ AI |
Returns the two addresses the factory uses as creation-code contracts when deploying pools.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Returns the pool's pause window and buffer period durations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Returns the version identifier of the pool implementation.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The pool implementation version string, such as a semantic version or other identifier.✨ AI |
Returns the address of the protocol fee percentages provider.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the contract that supplies protocol fee percentages.✨ AI |
Returns the Balancer Vault
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Checks whether the factory is disabled.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True when the factory is disabled and cannot create new pools; false otherwise.✨ AI |
Checks whether the specified pool address was created by this factory.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| pool | address | Address of the pool to check.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the pool was created by this factory; otherwise false.✨ AI |
Return the factory contract version string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The factory version as a string (semantic version, e.g. 1.0.0).✨ AI |
写入函数
Creates and returns a new Composable Stable Pool contract instance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 the factory so it no longer creates new Composable Stable Pools.✨ AI
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| pool | address | ✓ |