@@ -310,7 +310,7 @@ impl StakePool {
310310 Ok ( ( ) )
311311 }
312312
313- /// Check staker validity and signature
313+ /// Check mint is correct
314314 #[ inline]
315315 pub ( crate ) fn check_mint ( & self , mint_info : & AccountInfo ) -> Result < ( ) , ProgramError > {
316316 if * mint_info. key != self . pool_mint {
@@ -371,7 +371,7 @@ impl StakePool {
371371 }
372372 }
373373
374- /// Check the validator list is valid
374+ /// Check the reserve stake is valid
375375 pub fn check_reserve_stake (
376376 & self ,
377377 reserve_stake_info : & AccountInfo ,
@@ -528,14 +528,14 @@ impl ValidatorStakeInfo {
528528 }
529529
530530 /// Performs a very cheap comparison, for checking if this validator stake
531- /// info has active lamports equal to the given bytes
532- pub fn memcmp_active_lamports ( data : & [ u8 ] , lamports_le_bytes : & [ u8 ] ) -> bool {
531+ /// info does not have active lamports equal to the given bytes
532+ pub fn active_lamports_not_equal ( data : & [ u8 ] , lamports_le_bytes : & [ u8 ] ) -> bool {
533533 sol_memcmp ( & data[ 0 ..8 ] , lamports_le_bytes, 8 ) != 0
534534 }
535535
536536 /// Performs a very cheap comparison, for checking if this validator stake
537- /// info has lamports equal to the given bytes
538- pub fn memcmp_transient_lamports ( data : & [ u8 ] , lamports_le_bytes : & [ u8 ] ) -> bool {
537+ /// info does not have lamports equal to the given bytes
538+ pub fn transient_lamports_not_equal ( data : & [ u8 ] , lamports_le_bytes : & [ u8 ] ) -> bool {
539539 sol_memcmp ( & data[ 8 ..16 ] , lamports_le_bytes, 8 ) != 0
540540 }
541541
0 commit comments