Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
LendingPoolCollateralManager
copy icon
Aave
• version 1.0.0
ERC20
Token
Lending

LendingPoolCollateralManager

LendingPoolCollateralManager contract implements the actions involving management of collateral in the protocol, the main one being the liquidations. It is used to liquidate a position if its Health Factor drops below 1. The caller (liquidator) covers a debtToCover amount of debt of the user getting liquidated, and receives a proportionally amount of the collateralAsset plus a bonus to cover market risk. (autogenerated description)

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Aave

Last Publish

3/3/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
getRevision() :
This function returns the revision number of the contract and always returns 0. (autogenerated documentation)
liquidationCall(address,address,address,uint256,bool) :
This function performs a liquidation call, allowing a user's debt to be covered by their collateral assets. It calculates the maximum amount of debt that can be liquidated, the maximum amount of collateral that can be used, and updates the user's debt and collateral balances accordingly. If the user's debt is fully covered, their collateral may be disabled as collateral. (autogenerated documentation)
_calculateAvailableCollateralToLiquidate(address,address,uint256,uint256) :
This function calculates the available collateral to liquidate a debt position, based on asset prices and user balances. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i LendingPoolCollateralManager
copy icon

Bytecode

Download

Last Publish

3/3/2023

Version

1.0.0

Creator

Aave

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.