Nomination pools: Fix payout destination in permissionless unbond (#3110)

This fixes a bug in nomination pools that msitakenly claimed the
rewards, upon pool destruction, into the caller of `unbond` and not the
actual member.

More description and a PA coming soon. Opening this for now to expediate
backport.

---------

Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com>
This commit is contained in:
Kian Paimani
2024-01-30 13:11:32 +00:00
committed by GitHub
parent f07316f272
commit a190e0e925
4 changed files with 192 additions and 21 deletions
+12
View File
@@ -0,0 +1,12 @@
title: Nomination pools Fix payout destination in permissionless unbond
doc:
- audience: Runtime Dev
description: |
This PR fixes an issue whereby when a nomination pool allowed for permissionless unbonding of
funds, the implicit claimed rewards were mistakenly sent to the caller of the `unbond`, and
not the actual member. A nomination pool only allows permissionless unbonding when its state
was set into `Destroying` by the operator
crates:
- name: pallet-nomination-pools