From eb2f9dfbea5b1ddfe70795db946286574b85f22d Mon Sep 17 00:00:00 2001 From: Tritium-VLK <11885129+Tritium-VLK@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:25:04 +0200 Subject: [PATCH] Update docs of changeDistributor to make it clear that you can now change to any owner. --- contracts/ChildChainGaugeInjectorV2.sol | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/contracts/ChildChainGaugeInjectorV2.sol b/contracts/ChildChainGaugeInjectorV2.sol index f97124c..aa77011 100644 --- a/contracts/ChildChainGaugeInjectorV2.sol +++ b/contracts/ChildChainGaugeInjectorV2.sol @@ -28,7 +28,6 @@ KeeperCompatibleInterface { using EnumerableSet for EnumerableSet.AddressSet; - event GasTokenWithdrawn(uint256 amountWithdrawn, address recipient); event KeeperRegistryAddressUpdated(address[] oldAddresses, address[] newAddresses); event MinWaitPeriodUpdated(uint256 oldMinWaitPeriod, uint256 newMinWaitPeriod); event MaxInjectionAmountUpdated(uint256 oldAmount, uint256 newAmount); @@ -302,18 +301,6 @@ KeeperCompatibleInterface } } } -/** - * @notice Withdraws the contract balance - */ - function withdrawGasToken(address payable dest) external onlyOwner { - address payable recipient = dest; - if (recipient == address(0)) { - revert ZeroAddress(); - } - uint256 amount = address(this).balance; - recipient.transfer(amount); - emit GasTokenWithdrawn(amount, recipient); - } /** * @notice Sweep the full contract's balance for a given ERC-20 token