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
Description
The FarmingPool contract does not have a way to query the total credits earned by a user across all time. While
get_creditsreturns the current balance, there is no historical total.Current behavior
get_creditsreturns banked credits plus accrued since last checkpoint.Expected behavior
Add a
total_credits_earned(user) -> i128function 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