Move ValidatorsFeeManager constants

This commit is contained in:
Gerardo Nardelli 2019-04-16 17:28:26 -03:00
parent 95f236205b
commit 63fbd12a65
2 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,6 @@ import "./FeeTypes.sol";
contract BaseFeeManager is EternalStorage, FeeTypes {
using SafeMath for uint256;
bytes32 public constant REWARD_FOR_TRANSFERRING_FROM_HOME = keccak256(abi.encodePacked("reward-transferring-from-home"));
bytes32 public constant REWARD_FOR_TRANSFERRING_FROM_FOREIGN = keccak256(abi.encodePacked("reward-transferring-from-foreign"));
event HomeFeeUpdated(uint256 fee);
event ForeignFeeUpdated(uint256 fee);

View File

@ -5,6 +5,10 @@ import "../IRewardableValidators.sol";
contract ValidatorsFeeManager is BaseFeeManager {
bytes32 public constant REWARD_FOR_TRANSFERRING_FROM_HOME = keccak256(abi.encodePacked("reward-transferring-from-home"));
bytes32 public constant REWARD_FOR_TRANSFERRING_FROM_FOREIGN = keccak256(abi.encodePacked("reward-transferring-from-foreign"));
function distributeFeeFromAffirmation(uint256 _fee) external {
distributeFeeProportionally(_fee, REWARD_FOR_TRANSFERRING_FROM_FOREIGN);
}