Copy score and royalties
A trader is paid on copies only while the people copying them are up over 30 days.
The formula
For each copy of a trader in the last 30 days, the keeper marks the position to the current price: the Chainlink feed for TSLA, NVDA and QQQ, the pool price for coins. The score is the sum, in USDG.
score(trader) = Σ copies c in 30 days: size_c × (P_now / P_c − 1) × side_c
side = +1 for a buy, −1 for a sell; P in USDGHourly posts
Every hour the keeper posts the changed scores to ScoreBook with the block of the price marks and the Merkle root of the whole table. The inputs are public events, so anyone can recompute every score and check the root. The keeper key is the trust point; changing it takes a 48 hour timelock.
The split
On a 1,000 USDG copy the fee is 1.50 USDG: 1.00 to the trader and 0.50 burns, or 1.50 burns when the trader's score is at or below zero. Royalties are paid in the pool currency of the input, USDG or the stock token.
Claiming
Royalties accrue on the hook and the router in the same transaction as the copy. Claim them from the wallet page with claim(currency).