Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
daopunk committed Jul 9, 2024
1 parent bfa4ed4 commit b652a71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/leverage/ParaswapSellAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b652a71

Please sign in to comment.