-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Deprecate RewardDestination::Controller
#2380
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
Changes from 22 commits
4369870
a5537d6
016d225
446fe8f
46a5062
7dcef6d
039d618
0119204
2e14496
18638c2
2b98d99
096ac39
7c07d93
8edebd5
7d8021c
af75c2f
5614c1c
797f68c
ce4fdd3
e34d97b
5caba0c
d652e2e
f0e3759
34d7fd9
11de5a5
fef57b3
aaf5233
a83b9bd
30a6b5c
45e048f
4bb35d3
0f95d05
06799f2
98860f0
2c5cd1f
c94ab24
78d5e38
89a1ed1
c0299b8
e9fe18a
02f5f55
5363cc3
cec0430
a39745f
c8f1d01
90d4ee1
568c676
a1fdb2c
ee44468
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -338,9 +338,9 @@ impl<T: Config> Pallet<T> { | |
|
|
||
| let dest = Self::payee(StakingAccount::Stash(stash.clone())); | ||
| let maybe_imbalance = match dest { | ||
| RewardDestination::Controller => Self::bonded(stash) | ||
| .map(|controller| T::Currency::deposit_creating(&controller, amount)), | ||
| RewardDestination::Stash => T::Currency::deposit_into_existing(stash, amount).ok(), | ||
| #[allow(deprecated)] | ||
|
||
| RewardDestination::Stash | RewardDestination::Controller => | ||
| T::Currency::deposit_into_existing(stash, amount).ok(), | ||
| RewardDestination::Staked => Self::ledger(Stash(stash.clone())) | ||
| .and_then(|mut ledger| { | ||
| ledger.active += amount; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.