AeraVaultV1
API Documentation for `AeraVaultV1.sol` contract
Last updated
API Documentation for `AeraVaultV1.sol` contract
Last updated
Risk-managed treasury vault.
Managed n-asset vault that supports withdrawals in line with a pre-defined validator contract.
Vault owner is the asset owner.
Accept ownership
Balancer Vault.
Returns
Name | Type | Description |
---|---|---|
Cancel current pending ownership transfer
Cancel the active weight update schedule.
Keep calculated weights from the schedule at the time.
Claim guardian fee.
This function shouldn't be called too frequently.
Claim Balancer rewards.
It calls claimDistributions() function of Balancer MerkleOrchard. Once this function is called, the tokens will be transferred to the Vault and it can be distributed via sweep function.
Parameters
Deposit tokens into vault.
It calls updateWeights() function which cancels current active weights change schedule.
Parameters
Deposit tokens into vault.
It calls updateWeights() function which cancels current active weights change schedule. It reverts if balances were updated in the current block.
Parameters
Describes vault purpose and modelling assumptions for differentiating between vaults
string cannot be immutable bytecode but only set in constructor
Returns
Disable swap.
Enable swap with current weights.
Enable swap with updating weights.
These are checked by Balancer in internal transactions: If weight length and token length match. If total sum of weights is one. If weight is greater than minimum.
Parameters
Destroy vault and returns all funds to treasury owner.
Indicates that the Vault has been finalized
Returns
Underlying token balances.
Returns
Get token weights.
Returns
Get swap fee.
Divide by 10**18 for decimal representation
Returns
Get IERC20 Tokens Balancer Pool.
Returns
Get Token Data of Balancer Pool.
Returns
Balance of token with given index.
Parameters
Returns
Initialize Vault with first deposit.
Initial deposit must be performed before calling withdraw() or deposit() functions. It enables trading, so weights and balances should be in line with market spot prices, otherwise there is a significant risk of arbitrage. This is checked by Balancer in internal transactions: If token amount is not zero when join pool.
Parameters
Indicates that the Vault has been initialized
Returns
Initiate vault destruction and return all funds to treasury owner.
Check if vault trading is enabled.
Returns
Last timestamp where guardian fee index was locked.
Returns
Last timestamp where swap fee was updated.
Returns
Management fee earned proportion per second.
10**18 is 100%
Returns
Controls vault parameters.
Returns
Fee earned amount by current guardian and previous guardians.
Parameters
Returns
Total guardian fee earned amount
Parameters
Returns
Balancer Merkle Orchard.
Returns
Notice period for vault termination (in seconds).
Returns
Timestamp when notice elapses or 0 if not yet set
Returns
Returns the address of the current owner.
Returns
Pending account to accept ownership of vault.
Returns
Balancer Managed Pool.
Returns
Balancer Managed Pool Controller.
Returns
Pool ID of Balancer pool on Vault.
Returns
Disable ownership renounceable
Change guardian.
Parameters
Change swap fee.
These are checked by Balancer in internal transactions: If new swap fee is less than maximum. If new swap fee is greater than minimum.
Parameters
Withdraw any tokens accidentally sent to vault.
Parameters
Offer ownership to another address
It disables immediate transfer of ownership
Parameters
Initiate weight move to target in given update window.
These are checked by Balancer in internal transactions: If target weight length and token length match. If total sum of target weights is one. If target weight is greater than minimum.
Parameters
Verifies withdraw limits.
Returns
Withdraw tokens up to requested amounts.
It calls updateWeights() function which cancels current active weights change schedule.
Parameters
Withdraw tokens up to requested amounts.
It calls updateWeights() function which cancels current active weights change schedule. It reverts if balances were updated in the current block.
Parameters
Emitted when cancelWeightUpdates is called.
Parameters
Emitted when the vault is created.
Parameters
Emitted when tokens are deposited.
Parameters
Emitted when management fees are withdrawn.
Parameters
Emitted when enableTradingWithWeights is called.
Parameters
Emitted when initiateFinalization is called.
Parameters
Emitted when vault is finalized.
Parameters
Emitted when guardian is changed.
Parameters
Emitted when cancelOwnershipTransfer is called.
Parameters
Emitted when transferOwnership is called.
Parameters
Parameters
Emitted when swap is enabled/disabled.
Parameters
Emitted when swap fee is updated.
Parameters
Emitted when updateWeightsGradually is called.
Parameters
Emitted when tokens are withdrawn.
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
ERRORS ///
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Parameters
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_0
contract IBVault
undefined
claims
IBMerkleOrchard.Claim[]
An array of claims provided as a claim struct. See https://docs.balancer.fi/products/merkle-orchard/claiming-tokens#claiming-from-the-contract-directly.
tokens
contract IERC20[]
An array consisting of tokens to be claimed.
tokenWithAmount
IProtocolAPI.TokenValue[]
Deposit tokens with amount.
tokenWithAmount
IProtocolAPI.TokenValue[]
Deposit token with amount.
_0
string
undefined
tokenWithWeight
IProtocolAPI.TokenValue[]
Tokens with new weights.
_0
bool
undefined
amounts
uint256[]
Token balances in underlying pool
_0
uint256[]
Normalized weights of tokens on Balancer pool.
_0
uint256
Swap fee from underlying Balancer pool.
tokens
contract IERC20[]
IERC20 tokens of Balancer pool.
_0
contract IERC20[]
IERC20 tokens of Balancer pool.
_1
uint256[]
Balances of tokens of Balancer pool.
_2
uint256
Last updated Blocknumber.
index
uint256
undefined
_0
uint256
Token balance in underlying pool.
tokenWithAmount
IProtocolAPI.TokenValue[]
Deposit tokens with amount.
_0
bool
undefined
_0
bool
If public swap is turned on, returns true, otherwise false.
_0
uint256
undefined
_0
uint256
undefined
_0
uint256
undefined
_0
address
undefined
_0
address
undefined
_1
uint256
undefined
_0
uint256
undefined
_0
uint256
undefined
_0
uint256
undefined
_0
contract IBMerkleOrchard
undefined
_0
uint256
undefined
_0
uint256
undefined
_0
address
undefined
_0
address
undefined
_0
contract IBManagedPool
undefined
_0
contract IBManagedPoolController
undefined
_0
bytes32
undefined
newGuardian
address
undefined
newSwapFee
uint256
undefined
token
address
undefined
amount
uint256
undefined
newOwner
address
undefined
tokenWithWeight
IProtocolAPI.TokenValue[]
Tokens with target weights.
startTime
uint256
Timestamp at which weight movement should start.
endTime
uint256
Timestamp at which the weights should reach target values.
_0
contract IWithdrawalValidator
undefined
tokenWithAmount
IProtocolAPI.TokenValue[]
Requested tokens with amount.
tokenWithAmount
IProtocolAPI.TokenValue[]
Requested tokens with amount.
weights
uint256[]
Current weights of tokens.
factory indexed
address
Balancer Managed Pool factory address.
name
string
Name of Pool Token.
symbol
string
Symbol of Pool Token.
tokens
contract IERC20[]
Token addresses.
weights
uint256[]
Token weights.
swapFeePercentage
uint256
Pool swap fee.
guardian indexed
address
Vault guardian address.
validator indexed
address
Withdrawal validator contract address.
noticePeriod
uint256
Notice period (in seconds).
managementFee
uint256
Management fee earned proportion per second.
merkleOrchard
address
Merkle Orchard address.
description
string
Vault description.
requestedAmounts
uint256[]
Requested amounts to deposit.
amounts
uint256[]
Deposited amounts.
weights
uint256[]
Token weights following deposit.
guardian indexed
address
Guardian address.
amounts
uint256[]
Withdrawn amounts.
time
uint256
timestamp of updates.
weights
uint256[]
Target weights of tokens.
noticeTimeoutAt
uint256
Timestamp for notice timeout.
caller indexed
address
Address of finalizer.
amounts
uint256[]
Returned token amounts.
previousGuardianindexed
address
Previous guardian address.
guardian indexed
address
New guardian address.
currentOwner indexed
address
Address of current owner.
canceledOwner indexed
address
Address of canceled owner.
currentOwner indexed
address
Address of current owner.
pendingOwner indexed
address
Address of pending owner.
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
swapEnabled
bool
New state of swap.
swapFee
uint256
New swap fee.
startTime
uint256
Start timestamp of updates.
endTime
uint256
End timestamp of updates.
weights
uint256[]
Target weights of tokens.
requestedAmounts
uint256[]
Requested amounts to withdraw.
amounts
uint256[]
Withdrawn amounts.
allowances
uint256[]
Token withdrawal allowances.
weights
uint256[]
Token weights following withdrawal.
token
address
undefined
amount
uint256
undefined
available
uint256
undefined
actual
uint256
undefined
min
uint256
undefined
actual
address
undefined
sortedToken
address
undefined
index
uint256
undefined
actual
uint256
undefined
max
uint256
undefined
newGuardian
address
undefined
caller
address
undefined
actual
uint256
undefined
max
uint256
undefined
noticeTimeoutAt
uint256
undefined
actual
uint256
undefined
max
uint256
undefined
numTokens
uint256
undefined
numAllowances
uint256
undefined
validator
address
undefined
numTokens
uint256
undefined
numValues
uint256
undefined
actual
uint256
undefined
min
uint256
undefined
actual
uint256
undefined
max
uint256
undefined
token
address
undefined
actual
uint256
undefined
max
uint256
undefined
actual
uint256
undefined
max
uint256
undefined
actual
uint256
undefined
max
uint256
undefined
actual
uint256
undefined
min
uint256
undefined