leo/examples/interest
2022-08-05 21:59:22 -07:00
..
inputs Fixed inputs; examples working 2022-08-04 11:29:36 -07:00
src [examples] Add @program annotations. 2022-08-05 21:59:22 -07:00
.gitignore [example] Simple interest calculation. 2022-08-04 10:32:04 -07:00
program.json [example] Simple interest calculation. 2022-08-04 10:32:04 -07:00
README.md Dedup interest examples; update docs 2022-08-04 10:32:04 -07:00

Calculating Interest

This program provides utilities for calculating interest over a fixed or bounded number of periods.

Building the Program

To compile this program, run:

leo build

Running the Program

To run this program, run:

leo run <function_name>

where <function_name> is one of the following:

  • fixed_period_interest
  • bounded_period_interest

Be sure to update inputs/interest.in with the desired inputs.