-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
Description
Describe the bug
Currently staking is affected by existential deposit because it is using Currency::withdraw (and Currency::deposit for unstaking). Pallet balances has the locking mechanism for this, which does not affect the total balance of the account, but effectively locks the currency.
The staking/unstaking logic of working with balances is located in remove_balance_from_coldkey_account and add_balance_to_coldkey_account
To Reproduce
Stake full amount less transaction fees.
Result: Staked amount is less by ED (or account is wiped, unsure).
Expected behavior
Staked amount can be full balance and account does not get dust-collected.
Screenshots
No response
Environment
Any
Additional context
No response
Reactions are currently unavailable