← Templates

Royalty with Cap

Primary recipient earns up to maxOutflow, then secondary takes the residue. Two edges, one Root.

Secondary share (derived):100.00%

Primary (edge id 0) carries a CapOutflow. Until the cap hits, shares flow proportional to primary vs secondary. After: primary's edge stops firing and secondary keeps pulling its share of the Root holding (residue drains asymptotically — expected v4 behavior).

Fill primary + secondary wallets, share and cap to see the DAG.