Skip to main content

collect

Function collect 

Source
pub fn collect(rows: Vec<LegRecord>) -> (Vec<LegRecord>, LoadStats)
Expand description

Row order is preserved so float accumulation stays deterministic across runs. A signature seen more than once is an ambiguous multi-swap transaction — pairing is by signature — so its rows drop wholesale, and a skipped ExactOut row never claims a signature it could make ambiguous.