diff --git a/contracts/protocol/libraries/helpers/Errors.sol b/contracts/protocol/libraries/helpers/Errors.sol index 53e966c3..6adf34f3 100644 --- a/contracts/protocol/libraries/helpers/Errors.sol +++ b/contracts/protocol/libraries/helpers/Errors.sol @@ -112,7 +112,6 @@ library Errors { string public constant RL_ATOKEN_SUPPLY_NOT_ZERO = '88'; string public constant RL_STABLE_DEBT_NOT_ZERO = '89'; string public constant RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90'; - string public constant LP_CALLER_NOT_EOA = '91'; string public constant RC_INVALID_EXPOSURE_CAP = '92'; string public constant VL_COLLATERAL_EXPOSURE_CAP_EXCEEDED = '93'; string public constant VL_SAME_BLOCK_BORROW_REPAY = '94'; diff --git a/contracts/protocol/libraries/logic/ValidationLogic.sol b/contracts/protocol/libraries/logic/ValidationLogic.sol index 10b7a4f5..e7029447 100644 --- a/contracts/protocol/libraries/logic/ValidationLogic.sol +++ b/contracts/protocol/libraries/logic/ValidationLogic.sol @@ -355,9 +355,6 @@ library ValidationLogic { IERC20 variableDebtToken, address aTokenAddress ) external view { - // to avoid potential abuses using flashloans, the rebalance stable rate must happen through an EOA - require(!address(msg.sender).isContract(), Errors.LP_CALLER_NOT_EOA); - (bool isActive, , , , bool isPaused) = reserveCache.reserveConfiguration.getFlagsMemory(); require(isActive, Errors.VL_NO_ACTIVE_RESERVE); diff --git a/helpers/types.ts b/helpers/types.ts index cff3f951..d5b4f078 100644 --- a/helpers/types.ts +++ b/helpers/types.ts @@ -187,7 +187,6 @@ export enum ProtocolErrors { RL_ATOKEN_SUPPLY_NOT_ZERO = '88', RL_STABLE_DEBT_NOT_ZERO = '89', RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90', - LP_CALLER_NOT_EOA = '91', RC_INVALID_EXPOSURE_CAP = '92', VL_COLLATERAL_EXPOSURE_CAP_EXCEEDED = '93', VL_SAME_BLOCK_BORROW_REPAY = '94',