Mechanically
Pays commission to partners who introduced creators. Uses a temporal-ownership model: commission is computed from links overlapping the queried month, so unlinking stops future earnings without erasing past ones.
Pays commission to partners who introduced creators. Uses a temporal-ownership model: commission is computed from links overlapping the queried month, so unlinking stops future earnings without erasing past ones.
The money-out counterpart to creator invoicing; same settlement spine, opposite direction.
src/pages/Referrals.tsxsrc/pages/ReferralInvoicing.tsxsrc/components/referrals/src/components/referral-invoicing/referrals.tsreferralInvoicing.tsreferralDemo.tsreferralPartnersreferralPaymentsreferralLinksconvex/schema.ts:103,132,153,393,703
convex/referralInvoicing.ts:138
convex/referrals.ts:534 vs :546
TRANSPLANT+FIX — referral commission becomes a payable in the journal, not a float sum; fixes the two-contradictory-paths bug.
Double-entry ledger engine (Node/TS). Port behind PaymentLog; earnings = liability not revenue.
Integer minor units + allocate() — kills the float/rounding bug across all money math.
LIFT = copy the code into the fork · WRAP = run underneath as a service · STUDY = architecture only. Verdicts from the OFM sourcing campaign.
Research priority for this domain is low. Agent findings splice in below this line and survive regeneration.