leo/examples/interest
2022-08-04 10:32:04 -07:00
..
inputs Dedup interest examples; update docs 2022-08-04 10:32:04 -07:00
src Dedup interest examples; update docs 2022-08-04 10:32:04 -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.