-
Notifications
You must be signed in to change notification settings - Fork 566
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/116-sequencer-health' of https://github.com/aave/a…
…ave-v3-core into feat/116-sequencer-health
- Loading branch information
Showing
7 changed files
with
78 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
// SPDX-License-Identifier: agpl-3.0 | ||
pragma solidity 0.8.7; | ||
|
||
/** | ||
* @title IOperationalValidator | ||
* @author Aave | ||
* @notice Defines the basic interface for the OperationValidator | ||
*/ | ||
interface IOperationalValidator { | ||
/** | ||
* @notice Returns true if the `borrow` operation is allowed. | ||
* @dev Operation not allowed when sequencer is down or grace period not passed. | ||
* @return True if the `borrow` operation is allowed, false otherwise. | ||
*/ | ||
function isBorrowAllowed() external view returns (bool); | ||
|
||
/** | ||
* @notice Returns true if the `liquidation` operation is allowed. | ||
* @dev Operation not allowed when sequencer is down or grace period not passed. | ||
* @dev If the healthfactor is below a minimum threshold, the liquidation is allowed. | ||
* @param healthFactor The health factor of the position to liquidate | ||
* @return True if the `liquidation` operation is allowed, false otherwise. | ||
*/ | ||
function isLiquidationAllowed(uint256 healthFactor) external view returns (bool); | ||
} |
File renamed without changes.
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
Oops, something went wrong.