Skip to content

Commit

Permalink
fix: order
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Mar 28, 2024
1 parent 8850b3d commit 2c5efd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swappers/TradeFactorySwapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ abstract contract TradeFactorySwapper {
* sold through the Trade Factory any more.
*/
function _removeToken(address _tokenFrom, address _tokenTo) internal {
address[] memory _rewardTokensLocal = rewardTokens();
address _tf = tradeFactory();
address[] memory _rewardTokensLocal = rewardTokens();
for (uint256 i; i < _rewardTokensLocal.length; ++i) {
if (_rewardTokensLocal[i] == _tokenFrom) {
if (i != _rewardTokensLocal.length - 1) {
Expand Down Expand Up @@ -135,8 +135,8 @@ abstract contract TradeFactorySwapper {
* @dev Remove any active approvals and set the trade factory to address(0).
*/
function _removeTradeFactoryPermissions() internal {
address[] memory rewardTokensLocal = rewardTokens();
address _tf = tradeFactory();
address[] memory rewardTokensLocal = rewardTokens();
for (uint256 i; i < rewardTokensLocal.length; ++i) {
ERC20(rewardTokensLocal[i]).safeApprove(_tf, 0);
}
Expand Down

0 comments on commit 2c5efd6

Please sign in to comment.