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

weightingFactor missing in calculation if isReverse=true #14

Open
sschiessl-bcp opened this issue Apr 24, 2022 · 0 comments · May be fixed by #15
Open

weightingFactor missing in calculation if isReverse=true #14

sschiessl-bcp opened this issue Apr 24, 2022 · 0 comments · May be fixed by #15
Assignees

Comments

@sschiessl-bcp
Copy link
Contributor

const effectivePrice = isReverse ? balanceB.plus(inputAmount.multipliedBy(2)).dividedBy(balanceA) : balanceA.plus(inputAmount.multipliedBy(2)).dividedBy(balanceB.multipliedBy(weightingFactor));

@pranaybaldev pranaybaldev linked a pull request Apr 26, 2022 that will close this issue
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 a pull request may close this issue.

4 participants