mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Validated the user balance before isActive
This commit is contained in:
parent
31cbe9127e
commit
57ed9efd58
|
@ -67,12 +67,12 @@ library ValidationLogic {
|
|||
address oracle
|
||||
) external view {
|
||||
|
||||
(bool isActive,, , ) = reservesData[reserveAddress].configuration.getFlags();
|
||||
require(isActive, Errors.VL_NO_ACTIVE_RESERVE);
|
||||
|
||||
require(amount != 0, Errors.VL_INVALID_AMOUNT);
|
||||
require(amount <= userBalance, Errors.VL_NOT_ENOUGH_AVAILABLE_USER_BALANCE);
|
||||
|
||||
(bool isActive,, , ) = reservesData[reserveAddress].configuration.getFlags();
|
||||
require(isActive, Errors.VL_NO_ACTIVE_RESERVE);
|
||||
|
||||
require(
|
||||
GenericLogic.balanceDecreaseAllowed(
|
||||
reserveAddress,
|
||||
|
|
Loading…
Reference in New Issue
Block a user