Don't ignore return value of withdraw

Fixes MixBytes Warning 4.
This commit is contained in:
Jason Raymond Bell 2021-05-20 14:38:24 +01:00
parent d26b1beb68
commit 5b45be6a44

View File

@ -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'
);
} }
/** /**