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

Fix error handling for LiFi swap quote responses #1353

Merged
merged 9 commits into from
Nov 18, 2024
Merged

Conversation

aminsato
Copy link
Contributor

@aminsato aminsato commented Nov 13, 2024

@aminsato aminsato changed the title Handle errors in LiFi swap quote response Fix error handling for LiFi swap quote responses Nov 13, 2024
@aminsato aminsato requested a review from yvebe November 13, 2024 16:05
@@ -104,6 +107,31 @@ class THORChainSwapQuoteResponseJsonSerializer @Inject constructor(private val j
}
}

@Singleton
Copy link
Collaborator

Choose a reason for hiding this comment

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

please don't use singleton annotation directly on classes, provide that info in the module where they're binded/provided

@aminsato aminsato requested a review from yvebe November 14, 2024 17:46
Comment on lines 43 to 46
@Binds
fun bindLiFiSwapQuoteResponseSerializer(
impl: LiFiSwapQuoteResponseSerializerImpl,
): LiFiSwapQuoteResponseSerializer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
@Binds
fun bindLiFiSwapQuoteResponseSerializer(
impl: LiFiSwapQuoteResponseSerializerImpl,
): LiFiSwapQuoteResponseSerializer
@Binds
@Singleton
fun bindLiFiSwapQuoteResponseSerializer(
impl: LiFiSwapQuoteResponseSerializerImpl,
): LiFiSwapQuoteResponseSerializer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@aminsato aminsato requested a review from yvebe November 15, 2024 17:28
@yvebe yvebe merged commit f0a9ee4 into main Nov 18, 2024
1 check passed
@yvebe yvebe deleted the fix/lifi-swap-quote branch November 18, 2024 12:00
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