Summary
`contracts/tests/integration_tests.rs` has no test covering multi-token pool operations. The pool supports multiple tokens (USDC, XLM, etc.) but all existing integration tests use a single token. Edge cases unique to multi-token pools are completely untested.
Missing Test Cases
- Deposit USDC and XLM in the same pool, verify balances are tracked separately
- Fund one invoice in USDC and another in XLM, verify each uses the correct token
- Repay USDC invoice with USDC (correct) vs. XLM (should fail)
- Yield accrual is calculated per-token, not pooled across tokens
- Withdraw USDC does not affect XLM balance and vice versa
- Remove one token while other remains active — verify isolation
Implementation Notes
- Use Soroban test environment's `register_stellar_asset_contract()` to create multiple mock tokens
- The test should cover at least two tokens simultaneously
- Use the existing `integration_tests.rs` helper functions for setup
Acceptance Criteria
References
- `contracts/tests/integration_tests.rs`
- `contracts/pool/src/lib.rs` — multi-token support
Summary
`contracts/tests/integration_tests.rs` has no test covering multi-token pool operations. The pool supports multiple tokens (USDC, XLM, etc.) but all existing integration tests use a single token. Edge cases unique to multi-token pools are completely untested.
Missing Test Cases
Implementation Notes
Acceptance Criteria
References