Skip to content

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

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Nour/mm oracle #1738

wants to merge 19 commits into from

Conversation

NourAlharithi
Copy link
Member

No description provided.

msg!(
"zeroed amm fields for perp market {}",
perp_market.market_index
pub fn handle_update_mm_oracle(
Copy link
Member

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?

Copy link
Member Author

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> {
Copy link
Member

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?

Copy link
Member Author

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 {
Copy link
Member

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?

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.

4 participants