Description
Add explicit type-validation guards at each entry point's parameter boundary that reject inputs which decode from XDR but contain semantically invalid values such as negative durations, zero rates on non-zero deposits, or asset codes longer than allowed. Each guard should return a typed error variant rather than panicking or allowing the invalid value into business logic.
Acceptance Criteria
Notes
⚠️ Do not begin coding until you have been assigned by the maintainer.
Branch as feat/522-security-xdr-input-validation where N is this issue number.
Description
Add explicit type-validation guards at each entry point's parameter boundary that reject inputs which decode from XDR but contain semantically invalid values such as negative durations, zero rates on non-zero deposits, or asset codes longer than allowed. Each guard should return a typed error variant rather than panicking or allowing the invalid value into business logic.
Acceptance Criteria
Notes