Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Toormi
Copy link

@Toormi Toormi commented Dec 25, 2025

According to the Jupiter API documentation: https://dev.jup.ag/api-reference/swap/quote, quoteResponse.routePlan.swapInfo.feeAmount and quoteResponse.routePlan.swapInfo.feeMint have been deprecated. The quoteAPI no longer returns these two fields; therefore, feeAmount and feeMint in the QuoteResponse passed during swap will be two empty strings, causing a swap error.

This pull request updates the Jupiter API client and OpenAPI schema to remove swap fee fields from the swap response model. The most significant change is the removal of feeAmount and feeMint from both the OpenAPI spec and the generated client code, reflecting an update in the API contract.

API contract changes

  • Removed feeAmount and feeMint properties from the SwapInfo response model in the OpenAPI spec (jupiter/openapi/swap-api.yaml). [1] [2]
  • Updated example responses in the OpenAPI spec to no longer include feeAmount and feeMint.

Generated client updates

  • Regenerated jupiter/client.gen.go using oapi-codegen v2.5.1, which removes feeAmount and feeMint from the RoutePlanStep struct and updates the code generation version. [1] [2]

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