Questions tagged [pallet-treasury]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

Get remaining value of bounty after child bounty

I am writing a web app that shows current info about bounties and child bounties. From what i understand if there is a bounty with a value of 5 DOT, I can create N child bounties which values sum up ...
user avatar
0 votes
1 answer
30 views

How do I hardcode asset id's?

Using pallet-assets, how do I create a pallet that has hardcoded (pallet-)asset id's for it's on-chain assets that the pallet handles? I wasnt able to find a good documented way to do this
user avatar
  • 101
1 vote
1 answer
19 views

Recurring Proposal on Substrate Frontend

So from polkadot js (UI) while creating treasury proposal and want to make it recurring per cycle, you do you achieve that? Say set the segment input in the picture attached to any positive integer, ...
user avatar
4 votes
1 answer
65 views

Multiple instances of Treasury pallet

I wondered how to create multiple instances of the pallet Treasury and couldn't find any examples so far. One example is pallet Membership, which doesn't have any dependencies, while the Treasury ...
user avatar
  • 93
4 votes
2 answers
136 views

What is a best way to fork a substrate pallet?

Context: i'm building a "sub-treasury" pallet, and for it, i'd like to start from the existing substrate's pallet_treasury. Problem: In Cargo.toml, there is relative paths (like sp-io = {...
user avatar
  • 352
1 vote
0 answers
11 views

Proposal bond in pallet-treasury

/// Fraction of a proposal's value that should be bonded in order to place the proposal. /// An accepted proposal gets these back. A rejected proposal does not. #[pallet::constant] type ProposalBond: ...
user avatar
1 vote
0 answers
24 views

How to provide Council the Ability to Mint/Burn tokens based on Council Proposals?

I am working with the staking pallet and configuring parameters. The RewardRemainder is receiving the issued amount based on the imbalance from difference to the optimal staking percentage. How can I ...
user avatar
  • 225
2 votes
1 answer
36 views

How to create an escrow account without runtime upgrade

I'd like to create an account that is only usable through the root origin like the treasury account. It should be possible to transfer funds to it, but sending from it should only be possible through ...
user avatar
4 votes
1 answer
37 views

What governs Treasury funds out?

My question is: What governs access to treasury funds? I’m assuming it requires an ink contract that governs who is able to invoke funds transfers out of the treasury and which conditions apply. Is ...
user avatar
  • 43
3 votes
2 answers
64 views

Using unspent funds from Treasury as staking rewards

I am trying to build something that will allow me to use unspent treasury funds as I don't understand the proposal system yet, but I won't be overloading this question with that. Here's the scenario: ...
user avatar