Skip to content

No lifetime credits earned getter in FarmingPool #244

Description

@ritaifeoluwa

Description

The FarmingPool contract does not have a way to query the total credits earned by a user across all time. While get_credits returns the current balance, there is no historical total.

Current behavior

get_credits returns banked credits plus accrued since last checkpoint.

Expected behavior

Add a total_credits_earned(user) -> i128 function that tracks cumulative credits earned (including withdrawn).

Why this matters

Users want to see their lifetime earnings, not just current balance.

Labels

enhancement, farming-pool, help wanted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfarming-poolFarmingPool contracthelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions