Skip to content

Commit 1a7446e

Browse files
committed
no check for minm while delegating to agent
1 parent 0248cad commit 1a7446e

File tree

1 file changed

+0
-6
lines changed
  • substrate/frame/delegated-staking/src

1 file changed

+0
-6
lines changed

substrate/frame/delegated-staking/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,6 @@ impl<T: Config> Pallet<T> {
517517
amount
518518
};
519519

520-
// ensure amount is at least minimum to delegate.
521-
ensure!(
522-
new_delegation_amount >= T::Currency::minimum_balance(),
523-
Error::<T>::NotEnoughFunds
524-
);
525-
526520
Delegation::<T>::from(agent, new_delegation_amount).save_or_kill(delegator);
527521
ledger.total_delegated =
528522
ledger.total_delegated.checked_add(&amount).ok_or(ArithmeticError::Overflow)?;

0 commit comments

Comments
 (0)