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

Feature/plmc 472 remove ct deposit fix bug with hold and reserve #201

Merged

Conversation

vstam1
Copy link
Collaborator

@vstam1 vstam1 commented Mar 20, 2024

What?

We are removing the ct deposit for the creation of the ct account in pallet_assets

Why?

As the ct token potentially has a bug where first the deposit could be held while to tokens are locked, but once we actually want to create the account, pallet assets requires a reserve, that does not work together with locked tokens. Upon reviewing the code, we came to the conclusion that we could completely remove the ct tokens and filter out all pallet calls to prevent spamming the chain with empty accounts.

How?

Remove all ct deposits

Testing?

Updated all tests

Screenshots (optional)

Anything Else?

@vstam1 vstam1 marked this pull request as ready for review March 20, 2024 15:00
Copy link
Contributor

@JuaniRios JuaniRios left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@lrazovic lrazovic left a comment

Choose a reason for hiding this comment

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

Let's fix the warnings in the tests (you can use cargo fix --lib -p pallet-funding --tests) and we can merge

@vstam1 vstam1 merged commit 88a64eb into main Mar 20, 2024
@JuaniRios JuaniRios deleted the feature/plmc-472-remove-ct-deposit-fix-bug-with-hold-and-reserve branch March 26, 2024 08:18
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

3 participants