Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-02-28 10:45:03 +01:00
parent c0c115bd03
commit 6345d3ebd4
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ pub struct StubOracle {
pub fn determine_oracle_type(account: &AccountInfo) -> Result<OracleType> {
let borrowed = &account.data.borrow();
// todo: remove magic from stub oracle and look at anchor disciminator instead
if borrowed[0] == 224 && borrowed[1] == 251 && borrowed[2] == 254 && borrowed[3] == 99 {
return Ok(OracleType::Stub);
}