Merge branch 'fix/142-liquidationCall-require' into 'master'

- Changed to require on result on liquidationCall()

Closes #142

See merge request aave-tech/protocol-v2!162
This commit is contained in:
The-3D 2020-11-11 14:58:03 +00:00
commit 1ea047a939

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 {