fn available_staking_balance(
			staker: &T::AccountId,
			ledger: &AccountLedger<BalanceOf<T>>,
		) -> BalanceOf<T> {
			// Ensure that staker has enough balance to stake.
			let free_balance =
				T::Currency::free_balance(&staker).saturating_sub(T::MinimumRemainingAmount::get());

			// Remove already locked funds from the free balance
			free_balance.saturating_sub(ledger.locked)
		}
/// Returns available staking balance for the potential staker
Returns available staking balance for the potential staker
Returns available staking balance for the potential staker
fn available_staking_balance(
			staker: &T::AccountId,
			ledger: &AccountLedger<BalanceOf<T>>,
		) -> BalanceOf<T> {
			// Ensure that staker has enough balance to stake.
			let free_balance =
				T::Currency::free_balance(&staker).saturating_sub(T::MinimumRemainingAmount::get());
			// Remove already locked funds from the free balance
			free_balance.saturating_sub(ledger.locked)
		}
fn available_staking_balance ( staker : & T :: AccountId , ledger : & AccountLedger < BalanceOf < T > > , ) -> BalanceOf < T > { // Ensure that staker has enough balance to stake. let free_balance = T :: Currency :: free_balance ( & staker ) . saturating_sub ( T :: MinimumRemainingAmount :: get ( ) ) ; // Remove already locked funds from the free balance free_balance . saturating_sub ( ledger . locked ) }
Returns available staking balance for the potential staker
Returns available staking balance for the potential staker
staker
&T::AccountId
ledger
&AccountLedger<BalanceOf<T>>