AuraBalVault - 自动复投器
AuraBalVault 兼容 ERC4626
将 auraBal 投入 AuraBalVault 中,它将自动复利奖励。Vault 获得三种奖励代币:BAL、bb-a-USD 和 AURA。BAL 和 bb-a-USD 在市场上出售换取 auraBal,然后重新投入。除此之外还可领取 AURA 奖励代币。
AuraBalVault
由 llama.airforce 分叉
isHarvestPermissioned
authorizedHarvesters
constructor
setHarvestPermissions
设定是否只有白名单地址可执行收穫
Parameters
updateAuthorizedHarvesters
由收穫者(harvesters)的白名单中新增或移除地址
Parameters
harvest
申领奖励并兑换成auraBAL去质押
Parameters
harvest
申领奖励并兑换成auraBAL去质押
FeeForwarder
将已收集的奖励传送至金库。
Forwarded
constructor
Parameters
forward
GenericUnionVault
withdrawalPenalty
MAX_WITHDRAWAL_PENALTY
FEE_DENOMINATOR
underlying
virtualRewardFactory
strategy
extraRewards
isExtraReward
WithdrawalPenaltyUpdated
Harvest
CallerIncentiveUpdated
StrategySet
ExtraRewardAdded
ExtraRewardCleared
constructor
setWithdrawalPenalty
更新退出的罚款
Parameters
setStrategy
设置strategy合约地址
Parameters
extraRewardsLength
额外奖励长度
addExtraReward
新增额外奖励合约
Parameters
Return Values
clearExtraRewards
清除额外奖励阵列
totalUnderlying
Query the amount currently staked
Return Values
balanceOfUnderlying
Returns the amount of underlying a user can claim
Parameters
Return Values
deposit
Deposit user funds in the autocompounder and mints tokens representing user's share of the pool in exchange
Parameters
Return Values
redeem
Unstake underlying token in proportion to the amount of shares sent
Parameters
Return Values
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
updateRewardToken
Update the handler of a reward token
Parameters
totalRewardTokens
returns the number of reward tokens
Return Values
totalUnderlying
Query the amount currently staked
Return Values
stake
Deposits underlying tokens in the staking contract
withdraw
Withdraw a certain amount from the staking contract
Parameters
harvest
Claim rewards and swaps them to auraBAL for restaking
Parameters
Return Values
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