Skip to content

Commit

Permalink
Partially emoved buggy safeApprove
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Graczer authored and Daniel Graczer committed Sep 22, 2022
1 parent faf430e commit c762fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
1. refactoring: scripts/helper.ts
1. add comments to unified test scripts
1. improve unified test performance
1. write our own version of safeApprove: https://github.com/OpenZeppelin/openzeppelin-contracts/issues/2219

## Versioning of strategies

Expand Down
2 changes: 1 addition & 1 deletion contracts/common/bases/StrategyBaseUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ abstract contract StrategyBaseUpgradeable is
swapService_.router
);

IERC20Upgradeable(path[0]).safeApprove(
IERC20Upgradeable(path[0]).approve(
address(traderjoeRouter),
amountIn
);
Expand Down

0 comments on commit c762fd2

Please sign in to comment.