Skip to content

Fix: Calculate total/lifetime earnings from Payment ledger (#57) - #85

Open
xq22115-pixel wants to merge 1 commit into
MergeFi:mainfrom
xq22115-pixel:fix/issue-57-payment-ledger-earnings
Open

Fix: Calculate total/lifetime earnings from Payment ledger (#57)#85
xq22115-pixel wants to merge 1 commit into
MergeFi:mainfrom
xq22115-pixel:fix/issue-57-payment-ledger-earnings

Conversation

@xq22115-pixel

Copy link
Copy Markdown

Fixes #57 by extracting a shared helper calculateContributorEarnings to correctly query the Payment ledger for confirmed payouts. This ensures accurate earnings figures for contributors who participate in team-split bounties, rather than overstating them by attributing the full Bounty.amount to a single claimedById. Added unit tests for both services to prevent regressions.

@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@xq22115-pixel
xq22115-pixel force-pushed the fix/issue-57-payment-ledger-earnings branch from 3243712 to a29446e Compare August 19, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant