Skip to content

fix(liquidity-sdk): use withdrawMarket in API query#731

Open
prd-carapulse[bot] wants to merge 1 commit into
mainfrom
hermes/liquidity-sdk-withdraw-market
Open

fix(liquidity-sdk): use withdrawMarket in API query#731
prd-carapulse[bot] wants to merge 1 commit into
mainfrom
hermes/liquidity-sdk-withdraw-market

Conversation

@prd-carapulse
Copy link
Copy Markdown
Contributor

@prd-carapulse prd-carapulse Bot commented May 27, 2026

Summary

  • Query withdrawMarket instead of deprecated allocationMarket in @morpho-org/liquidity-sdk-viem.
  • Keep the existing SDK response key as allocationMarket by aliasing withdrawMarket, avoiding a public return-shape change.

Request Context

  • Initiator: Milan / Slack: U08EBC8Q9B7 / GitHub: unresolved from milan@morpho.org search
  • Initial Slack thread: channel C0B3BFBE6AK, thread_ts 1779872363.117049
  • Additional context: Follow-up from internal scan of morpho-api fields marked deprecated with removalAt: 2026-05-20.
  • Rationale: Remove PublicAllocatorSharedLiquidity.allocationMarket usage before removal while preserving SDK compatibility.

Verification

  • pnpm exec biome check packages/liquidity-sdk-viem/graphql/GetMarkets.query.gql packages/liquidity-sdk-viem/src/api/sdk.ts
  • GraphQL validation against morpho-api/schema.gql: no PublicAllocatorSharedLiquidity.allocationMarket warning remains; unrelated existing warnings remain for Market.targetBorrowUtilization and Market.targetWithdrawUtilization.
  • pnpm --filter @morpho-org/liquidity-sdk-viem build
  • pnpm exec vitest run --project liquidity-sdk-viem packages/liquidity-sdk-viem/src/api/index.test.ts packages/liquidity-sdk-viem/src/loader.test.ts (15 tests passed)

Open in Devin Review

View Slack thread

@prd-carapulse prd-carapulse Bot requested a review from a team as a code owner May 27, 2026 09:30
@prd-carapulse prd-carapulse Bot force-pushed the hermes/liquidity-sdk-withdraw-market branch from 2130cdb to 617294b Compare May 27, 2026 09:30
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@milanmorpho
Copy link
Copy Markdown

cc @Rubilmax To handle deprecation

Rubilmax
Rubilmax previously approved these changes May 27, 2026
@Rubilmax
Copy link
Copy Markdown
Collaborator

@prd-carapulse[bot] include a patch changesets file in this pr and rebase on main

@prd-carapulse
Copy link
Copy Markdown
Contributor Author

prd-carapulse Bot commented May 27, 2026

API call failed after 3 retries: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.

Track: https://carapulse.morpho.dev/dashboard/runs?run_id=gw_run_5dc452419860

Add patch changeset and rebase on latest main.
@prd-carapulse prd-carapulse Bot force-pushed the hermes/liquidity-sdk-withdraw-market branch from 6d808db to 617294b Compare May 27, 2026 11:33
@prd-carapulse prd-carapulse Bot force-pushed the hermes/liquidity-sdk-withdraw-market branch from 617294b to 6d808db Compare May 27, 2026 11:33
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.

2 participants