mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Merge pull request #184 from aave/feat/remove-iscontract-check
fix:removed iscontract check
This commit is contained in:
commit
325f559ba1
|
@ -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 VL_LTV_VALIDATION_FAILED = '93';
|
||||
string public constant VL_SAME_BLOCK_BORROW_REPAY = '94';
|
||||
string public constant LPC_FLASHLOAN_PREMIUMS_MISMATCH = '95';
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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',
|
||||
VL_LTV_VALIDATION_FAILED = '93',
|
||||
VL_SAME_BLOCK_BORROW_REPAY = '94',
|
||||
LPC_FLASHLOAN_PREMIUMS_MISMATCH = '95',
|
||||
|
|
Loading…
Reference in New Issue
Block a user