You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: enterprise_fee_calculator.rb
    path of file: ./repos/openfoodnetwork/lib/open_food_network
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

req
    
    def indexed_fees_for(variant)
      load_enterprise_fees unless @indexed_enterprise_fees

      indexed_enterprise_fees_for(variant).sum do |enterprise_fee|
        calculate_fee_for variant, enterprise_fee
      end
    end