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

Name parameters and use foundation deps #18

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

Florian-S-A-W
Copy link
Collaborator

Name parameters and import packages from uniswapfoundation in v3 sdk guides

Copy link

vercel bot commented Dec 27, 2023

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

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Dec 27, 2023 4:23pm

@@ -168,15 +168,13 @@ We cannot directly use the value of a single Observation for anything meaningful
const diffTickCumulative = observations[0].tickCumulative - observations[1].tickCumulative
const secondsBetween = 108

const averageTick = diffTickCumulative / secondsBetween
const averageTick = Number(diffTickCumulative / BigInt(secondsBetween))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this allowed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, and the result of this calculation will always be representable by a Number

@Florian-S-A-W Florian-S-A-W merged commit 9113d12 into main Dec 27, 2023
3 checks passed
@Florian-S-A-W Florian-S-A-W deleted the feat/named-params branch December 27, 2023 16:41
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