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

Deprecate DSRHyperdriveABI, Fix Router #202

Merged
merged 6 commits into from
Jul 3, 2023

Conversation

DannyDelott
Copy link
Contributor

  • From pairing with @jalextowle, we'll get a consolidated hyperdrive abi soon. For now, this PR deprecates the dsrHyperdrive abi.
  • Other minor cleanups

@vercel
Copy link

vercel bot commented Jul 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdrive-fixed-borrow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2023 9:23pm
hyperdrive-monorepo-hyperdrive-trading ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2023 9:23pm

<p className="font-light ">
Maximize your exposure to the DAI Savings Rate (DSR)
</p>
<div className="daisy-btn-accent daisy-btn-sm daisy-btn mt-2 justify-between gap-0 normal-case">
Copy link
Member

Choose a reason for hiding this comment

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

Can this be a button?

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 eye, I need to add a comment here. Using a div since using button would created nested buttons in the markup. The parent element is a button (Well set to interactive), and so we just want this here as a visual cue.

Comment on lines +64 to +68
queryKey: [
"@hyperdrive/core",
"closed-longs",
{ hyperdriveAddress, account },
],
Copy link
Member

Choose a reason for hiding this comment

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

What's the thinking behind adding the package name to the key?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's good practice for queries packages to namespace themselves, since consumers call these with their own queryClient. The namespace is helpful for debugging and avoiding possible collisions with the app's queries. It also gives apps a quick way to invalidate all the queries without needing to get too specific with keys.

@DannyDelott DannyDelott merged commit 3b48d0b into main Jul 3, 2023
@DannyDelott DannyDelott deleted the danny-remove-dsrhyperdrive-export branch July 3, 2023 21:24
@DannyDelott DannyDelott changed the title Deprecate DSRHyperdriveABI in favor of HyperdriveABI Deprecate DSRHyperdriveABI in favor of HyperdriveABI, Fix Router Jul 3, 2023
@DannyDelott DannyDelott changed the title Deprecate DSRHyperdriveABI in favor of HyperdriveABI, Fix Router Deprecate DSRHyperdriveABI, Fix Router Jul 3, 2023
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