Area
Investment Vault / Testing
Complexity
Easy
File(s)
investment_vault/src/lib.rs:1189-1219 (set_max_investment_per_project, investment_capacity), :1836-1848 (cap enforcement in fund_project_internal)
Problem
Grepping test.rs for investment_capacity/set_max_investment_per_project returns zero hits. This is a documented security control ("Prevents over-concentration of vault funds in a single project") with no test verifying that funding a project up to its cap succeeds, one stroop over the cap panics with InvestmentCapExceeded, or that investment_capacity reports the correct remaining headroom.
Scope
In:
- Tests for cap-respecting funding, cap-exceeding funding (panic), investment_capacity before/after funding, and set_max_investment_per_project(0) restoring the compile-time default.
Out:
- Changing MAX_INVESTMENT_PER_PROJECT.
Acceptance Criteria
Area
Investment Vault / Testing
Complexity
Easy
File(s)
investment_vault/src/lib.rs:1189-1219 (set_max_investment_per_project, investment_capacity), :1836-1848 (cap enforcement in fund_project_internal)
Problem
Grepping test.rs for investment_capacity/set_max_investment_per_project returns zero hits. This is a documented security control ("Prevents over-concentration of vault funds in a single project") with no test verifying that funding a project up to its cap succeeds, one stroop over the cap panics with InvestmentCapExceeded, or that investment_capacity reports the correct remaining headroom.
Scope
In:
Out:
Acceptance Criteria