mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
- Changed to require on result on liquidationCall()
This commit is contained in:
parent
c01e77b55b
commit
9b04f21ae0
|
@ -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