This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gilescope
added
B0-silent
Changes should not be mentioned in any release notes
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit
C1-low
C1-low
PR touches the given topic and has a low impact on builders.
labels
Feb 7, 2023
seems correct, assets don't provide provider reference, only sufficient reference. also the doc seems to mention provider where sufficient seems to be meant. diff --git a/frame/assets/src/lib.rs b/frame/assets/src/lib.rs
index 894f8f3a4ab..868b23472a0 100644
--- a/frame/assets/src/lib.rs
+++ b/frame/assets/src/lib.rs
@@ -270,7 +270,7 @@ pub mod pallet {
#[pallet::constant]
type AssetDeposit: Get<DepositBalanceOf<Self, I>>;
- /// The amount of funds that must be reserved for a non-provider asset account to be
+ /// The amount of funds that must be reserved for a non-sufficient asset account to be
/// maintained.
#[pallet::constant]
type AssetAccountDeposit: Get<DepositBalanceOf<Self, I>>;
@@ -1477,7 +1477,7 @@ pub mod pallet {
Self::do_transfer_approved(id, &owner, &delegate, &destination, amount)
}
- /// Create an asset account for non-provider assets.
+ /// Create an asset account for non-sufficient assets.
///
/// A deposit will be taken from the signer account.
///
diff --git a/frame/assets/src/types.rs b/frame/assets/src/types.rs
index d50461ba598..183b91c249f 100644
--- a/frame/assets/src/types.rs
+++ b/frame/assets/src/types.rs
@@ -58,8 +58,8 @@ pub struct AssetDetails<Balance, AccountId, DepositBalance> {
pub(super) deposit: DepositBalance,
/// The ED for virtual accounts.
pub(super) min_balance: Balance,
- /// If `true`, then any account with this asset is given a provider reference. Otherwise, it
- /// requires a consumer reference.
+ /// If `true`, then account with this asset can be given a sufficient reference. Otherwise, it
+ /// requires a consumer reference or a deposit hold.
pub(super) is_sufficient: bool,
/// The total number of accounts.
pub(super) accounts: u32, |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
bkchr
reviewed
Apr 21, 2023
bkchr
approved these changes
Apr 27, 2023
jsidorenko
approved these changes
May 5, 2023
ggwpez
added
D9-needsaudit 👮
PR contains changes to fund-managing logic that should be properly reviewed and externally audited
and removed
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit
labels
May 6, 2023
louismerlin
added
D1-audited 👍
PR contains changes to fund-managing logic that has been properly reviewed and externally audited
and removed
D9-needsaudit 👮
PR contains changes to fund-managing logic that should be properly reviewed and externally audited
labels
Jun 1, 2023
bot merge |
agryaznov
pushed a commit
that referenced
this pull request
Jun 9, 2023
nathanwhit
pushed a commit
to nathanwhit/substrate
that referenced
this pull request
Jul 19, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A0-please_review
Pull request needs code review.
B0-silent
Changes should not be mentioned in any release notes
C1-low
PR touches the given topic and has a low impact on builders.
D1-audited 👍
PR contains changes to fund-managing logic that has been properly reviewed and externally audited
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm a bit suspicious of this code as it stands. It looks to me like either we can do this simplification, or maybe, the
&&
should be||
? (but if that's the case we need to revisit the tests as they've encoded the current behaviour). Thoughts?