Description
rep_updated in contracts/split/src/events.rs emits the full RepScore struct, but there is no computed score integer field — the struct contains raw counts (paid_on_time, late_pays, etc.). Adding a derived score: u32 to the event data would save indexers from re-computing the score formula off-chain.
Acceptance Criteria
Context
- Target file:
contracts/split/src/events.rs
- The computed score formula should be documented inline
Description
rep_updatedincontracts/split/src/events.rsemits the fullRepScorestruct, but there is no computedscoreinteger field — the struct contains raw counts (paid_on_time,late_pays, etc.). Adding a derivedscore: u32to the event data would save indexers from re-computing the score formula off-chain.Acceptance Criteria
score: u32parameter torep_updatedincontracts/split/src/events.rs(score_struct, computed_score)lib.rsrep_updatedcargo testpassesContext
contracts/split/src/events.rs