Skip to content

Commit

Permalink
Merge pull request #38 from BalancerMaxis/issue/29/remove_gas_token_h…
Browse files Browse the repository at this point in the history
…andling

Remove gas token sweeps
  • Loading branch information
gosuto-inzasheru authored Sep 26, 2024
2 parents 635b094 + 447b53a commit 5213313
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions contracts/ChildChainGaugeInjectorV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -305,18 +304,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
Expand Down

0 comments on commit 5213313

Please sign in to comment.