BalancerHelpers
Berachain0x5083737ec75a728c265be578c9d0d5333a2c5951
Solidity v0.7.1+commit.f4a555be
🤖
Query this contract from your AI
Reference:
0x5083737ec75a728c265be578c9d0d5333a2c5951
Sample prompt:
"Tell me the current state of berachain/0x5083737ec75a728c265be578c9d0d5333a2c5951"
No AI wired up yet? →
mcp.smarts.md
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
1
Write Functions
2
Events
0
Read Functions
vault()
view
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Write Functions
queryExit(poolId: bytes32, sender: address, recipient: address, request: tuple)
nonpayable
dev: Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.
Parameters
| Name | Type | Description |
|---|---|---|
| poolId | bytes32 | |
| sender | address | |
| recipient | address | |
| request | tuple |
Returns
| Name | Type | Description |
|---|---|---|
| bptIn | uint256 | |
| amountsOut | uint256[] |
queryJoin(poolId: bytes32, sender: address, recipient: address, request: tuple)
nonpayable
dev: Returns the amount of BPT that would be granted to `recipient` if the `onJoinPool` hook were called by the Vault with the same arguments, along with the number of tokens `sender` would have to supply. This function is not meant to be called directly, but rather from a helper contract that fetches current Vault data, such as the protocol swap fee percentage and Pool balances. Like `IVault.queryBatchSwap`, this function is not view due to internal implementation details: the caller must explicitly use eth_call instead of eth_sendTransaction.
Parameters
| Name | Type | Description |
|---|---|---|
| poolId | bytes32 | |
| sender | address | |
| recipient | address | |
| request | tuple |
Returns
| Name | Type | Description |
|---|---|---|
| bptOut | uint256 | |
| amountsIn | uint256[] |