interface Fee {
    /// @notice calculates the total amount of the reward that will be directed to the pool owner
    /// @return amount of tokens taken by the pool owner as commission
    function getCommission(uint256 posIndex, uint256 rewardAmount)
        external
        view
        returns (uint256);
}
/// @title Calculator of pool owner commission for each block reward
/// @author Danilo Tuler
/// @notice This provides flexibility for different commission models
function getCommission(uint256 posIndex, uint256 rewardAmount)
    external
    view
    returns (uint256);

/// @notice calculates the total amount of the reward that will be directed to the pool owner
/// @return amount of tokens taken by the pool owner as commission