diff --git a/contracts/adapters/BaseParaSwapAdapter.sol b/contracts/adapters/BaseParaSwapAdapter.sol index 2ef5314a..849e1f1e 100644 --- a/contracts/adapters/BaseParaSwapAdapter.sol +++ b/contracts/adapters/BaseParaSwapAdapter.sol @@ -102,7 +102,10 @@ abstract contract BaseParaSwapAdapter is FlashLoanReceiverBase, Ownable { IERC20(reserveAToken).safeTransferFrom(user, address(this), amount); // withdraw reserve - LENDING_POOL.withdraw(reserve, amount, address(this)); + require( + LENDING_POOL.withdraw(reserve, amount, address(this)) == amount, + 'UNEXPECTED_AMOUNT_WITHDRAWN' + ); } /**