helper to create yield, rate object from cursor