From b652a71deae9b5730dd93546807174065d20ced1 Mon Sep 17 00:00:00 2001 From: Hunter King Date: Mon, 8 Jul 2024 23:26:59 -0600 Subject: [PATCH] add notes --- src/leverage/ParaswapSellAdapter.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/leverage/ParaswapSellAdapter.sol b/src/leverage/ParaswapSellAdapter.sol index 107641d..4eed1e5 100644 --- a/src/leverage/ParaswapSellAdapter.sol +++ b/src/leverage/ParaswapSellAdapter.sol @@ -22,6 +22,8 @@ import {ExitActions} from 'src/leverage/ExitActions.sol'; * - add modifiable contract for var updates * - add withdraw function * - enforce max slippage rate + * - simplify the constructor with a struct + * - remove Test inheritance */ contract ParaswapSellAdapter is FlashLoanSimpleReceiverBase, IParaswapSellAdapter, Test { // using PercentageMath for uint256; @@ -161,10 +163,10 @@ contract ParaswapSellAdapter is FlashLoanSimpleReceiverBase, IParaswapSellAdapte uint256 _payBack = amount + premium; IERC20Metadata(asset).approve(address(POOL), _payBack); - return true; } + /// @dev execute payload with delegate call via proxy for address(this) function _executeFromProxy(bytes memory _payload) internal { PS_ADAPTER_ODPROXY.execute(address(exitActions), _payload); }