Description: No benchmark anywhere measures CPU/memory instruction cost per contract entrypoint — without this, it's impossible to know which functions (distribute_yield's loop is the obvious suspect) are closest to Soroban's resource budget ceiling before mainnet deployment.
Suggested execution: git checkout -b feature/gas-profiling-harness. Build a profiling harness using Soroban testutils' budget-tracking API, running every public entrypoint across all 7 contracts and producing a cost report table, published in docs/PERFORMANCE.md (pairs with C3).
Example commit message: feat: add gas/resource profiling harness and per-entrypoint cost report
Guidelines: PR description must include Closes #<this-issue-number>. Complexity: High (200 points).
Description: No benchmark anywhere measures CPU/memory instruction cost per contract entrypoint — without this, it's impossible to know which functions (
distribute_yield's loop is the obvious suspect) are closest to Soroban's resource budget ceiling before mainnet deployment.Suggested execution:
git checkout -b feature/gas-profiling-harness. Build a profiling harness using Soroban testutils' budget-tracking API, running every public entrypoint across all 7 contracts and producing a cost report table, published indocs/PERFORMANCE.md(pairs with C3).Example commit message:
feat: add gas/resource profiling harness and per-entrypoint cost reportGuidelines: PR description must include
Closes #<this-issue-number>. Complexity: High (200 points).