Context
Lenders earn interest but rewards must be manually claimed and re-deposited. Auto-compounding maximizes returns without manual intervention.
Current Limitation/Problem
No auto-compounding mechanism exists. Users must manually claim rewards and re-deposit, losing compound interest between actions.
Expected Outcome
An auto-compounding vault that automatically claims rewards and reinvests them into the lending pool at configurable intervals.
Acceptance Criteria
- Design vault contract that holds LP tokens and auto-compounds
- Configurable compounding interval (hourly, daily, weekly)
- Gas-efficient batch compounding for multiple users
- Vault share price tracking for fair withdrawal value
- Compounding analytics: APY boost vs manual compounding
- Integration with existing lending pools
- Events for all vault operations (deposit, withdraw, compound)
Technical Scope
contracts/auto-compound-vault/src/ - auto-compounding vault
backend/src/services/yield/auto-compound.ts - backend service
- Frontend: vault deposit/withdraw and APY comparison UI
- Edge cases: gas spikes during compound, vault inflation attack, reward token conversion
Context
Lenders earn interest but rewards must be manually claimed and re-deposited. Auto-compounding maximizes returns without manual intervention.
Current Limitation/Problem
No auto-compounding mechanism exists. Users must manually claim rewards and re-deposit, losing compound interest between actions.
Expected Outcome
An auto-compounding vault that automatically claims rewards and reinvests them into the lending pool at configurable intervals.
Acceptance Criteria
Technical Scope
contracts/auto-compound-vault/src/- auto-compounding vaultbackend/src/services/yield/auto-compound.ts- backend service