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

[TP-1649] Handle native token out #1039

Merged
merged 11 commits into from
Oct 20, 2023

Conversation

pano-skylakis
Copy link
Contributor

Summary

Unwraps the ERC20 type in the DEX SDK response if the user specified native as the output token for an exact-input swap

Customer Impact

Added

Changed

Deprecated

Removed

Fixed

Security

Things worth calling out

Before submitting the PR, please consider the following:

  • Prefix your PR title with feat: , fix: , chore: , docs:, or refactor:.

@pano-skylakis pano-skylakis requested a review from a team as a code owner October 20, 2023 03:30
@@ -32,6 +30,6 @@ export class NativeTokenService {
}

isNativeToken(token: Coin): token is Native {
return token === this.nativeToken;
return token.type === this.nativeToken.type;
Copy link
Contributor

Choose a reason for hiding this comment

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

ooh, we'll need to specifically check that its native

does any test catch this?

Copy link
Contributor Author

@pano-skylakis pano-skylakis left a comment

Choose a reason for hiding this comment

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

@pano-skylakis pano-skylakis enabled auto-merge (squash) October 20, 2023 04:33
@pano-skylakis pano-skylakis merged commit 63062cd into main Oct 20, 2023
6 checks passed
@pano-skylakis pano-skylakis deleted the task/TP-1649-handle-native-token-out branch October 20, 2023 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants