simple recycle manager

This commit is contained in:
Ricardo Guilherme Schmidt 2018-03-11 19:56:47 +07:00
parent 4a8f336c7c
commit 47e5997e95
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
pragma solidity ^0.4.17;
import "../common/Controlled.sol";
import "./BurnedFeeLocker.sol";
contract RecyclerManager is Controlled {
address burnContract;
mapping (address => bool) bounties;
function RecyclerManager(address _burnContract) public {
burnContract = _burnContract;
}
function recycleFeeIntoSOB(address bounty, uint256 amount) external {
require(bounties[bounty]);
BurnedFeeLocker(burnContract).recycleFee(msg.sender, bounty, amount);
}
function setBounty(address bounty, bool enabled) external onlyController {
bounties[bounty] = enabled;
}
}