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

refactor: remove AssetInfo, separate bootstrap account, cleanup errors #1053

Merged
merged 1 commit into from
May 16, 2023

Conversation

gregdhill
Copy link
Member

Some cleanups I made while working on a separate issue

@gregdhill gregdhill force-pushed the refactor/dex branch 2 times, most recently from c5c1893 to 30b28c1 Compare May 16, 2023 09:05
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
/// only use two byte prefix to support 16 byte account id (used by test)
/// "modl" ++ "dex/stbl" is 12 bytes, and 4 bytes remaining for PoolId
pub fn pool_account_id(pool_id: &T::PoolId) -> T::AccountId {
T::PalletId::get().into_sub_account_truncating(pool_id)
Copy link
Member

Choose a reason for hiding this comment

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

A bit of a nit, and not really directly related to this pr, but if sizeof(poolId) > 4 or sizeof(PalletId) > 12) this doesn't really work I think (depending on endianness). But we're unlikely to change the runtime configuration so I guess it's fine..

@gregdhill gregdhill merged commit d3676d7 into interlay:master May 16, 2023
2 checks passed
@gregdhill gregdhill deleted the refactor/dex branch May 16, 2023 10:10
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

2 participants