Skip to content

Change Asset Class Creation Deposits#259

Merged
fellowship-merge-bot[bot] merged 4 commits into
polkadot-fellows:mainfrom
joepetrowski:set-asset-creation-deposit
Mar 28, 2024
Merged

Change Asset Class Creation Deposits#259
fellowship-merge-bot[bot] merged 4 commits into
polkadot-fellows:mainfrom
joepetrowski:set-asset-creation-deposit

Conversation

@joepetrowski
Copy link
Copy Markdown
Contributor

Change the asset class creation deposits to use standard storage deposit functionality.

Similar to #237


/// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub.
pub const CreateForeignAssetDeposit: u128 = 10 * UNITS;
pub const CreateForeignAssetDeposit: u128 = system_para_deposit(1, 190);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

190 is based on the bytes? there should be some way to get that number without hardcoding no?

with max_encoded_len?

Copy link
Copy Markdown
Contributor Author

@joepetrowski joepetrowski Mar 28, 2024

Choose a reason for hiding this comment

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

It is the encoded length of AssetDetails in this configuration.

I'm not sure if we can use max_encoded_len here? ( @ggwpez ?) I calculated it by writing a test and asserting encoded_len.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you remove the const it should work.

@joepetrowski
Copy link
Copy Markdown
Contributor Author

/merge

@bkchr
Copy link
Copy Markdown
Contributor

bkchr commented Mar 28, 2024

/merge

@fellowship-merge-bot fellowship-merge-bot Bot merged commit 256059b into polkadot-fellows:main Mar 28, 2024
@fellowship-merge-bot
Copy link
Copy Markdown
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@joepetrowski joepetrowski deleted the set-asset-creation-deposit branch March 29, 2024 08:24
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.

5 participants