Skip to content

fix(juice): query poolShare instead of removed jUICE root field#3877

Merged
davidleomay merged 1 commit into
developfrom
fix/juice-poolshare-query
Jun 12, 2026
Merged

fix(juice): query poolShare instead of removed jUICE root field#3877
davidleomay merged 1 commit into
developfrom
fix/juice-poolshare-query

Conversation

@davidleomay

Copy link
Copy Markdown
Member

Problem

Follow-up to #3875: with the positionV2 query fixed, processLogInfo proceeds to getJuice() and fails on the next renamed field — Cannot query field \"jUICE\" on type \"Query\". The generalized ponder schema renamed the equity entity jUICE -> poolShare.

Fix

Rename root field and response key in getJuice(). Verified via introspection: poolShare carries the identical fields (id, profits, loss, reserve) and is keyed by the stablecoin address — the same id the code already passes.

Note

These were the last two graphql queries in juice-client.ts; no further fields differ from the live schema.

Second schema rename in the generalized juicedollar ponder (after
stablecoinAddress, #3875): the equity entity jUICE is now poolShare,
same fields (id, profits, loss, reserve) and still keyed by the
stablecoin address, verified against both deployed ponders.
@davidleomay davidleomay merged commit 5d92ecc into develop Jun 12, 2026
7 checks passed
@davidleomay davidleomay deleted the fix/juice-poolshare-query branch June 12, 2026 10:31
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.

1 participant