-
Notifications
You must be signed in to change notification settings - Fork 160
Nour/mm oracle #1738
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
base: master
Are you sure you want to change the base?
Nour/mm oracle #1738
Conversation
Co-authored-by: jordy25519 <[email protected]>
* add offset * working tests * refactor to use MM oracle as its own type * remove weird preface * sdk updates * bankrun tests all pass * fix test * changes and fixes * widen confidence if mm oracle too diff * sdk side for confidence adjust
msg!( | ||
"zeroed amm fields for perp market {}", | ||
perp_market.market_index | ||
pub fn handle_update_mm_oracle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need this and handle_update_mm_oracle_native
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just leaving the anchor func as a fallback. we can delete if you want
} | ||
} | ||
|
||
pub fn get_confidence(&self) -> DriftResult<u64> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this vs having mm oracle post confidence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we dont have the open slots on the amm right now
} | ||
} | ||
|
||
pub fn get_delay(&self) -> i64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this and confidence be same functions so you choose consistent/correct value for both?
No description provided.