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

feat: Introduce and use TickPriceHelper.TickFromVolumes #1606

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

dontrolle
Copy link
Contributor

No description provided.

@dontrolle dontrolle marked this pull request as ready for review November 22, 2023 13:38
@dontrolle dontrolle enabled auto-merge (squash) November 22, 2023 13:43
@dontrolle dontrolle requested a review from lnist November 22, 2023 13:43
if ("tick" in p) {
// deduce price from tick & gives
tick = ethers.BigNumber.from(p.tick);
price = tickPriceHelper.priceFromTick(tick);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would delete some code here... normalizeofferparams is never used to get the price, so remove the price calculation completely.

@dontrolle dontrolle merged commit 0527b78 into develop Nov 22, 2023
3 checks passed
@dontrolle dontrolle deleted the feat/tickpricehelper-tickfromvolumes branch November 22, 2023 13:53
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