@@ -125,6 +125,7 @@ fn ramp_a(token_swap: &mut SwapInfo, target_amp: u64, stop_ramp_ts: i64) -> Prog
125125 return Err ( SwapError :: InvalidInput . into ( ) ) ;
126126 }
127127
128+ msg ! ( "Admin: Current A {}" , current_amp) ;
128129 token_swap. initial_amp_factor = current_amp;
129130 token_swap. target_amp_factor = target_amp;
130131 token_swap. start_ramp_ts = clock. unix_timestamp ;
@@ -183,16 +184,22 @@ fn set_fee_account<'a, 'b: 'a, I: Iterator<Item = &'a AccountInfo<'b>>>(
183184
184185 let new_admin_fee_account =
185186 utils:: unpack_token_account ( & new_fee_account_info. data . borrow_mut ( ) ) ?;
187+ msg ! (
188+ "Admin: New fee account owner {}" ,
189+ new_admin_fee_account. owner
190+ ) ;
186191 if new_admin_fee_account. mint == token_swap. token_a . mint {
192+ msg ! ( "Admin: Old fee account A {}" , token_swap. token_a. admin_fees) ;
187193 token_swap. token_a . admin_fees = * new_fee_account_info. key ;
188194 msg ! (
189- "Admin: Setting admin fee A account to {}" ,
195+ "Admin: Fee account A set to {}" ,
190196 token_swap. token_a. admin_fees
191197 ) ;
192198 } else if new_admin_fee_account. mint == token_swap. token_b . mint {
199+ msg ! ( "Admin: Old fee account B {}" , token_swap. token_b. admin_fees) ;
193200 token_swap. token_b . admin_fees = * new_fee_account_info. key ;
194201 msg ! (
195- "Admin: Setting admin fee B account to {}" ,
202+ "Admin: Fee account B set to {}" ,
196203 token_swap. token_b. admin_fees
197204 ) ;
198205 } else {
@@ -212,6 +219,7 @@ fn apply_new_admin(token_swap: &mut SwapInfo) -> ProgramResult {
212219 return Err ( SwapError :: AdminDeadlineExceeded . into ( ) ) ;
213220 }
214221
222+ msg ! ( "Admin: old admin {}" , token_swap. admin_key) ;
215223 token_swap. admin_key = token_swap. future_admin_key ;
216224 token_swap. future_admin_key = Pubkey :: default ( ) ;
217225 token_swap. future_admin_deadline = ZERO_TS ;
@@ -246,8 +254,9 @@ fn commit_new_admin<'a, 'b: 'a, I: Iterator<Item = &'a AccountInfo<'b>>>(
246254
247255/// Set new fees
248256fn set_new_fees ( token_swap : & mut SwapInfo , new_fees : & Fees ) -> ProgramResult {
257+ msg ! ( "Admin: Old fees {:?}" , token_swap. fees) ;
249258 token_swap. fees = * new_fees;
250- msg ! ( "Admin: New fees set" ) ;
259+ msg ! ( "Admin: New fees {:?}" , token_swap . fees ) ;
251260 Ok ( ( ) )
252261}
253262
0 commit comments