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

Pallet Lottery migrate to Fungibles traits #1810

Closed
wants to merge 9 commits into from
Closed

Conversation

nuke-web3
Copy link
Contributor

@nuke-web3 nuke-web3 commented Oct 7, 2023

Part of #226

This pallet used type Currency: ReservableCurrency<Self::AccountId>; but in the logic, no reservation/hold logic existed, or exists in now. Thus we now only use a simple type Currency: fungible::Balanced<Self::AccountId> + fungible::Mutate<Self::AccountId>; to manage the lottery's pot.

We know of no downstream runtimes that are somehow able to place reservations/holds/locks/... on the T::PalletId::get().into_account_truncating() account for the pot, nor is any accounting changes at all in this pallet, so no migrations are needed at all in this PR. There are no braking changes whatsoever here.

@nuke-web3 nuke-web3 requested review from a team October 7, 2023 09:49
@nuke-web3 nuke-web3 self-assigned this Oct 7, 2023
@nuke-web3 nuke-web3 marked this pull request as draft October 7, 2023 09:49
@nuke-web3 nuke-web3 added A1-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet. D0-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder. labels Oct 9, 2023
@nuke-web3 nuke-web3 marked this pull request as ready for review October 9, 2023 10:58
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 1/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3922098

@nuke-web3 nuke-web3 marked this pull request as draft October 17, 2023 18:47
@bkchr
Copy link
Member

bkchr commented Jul 24, 2024

Stale

@bkchr bkchr closed this Jul 24, 2024
@bkchr bkchr deleted the n/lottery-frf branch July 24, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A1-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). D0-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder. R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants