Skip to content

Support swapping into ZEC#424

Merged
Jon-edge merged 1 commit intomasterfrom
jon/maya-zec-2
Dec 5, 2025
Merged

Support swapping into ZEC#424
Jon-edge merged 1 commit intomasterfrom
jon/maya-zec-2

Conversation

@Jon-edge
Copy link
Contributor

@Jon-edge Jon-edge commented Dec 5, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Note

Enables ZEC swaps by preferring transparent receive addresses and adding a Zcash-specific send path that builds a ZIP-321 URI using shielded memo config; also removes ZEC from invalid destination list.

  • Thorchain swap plugin (src/swap/defi/thorchain/thorchainCommon.ts):
    • ZEC support:
      • Prefer transparentAddress when receiving to zcash.
      • Add ZEC send flow: construct ZIP-321 URI (base64url memo), validate transparent vault thorAddress, use shielded_memo_config.unified_address as memo recipient, disallow ZEC tokens.
      • Pass zip321Uri via spendInfo.otherParams and send memo as text when applicable.
    • Inbound addresses handling:
      • Extend cleaner to parse shielded_memo_config and unified_address.
      • Fetch inbound_addresses to populate dust thresholds and map chain → shielded memo unified address.
    • Validation/config:
      • Remove zcash: ['ZEC'] from INVALID_CURRENCY_CODES.to (now {}), allowing ZEC as a destination.

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


@Jon-edge Jon-edge merged commit 2b7dc05 into master Dec 5, 2025
2 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.

2 participants