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: add switchboard on demand oracle support #974

Merged
merged 8 commits into from
Jun 25, 2024
Merged

Conversation

farnyser
Copy link
Contributor

No description provided.

@github-actions github-actions bot added dependency Dependency updates program On-chain program changes labels Jun 25, 2024
@farnyser farnyser force-pushed the serge/sb_on_demand branch from 8f8497e to 99d493a Compare June 25, 2024 12:08
@farnyser farnyser requested a review from microwavedcola1 June 25, 2024 13:16
require_gte!(price, 0);
OracleState {
price,
last_update_slot: last_update_slot,
Copy link
Contributor

Choose a reason for hiding this comment

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

style nit: can be simplified

@@ -388,6 +400,7 @@ fn oracle_state_unchecked_inner<T: KeyedAccountReader>(
}
}
OracleType::SwitchboardV1 => {
// return Err(MangoError::ObsoleteOracle.into());
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this comment

@farnyser farnyser merged commit ed28450 into dev Jun 25, 2024
13 checks passed
farnyser added a commit that referenced this pull request Jun 25, 2024
---------

Co-authored-by: Mitch Gildenberg <[email protected]>
(cherry picked from commit ed28450)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Dependency updates program On-chain program changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants