Skip to content

Commit

Permalink
feat: sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Nov 14, 2024
1 parent 152e534 commit f507720
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions contracts/splitter/Dumper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ contract Dumper is TradeFactorySwapper, Governance {
);
}

function _claimRewards() internal override {
address[] memory localRewardTokens = rewardTokens();
for (uint256 i; i < localRewardTokens.length; ++i) {
accountant.distribute(localRewardTokens[i]);
}
}
function _claimRewards() internal override {}

// Claim the fees from the accountant
function claim(address _token) external onlyGovernance {
Expand All @@ -88,4 +83,12 @@ contract Dumper is TradeFactorySwapper, Governance {
function claim(address _token, uint256 _amount) external onlyGovernance {
accountant.distribute(_token, _amount);
}

function sweep(address _token) external onlyGovernance {
address daddy = accountant.feeManager();
ERC20(_token).safeTransfer(
daddy,
ERC20(_token).balanceOf(address(this))
);
}
}

0 comments on commit f507720

Please sign in to comment.