-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/153-improve-docs' into 'master'
- First iteration of documentation improvement of contracts See merge request aave-tech/protocol-v2!179
- Loading branch information
Showing
22 changed files
with
548 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.6.12; | ||
|
||
/** | ||
* @title ILendingPoolCollateralManager interface | ||
* @author Aave | ||
* @notice Defines the actions involving management of collateral in the protocol. | ||
**/ | ||
interface ILendingPoolCollateralManager { | ||
/** | ||
* @dev emitted when a borrower is liquidated | ||
* @param collateral the address of the collateral being liquidated | ||
* @param principal the address of the reserve | ||
* @param user the address of the user being liquidated | ||
* @param debtToCover the total amount liquidated | ||
* @param liquidatedCollateralAmount the amount of collateral being liquidated | ||
* @param liquidator the address of the liquidator | ||
* @param receiveAToken true if the liquidator wants to receive aTokens, false otherwise | ||
**/ | ||
event LiquidationCall( | ||
address indexed collateral, | ||
address indexed principal, | ||
address indexed user, | ||
uint256 debtToCover, | ||
uint256 liquidatedCollateralAmount, | ||
address liquidator, | ||
bool receiveAToken | ||
); | ||
|
||
/** | ||
* @dev emitted when a user disables a reserve as collateral | ||
* @param reserve the address of the reserve | ||
* @param user the address of the user | ||
**/ | ||
event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user); | ||
|
||
/** | ||
* @dev users can invoke this function to liquidate an undercollateralized position. | ||
* @param collateral the address of the collateral to liquidated | ||
* @param principal the address of the principal reserve | ||
* @param user the address of the borrower | ||
* @param debtToCover the amount of principal that the liquidator wants to repay | ||
* @param receiveAToken true if the liquidators wants to receive the aTokens, false if | ||
* he wants to receive the underlying asset directly | ||
**/ | ||
function liquidationCall( | ||
address collateral, | ||
address principal, | ||
address user, | ||
uint256 debtToCover, | ||
bool receiveAToken | ||
) external virtual returns (uint256, string memory); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity >=0.6.2; | ||
|
||
interface IUniswapV2Router01 { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity >=0.6.2; | ||
|
||
import './IUniswapV2Router01.sol'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.