anchor.diff:  			throw(price_not_found)
   	end;
   rate2(Protocol, Service, Buckets, Timestamp, _Address, _Direction,
  -		#offer{price = Prices}, Flag, DebitAmounts, ReserveAmounts, State) ->
  +		#offer{price = Prices} = Offer, Flag, DebitAmounts, ReserveAmounts, State) ->
   	F = fun(#price{type = tariff, units = octets}) ->
   				true;
   			(#price{type = usage}) ->
  
positive.code: 				{_, _, _Description, TabPrefix} ->
  						Table2 = list_to_existing_atom(TabPrefix ++ "-" ++ TariffTable),
  						case catch ocs_gtt:lookup_last(Table2, Address) of
  				{Description, Amount, _} when is_integer(Amount) ->
  							{Description1, Amount, _} ->
  								case Amount of
  									N when N >= 0 ->
  										rate5(Protocol, Service, Buckets,
  
negative.code: 			throw(price_not_found)
  	end;
  rate2(Protocol, Service, Buckets, Timestamp, Address,
  		Direction, #offer{specification = ProdSpec, price = Prices} = Offer,
  		Flag, DebitAmounts, ReserveAmounts, State)
  		when ProdSpec == "5"; ProdSpec == "9" ->
  	F = fun(#price{type = tariff, units = seconds}) ->
  