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

Negative denominator support #143

Closed
r0wdy1 opened this issue Jul 4, 2023 · 0 comments · Fixed by #147
Closed

Negative denominator support #143

r0wdy1 opened this issue Jul 4, 2023 · 0 comments · Fixed by #147
Assignees

Comments

@r0wdy1
Copy link

r0wdy1 commented Jul 4, 2023

Add support for multiple denominators in the pool, i.e. add an extra coefficient so that the result would correspond to token denominator taking into account native pool denominator 1e9. Therefore for USDC ( 1e6) all operations values must be multiplied by 1e3. Inverse denominator can be obtained from the contract - https://github.com/zkBob/zkbob-contracts/pull/79/files#diff-e323fb0df158445703db898a290a14791771e48f31c6f10add5bb86df87311f8R152

@r0wdy1 r0wdy1 linked a pull request Jul 11, 2023 that will close this issue
@r0wdy1 r0wdy1 removed a link to a pull request Jul 11, 2023
@r0wdy1 r0wdy1 linked a pull request Jul 11, 2023 that will close this issue
@r0wdy1 r0wdy1 changed the title add Pool.tokenAddress change history to config Negative denominator support Jul 11, 2023
@maikReal maikReal closed this as completed Aug 1, 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 a pull request may close this issue.

3 participants