issues
search
Carbonable
/
contracts-watcher
Apache License 2.0
0
stars
0
forks
source link
Display APR curve
#9
Closed
tekkac
closed
1 year ago
tekkac
commented
1 year ago
Compute the APR for specific times from the contract state.
Fetch data:
times from get_cumsale_times
cumulative sales from get_cumsales
project_value
unit_price from Minter
Compute:
APR = num / den
num = (Delta_sale) * YEAR_SECONDS
den = project_value
unit_price
(Delta_time)
Display
use %
Compute the APR for specific times from the contract state.
Fetch data:
Compute:
Display