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

program: enforce min price for oracle offsets #874

Merged
merged 3 commits into from
May 30, 2024

Conversation

crispheaney
Copy link
Member

No description provided.

Copy link

codecov bot commented Feb 11, 2024

Codecov Report

Merging #874 (c6a9f20) into master (7805628) will decrease coverage by 0.02%.
Report is 204 commits behind head on master.
The diff coverage is 60.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #874      +/-   ##
==========================================
- Coverage   74.73%   74.71%   -0.02%     
==========================================
  Files         130      130              
  Lines       30797    30809      +12     
==========================================
+ Hits        23016    23020       +4     
- Misses       7781     7789       +8     
Components Coverage Δ
drift 74.91% <34.61%> (-0.02%) ⬇️

limitPrice = oraclePriceData.price.add(new BN(order.oraclePriceOffset));
limitPrice = BN.max(
oraclePriceData.price.add(new BN(order.oraclePriceOffset)),
ONE
Copy link
Member

Choose a reason for hiding this comment

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

this is alternative to actually grabbing tick size?

does it get corrected downstream?

@crispheaney crispheaney merged commit 20721de into master May 30, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants