Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[Enhancement] Remove optional Pool subscription from fast-unstake #12344

Merged
merged 6 commits into from
Sep 26, 2022

Conversation

ruseinov
Copy link
Contributor

@ruseinov ruseinov commented Sep 24, 2022

related: #12337

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Sep 24, 2022
@ruseinov ruseinov added C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. B0-silent Changes should not be mentioned in any release notes labels Sep 24, 2022
CurrencyBalance = <Self as pallet_nomination_pools::Config>::CurrencyBalance,
> + pallet_nomination_pools::Config
{
pub trait Config: frame_system::Config + pallet_staking::Config {
Copy link
Contributor

Choose a reason for hiding this comment

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

Later on, you can also tackle another part of #12337 and implement this via trait StakingInterface (if it supports all the needed APIs).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do

};

let unstake_result = pallet_staking::Pallet::<T>::force_unstake(
let result = pallet_staking::Pallet::<T>::force_unstake(
Copy link
Contributor

Choose a reason for hiding this comment

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

much simpler now, nice.

CurrencyBalance = <Self as pallet_nomination_pools::Config>::CurrencyBalance,
> + pallet_nomination_pools::Config
{
pub trait Config: frame_system::Config + pallet_staking::Config {

Choose a reason for hiding this comment

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

much cleaner

@ruseinov
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit fbd7e5a into master Sep 26, 2022
@paritytech-processbot paritytech-processbot bot deleted the ru/enhacement/unstake-remove-pools branch September 26, 2022 06:05
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…ritytech#12344)

* [Enhancement] Remove optional Pool subscription from fast-unstake

* remove nomination-pools pallet dependency

* fixes

* more fixes

* more fixes

* more fixes
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. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants