Balancer v2 on Ethereum
Deployments
Action: deposit
Parameters
| Name | Type | Description | 
|---|---|---|
| targets | string[] (required) | Poolname |Poolbpt |Poolid | 
| tokens | string[] (optional) | Tokensymbol |Tokenaddress | 
For each Balancer pool we allow specifying the deposit targets using any of the following identifiers:
- BPT symbol (Poolname).
- BPT address (Poolbpt).
- Balancer pool ID (Poolid).
TARGET_BPT below refers to the address of the BPT (Balancer Pool Token).
TARGET_ID below refers to the Balancer pool ID.TARGET_GAUGE below refers to the BalancerGaugeDeposit contract address for
the target Balancer pool.
TOKEN below refers to the ERC-20 token address of each element given in
tokens. If tokens is not specified then the pool tokens of each TARGET
are considered.
TOKEN · approve
Approve Vault to spend TOKEN tokens on behalf of the avatar.
- 
Contract: TOKEN
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to Vaultamount- 
Vault · joinPool
Deposit TOKEN tokens to the corresponding Balancer pool and receive TARGET_BPT tokens in exchange.
- 
Contract: Vault
- 
Function: joinPool(bytes32,address,address,(address[],uint256[],bytes,bool))Ξ allow sending ETHParameter Constraint poolIdequal to TARGET_IDsenderequal to AVATARrecipientequal to AVATARrequest.assets- request.maxAmountsIn- request.userData- request.fromInternalBalance- 
Vault · exitPool
Redeem TARGET_BPT tokens to the corresponding Balancer pool and receive TOKEN tokens in exchange.
- 
Contract: Vault
- 
Function: exitPool(bytes32,address,address,(address[],uint256[],bytes,bool))Parameter Constraint poolIdequal to TARGET_IDsenderequal to AVATARrecipientequal to AVATARrequest.assets- request.minAmountsOut- request.userData- request.toInternalBalance- 
Action: stake
Parameters:
| Name | Type | Constraint | 
|---|---|---|
| targets | string[] (required) | Poolname |Poolbpt |Poolid | 
For each Balancer pool we allow specifying the stake targets using any of the following identifiers:
- BPT symbol (Poolname).
- BPT address (Poolbpt).
- Balancer pool ID (Poolid).
TARGET_BPT below refers to the address of BPT (Balancer Pool Token).
TARGET_ID below refers to the Balancer pool ID.TARGET_GAUGE below refers to the BalancerGaugeDeposit contract address for
the target Balancer pool.
TARGET_GAUGE · deposit
Stake TARGET_BPT tokens and receive TARGET_GAUGE tokens in exchange.
- 
Contract: TARGET_GAUGE
- 
Function: deposit(uint256)Parameter Constraint value- 
TARGET_GAUGE · withdraw
Redeem TARGET_GAUGE tokens and receive TARGET_BPT tokens in exchange.
- 
Contract: TARGET_GAUGE
- 
Function: withdraw(uint256)Parameter Constraint value- 
TARGET_GAUGE · claim_rewards
Claim Pool rewards.
- 
Contract: TARGET_GAUGE
- 
Function: claim_rewards()Parameter Constraint N/A N/A 
BalancerMinter · mint
Mint BAL rewards for Pool.
- 
Contract: BalancerMinter
- 
Function: mint(address)Parameter Constraint gaugeequal to TARGET_GAUGE
Action: lock
Parameters:
N/A.
B_80BAL_20WETH_PID below refers to the Balancer 80BAL-20WETH pool ID
("0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014").
TOKEN below refers to the Balancer 80BAL-20WETH pool underlying token
addresses (BAL and WETH).
BAL · approve
Approve Vault to spend BAL tokens on behalf of the avatar.
- 
Contract: BAL
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to Vaultamount- 
WETH · approve
Approve Vault to spend WETH tokens on behalf of the avatar.
- 
Contract: WETH
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to Vaultamount- 
B-80BAL-20WETH · approve
Approve veBAL to spend B-80BAL-20WETH tokens on behalf of the avatar.
- 
Contract: B-80BAL-20WETH
- 
Function: approve(address,uint256)Parameter Constraint spenderequal to veBALamount- 
Vault · joinPool
Deposit TOKEN tokens to the corresponding Balancer pool and receive B-80BAL-20WETH tokens in exchange.
- 
Contract: Vault
- 
Function: joinPool(bytes32,address,address,(address[],uint256[],bytes,bool))Ξ allow sending ETHParameter Constraint poolIdequal to B_80BAL_20WETH_PIDsenderequal to AVATARrecipientequal to AVATARrequest.assets- request.maxAmountsIn- request.userData- request.fromInternalBalance- 
Vault · exitPool
Redeem B-80BAL-20WETH tokens to the corresponding Balancer pool and receive TOKEN tokens in exchange.
- 
Contract: Vault
- 
Function: exitPool(bytes32,address,address,(address[],uint256[],bytes,bool))Parameter Constraint poolIdequal to B_80BAL_20WETH_PIDsenderequal to AVATARrecipientequal to AVATARrequest.assets- request.minAmountsOut- request.userData- request.toInternalBalance- 
B-80BAL-20WETH · increaseApproval
Increase the allowance of B-80BAL-20WETH tokens for veBAL as the spender.
- 
Contract: B-80BAL-20WETH
- 
Function: increaseApproval(address,uint256)Parameter Constraint spenderequal to veBALamount- 
B-80BAL-20WETH · decreaseApproval
Decrease the allowance of B-80BAL-20WETH tokens for veBAL as the spender.
- 
Contract: B-80BAL-20WETH
- 
Function: decreaseApproval(address,uint256)Parameter Constraint spenderequal to veBALamount- 
veBAL · create_lock
Lock B-80BAL-20WETH tokens for a given period of time and receive veBAL tokens in exchange.
- 
Contract: veBAL
- 
Function: create_lock(uint256,uint256)Parameter Constraint value- unlock_time- 
veBAL · increase_amount
Increase the amount of B-80BAL-20WETH tokens locked and receive veBAL tokens in exchange.
- 
Contract: veBAL
- 
Function: increase_amount(uint256)Parameter Constraint value- 
veBAL · increase_unlock_time
Increase the time to unlock the B-80BAL-20WETH tokens.
- 
Contract: veBAL
- 
Function: increase_unlock_time(uint256)Parameter Constraint unlock_time- 
FeeDistributor · claimToken
Claim a specific reward token from veBAL incentives.
- 
Contract: FeeDistributor
- 
Function: claimToken(address,address)Parameter Constraint userequal to AVATARtoken- 
FeeDistributor · claimTokens
Claim all reward tokens from veBAL incentives.
- 
Contract: FeeDistributor
- 
Function: claimTokens(address,address[])Parameter Constraint userequal to AVATARtoken-