Move ValidatorsFeeManager constants
This commit is contained in:
parent
95f236205b
commit
63fbd12a65
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue