Skip to content

Feature: Build lending pool yield optimizer with auto-compounding rewards #607

Description

@devdianax

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions