Description
Both OverflowBehavior and OverfundingPolicy appear in contracts/split/src/types.rs and govern overpayment handling. Their relationship is subtle (OverfundingPolicy::Cap delegates to OverflowBehavior). The existing comments are brief; expanding them with a # Relationship section explaining which takes precedence would prevent misuse.
Acceptance Criteria
Context
- Target file:
contracts/split/src/types.rs
Description
Both
OverflowBehaviorandOverfundingPolicyappear incontracts/split/src/types.rsand govern overpayment handling. Their relationship is subtle (OverfundingPolicy::Capdelegates toOverflowBehavior). The existing comments are brief; expanding them with a# Relationshipsection explaining which takes precedence would prevent misuse.Acceptance Criteria
OverflowBehaviorandOverfundingPolicyincontracts/split/src/types.rsOverfundingPolicy::Capexplains it delegates toOverflowBehaviorOverfundingPolicyincludes a# Relationshipsection referencingOverflowBehaviorcargo docbuilds without warningscargo testpassesContext
contracts/split/src/types.rs