Skip to content

[FRAME] Closed Bounties Return Balance And Assets - #10729

Merged
bkchr merged 17 commits into
masterfrom
oty-bounty-hotfix
Jan 16, 2026
Merged

[FRAME] Closed Bounties Return Balance And Assets#10729
bkchr merged 17 commits into
masterfrom
oty-bounty-hotfix

Conversation

@ggwpez

@ggwpez ggwpez commented Jan 6, 2026

Copy link
Copy Markdown
Member

Ensures that bounties that got closed with close_bounty will return the maximal possible amount of Native balance and specific relevant Assets.
This fixes an issue where closed bounties would not refund any balance to the treasury because assets were blocking the withdrawal through account references.

Changes:

  • Add config items to Bounty pallet: TransferAllAssets to withdraw all assets
  • Add trait TransferAllFungibles for generic funds transfer

ggwpez added 2 commits January 6, 2026 13:46
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez changed the title [FRAME] Bounties should return balance and assets on close [FRAME] Bounties return balance and assets on close Jan 6, 2026
ggwpez added 2 commits January 6, 2026 14:24
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added the T2-pallets This PR/Issue is related to a particular pallet. label Jan 6, 2026
ggwpez added 2 commits January 7, 2026 13:15
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez changed the title [FRAME] Bounties return balance and assets on close [FRAME] Closed Bounties Return Balance And Assets Jan 7, 2026
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez
ggwpez marked this pull request as ready for review January 7, 2026 11:37
@ggwpez
ggwpez requested a review from a team as a code owner January 7, 2026 11:37
Comment thread substrate/frame/bounties/src/lib.rs Outdated
ggwpez added 3 commits January 8, 2026 20:53
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@paritytech-workflow-stopper

Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/20829789320
Failed job name: test-linux-stable-runtime-benchmarks

ggwpez added 3 commits January 8, 2026 22:26
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

@dhirajs0 dhirajs0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

Comment thread substrate/frame/bounties/src/lib.rs Outdated
Comment thread substrate/frame/bounties/src/lib.rs
ggwpez and others added 3 commits January 15, 2026 16:51
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@bkchr
bkchr added this pull request to the merge queue Jan 16, 2026
Merged via the queue into master with commit 95b6ca3 Jan 16, 2026
236 of 238 checks passed
@bkchr
bkchr deleted the oty-bounty-hotfix branch January 16, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T2-pallets This PR/Issue is related to a particular pallet.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants