class DiscountingOvernightFutureProductPricer {

  public double price(ResolvedOvernightFuture future, RatesProvider ratesProvider) {
    double forwardRate = rateComputationFn.rate(
        future.getOvernightRate(),
        future.getOvernightRate().getStartDate(),
        future.getOvernightRate().getEndDate(),
        ratesProvider);
    return 1d - forwardRate;
  }

  public  DiscountingOvernightFutureProductPricer(RateComputationFn<RateComputation> rateComputationFn);

}