diff --git a/backend/app/infrastructure/routes/epochs.py b/backend/app/infrastructure/routes/epochs.py index 28632f939f..13ecc896b8 100644 --- a/backend/app/infrastructure/routes/epochs.py +++ b/backend/app/infrastructure/routes/epochs.py @@ -100,7 +100,7 @@ def get(self): ), "ppf": fields.String( required=False, - description="PPF for the given epoch. It's calculated from staking proceeds directly.", + description="PPF for the given epoch. It's calculated from staking proceeds directly. Includes individualRewards.", ), "communityFund": fields.String( required=False, diff --git a/client/src/components/Metrics/MetricsEpoch/MetricsEpochGridFundsUsage/MetricsEpochGridFundsUsage.tsx b/client/src/components/Metrics/MetricsEpoch/MetricsEpochGridFundsUsage/MetricsEpochGridFundsUsage.tsx index 42eeaa274c..91281fcb41 100644 --- a/client/src/components/Metrics/MetricsEpoch/MetricsEpochGridFundsUsage/MetricsEpochGridFundsUsage.tsx +++ b/client/src/components/Metrics/MetricsEpoch/MetricsEpochGridFundsUsage/MetricsEpochGridFundsUsage.tsx @@ -39,8 +39,13 @@ const MetricsEpochGridFundsUsage: FC = ({ ethBelowThreshold : BigInt(0); + /** + * epochInfo.ppf includes epochInfo.individualRewards. + * Half of PPF goes to the users to manage. + * Half of PPR goes to "PPF" section. + */ const claimedByUsers = epochInfo - ? epochInfo.individualRewards - totalUserDonationsWithPatronRewards - unusedRewards + ? epochInfo.ppf / 2n - totalUserDonationsWithPatronRewards - unusedRewards : BigInt(0); const total = @@ -79,7 +84,7 @@ const MetricsEpochGridFundsUsage: FC = ({ }, { label: t('ppf'), - value: getNumberValue(ppf), + value: getNumberValue(ppf / 2n), valueLabel: getFormattedEthValue(ppf, true, false, false, 2).fullString, }, ];