mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix:removed iscontract check
This commit is contained in:
parent
76a141cd36
commit
f908c98e7a
|
@ -112,7 +112,6 @@ library Errors {
|
||||||
string public constant RL_ATOKEN_SUPPLY_NOT_ZERO = '88';
|
string public constant RL_ATOKEN_SUPPLY_NOT_ZERO = '88';
|
||||||
string public constant RL_STABLE_DEBT_NOT_ZERO = '89';
|
string public constant RL_STABLE_DEBT_NOT_ZERO = '89';
|
||||||
string public constant RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90';
|
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 RC_INVALID_EXPOSURE_CAP = '92';
|
||||||
string public constant VL_COLLATERAL_EXPOSURE_CAP_EXCEEDED = '93';
|
string public constant VL_COLLATERAL_EXPOSURE_CAP_EXCEEDED = '93';
|
||||||
string public constant VL_SAME_BLOCK_BORROW_REPAY = '94';
|
string public constant VL_SAME_BLOCK_BORROW_REPAY = '94';
|
||||||
|
|
|
@ -355,9 +355,6 @@ library ValidationLogic {
|
||||||
IERC20 variableDebtToken,
|
IERC20 variableDebtToken,
|
||||||
address aTokenAddress
|
address aTokenAddress
|
||||||
) external view {
|
) 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();
|
(bool isActive, , , , bool isPaused) = reserveCache.reserveConfiguration.getFlagsMemory();
|
||||||
|
|
||||||
require(isActive, Errors.VL_NO_ACTIVE_RESERVE);
|
require(isActive, Errors.VL_NO_ACTIVE_RESERVE);
|
||||||
|
|
|
@ -187,7 +187,6 @@ export enum ProtocolErrors {
|
||||||
RL_ATOKEN_SUPPLY_NOT_ZERO = '88',
|
RL_ATOKEN_SUPPLY_NOT_ZERO = '88',
|
||||||
RL_STABLE_DEBT_NOT_ZERO = '89',
|
RL_STABLE_DEBT_NOT_ZERO = '89',
|
||||||
RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90',
|
RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90',
|
||||||
LP_CALLER_NOT_EOA = '91',
|
|
||||||
RC_INVALID_EXPOSURE_CAP = '92',
|
RC_INVALID_EXPOSURE_CAP = '92',
|
||||||
VL_COLLATERAL_EXPOSURE_CAP_EXCEEDED = '93',
|
VL_COLLATERAL_EXPOSURE_CAP_EXCEEDED = '93',
|
||||||
VL_SAME_BLOCK_BORROW_REPAY = '94',
|
VL_SAME_BLOCK_BORROW_REPAY = '94',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user