diff --git a/contracts/protocol/libraries/logic/ValidationLogic.sol b/contracts/protocol/libraries/logic/ValidationLogic.sol index 2f713b12..bb697fe6 100644 --- a/contracts/protocol/libraries/logic/ValidationLogic.sol +++ b/contracts/protocol/libraries/logic/ValidationLogic.sol @@ -166,6 +166,7 @@ library ValidationLogic { vars.totalSupplyStableDebt .add(vars.totalSupplyVariableDebt) .add(amount) + .div(10 ** reserve.configuration.getDecimals()) < reserve.configuration.getBorrowCap(), Errors.VL_BORROW_CAP_EXCEEDED);