Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existential Deposit for staking #337

Merged
merged 1 commit into from Oct 9, 2022
Merged

Existential Deposit for staking #337

merged 1 commit into from Oct 9, 2022

Conversation

geb789
Copy link
Collaborator

@geb789 geb789 commented Oct 9, 2022

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2022

Codecov Report

Base: 61.15% // Head: 61.18% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (247508a) compared to base (1ffeec7).
Patch coverage: 85.18% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #337      +/-   ##
==========================================
+ Coverage   61.15%   61.18%   +0.03%     
==========================================
  Files          70       70              
  Lines       18649    18673      +24     
==========================================
+ Hits        11404    11426      +22     
- Misses       7245     7247       +2     
Impacted Files Coverage Δ
pallets/staking/src/mock.rs 94.47% <ø> (ø)
runtime/src/lib.rs 10.96% <ø> (ø)
pallets/staking/src/lib.rs 69.18% <76.47%> (+0.11%) ⬆️
pallets/staking/src/tests.rs 99.89% <100.00%> (+<0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -1115,8 +1121,7 @@ pub mod pallet {
Err(Error::<T>::AlreadyPaired)?
}

// reject a bond which is considered to be _dust_.
if value < T::Currency::minimum_balance() {
if value < <ExistentialDeposit<T>>::get() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also need to change validate and unbond, adding this condition

@AmadeusGB AmadeusGB merged commit 184e9c5 into deeper-chain:master Oct 9, 2022
@geb789 geb789 deleted the existential branch October 10, 2022 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants