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

Remove v3 pricer #104

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Remove v3 pricer #104

merged 3 commits into from
Mar 4, 2024

Conversation

tzununbekov
Copy link
Contributor

@tzununbekov tzununbekov commented Mar 1, 2024

Pricer API version 3 removal

All the functions and modules were already present in the new price/pricingbyservice, therefore, v3 removal required only references updates (price/pricing -> price/pricingbyservice) and a couple of consts/vars copied to a new location.

One small logic update happened in Validate function - before it did not allow prices to be equal to 0, which is not aligns with its claim prices should be zero or non negative.

detects unset pricing e2e test case was removed because it is not relevant to price struct without references - "unset" objects will have 0 values anyway.

UPDATE: Price validation function clarified - values must be higher than 0. The test is restored.

@tzununbekov tzununbekov marked this pull request as ready for review March 1, 2024 08:10
Copy link
Contributor

@yeszhanov95 yeszhanov95 left a comment

Choose a reason for hiding this comment

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

LGTM!

@tzununbekov tzununbekov merged commit 44f4cd6 into master Mar 4, 2024
2 checks passed
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.

3 participants