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: better derive perp auction params when missing #869

Merged

Conversation

crispheaney
Copy link
Member

No description provided.

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

Merging #869 (b6141cb) into master (adb90df) will increase coverage by 0.03%.
The diff coverage is 85.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #869      +/-   ##
==========================================
+ Coverage   74.69%   74.73%   +0.03%     
==========================================
  Files         130      130              
  Lines       30666    30796     +130     
==========================================
+ Hits        22907    23015     +108     
- Misses       7759     7781      +22     
Components Coverage Δ
drift 74.92% <85.38%> (+0.03%) ⬆️

@@ -2704,7 +2706,12 @@ fn update_trigger_order_params(
order.slot = slot;

let (auction_duration, auction_start_price, auction_end_price) =
calculate_auction_params_for_trigger_order(order, oracle_price_data, min_auction_duration)?;
calculate_auction_params_for_trigger_order(
Copy link
Member

Choose a reason for hiding this comment

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

probably should still check if trigger limit passes oracle to determine auction

@crispheaney crispheaney merged commit 8fcabd1 into master Feb 8, 2024
11 of 13 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.

None yet

2 participants