Balancer on Gnosis Chain
Deployments
Action: deposit
Parameters
Name | Type | Description |
---|---|---|
targets | string[] (required) | Pool name | Pool bpt | Pool id |
tokens | string[] (optional) | Token symbol | Token address |
For each Balancer pool we allow specifying the deposit targets using any of the following identifiers:
- BPT symbol (
Pool
name). - BPT address (
Pool
bpt). - Balancer pool ID (
Pool
id).
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.
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 spender
equal to Vault
amount
-
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 poolId
equal to TARGET_ID
sender
equal to AVATAR
recipient
equal to AVATAR
request.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 poolId
equal to TARGET_ID
sender
equal to AVATAR
recipient
equal to AVATAR
request.assets
- request.minAmountsOut
- request.userData
- request.toInternalBalance
-
Action: stake
Parameters:
Name | Type | Constraint |
---|---|---|
targets | string[] (required) | Pool name | Pool bpt | Pool id |
For each Balancer pool we allow specifying the stake targets using any of the following identifiers:
- BPT symbol (
Pool
name). - BPT address (
Pool
bpt). - Balancer pool ID (
Pool
id).
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 gauge
equal to TARGET_GAUGE
Vault · setRelayerApproval
One-time (and persistent) approval of the Relayer as single-point of entry.
-
Contract:
Vault
-
Function:
setRelayerApproval(address,address,bool)
Parameter Constraint sender
equal to AVATAR
relayer
equal to Relayer
approved
-
Relayer · gaugeWithdraw
Redeem TARGET_GAUGE
tokens and receive TARGET_BPT
tokens in exchange.
-
Contract:
Relayer
-
Function:
gaugeWithdraw(address,address,address,uint256)
Parameter Constraint gauge
equal to TARGET_GAUGE
sender
equal to AVATAR
recipient
equal to AVATAR
amount
-
Minter · setMinterApproval
One-time (and persistent) approval of the Relayer as single-point of entry.
-
Contract:
Minter
-
Function:
setMinterApproval(address,bool)
Parameter Constraint minter
equal to Relayer
approval
-
Relayer · gaugeClaimRewards
Claim Pool
rewards.
-
Contract:
Relayer
-
Function:
gaugeClaimRewards(address[])
Parameter Constraint gauges
equal to [TARGET_GAUGE]
Relayer · gaugeMint
Mint BAL rewards for Pool
.
-
Contract:
Relayer
-
Function:
gaugeMint(address[],uint256)
Parameter Constraint gauges
equal to [TARGET_GAUGE]
outputReference
-