From 9bee45aaa1687c925ad06715f00ab67bb22e6f22 Mon Sep 17 00:00:00 2001 From: Michael Fletcher Date: Mon, 19 Aug 2024 18:06:53 +0100 Subject: [PATCH] Small fixes --- .../src/v0.8/llo-feeds/v0.4.0/DestinationFeeManager.sol | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contracts/src/v0.8/llo-feeds/v0.4.0/DestinationFeeManager.sol b/contracts/src/v0.8/llo-feeds/v0.4.0/DestinationFeeManager.sol index 6b220a51740..c8e0002ac94 100644 --- a/contracts/src/v0.8/llo-feeds/v0.4.0/DestinationFeeManager.sol +++ b/contracts/src/v0.8/llo-feeds/v0.4.0/DestinationFeeManager.sol @@ -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); } }