AuraBalVault - Compounder
The AuraBalVault compounder is ERC4626 compatible
Stake auraBal into the AuraBalVault, which will automatically compound the rewards. The Vault earns three reward tokens: BAL, bb-a-USD, and AURA. BAL and bb-a-USD are sold in the market for auraBal, which is then re-stake. AURA added as an additional reward token that can be claimed.
AuraBalVault
Forked from llama.airforce
isHarvestPermissioned
authorizedHarvesters
constructor
setHarvestPermissions
Sets whether only whitelisted addresses can harvest
Parameters
Name | Type | Description |
---|---|---|
_status | bool | Whether or not harvests are permissioned |
updateAuthorizedHarvesters
Adds or remove an address from the harvesters' whitelist
Parameters
Name | Type | Description |
---|---|---|
_harvester | address | address of the authorized harvester |
_authorized | bool | Whether to add or remove harvester |
harvest
Claim rewards and swaps them to auraBAL for restaking
Parameters
Name | Type | Description |
---|---|---|
_minAmountOut | uint256 | - min amount of auraBAL to receive for harvest |
harvest
Claim rewards and swaps them to auraBAL for restaking
FeeForwarder
Forwards collected fees to Vault.
Forwarded
constructor
Parameters
Name | Type | Description |
---|---|---|
_dao | address | Address of DAO |
forward
GenericUnionVault
withdrawalPenalty
MAX_WITHDRAWAL_PENALTY
FEE_DENOMINATOR
underlying
virtualRewardFactory
strategy
extraRewards
isExtraReward
WithdrawalPenaltyUpdated
Harvest
CallerIncentiveUpdated
StrategySet
ExtraRewardAdded
ExtraRewardCleared
constructor
setWithdrawalPenalty
Updates the withdrawal penalty
Parameters
Name | Type | Description |
---|---|---|
_penalty | uint256 | - the amount of the new penalty (in BIPS) |
setStrategy
Set the address of the strategy contract
Parameters
Name | Type | Description |
---|---|---|
_strategy | address | - address of the strategy contract |
extraRewardsLength
Count of extra rewards
addExtraReward
Add extra reward contract
Parameters
Name | Type | Description |
---|---|---|
_reward | address | VirtualBalanceRewardPool address |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | bool success |
clearExtraRewards
Clear extra rewards array
totalUnderlying
Query the amount currently staked
Return Values
Name | Type | Description |
---|---|---|
total | uint256 | - the total amount of tokens staked |
balanceOfUnderlying
Returns the amount of underlying a user can claim
Parameters
Name | Type | Description |
---|---|---|
user | address | - address whose claimable amount to query |
Return Values
Name | Type | Description |
---|---|---|
amount | uint256 | - claimable amount |
deposit
Deposit user funds in the autocompounder and mints tokens representing user's share of the pool in exchange
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | - the amount of underlying to deposit |
_receiver | address |
Return Values
Name | Type | Description |
---|---|---|
_shares | uint256 | - the amount of shares issued |
redeem
Unstake underlying token in proportion to the amount of shares sent
Parameters
Name | Type | Description |
---|---|---|
_shares | uint256 | - the number of shares sent |
_receiver | address | |
_owner | address |
Return Values
Name | Type | Description |
---|---|---|
withdrawn | uint256 | - the amount of underlying returned to the user |
harvest
Claim rewards and swaps them to auraBAL for restaking
asset
The address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
totalAssets
Total amount of the underlying asset that is “managed” by Vault.
convertToShares
The amount of shares that the Vault would exchange for the amount of assets provided, in an ideal scenario where all the conditions are met.
convertToAssets
The amount of assets that the Vault would exchange for the amount of shares provided, in an ideal scenario where all the conditions are met.
maxDeposit
Maximum amount of the underlying asset that can be deposited into the Vault for the receiver, through a deposit call.
previewDeposit
Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions.
maxMint
Maximum amount of shares that can be minted from the Vault for the receiver, through a mint call.
previewMint
Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions.
mint
Mints exactly shares Vault shares to receiver by depositing assets of underlying tokens.
maxWithdraw
Maximum amount of the underlying asset that can be withdrawn from the owner balance in the Vault, through a withdraw call.
previewWithdraw
Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, given current on-chain conditions.
withdraw
Burns shares from owner and sends exactly assets of underlying tokens to receiver.
maxRedeem
Maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, through a redeem call.
previewRedeem
Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block, given current on-chain conditions.
AuraBalStrategy
vault
rewardTokens
rewardHandlers
FEE_DENOMINATOR
constructor
setApprovals
Set approvals for the contracts used when swapping & staking
addRewardToken
Add a reward token and its handler
Parameters
Name | Type | Description |
---|---|---|
_token | address | the reward token to add |
_handler | address | address of the contract that will sell for BAL or ETH |
updateRewardToken
Update the handler of a reward token
Parameters
Name | Type | Description |
---|---|---|
_token | address | the reward token to add |
_handler | address | address of the contract that will sell for BAL or ETH |
totalRewardTokens
returns the number of reward tokens
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | the number of reward tokens |
totalUnderlying
Query the amount currently staked
Return Values
Name | Type | Description |
---|---|---|
total | uint256 | - the total amount of tokens staked |
stake
Deposits underlying tokens in the staking contract
withdraw
Withdraw a certain amount from the staking contract
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | - the amount to withdraw |
harvest
Claim rewards and swaps them to auraBAL for restaking
Parameters
Name | Type | Description |
---|---|---|
_minAmountOut | uint256 | - min amount of LP tokens to receive w/o revert |
Return Values
Name | Type | Description |
---|---|---|
harvested | uint256 | - the amount harvested |
AuraBalStrategyBase
BBUSD_TOKEN
AURA_TOKEN
AURABAL_TOKEN
WETH_TOKEN
BAL_TOKEN
BAL_ETH_POOL_TOKEN
auraBalStaking
balVault
constructor
BalancerSwapsHandler
SwapPath
constructor
getSwapPath
setApprovals
sell
HandlerBase
owner
pendingOwner
token
strategy
WETH_TOKEN
balVault
constructor
setPendingOwner
applyPendingOwner
rescueToken
sell
receive
Last updated