@@ -45,7 +45,7 @@ pub enum LendingInstruction {
4545 /// The new owner
4646 new_owner : Pubkey ,
4747 /// The new config
48- config : RateLimiterConfig ,
48+ rate_limiter_config : RateLimiterConfig ,
4949 } ,
5050
5151 // 2
@@ -487,7 +487,7 @@ impl LendingInstruction {
487487 let ( max_outflow, _rest) = Self :: unpack_u64 ( rest) ?;
488488 Self :: SetLendingMarketOwnerAndConfig {
489489 new_owner,
490- config : RateLimiterConfig {
490+ rate_limiter_config : RateLimiterConfig {
491491 window_duration,
492492 max_outflow,
493493 } ,
@@ -709,7 +709,10 @@ impl LendingInstruction {
709709 buf. extend_from_slice ( owner. as_ref ( ) ) ;
710710 buf. extend_from_slice ( quote_currency. as_ref ( ) ) ;
711711 }
712- Self :: SetLendingMarketOwnerAndConfig { new_owner, config } => {
712+ Self :: SetLendingMarketOwnerAndConfig {
713+ new_owner,
714+ rate_limiter_config : config,
715+ } => {
713716 buf. push ( 1 ) ;
714717 buf. extend_from_slice ( new_owner. as_ref ( ) ) ;
715718 buf. extend_from_slice ( & config. window_duration . to_le_bytes ( ) ) ;
@@ -885,15 +888,19 @@ pub fn set_lending_market_owner_and_config(
885888 lending_market_pubkey : Pubkey ,
886889 lending_market_owner : Pubkey ,
887890 new_owner : Pubkey ,
888- config : RateLimiterConfig ,
891+ rate_limiter_config : RateLimiterConfig ,
889892) -> Instruction {
890893 Instruction {
891894 program_id,
892895 accounts : vec ! [
893896 AccountMeta :: new( lending_market_pubkey, false ) ,
894897 AccountMeta :: new_readonly( lending_market_owner, true ) ,
895898 ] ,
896- data : LendingInstruction :: SetLendingMarketOwnerAndConfig { new_owner, config } . pack ( ) ,
899+ data : LendingInstruction :: SetLendingMarketOwnerAndConfig {
900+ new_owner,
901+ rate_limiter_config,
902+ }
903+ . pack ( ) ,
897904 }
898905}
899906
0 commit comments