AuraBalVault - 自动复投器
AuraBalVault 兼容 ERC4626
Last updated
AuraBalVault 兼容 ERC4626
Last updated
将 auraBal 投入 AuraBalVault 中,它将自动复利奖励。Vault 获得三种奖励代币:BAL、bb-a-USD 和 AURA。BAL 和 bb-a-USD 在市场上出售换取 auraBal,然后重新投入。除此之外还可领取 AURA 奖励代币。
由 llama.airforce 分叉
设定是否只有白名单地址可执行收穫
Parameters
Name | Type | Description |
---|---|---|
由收穫者(harvesters)的白名单中新增或移除地址
Parameters
申领奖励并兑换成auraBAL去质押
Parameters
申领奖励并兑换成auraBAL去质押
将已收集的奖励传送至金库。
Parameters
更新退出的罚款
Parameters
设置strategy合约地址
Parameters
额外奖励长度
新增额外奖励合约
Parameters
Return Values
清除额外奖励阵列
Query the amount currently staked
Return Values
Returns the amount of underlying a user can claim
Parameters
Return Values
Deposit user funds in the autocompounder and mints tokens representing user's share of the pool in exchange
Parameters
Return Values
Unstake underlying token in proportion to the amount of shares sent
Parameters
Return Values
Claim rewards and swaps them to auraBAL for restaking
The address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
Total amount of the underlying asset that is “managed” by Vault.
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.
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.
Maximum amount of the underlying asset that can be deposited into the Vault for the receiver, through a deposit call.
Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions.
Maximum amount of shares that can be minted from the Vault for the receiver, through a mint call.
Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions.
Mints exactly shares Vault shares to receiver by depositing assets of underlying tokens.
Maximum amount of the underlying asset that can be withdrawn from the owner balance in the Vault, through a withdraw call.
Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, given current on-chain conditions.
Burns shares from owner and sends exactly assets of underlying tokens to receiver.
Maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, through a redeem call.
Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block, given current on-chain conditions.
Set approvals for the contracts used when swapping & staking
Add a reward token and its handler
Parameters
Update the handler of a reward token
Parameters
returns the number of reward tokens
Return Values
Query the amount currently staked
Return Values
Deposits underlying tokens in the staking contract
Withdraw a certain amount from the staking contract
Parameters
Claim rewards and swaps them to auraBAL for restaking
Parameters
Return Values
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 |
---|---|---|
_status
bool
Whether or not harvests are permissioned
_harvester
address
address of the authorized harvester
_authorized
bool
Whether to add or remove harvester
_minAmountOut
uint256
- min amount of auraBAL to receive for harvest
_dao
address
Address of DAO
_penalty
uint256
- the amount of the new penalty (in BIPS)
_strategy
address
- address of the strategy contract
_reward
address
VirtualBalanceRewardPool address
[0]
bool
bool success
total
uint256
- the total amount of tokens staked
user
address
- address whose claimable amount to query
amount
uint256
- claimable amount
_amount
uint256
- the amount of underlying to deposit
_receiver
address
_shares
uint256
- the amount of shares issued
_shares
uint256
- the number of shares sent
_receiver
address
_owner
address
withdrawn
uint256
- the amount of underlying returned to the user
_token
address
the reward token to add
_handler
address
address of the contract that will sell for BAL or ETH
_token
address
the reward token to add
_handler
address
address of the contract that will sell for BAL or ETH
[0]
uint256
the number of reward tokens
total
uint256
- the total amount of tokens staked
_amount
uint256
- the amount to withdraw
_minAmountOut
uint256
- min amount of LP tokens to receive w/o revert
harvested
uint256
- the amount harvested