Skip to content

Conversation

@peachbits
Copy link
Contributor

@peachbits peachbits commented Jan 8, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Updates EVM approval handling for Rango swaps.

  • Adds decodeEvmApprovalData in defiUtils to parse ERC-20 approve calldata and extract spendingAddress and nativeAmount
  • rango now decodes approveData and uses the derived spendingAddress as the approval recipientAddress (instead of txTo) when creating pre-approval transactions
  • Minor import adjustments to include the new decoder and WEI_MULTIPLIER

Written by Cursor Bugbot for commit d8d2a43. This will update automatically on new commits. Configure here.


Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

This makes sense to me, but I'm going to pass it along to @paullinator for a second look.

@paullinator
Copy link
Member

Approved. Based on feedback from rango themselves in Telegram.

@peachbits peachbits merged commit 41ff0c0 into master Jan 15, 2026
3 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.

4 participants