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

Token Transfers MVP #2443

Merged
merged 7 commits into from
Sep 16, 2024
Merged

Token Transfers MVP #2443

merged 7 commits into from
Sep 16, 2024

Conversation

onnovisser
Copy link
Collaborator

Description

#2408

Approvals

  • Dev

Screenshots

Impact

Copy link

github-actions bot commented Sep 10, 2024

PR deployed in Google Cloud
URL: https://pr2443-app-ff-production.k-f.dev
Commit #: 257621e
To access the functions directly check the corresponding deploy Action

Copy link

github-actions bot commented Sep 10, 2024

PR deployed in Google Cloud
URL: https://app-pr2443.k-f.dev
Commit #: 257621e
To access the functions directly check the corresponding deploy Action

@onnovisser onnovisser marked this pull request as ready for review September 13, 2024 12:59
Copy link
Collaborator

@sophialittlejohn sophialittlejohn left a comment

Choose a reason for hiding this comment

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

Code looks good to me! 🔥

@@ -31,7 +31,7 @@ export function useActiveDomains(poolId: string, suspense?: boolean) {
const manager = await cent.liquidityPools.getManagerFromRouter([r.router], {
rpcProvider,
})
const pool = await cent.liquidityPools.getPool([r.chainId, manager, poolId], { rpcProvider })
const pool = await cent.liquidityPools.getPool([r.chainId, manager, poolId!], { rpcProvider })
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not just throw an error if the poolId doesn't exist? Seems odd to mark it as optional and then force it here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the query is only enabled when the poolId is set, a few lines down. So this is only called when there's a poolId. Only typescript doesn't get that. Adding checks and throwing instead of the assertion would just add noise IMO

@onnovisser onnovisser enabled auto-merge (squash) September 16, 2024 14:55
@onnovisser onnovisser merged commit 696ee0c into main Sep 16, 2024
10 checks passed
@onnovisser onnovisser deleted the token-transfers branch September 16, 2024 14:57
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