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.
2 parents c570b02 + 132d74c commit 92d8fdbCopy full SHA for 92d8fdb
token-lending/program/src/processor.rs
@@ -1962,6 +1962,10 @@ fn process_update_reserve_config(
1962
);
1963
return Err(LendingError::InvalidAccountOwner.into());
1964
}
1965
+ if &reserve.lending_market != lending_market_info.key {
1966
+ msg!("Reserve lending market does not match the lending market provided");
1967
+ return Err(LendingError::InvalidAccountInput.into());
1968
+ }
1969
1970
let lending_market = LendingMarket::unpack(&lending_market_info.data.borrow())?;
1971
if lending_market_info.owner != program_id {
0 commit comments