Skip to content

Fix: revenue summary fee columns always read 0 for ocean payouts - #303

Merged
tekwani merged 1 commit into
tetherto:developfrom
paragmore:fix/ocean-fee-field
Oct 12, 2026
Merged

tekwani merged 1 commit into
tetherto:developfrom
paragmore:fix/ocean-fee-field

Conversation

@paragmore

Copy link
Copy Markdown
Contributor

Problem

`processTransactions` tracks fees from `fees_colected_satoshis`, but the ocean earnpay rows carry the field as `fees_collected_satoshis` (the API spelling). The lookup never matches, so `feesBTC`/`feesUSD` in the revenue summary are 0 for every ocean payout.

Found while QA-ing the phase reporting work on a local stack: fee-bearing fixture rows came back with `feesBTC: 0`.

Fix

Read the API spelling first and keep the old key as a fallback for anything stored under it.

Testing

  • `tests/unit/handlers/finance.utils.test.js` gains a case with an API-spelled row; full file passes (150 asserts)
  • `standard` clean

processTransactions tracked fees from fees_colected_satoshis, but the ocean
earnpay rows spell it fees_collected_satoshis, so every fee read 0 and the
revenue summary fee columns stayed empty. Read the api spelling first and
keep the old one for rows stored before the fix.
@tekwani
tekwani merged commit b13057c into tetherto:develop Oct 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants