DullahanPodManager
UNIT
1e18 scale
MAX_BPS
Max value for BPS - 100%
Pod
vault
Address of the Dullahan Vault
rewardsStaking
Address of the Dullahan Staking contract
podImplementation
Address of the Pod implementation
protocolFeeChest
Address of the Chest to receive fees
registry
Address of the Dullahan Registry
allowedCollaterals
Allowed token to be used as collaterals
aTokenForCollateral
Address of aToken from the Aave Market for each collateral
pods
State for Pods
allPods
List of all created Pods
ownerPods
List of Pods created by an user
feeModule
Address of the Fee Module
oracleModule
Address of the Oracle Module
discountCalculator
Address of the Discount Calculator Module
lastUpdatedIndex
Last updated value of the Index
lastIndexUpdate
Last update timestamp for the Index
extraLiquidationRatio
Extra ratio applied during liquidations
mintFeeRatio
Ratio of minted amount taken as minting fees
protocolFeeRatio
Ratio of renting fees taken as protocol fees
reserveAmount
Total amount set as reserve (holding Vault renting fees)
processThreshold
Min amount in the reserve to be processed
PodCreation
Event emitted when a new Pod is created
FreedStkAave
Event emitted when stkAAVE is clawed back from a Pod
RentedStkAave
Event emitted when stkAAVE is rented to a Pod
LiquidatedPod
Event emitted when a Pod is liquidated
PaidFees
Event emitted when renting fees are paid
MintingFees
Event emitted when minting fees are paid
ReserveProcessed
Event emitted when the Reserve is processed
NewCollateral
Event emitted when a new collateral is added
CollateralUpdated
Event emitted when a colalteral is updated
RegistryUpdated
Event emitted when the Registry is updated
FeeModuleUpdated
Event emitted when the Fee Module is updated
OracleModuleUpdated
Event emitted when the Oracle Module is updated
DiscountCalculatorUpdated
Event emitted when the Discount Calculator Module is updated
FeeChestUpdated
Event emitted when the Fee Chest is updated
MintFeeRatioUpdated
Event emitted when the Mint Fee Ratio is updated
ProtocolFeeRatioUpdated
Event emitted when the Protocol Fee Ratio is updated
ExtraLiquidationRatioUpdated
Event emitted when the Extra Liquidation Ratio is updated
ProcessThresholdUpdated
Event emitted when the Mint Fee Ratio is updated
isValidPod
Check that the caller is a valid Pod
constructor
getCurrentIndex
Get the current fee index
Return Values
podCurrentOwedFees
Get the current amount of fees owed by a Pod
Parameters
Return Values
podOwedFees
Get the stored amount of fees owed by a Pod
Parameters
Return Values
getAllPods
Get all Pods created by this contract
Return Values
getAllOwnerPods
Get the list of Pods owned by a given account
Parameters
Return Values
isPodLiquidable
Check if the given Pod is liquidable
Parameters
Return Values
estimatePodLiquidationexternal
Estimate the amount of fees to repay to liquidate a Pod & the amount of collaterla to receive after liquidation
Parameters
Return Values
createPod
Create a new Pod
Clone the Pod implementation, initialize it & store the paremeters
Parameters
Return Values
updateGlobalState
Update the global state
Return Values
updatePodState
Update a Pod state
Parameters
Return Values
freeStkAave
Free all stkAAVE not currently needed by a Pod
Calculate the needed amount of stkAAVE for a Pod & free any extra stkAAVE held by the Pod
Parameters
Return Values
liquidatePod
Liquidate a Pod that owes fees & has no GHO debt
Repay the fees owed by the Pod & receive some of the Pod colleteral (with an extra ratio)
Parameters
Return Values
updatePodDelegation
Update the delegator of a Pod
Parameters
updateMultiplePodsDelegation
Update the delegator for a list of Pods
Parameters
processReserve
Process the Reserve
Send the Reserve to the staking contract to be queued for distribution & take a part as protocol fees
Return Values
getStkAave
Get the needed amount of stkAAVE for a Pod based on the GHO amount minted
Calculate the amount of stkAAVE a Pod need based on its GHO debt & amount ot be minted & request the needed amount to the Vault for renting
Parameters
Return Values
notifyStkAaveClaim
Notify the Vault for claimed rewards from the Safety Module for a Pod
Parameters
notifyPayFee
Notify fees paid by a Pod
Parameters
notifyMintingFee
Notify minting fees paid by a Pod
Parameters
_calculatedNeededStkAave
Calculates the amount of stkAAVE needed by a Pod based on its GHO debt & the amount of GHO to be minted
Parameters
Return Values
_accruedIndex
Calculate the index accrual based on the current fee per second
Return Values
_updateGlobalState
Update the global state by updating the fee index
Return Values
_updatePodState
Update a Pod's state & accrued owed fees based on the last updated index
Parameters
Return Values
_processReserve
Send the Reserve to the staking contract to be queued for distribution & take a part as protocol fees
Return Values
updatePodRegistry
Update the Registry for a given Pod
Parameters
updateMultiplePodsRegistry
Update the Registry for a given list of Pods
Parameters
updateAllPodsRegistry
Update the Registry for all Pods
pause
Pause the contract
unpause
Unpause the contract
addCollateral
Add a new collateral for Pod creation
Parameters
updateCollateral
Update a collateral for Pod creation
Parameters
updateFeeChest
Uodate the FeeChest
Parameters
updateRegistry
Uodate the Registry
Parameters
updateFeeModule
Uodate the Fee Module
Parameters
updateOracleModule
Uodate the Oracle Module
Parameters
updateDiscountCalculator
Uodate the Discount Calculator Module
Parameters
updateMintFeeRatio
Uodate the mint fee ratio parameter
Parameters
updateProtocolFeeRatio
Uodate the protocol fee ratio parameter
Parameters
updateExtraLiquidationRatio
Uodate the extra liquidation ratio parameter
Parameters
updateProcessThreshold
Uodate the process threshold parameter
Parameters
safe96
Last updated