DullahanPod
MAX_BPS
Max value for BPS - 100%
MIN_MINT_AMOUNT
Minimum allowed amount of GHO to mint
initialized
Is the Pod initialized
manager
Address of the Pod manager
vault
Address of the Vault
registry
Address of the Registry
podOwner
Address of the Pod owner
votingPowerDelegate
Address of the delegate receiving the Pod voting power
proposalPowerDelegate
Address of the delegate receiving the Pod proposal power
collateral
Address of the collateral in the Pod
aToken
Address of the aToken for the collateral
aave
Address of the AAVE token
stkAave
Address of the stkAAVE token
PodInitialized
Event emitted when the Pod is initialized
CollateralDeposited
Event emitted when collateral is deposited
CollateralWithdrawn
Event emitted when collateral is withdrawn
CollateralLiquidated
Event emitted when collateral is liquidated
GhoMinted
Event emitted when GHO is minted
GhoRepayed
Event emitted when GHO is repayed
RentedStkAave
Event emitted when stkAAVE is rented by the Pod
UpdatedDelegate
Event emitted when the Pod delegates are updated
UpdatedRegistry
Event emitted when the Pod registry is updated
onlyPodOwner
Check that the caller is the Pod owner
onlyManager
Check that the caller is the manager
isInitialized
Check that the Pod is initialized
constructor
init
Initialize the Pod with the given parameters
Parameters
podCollateralBalance
Get the Pod's current collateral balance
Return Values
podDebtBalance
Get the Pod's current GHO debt balance
Return Values
podOwedFees
Get the stored amount of fees owed by this Pod
Return Values
depositCollateral
Deposit collateral
Pull collateral in the Pod to deposit it in the Aave Pool
Parameters
withdrawCollateral
Withdraw collateral
Parameters
claimAaveExtraRewards
Claim any existing rewards from the Aave Rewards Controller for this Pod
Parameters
compoundStkAave
Claim Safety Module rewards & stake them in stkAAVE
mintGho
Mint GHO & rent stkAAVE
Rent stkAAVE from the Vault & mint GHO with the best interest rate discount possible
Parameters
Return Values
repayGho
Repay GHO fees and debt
Parameters
Return Values
repayGhoAndWithdrawCollateral
Repay GHO fees and debt & withdraw collateral
Repay GHO fees & debt to be allowed to withdraw collateral
Parameters
Return Values
rentStkAave
Rent stkAAVE from the Vault to get the best interest rate reduction
Return Values
liquidateCollateral
Liquidate Pod collateral to repay owed fees
Liquidate Pod collateral to repay owed fees, in the case the this Pod got liquidated on Aave market, and fees are still owed to Dullahan
Parameters
updateDelegation
Update the Pod's delegate address & delegate the voting power to it
Parameters
updateRegistry
Update the Pod's Registry address
Parameters
_withdrawCollateral
Withdraw collateral from the Aave Pool directly to the given receiver (only if Pod fees are fully repaid)
Parameters
_repayGho
Repay GHO owed fees & debt (fees in priority)
Parameters
Return Values
_getStkAaveRewards
Claim AAVE rewards from the Safety Module & stake them to receive stkAAVE & notify the Manager
Last updated