threshold-network / merkle-distribution

Threshold Network rewards generation and distribution
https://threshold.network
1 stars 6 forks source link

Making calculation of periodic rate more precise #54

Closed dimpar closed 1 year ago

dimpar commented 1 year ago

Instead of calculating the general monthly rate of APR/12 we should calculate the periodic rate with better precision just like the rest of the rewards calculations. tBTCv2 should calculate the periodic rate based on the start and end timestamps of the rewards interval.