We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546efd7 commit 486e558Copy full SHA for 486e558
program/rust/src/validator.rs
@@ -142,6 +142,7 @@ pub fn aggregate_price(
142
])
143
}
144
145
+/// Load a price account as read-only, returning `None` if it isn't a valid price account.
146
fn checked_load_price_account(price_account_info: &[u8]) -> Option<&PriceAccount> {
147
check_price_account_header(price_account_info).ok()?;
148
Some(bytemuck::from_bytes::<PriceAccount>(
0 commit comments