Skip to content

fix: handle optional fromAmount#409

Draft
genaroibc wants to merge 3 commits into
main-v2from
fix/handle-optional-from-amount
Draft

fix: handle optional fromAmount#409
genaroibc wants to merge 3 commits into
main-v2from
fix/handle-optional-from-amount

Conversation

@genaroibc

@genaroibc genaroibc commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Description

  • Refactors populateRouteParams in EVM and Cosmos handlers to accept the full route object (RouteResponse["route"]) instead of just route.params, enabling access to route.estimate
  • Resolves fromAmount with a fallback (route.params.fromAmount || route.estimate.fromAmount) so routes where fromAmount is absent from params still work correctly
  • Bumps @0xsquid/squid-types from 0.1.216 to 0.1.220
  • Adds fromAmount as an explicit field on RouteParamsPopulated (omitted from the RouteRequest spread)

@genaroibc genaroibc marked this pull request as draft March 26, 2026 06:17
…#410)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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