module Twitch
  module AdsHelper
    def format_rev_split_percent(split)
      return split.to_s.empty? ? "n/a" : "#{split}%"
    end

    def format_flat_rate_cpm(cpm)
      return cpm.to_s.empty? ? "n/a" : number_to_currency(cpm / 100.0)
    end
  end
end
