fn update_ledger(staker: &T::AccountId, ledger: AccountLedger<BalanceOf<T>>) {
			if ledger.is_empty() {
				Ledger::<T>::remove(&staker);
				T::Currency::remove_lock(STAKING_ID, &staker);
			} else {
				T::Currency::set_lock(STAKING_ID, &staker, ledger.locked, WithdrawReasons::all());
				Ledger::<T>::insert(staker, ledger);
			}
		}
/// Update the ledger for a staker. This will also update the stash lock.
/// This lock will lock the entire funds except paying for further transactions.
Update the ledger for a staker. This will also update the stash lock.
This lock will lock the entire funds except paying for further transactions.
Update the ledger for a staker . This will also update the stash lock . This lock will lock the entire funds except paying for further transactions .
fn update_ledger(staker: &T::AccountId, ledger: AccountLedger<BalanceOf<T>>) {
			if ledger.is_empty() {
				Ledger::<T>::remove(&staker);
				T::Currency::remove_lock(STAKING_ID, &staker);
			} else {
				T::Currency::set_lock(STAKING_ID, &staker, ledger.locked, WithdrawReasons::all());
				Ledger::<T>::insert(staker, ledger);
			}
		}
fn update_ledger ( staker : & T :: AccountId , ledger : AccountLedger < BalanceOf < T > > ) { if ledger . is_empty ( ) { Ledger :: < T > :: remove ( & staker ) ; T :: Currency :: remove_lock ( STAKING_ID , & staker ) ; } else { T :: Currency :: set_lock ( STAKING_ID , & staker , ledger . locked , WithdrawReasons :: all ( ) ) ; Ledger :: < T > :: insert ( staker , ledger ) ; } }
Update the ledger for a staker.
Update the ledger for a staker .
staker
&T::AccountId
ledger
AccountLedger<BalanceOf<T>>