Unspent allowance
This took longer than expected because I had to track down a bug in the metrics reporting. The commit is pretty self-explanatory.
The only open question here is when to reset the metrics. I believe they should be reset as soon as we renew the first contract in a new allowance period, but how do we know when that is? We may need to keep track of periodStart
, as before.