-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CIP-38] Add Uniform Directional Clearing Prices test #97
Conversation
There is a |
- renamed token_pairs to directional_prices - use min function to determine minimal exchange rate - add info to log message, and also log for smaller deviations - use Fractions to be compatible with backend code
I tested the code with the two hashes |
I just realized that we might need to change the code later to correctly account for protocol fees. They need to be used to correct directional prices. Since there is no way at the moment to get fee policies via the API, we should fix it later. Doing it for the launch tomorrow will not work in time. |
This PR adds a check for the UDP rule, as introduced in CIP-38.