mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Don't ignore return value of withdraw
Fixes MixBytes Warning 4.
This commit is contained in:
parent
d26b1beb68
commit
5b45be6a44
|
@ -102,7 +102,10 @@ abstract contract BaseParaSwapAdapter is FlashLoanReceiverBase, Ownable {
|
||||||
IERC20(reserveAToken).safeTransferFrom(user, address(this), amount);
|
IERC20(reserveAToken).safeTransferFrom(user, address(this), amount);
|
||||||
|
|
||||||
// withdraw reserve
|
// withdraw reserve
|
||||||
LENDING_POOL.withdraw(reserve, amount, address(this));
|
require(
|
||||||
|
LENDING_POOL.withdraw(reserve, amount, address(this)) == amount,
|
||||||
|
'UNEXPECTED_AMOUNT_WITHDRAWN'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user