fn update_ledger(
        controller: &T::AccountId,
        ledger: &StakingLedger<T::AccountId, BalanceOf<T>>,
    ) {
        T::Currency::set_lock(
            STAKING_ID,
            &ledger.stash,
            ledger.total,
            WithdrawReasons::all(),
        );
        <Ledger<T>>::insert(controller, ledger);
    }
/// Update the ledger for a controller. This will also update the stash lock. The lock will
/// will lock the entire funds except paying for further transactions.
Update the ledger for a controller. This will also update the stash lock. The lock will
will lock the entire funds except paying for further transactions.
Update the ledger for a controller . This will also update the stash lock . The lock will will lock the entire funds except paying for further transactions .
fn update_ledger(
        controller: &T::AccountId,
        ledger: &StakingLedger<T::AccountId, BalanceOf<T>>,
    ) {
        T::Currency::set_lock(
            STAKING_ID,
            &ledger.stash,
            ledger.total,
            WithdrawReasons::all(),
        );
        <Ledger<T>>::insert(controller, ledger);
    }
fn update_ledger ( controller : & T :: AccountId , ledger : & StakingLedger < T :: AccountId , BalanceOf < T > > , ) { T :: Currency :: set_lock ( STAKING_ID , & ledger . stash , ledger . total , WithdrawReasons :: all ( ) , ) ; < Ledger < T > > :: insert ( controller , ledger ) ; }
Update the ledger for a controller.
Update the ledger for a controller .
controller
&T::AccountId
ledger
&StakingLedger<T::AccountId, BalanceOf<T>>