Financial Flows

Affiliate Commission & …

1. Problem Context

Affiliate systems are easy to describe at the UI level.

Partners get a referral code, see referred users, and eventually request a payout.

That is not the hard part.

The harder problem is financial correctness:

  • When does a referral become a real earning?
  • When does that earning …