mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
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:
commit
1ea047a939
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user