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

Bug: Medium: Item market average level metric is incorrect #61

Closed
4 tasks
Pandelissym opened this issue Oct 18, 2023 · 0 comments · Fixed by #63
Closed
4 tasks

Bug: Medium: Item market average level metric is incorrect #61

Pandelissym opened this issue Oct 18, 2023 · 0 comments · Fixed by #63
Assignees
Labels
bug Something isn't working

Comments

@Pandelissym
Copy link
Contributor

Pandelissym commented Oct 18, 2023

Description:

The average market level metric for items is incorrect. The average is updated incorrectly. Could be linked to #53 if the update operation makes the contract function error and not complete all required steps.

Repro

  • View statistics
  • See that they are not correct

Acceptance criteria

@Pandelissym Pandelissym added the bug Something isn't working label Oct 18, 2023
@Pandelissym Pandelissym self-assigned this Oct 18, 2023
@Pandelissym Pandelissym linked a pull request Oct 20, 2023 that will close this issue
Pandelissym added a commit that referenced this issue Oct 20, 2023
Fixed marketplaceAverageLevel metric. For items, this metric was being
calculated incorrectly. This lead to specific cases where the metric
might become a negative value after updating. This would violate the
typeguard of the metric which expects it to be greater or equal than 0
and an error would be thrown. This means the buy item flow would not
complete hence why the item would still remain in the market state.

Fixes 2 bugs:
1. #61 
2. #53

Co-authored-by: Pandelis Symeonidis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant