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

Use data from quote response #358

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Use data from quote response #358

merged 1 commit into from
Jan 9, 2025

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Dec 24, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@peachbits peachbits force-pushed the matthew/swapkit-evm-data branch from a81141e to f582a00 Compare December 24, 2024 00:08
@@ -92,6 +89,9 @@ const asThorSwapRoute = asObject({
// expectedOutputMaxSlippage: asString,
// expectedOutputUSD: asString,
// expectedOutputMaxSlippageUSD: asString,
transaction: asObject({
Copy link
Member

Choose a reason for hiding this comment

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

Are you for sure sure that this isn't optional. There may not be a data payload for some types of swaps? Just make sure to test that this is true when sending EVM, UTXO, and Solana (if supported)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! It's not there for UTXO. I added a fixup commit

@peachbits peachbits force-pushed the matthew/swapkit-evm-data branch from f582a00 to aeb0969 Compare January 8, 2025 00:29
The data blob probably wasn't available in the quote response when swapkit was first implemented. I verified it's the same data we would have created using getCalldataData
@peachbits peachbits force-pushed the matthew/swapkit-evm-data branch from aeb0969 to 95f18a7 Compare January 9, 2025 18:32
@peachbits peachbits merged commit 20c3f4f into master Jan 9, 2025
1 check passed
@peachbits peachbits deleted the matthew/swapkit-evm-data branch January 9, 2025 18:51
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