DullahanVault
MAX_BPS
Max value for BPS - 100%
MAX_UINT256
Max value possible for an uint256
STK_AAVE
Address of the stkAAVE token
AAVE
Address of the AAVE token
PodsManager
initialized
Is the Vault initialized
admin
Address of the Vault admin
pendingAdmin
Address of the Vault pending admin
totalRentedAmount
Total amount of stkAAVE rented to Pod Managers
podManagers
Pod Manager states
votingPowerManager
Address receiving the delegated voting power from the Vault
proposalPowerManager
Address receiving the delegated proposal power from the Vault
bufferRatio
Percentage of funds to stay in the contract for withdraws
reserveAmount
Amount accrued as Reserve
reserveRatio
Ratio of claimed rewards to be set as Reserve
reserveManager
Address of the Reserve Manager
Initialized
Event emitted when the Vault is initialized
RentToPod
Event emitted when stkAAVE is rented to a Pod
NotifyRentedAmount
Event emitted when stkAAVE claim is notified by a Pod
PullFromPod
Event emitted when stkAAVE is pulled back from a Pod
AdminTransferred
Event emitted when the adminship is transfered
NewPendingAdmin
Event emitted when a new pending admin is set
NewPodManager
Event emitted when a new Pod Manager is added
BlockedPodManager
Event emitted when a Pod Manager is blocked
ReserveDeposit
Event emitted when depositing in the Reserve
ReserveWithdraw
Event emitted when withdrawing from the Reserve
UpdatedVotingPowerManager
Event emitted when the Voting maanger is updated
UpdatedProposalPowerManager
Event emitted when the Proposal maanger is updated
UpdatedReserveManager
Event emitted when the Reserve manager is updated
UpdatedBufferRatio
Event emitted when the Buffer ratio is updated
UpdatedReserveRatio
Event emitted when the Reserve ratio is updated
TokenRecovered
Event emitted when an ERC20 token is recovered
onlyAdmin
Check that the caller is the admin
onlyAllowed
Check that the caller is the admin or the Reserve maanger
isInitialized
Check that the contract is initialized
constructor
init
Initialize the Vault
Initialize the Vault by performing a seed deposit & delegating voting power
Parameters
asset
Get the vault's asset
Return Values
totalAssets
Get the total amount of assets in the Vault
Return Values
totalSupply
Get the total supply of shares
Return Values
totalAvailable
Get the current total amount of asset available in the Vault
Return Values
convertToShares
Convert a given amount of assets to shares
Parameters
Return Values
convertToAssets
Convert a given amount of shares to assets
Parameters
Return Values
previewDeposit
Return the amount of shares expected for depositing the given assets
Parameters
Return Values
previewMint
Return the amount of assets expected for minting the given shares
Parameters
Return Values
previewWithdraw
Return the amount of shares expected for withdrawing the given assets
Parameters
Return Values
previewRedeem
Return the amount of assets expected for burning the given shares
Parameters
Return Values
maxDeposit
Get the maximum amount that can be deposited by the user
Parameters
Return Values
maxMint
Get the maximum amount that can be minted by the user
Parameters
Return Values
maxWithdraw
Get the maximum amount that can be withdrawn by the user
Parameters
Return Values
maxRedeem
Get the maximum amount that can be burned by the user
Parameters
Return Values
getCurrentIndex
Get the current index to convert between balance and scaled balances
Return Values
getDelegates
Get the current delegates for the Vault voting power & proposal power
deposit
Deposit assets in the Vault & mint shares
Parameters
Return Values
mint
Mint vault shares by depositing assets
Parameters
Return Values
withdraw
Withdraw from the Vault & burn shares
Parameters
Return Values
redeem
Burn shares to withdraw from the Vault
Parameters
Return Values
updateStkAaveRewards
Claim Safety Module rewards & stake them in stkAAVE
rentStkAave
Rent stkAAVE for a Pod
Rent stkAAVE to a Pod, sending the amount & tracking the manager that requested
Parameters
notifyRentedAmount
Notify a claim on rented stkAAVE
Notify the newly claimed rewards from rented stkAAVE to a Pod & add it as rented to the Pod
Parameters
pullRentedStkAave
Pull rented stkAAVE from a Pod
Pull stkAAVE from a Pod & update the tracked rented amount
Parameters
_getCurrentIndex
Get the current index to convert between balance and scaled balances
Return Values
_deposit
Pull assets to deposit in the Vault & mint shares
Parameters
Return Values
_withdraw
Withdraw assets from the Vault & send to the receiver & burn shares
Parameters
Return Values
beforeWithdraw
Hook exectued before withdrawing
Parameters
afterDeposit
Hook exectued after depositing
Parameters
_beforeTokenTransfer
Hook executed before each transfer
Parameters
_afterTokenTransfer
Hook executed after each transfer
Parameters
_getStkAaveRewards
Claim AAVE rewards from the Safety Module & stake them to receive stkAAVE
pause
Pause the contract
unpause
Unpause the contract
transferAdmin
Set a given address as the new pending admin
Parameters
acceptAdmin
Accpet adminship of the contract (must be the pending admin)
addPodManager
Add a new Pod Manager
Parameters
blockPodManager
Block a Pod Manager
Parameters
updateVotingPowerManager
Update the Vault's voting power manager & delegate the voting power to it
Parameters
updateProposalPowerManager
Update the Vault's proposal power manager & delegate the proposal power to it
Parameters
updateReserveManager
Update the Vault's Reserve manager
Parameters
updateReserveRatio
Uodate the reserve ratio parameter
Parameters
updateBufferRatio
Uodate the buffer ratio parameter
Parameters
depositToReserve
Deposit token in the reserve
Parameters
withdrawFromReserve
Withdraw tokens from the reserve to send to the given receiver
Parameters
recoverERC20
Recover ERC2O tokens sent by mistake to the contract
Recover ERC2O tokens sent by mistake to the contract
Parameters
Return Values
safe248
Last updated