Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fletch153 committed Aug 19, 2024
1 parent 2cf1664 commit 9bee45a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contracts/src/v0.8/llo-feeds/v0.4.0/DestinationFeeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,8 @@ contract DestinationFeeManager is IDestinationFeeManager, IDestinationVerifierFe
revert InvalidAddress();
}

address linkAddress = i_linkAddress;

IERC20(linkAddress).approve(address(i_rewardManager), 0);
IERC20(i_linkAddress).approve(address(i_rewardManager), 0);
i_rewardManager = IDestinationRewardManager(rewardManagerAddress);
IERC20(linkAddress).approve(address(rewardManagerAddress), type(uint256).max);
IERC20(i_linkAddress).approve(address(rewardManagerAddress), type(uint256).max);
}
}

0 comments on commit 9bee45a

Please sign in to comment.