-
Notifications
You must be signed in to change notification settings - Fork 16
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
Generalization #171
Labels
Comments
gkaracha
added a commit
that referenced
this issue
Aug 17, 2021
If we manage to proceed with generalization (#171), token types and even the indices we get from the oracle might change. These previously-hardwired constants would thus get out-of-sync, breaking our calculations.
gkaracha
added a commit
that referenced
this issue
Aug 17, 2021
* Uninline tez_scaling_factor. This is needed for #171: if we end up changing the indices and they don't refer to tez anymore then the hard-wired scaling factor would get out of sync. * Uninline ctez_scaling factor. Also needed for #171. If we change the token used in cfmm from ctez to something else (or if ctez changes its scaling factor, though this is highly unlikely), the hard-wired scaling factor would get out of sync. * (fixedpoint_to_raw fixedpoint_one) is simply fixedpoint_scaling_factor
Merged
gkaracha
added a commit
that referenced
this issue
Aug 17, 2021
* Uninline tez_scaling_factor. This is needed for #171: if we end up changing the indices and they don't refer to tez anymore then the hard-wired scaling factor would get out of sync. * Uninline ctez_scaling factor. Also needed for #171. If we change the token used in cfmm from ctez to something else (or if ctez changes its scaling factor, though this is highly unlikely), the hard-wired scaling factor would get out of sync. * (fixedpoint_to_raw fixedpoint_one) is simply fixedpoint_scaling_factor
This was referenced Sep 28, 2021
This was referenced Nov 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Minor generalizations of Checker greatly increase its use cases. Broadly speaking, the following aspects should be modular:
The text was updated successfully, but these errors were encountered: