Aura Repertoire on Gnosis Chain
Deployments
Name | Address |
---|---|
BalancerVault | 0xBA12222222228d8Ba445958a75a0704d566BF2C8 (opens in a new tab) |
Strategy: withdraw
Parameters
Name | Type | Description |
---|---|---|
rewarder | string[] (required) | Address rewarder |
Withdraw funds from Aura.
Permissions:
REWARDER
below refers to the auraBaseRewardPool
contract address for the
corresponding Aura pool.
REWARDER · withdrawAndUnwrap
Redeem REWARDER
tokens and withdraw and unwrap BPT
tokens.
-
Contract:
REWARDER
-
Function:
withdrawAndUnwrap(uint256,bool)
Parameter Constraint amount
- claim
-
Strategy: withdraw_proportional
Parameters
Name | Type | Description |
---|---|---|
rewarder | string[] (required) | Address rewarder |
Withdraw funds from Aura and then from the Balancer pool withdrawing all assets in proportional way.
Permissions:
REWARDER
below refers to the auraBaseRewardPool
contract address for the
corresponding Aura pool.
TOKEN
below refers to the ERC-20 token address of the corresponding pool.
PID
below refers to the Balancer pool ID.REWARDER · withdrawAndUnwrap
Redeem REWARDER
tokens and withdraw and unwrap BPT
tokens.
-
Contract:
REWARDER
-
Function:
withdrawAndUnwrap(uint256,bool)
Parameter Constraint amount
- claim
-
BalancerVault · exitPool
Redeem BPT
tokens to the corresponding Balancer pool and receive proportional amounts of TOKEN
tokens in exchange.
-
Contract:
BalancerVault
-
Function:
exitPool(bytes32,address,address,(address[],uint256[],bytes,bool))
Parameter Constraint poolId
equal to PID
sender
equal to AVATAR
recipient
equal to AVATAR
request.assets
- request.minAmountsOut
- request.userData
See the note below for details. request.toInternalBalance
-
Note on userData
:
userData
is a bytes-like parameter that must be ABI-encoded.- Scoping details:
- For
ComposableStable
Pools:userData
is scoped as [2], encoded as ["uint256"]. - For all other pool types:
userData
is scoped as [1], encoded as ["uint256"].
- For
Additional Resources:
- Balancer subgraphs (opens in a new tab) for obtaining
PoolType
. - Balancer documentation (opens in a new tab) for
userData
structure.
Strategy: withdraw_single_token
Parameters
Name | Type | Description |
---|---|---|
rewarder | string (required) | Address rewarder |
exitTokenAddress | string (required) | Address exitTokenAddress |
Withdraw funds from the Balancer pool withdrawing a single asset specified by the token address.
Permissions:
REWARDER
below refers to the auraBaseRewardPool
contract address for the
corresponding Aura pool.
TOKEN
below refers to the ERC-20 token address of the corresponding pool.
PID
below refers to the Balancer pool ID.REWARDER · withdrawAndUnwrap
Redeem REWARDER
tokens and withdraw and unwrap BPT
tokens.
-
Contract:
REWARDER
-
Function:
withdrawAndUnwrap(uint256,bool)
Parameter Constraint amount
- claim
-
BalancerVault · exitPool
Redeem BPT
tokens to the corresponding Balancer pool and receive proportional amounts of TOKEN
tokens in exchange.
-
Contract:
BalancerVault
-
Function:
exitPool(bytes32,address,address,(address[],uint256[],bytes,bool))
Parameter Constraint poolId
equal to PID
sender
equal to AVATAR
recipient
equal to AVATAR
request.assets
- request.minAmountsOut
- request.userData
See the note below for details. request.toInternalBalance
-
Note on userData
:
userData
is a bytes-like parameter that must be ABI-encoded.- Scoping details:
- For all pool types,
userData
is scoped as[0, undefined, exitTokenIndex]
, encoded as["uint256", "uint256", "uint256"]
. - Where
exitTokenIndex
is determined by the position ofexitTokenAddress
within the pool's tokens.
- For all pool types,
Additional Resources:
- Balancer subgraphs (opens in a new tab) for obtaining
PoolType
. - Balancer documentation (opens in a new tab) for
userData
structure.