Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paul/fix token swaps #311

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Paul/fix token swaps #311

merged 5 commits into from
Jan 10, 2024

Conversation

paullinator
Copy link
Member

@paullinator paullinator commented Jan 6, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Must use 0x0... as contract address otherwise the currencyCode of the parent asset might match some random token and the user will receive that instead.
Just use the full balance for token swaps. Trying to use getMax with a contract call for spendInfo causes the parent token balance to be returned
Core doesn't touch makeTx so it can't patch the EdgeTransaction
@paullinator paullinator merged commit eab0218 into master Jan 10, 2024
1 check passed
@paullinator paullinator deleted the paul/fixTokenSwaps branch January 10, 2024 03:18
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