Priority: medium
Description
The Soroban contract functions in all four contracts have no doc comments, making it difficult for auditors and contributors to understand the business logic. Every public function must have a Rust doc comment explaining its purpose, parameters, return value, and which errors it can return.
Acceptance Criteria
- Every pub fn in all four contracts has a /// doc comment
- Comments explain the business purpose, not just the technical mechanics
- Parameters and return values are documented
- Possible error variants (from CarbonError) are listed with conditions
- cargo doc generates valid HTML documentation without warnings
Priority: medium
Description
The Soroban contract functions in all four contracts have no doc comments, making it difficult for auditors and contributors to understand the business logic. Every public function must have a Rust doc comment explaining its purpose, parameters, return value, and which errors it can return.
Acceptance Criteria