-
Notifications
You must be signed in to change notification settings - Fork 71
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
check switchboard program id #25
Conversation
ef858bb
to
cce3877
Compare
cce3877
to
8973fc7
Compare
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 nits
@@ -300,6 +302,10 @@ fn process_init_reserve( | |||
return Err(LendingError::InvalidOracleConfig.into()); | |||
} | |||
|
|||
if &lending_market.switchboard_oracle_program_id != switchboard_feed_info.owner { | |||
msg!("Pyth price account provided is not owned by the lending market oracle program"); |
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.
"Pyth"
@@ -521,6 +525,7 @@ impl TestLendingMarket { | |||
authority: lending_market_authority, | |||
quote_currency: QUOTE_CURRENCY, | |||
oracle_program_id, |
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.
nit: add the key here? pyth_oracle_program_id or whatever it is
just so it matches
@@ -783,6 +788,7 @@ impl TestReserve { | |||
payer: &Keypair, | |||
user_accounts_owner: &Keypair, | |||
) -> Result<Self, TransactionError> { | |||
print!("asdfasd1"); |
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.
rm
No description provided.