Tuesday, September 6, 2022

Rust pop-quiz 4: yieldly

Rust pop-quiz ... 4?

Modify real_apy so that it also reports:

  1. How much principal you need to make $x in yield per day
  2. How much leverage you need to make that yield
  3. Given a current portfolio value (already entered, eh?), how much bigger does it need to be to reach goal?

The sources for real_apy (your starting point) is here.

The output can be like the text of the thread starting here.

No comments:

Post a Comment