- Changed to require on result on liquidationCall()

This commit is contained in:
eboado 2020-11-11 15:52:42 +01:00
parent c01e77b55b
commit 9b04f21ae0

View File

@ -429,10 +429,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
(uint256 returnCode, string memory returnMessage) = abi.decode(result, (uint256, string));
if (returnCode != 0) {
//error found
revert(string(abi.encodePacked(returnMessage)));
}
require(returnCode == 0, string(abi.encodePacked(returnMessage)));
}
struct FlashLoanLocalVars {