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 871935c commit 132d74cCopy full SHA for 132d74c
token-lending/program/src/processor.rs
@@ -1995,6 +1995,10 @@ fn process_update_reserve_config(
1995
);
1996
return Err(LendingError::InvalidAccountOwner.into());
1997
}
1998
+ if &reserve.lending_market != lending_market_info.key {
1999
+ msg!("Reserve lending market does not match the lending market provided");
2000
+ return Err(LendingError::InvalidAccountInput.into());
2001
+ }
2002
2003
let lending_market = LendingMarket::unpack(&lending_market_info.data.borrow())?;
2004
if lending_market_info.owner != program_id {
0 commit comments