-
Notifications
You must be signed in to change notification settings - Fork 683
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
Define and implement Hold
for Assets
#4315
Comments
Quick question before proceeding with the proposed implementation: after taking a review on #236, I noticed that (at least for This leads me to think the Is this assumption correct @gavofyork, or does this concept only for |
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/2024-05-21-technical-fellowship-opendev-call/8264/1 |
there is an issue explaining these relations. you should look for the PR introducing new fungible/s traits. should be linked there. |
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/assethub-new-feature-bond-with-specific-unbond-period/7494/3 |
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/2024-07-16-technical-fellowship-opendev-call/9512/1 |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
A follow-up of #3342. The current design of
pallet-assets
doesn't implement holds, while there are multiple use cases for which it would be beneficial to support this behaviour (e.g. bonding, staking, deposits, payment holds, escrowed vesting, etc.).Request
Because of the above, it is desirable to find a way of implementing inspection and mutation of the
fungibles::holds
traits.Solution
pallet-assets-holder
#4530A basic definition and implementation of a
HeldBalance
(an analogous toFrozenBalance
) that can be added as a type inpallet-assets
.Then, by using the
held_balance
method in Assets, it would be possible to subtract the free balance to obtain thereducible_balance
, and adjust to the balance components model.Analogous to
pallet-assets-freezer
, this proposed pallet extends the capabilities ofpallet-assets
to support holding balances.Are you willing to help with this request?
Yes!
Tasks
pallet-assets-holder
#4530The text was updated successfully, but these errors were encountered: